/* ============================================================
   Cassandra Landing — Warm Editorial
   Palette: Cream · Sage Teal · Terracotta
   Fonts: DM Serif Display (display) · DM Sans (body)
   ============================================================ */

:root {
  /* Palette */
  --cream:        #FAF7F2;
  --cream-mid:    #F3EBE0;
  --cream-dark:   #E8DDD0;
  --text-deep:    #1A1512;
  --text-mid:     #4A3F38;
  --text-soft:    #8A7E76;
  --text-ghost:   #B8AFA6;

  /* Teal — primary */
  --teal:         #4A8C7F;
  --teal-deep:    #366B60;
  --teal-light:   #EBF5F2;
  --teal-border:  rgba(74, 140, 127, 0.18);

  /* Terracotta — accent (warmth / human) */
  --terra:        #C4735A;
  --terra-deep:   #A55A43;
  --terra-light:  #FBF0EC;
  --terra-border: rgba(196, 115, 90, 0.2);

  /* Bridge section dark bg */
  --bridge-bg:    #1E302C;

  /* Typography */
  --font-serif:   'DM Serif Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 7rem;

  /* Misc */
  --radius:    10px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-w:     1100px;
  --shadow-sm: 0 2px 10px rgba(26,21,18,0.06);
  --shadow-md: 0 6px 24px rgba(26,21,18,0.09);
  --shadow-lg: 0 16px 48px rgba(26,21,18,0.12);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-deep);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

/* ── Container ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  padding: 13px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 20px rgba(74, 140, 127, 0.32);
}
.btn-primary:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(74, 140, 127, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal-border);
  padding: 12px 26px;
}
.btn-outline:hover {
  background: var(--teal-light);
  border-color: var(--teal);
}

.btn-large {
  font-size: 1.0625rem;
  padding: 16px 36px;
}

/* ── Section Label ──────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: var(--sp-sm);
}

/* ── Section Header ─────────────────────────────── */
.section-header {
  max-width: 560px;
  margin: 0 auto var(--sp-lg);
  text-align: center;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--text-deep);
}

/* ── Header ─────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 21, 18, 0.06);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-deep);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-mid);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--teal); }
.header-cta {
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--teal);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius);
  transition: background 0.18s, transform 0.18s;
}
.header-cta:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  padding: calc(70px + var(--sp-xl)) 0 var(--sp-xl);
  background: linear-gradient(160deg, var(--cream-mid) 0%, var(--cream) 55%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -180px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,140,127,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -120px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,115,90,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: var(--sp-sm);
  text-transform: uppercase;
}
.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--text-deep);
  margin-bottom: var(--sp-md);
  letter-spacing: -0.01em;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--terra);
}
.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: var(--sp-lg);
  max-width: 460px;
}
.hero-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-bottom: var(--sp-sm);
}
.hero-note {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

/* Chat preview */
.hero-chat {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(26,21,18,0.04);
}
.chat-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--cream-mid);
  border-bottom: 1px solid var(--cream-dark);
}
.chrome-dots {
  display: flex;
  gap: 5px;
}
.chrome-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cream-dark);
}
.chrome-dots span:first-child { background: #f5a4a4; }
.chrome-dots span:nth-child(2) { background: #f5d0a4; }
.chrome-dots span:last-child { background: #a4f5b4; }
.chrome-title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-left: 4px;
}
.chrome-status {
  margin-left: auto;
  font-size: 0.75rem;
  color: #4caf74;
}
.chat-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.msg.bot  { justify-content: flex-start; }
.bubble {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.msg.user .bubble {
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.bot .bubble {
  background: var(--cream-mid);
  color: var(--text-deep);
  border-bottom-left-radius: 4px;
}
.bubble-accent {
  display: block;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(196,115,90,0.1);
  border-left: 2.5px solid var(--terra);
  border-radius: 0 6px 6px 0;
  font-size: 0.875rem;
  color: var(--text-mid);
  font-style: italic;
}

/* Chat stagger animation */
.msg-a1 { animation: msgIn 0.5s ease 0.3s both; }
.msg-a2 { animation: msgIn 0.5s ease 0.7s both; }
.msg-a3 { animation: msgIn 0.5s ease 1.1s both; }
.msg-a4 { animation: msgIn 0.5s ease 1.5s both; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── How It Works ────────────────────────────────── */
.how-it-works {
  padding: var(--sp-2xl) 0;
  background: var(--cream);
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  padding: var(--sp-md);
  text-align: center;
}
.step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--teal);
  opacity: 0.35;
  margin-bottom: 16px;
  line-height: 1;
}
.step-content h3 {
  font-size: 1.1rem;
  color: var(--text-deep);
  margin-bottom: 10px;
}
.step-content p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.65;
}
.step-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 28px;
  color: var(--cream-dark);
}

/* ── Bridge Section ──────────────────────────────── */
.bridge { background: var(--bridge-bg); }
.bridge-inner {
  padding: var(--sp-2xl) 0;
  position: relative;
  overflow: hidden;
}
.bridge-inner::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,140,127,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.bridge .section-header { text-align: center; }
.bridge .section-header h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}
.bridge-grid {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.bridge-card {
  flex: 1;
  border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-md);
  position: relative;
}
.bridge-listen {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.bridge-connect {
  background: rgba(196,115,90,0.1);
  border: 1px solid rgba(196,115,90,0.22);
}
.bridge-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
}
.bridge-listen .bridge-icon {
  background: rgba(74,140,127,0.15);
  color: #7eb8a0;
}
.bridge-connect .bridge-icon {
  background: rgba(196,115,90,0.15);
  color: #d4937e;
}
.bridge-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}
.bridge-card > p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: var(--sp-md);
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.check-list li::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(74,140,127,0.25);
  border: 1px solid rgba(74,140,127,0.4);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6 L4.5 8 L9.5 4' stroke='%237eb8a0' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.check-list-terra li::before {
  background-color: rgba(196,115,90,0.2);
  border-color: rgba(196,115,90,0.35);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6 L4.5 8 L9.5 4' stroke='%23d4937e' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.bridge-cta {
  display: inline-block;
  margin-top: var(--sp-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: #d4937e;
  transition: color 0.15s;
}
.bridge-cta:hover { color: #e8b09e; }

.bridge-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 8px;
  color: rgba(255,255,255,0.2);
}
.divider-line {
  flex: 1;
  width: 1px;
  background: rgba(255,255,255,0.1);
  max-height: 80px;
}
.divider-icon {
  padding: 8px;
  color: rgba(255,255,255,0.35);
}

