/* ==========================================================
   Zoee AI — design tokens
   Ink:    #161233   Paper:  #F6F4FB   Card: #FFFFFF
   Coral:  #FF6F4C   Teal:   #1FBFA3   Muted text: #5B5578
   Display: Fraunces  Body: Sora  Utility: JetBrains Mono
   ========================================================== */

:root{
  --ink: #161233;
  --ink-soft: #241D4A;
  --paper: #F6F4FB;
  --card: #FFFFFF;
  --coral: #FF6F4C;
  --coral-dark: #E8552F;
  --teal: #1FBFA3;
  --lav: #E7E1F7;
  --text: #241D4A;
  --text-muted: #5B5578;
  --text-on-dark: #EFEAFB;
  --text-on-dark-muted: #ABA3CC;
  --border: #E2DCF2;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px -20px rgba(22,18,51,0.25);
  --shadow-card: 0 10px 30px -12px rgba(22,18,51,0.15);
  --wrap: 1160px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family: var(--font-display); margin:0; color: var(--ink); line-height:1.08; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.accent{ color: var(--coral); }

.accent-underline{
  position: relative;
  display: inline-block;
}
.accent-underline::after{
  content:"";
  position:absolute;
  left:2px; right:2px; bottom:6px;
  height: 0.34em;
  background: var(--teal);
  opacity:.35;
  z-index:-1;
  border-radius: 4px;
}

/* subtle grain overlay for texture */
.grain{
  position: fixed; inset:0; pointer-events:none; z-index: 999;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight:600; font-size:0.95rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 1.5px solid transparent;
  cursor:pointer;
}
.btn--ghost{
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover{ background: var(--ink); color: var(--paper); transform: translateY(-1px); }

.badge-link{ display:inline-block; line-height:0; transition: transform .18s ease, opacity .18s ease; border-radius: 10px; overflow:hidden; }
.badge-link img{ height:48px; width:auto; }
.badge-link:hover{ transform: translateY(-2px); opacity:.9; }

/* ---------------- nav ---------------- */
.nav{
  position: sticky; top:0; z-index: 100;
  background: rgba(246,244,251,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.nav__brand{ display:flex; align-items:baseline; gap:6px; font-family: var(--font-display); font-size:1.4rem; font-weight:600; color: var(--ink); }
.nav__mark-ai{ font-family: var(--font-mono); font-size:0.62rem; letter-spacing:0.14em; background: var(--ink); color: var(--paper); padding:3px 6px; border-radius:5px; position:relative; top:-8px; }
.nav__links{ display:flex; gap:34px; }
.nav__links a{ font-size:0.94rem; font-weight:600; color: var(--text-muted); transition: color .15s ease; }
.nav__links a:hover{ color: var(--ink); }
.nav__toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px; }
.nav__toggle span{ width:22px; height:2px; background: var(--ink); border-radius:2px; }

/* ---------------- hero ---------------- */
.hero{ padding: 78px 0 60px; }
.hero__inner{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:center;
}
.eyebrow{
  font-family: var(--font-mono); font-size:0.72rem; letter-spacing:0.14em; text-transform:uppercase;
  color: var(--coral-dark); font-weight:600; margin-bottom:18px;
}
.hero__title{ font-size: clamp(2.6rem, 5vw, 4rem); font-weight:600; letter-spacing:-0.01em; }
.hero__sub{ margin-top:22px; font-size:1.08rem; line-height:1.65; color: var(--text-muted); max-width:52ch; }
.hero__actions{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
.hero__note{ margin-top:16px; font-size:0.85rem; color: var(--text-muted); }

/* ---- phone mockup / animated chat demo (signature element) ---- */
.hero__demo{ display:flex; justify-content:center; }
.phone{
  width: 320px;
  border-radius: 38px;
  background: var(--ink);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transform: rotate(1.2deg);
}
.phone__notch{
  position:absolute; top:14px; left:50%; transform:translateX(-50%);
  width:90px; height:22px; background: var(--ink); border-radius: 0 0 16px 16px;
  z-index:2;
}
.phone__notch::after{
  content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%);
  width:44px; height:6px; background:#0B0920; border-radius:6px;
}
.phone__screen{
  background: var(--card);
  border-radius: 26px;
  overflow:hidden;
  min-height: 430px;
  display:flex; flex-direction:column;
  padding-top: 30px;
}
.chatbar{
  display:flex; align-items:center; gap:8px;
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.chatbar__dot{ width:8px; height:8px; border-radius:50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(31,191,163,0.15); }
.chatbar__title{ font-size:0.82rem; font-weight:700; color: var(--ink); }
.chatbar__lang{ margin-left:auto; font-family: var(--font-mono); font-size:0.68rem; background: var(--lav); color: var(--ink-soft); padding:3px 8px; border-radius:6px; }

.chat{ flex:1; padding: 16px 14px; display:flex; flex-direction:column; gap:10px; min-height:280px; }
.bubble{
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size:0.86rem;
  line-height:1.45;
  opacity:0; transform: translateY(8px);
  animation: bubbleIn .45s ease forwards;
}
.bubble--tutor{ align-self:flex-start; background: var(--lav); color: var(--ink-soft); border-bottom-left-radius:5px; }
.bubble--user{ align-self:flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius:5px; }
.bubble--correction{
  align-self:flex-end; background: #FFF1EC; color: var(--coral-dark);
  border: 1px dashed var(--coral); font-size:0.78rem; border-bottom-right-radius:5px;
}
.bubble--correction b{ font-weight:700; }
.bubble s{ opacity:.55; }
@keyframes bubbleIn{ to{ opacity:1; transform:none; } }

.mic-row{
  display:flex; align-items:center; gap:10px;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--border);
}
.mic{
  width:38px; height:38px; border-radius:50%;
  background: var(--coral); color:#fff;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  box-shadow: 0 0 0 0 rgba(255,111,76,0.5);
}
.mic--active{ animation: micPulse 1.1s ease-out infinite; }
@keyframes micPulse{
  0%{ box-shadow: 0 0 0 0 rgba(255,111,76,0.45); }
  70%{ box-shadow: 0 0 0 12px rgba(255,111,76,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,111,76,0); }
}
.waveform{ display:flex; align-items:center; gap:3px; height:22px; flex:1; }
.waveform span{
  width:3px; border-radius:3px; background: var(--ink-soft); opacity:.3;
  height: 6px;
}
.waveform span.live{ opacity:.85; animation: wave 0.9s ease-in-out infinite; }
@keyframes wave{
  0%,100%{ height:6px; }
  50%{ height:20px; }
}

/* ---------------- trust strip ---------------- */
.strip{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background: var(--card); }
.strip__inner{
  display:flex; align-items:center; justify-content:center; gap:26px;
  padding: 20px 28px; flex-wrap:wrap; text-align:center;
}
.strip__inner p{ font-size:0.92rem; color: var(--text-muted); }
.strip__inner strong{ color: var(--ink); font-family: var(--font-display); font-size:1.1rem; }
.strip__div{ width:1px; height:16px; background: var(--border); }

/* ---------------- sections ---------------- */
.section{ padding: 96px 0; }
.section--tint{ background: var(--lav); }
.section--dark{ background: var(--ink); }
.section__eyebrow{
  font-family: var(--font-mono); font-size:0.72rem; letter-spacing:0.14em; text-transform:uppercase;
  color: var(--coral-dark); font-weight:600; margin-bottom:14px;
}
.section__eyebrow--light{ color: var(--teal); }
.section__title{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 18ch; }
.section__title--light{ color: var(--text-on-dark); }
.section__sub{ margin-top:16px; color: var(--text-muted); font-size:1.02rem; max-width:56ch; }

/* steps */
.steps{ margin-top:56px; display:grid; grid-template-columns: repeat(3,1fr); gap:36px; }
.step__num{ font-family: var(--font-mono); font-size:0.8rem; color: var(--coral); font-weight:700; }
.step h3{ margin-top:14px; font-size:1.3rem; }
.step p{ margin-top:10px; color: var(--text-muted); line-height:1.6; }

/* scenario grid */
.scenario-grid{ margin-top:50px; display:grid; grid-template-columns: repeat(4,1fr); gap:18px; }
.scenario-card{
  background: var(--card); border-radius: var(--radius-md);
  padding: 26px 22px; box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.scenario-card:hover{ transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(22,18,51,0.25); }
.scenario-card__icon{ font-size:1.7rem; }
.scenario-card h3{ font-size:1.05rem; margin-top:12px; }
.scenario-card p{ margin-top:8px; font-size:0.88rem; color: var(--text-muted); line-height:1.5; }
.scenario-more{ margin-top:32px; text-align:center; color: var(--text-muted); font-size:0.92rem; }

/* languages */
.languages{ display:grid; grid-template-columns: 1fr 1fr; gap:50px; align-items:center; }
.chips{ display:flex; flex-wrap:wrap; gap:12px; }
.chip{
  font-family: var(--font-mono); font-size:0.85rem; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--card);
}
.chip--live{ border-color: var(--teal); color: var(--ink); }
.chip--live::before{ content:"● "; color: var(--teal); }
.chip--soon{ color: var(--text-muted); }

/* privacy */
.privacy__grid{ margin-top:50px; display:grid; grid-template-columns: repeat(3,1fr); gap:32px; }
.privacy__item h3{ color: var(--text-on-dark); font-size:1.1rem; }
.privacy__item p{ margin-top:10px; color: var(--text-on-dark-muted); font-size:0.92rem; line-height:1.6; }

/* final cta */
.cta{ padding: 90px 0 100px; text-align:center; }
.cta h2{ font-size: clamp(2rem, 4vw, 2.8rem); }
.cta p{ margin-top:14px; color: var(--text-muted); font-size:1.05rem; }
.cta__actions{ justify-content:center; margin-top:30px; }

/* footer */
.footer{ background: var(--ink); color: var(--text-on-dark-muted); padding-top:56px; }
.footer__inner{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,0.08); }
.footer__brand .nav__mark{ color: var(--text-on-dark); font-size:1.3rem; }
.footer__brand p{ margin-top:10px; max-width:34ch; font-size:0.88rem; }
.footer__links{ display:flex; gap:26px; flex-wrap:wrap; align-self:flex-start; }
.footer__links a{ font-size:0.9rem; transition: color .15s ease; }
.footer__links a:hover{ color: var(--text-on-dark); }
.footer__bottom{ padding: 20px 28px 30px; font-size:0.8rem; }

/* ---------------- scroll reveal ---------------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal--delay.is-visible{ transition-delay: .12s; }
.reveal--delay2.is-visible{ transition-delay: .24s; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .bubble{ animation:none; opacity:1; transform:none; }
  .mic--active{ animation:none; }
  .waveform span.live{ animation:none; height:12px; }
  html{ scroll-behavior:auto; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns:1fr; }
  .hero__demo{ order:-1; margin-bottom:20px; }
  .steps{ grid-template-columns:1fr; gap:40px; }
  .scenario-grid{ grid-template-columns: repeat(2,1fr); }
  .languages{ grid-template-columns:1fr; }
  .privacy__grid{ grid-template-columns:1fr; gap:30px; }
}

@media (max-width: 760px){
  .nav__links{
    position:absolute; top:76px; left:0; right:0;
    background: var(--paper); border-bottom:1px solid var(--border);
    flex-direction:column; padding:18px 28px; gap:18px;
    display:none;
  }
  .nav__links.open{ display:flex; }
  .nav__cta{ display:none; }
  .nav__toggle{ display:flex; }
  .scenario-grid{ grid-template-columns:1fr 1fr; gap:14px; }
  .strip__inner{ gap:16px; }
  .phone{ width: 92vw; max-width:340px; }
}