/* ── About ───────────────────────────────────────── */
.about {
  padding: var(--sp-2xl) 0;
  background: var(--cream-mid);
}
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: start;
}
.about-text .section-label { margin-bottom: 14px; }
.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-deep);
  margin-bottom: var(--sp-md);
}
.about-text p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: var(--sp-sm);
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.about-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.about-feature-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-feature-icon.teal {
  background: var(--teal-light);
  color: var(--teal);
}
.about-feature-icon.terra {
  background: var(--terra-light);
  color: var(--terra);
}
.about-feature strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-deep);
  margin-bottom: 3px;
}
.about-feature p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ── CTA section ─────────────────────────────────── */
.cta-section {
  padding: var(--sp-2xl) 0;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-mid) 100%);
}
.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.cta-inner .section-label { justify-content: center; }
.cta-inner h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--text-deep);
  margin-bottom: var(--sp-sm);
}
.cta-sub {
  font-size: 1.0625rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: var(--sp-lg);
}
.cta-note {
  margin-top: var(--sp-md);
  font-size: 0.8125rem;
  color: var(--text-soft);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  padding: var(--sp-lg) 0 var(--sp-md);
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--cream-dark);
}
.footer-brand .logo {
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-top: 6px;
}
.footer-nav {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-soft);
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--teal); }
.footer-bottom p {
  font-size: 0.9375rem;
  color: var(--text-soft);
  max-width: 680px;
  line-height: 1.65;
}
.footer-bottom strong { color: var(--terra); font-weight: 500; }

/* ── Scroll Reveal ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }
.reveal-d4 { transition-delay: 0.48s; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .hero-text {
    text-align: center;
  }
  .hero-text h1 br { display: none; }
  .hero-subtitle { margin: 0 auto var(--sp-lg); }
  .hero-actions { justify-content: center; }
  .hero-chat { max-width: 440px; margin: 0 auto; }

  .about-container {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
}

@media (max-width: 720px) {
  .header-nav .nav-link { display: none; }

  .steps {
    flex-direction: column;
    align-items: center;
    max-width: 380px;
    margin: 0 auto;
  }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .step { padding: var(--sp-sm) var(--sp-md); }

  .bridge-grid {
    flex-direction: column;
  }
  .bridge-divider {
    flex-direction: row;
    padding: 8px 0;
  }
  .divider-line { flex: 1; height: 1px; width: auto; max-height: unset; }
  .divider-icon { transform: rotate(90deg); }

  .footer-top {
    flex-direction: column;
    gap: var(--sp-md);
  }
}

@media (max-width: 500px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-outline { display: none; }
  .chat-body { padding: 16px 14px; }
  .bubble { max-width: 90%; font-size: 0.875rem; }
}

/* ── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .msg-a1, .msg-a2, .msg-a3, .msg-a4 { animation: none; }
  .btn { transition: none; }
}
