/* ============================================================
   Aura landing — design tokens mirror the app's Theme.swift
   ============================================================ */
:root {
  --bg:        #050B11;   /* oklch(0.145 0.018 250) */
  --bg-deep:   #030509;   /* oklch(0.115 0.014 250) */
  --accent:    #5EE9C9;   /* mint — primary accent  */
  --talk:      #C2A7F4;   /* lavender — conversation */
  --listen:    #82C7F0;   /* sky — broadcast/listen  */
  --warn:      #EBC573;
  --ink-on-accent: #0B121A;

  --text-95: rgba(242, 245, 249, 0.95);
  --text-70: rgba(242, 245, 249, 0.70);
  --text-50: rgba(242, 245, 249, 0.50);
  --text-35: rgba(242, 245, 249, 0.35);

  --hairline:   rgba(255, 255, 255, 0.07);
  --hairline-h: rgba(255, 255, 255, 0.13);
  --surface:    rgba(255, 255, 255, 0.04);
  --surface-2:  rgba(255, 255, 255, 0.07);

  --r-card: 28px;
  --r-btn:  999px;

  --font-display: "Clash Display", "Avenir Next", sans-serif;
  --font-body:    "Satoshi", "Avenir Next", sans-serif;
  --font-mono:    "DM Mono", "SF Mono", monospace;

  --edge: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--text-95);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(94, 233, 201, 0.25); color: var(--text-95); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- custom cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 100; }
  .cursor-dot, .cursor-ring {
    position: absolute; top: 0; left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent);
  }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid rgba(94, 233, 201, 0.4);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
  }
  .cursor.is-hover .cursor-ring {
    width: 56px; height: 56px;
    border-color: rgba(94, 233, 201, 0.8);
  }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 10px 12px 10px 18px;
  border-radius: var(--r-btn);
  background: rgba(5, 11, 17, 0.55);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(3, 5, 9, 0.75);
  border-color: var(--hairline-h);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-95);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.nav-mark { width: 28px; height: 28px; color: var(--accent); }
.nav-mark .ring { transform-origin: center; animation: breathe 3.2s ease-in-out infinite; }
.nav-mark .r1 { opacity: 0.55; }
.nav-mark .r2 { opacity: 0.25; animation-delay: 0.4s; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.nav-links { display: flex; gap: clamp(12px, 2.5vw, 28px); }
.nav-links a {
  color: var(--text-70);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--text-95); }
.nav-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-on-accent);
  background: var(--accent);
  border-radius: var(--r-btn);
  padding: 9px 18px;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.nav-cta:hover { box-shadow: 0 0 28px rgba(94, 233, 201, 0.45); }

@media (max-width: 640px) {
  .nav { width: calc(100% - 28px); justify-content: space-between; }
  .nav-links { display: none; }
}

/* ---------- shared ---------- */
section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow.center { text-align: center; }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.accent { color: var(--accent); }

.section-head { margin-bottom: clamp(48px, 7vw, 88px); }

.glass {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--r-btn);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink-on-accent);
}
.btn-primary:hover { box-shadow: 0 0 44px rgba(94, 233, 201, 0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text-95);
  border: 1px solid var(--hairline-h);
}
.btn-ghost:hover { background: var(--surface); border-color: rgba(255, 255, 255, 0.25); }

.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js.reduced-motion [data-reveal] { opacity: 1; transform: none; }
.reduced-motion .manifesto-text .w { opacity: 1 !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px var(--edge) 90px;
  overflow: hidden;
}
#field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero-fade {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 42%, transparent 30%, rgba(5, 11, 17, 0.55) 100%),
    linear-gradient(to bottom, rgba(5, 11, 17, 0.4), transparent 28%, transparent 70%, var(--bg) 100%);
}
.hero-inner { position: relative; max-width: 980px; }

.kicker {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 13.5px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-50);
  margin-bottom: 30px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 11.5vw, 148px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .word { display: inline-block; }
.hero-title .accent {
  background: linear-gradient(100deg, var(--accent) 20%, var(--listen) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 44px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-70);
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  display: flex;
  gap: clamp(32px, 7vw, 96px);
  margin-top: clamp(56px, 8vh, 96px);
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--text-95);
}
.stat-value em {
  font-style: normal;
  font-size: 0.5em;
  color: var(--accent);
  margin-left: 2px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-35);
}

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid var(--hairline-h);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  padding: clamp(120px, 18vh, 220px) var(--edge);
  background: var(--bg);
}
.manifesto-text {
  max-width: 1040px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.manifesto-text .w {
  color: var(--text-95);
  opacity: 0.13;
  display: inline-block;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding: clamp(90px, 14vh, 170px) var(--edge); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 940px) { .steps { grid-template-columns: 1fr; max-width: 560px; } }

.step {
  position: relative;
  padding: 34px 30px 38px;
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.step:hover { border-color: var(--hairline-h); background: var(--surface-2); }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text-35);
  margin-bottom: 18px;
}
.step-art { height: 130px; margin-bottom: 22px; }
.step-art svg { width: 100%; height: 100%; }
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 12px;
}
.step p { color: var(--text-70); font-size: 15.5px; }

/* step 1 — pulsing room */
.pulse-core { fill: var(--accent); }
.pulse-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.5;
  transform-origin: 100px 60px;
  animation: ripple 2.6s ease-out infinite;
}
.pulse-ring.d2 { animation-delay: 1.3s; opacity: 0.25; }
@keyframes ripple {
  0% { transform: scale(0.55); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* step 2 — mesh forming */
.node { fill: var(--listen); }
.node.host { fill: var(--accent); }
.link {
  stroke: var(--listen);
  stroke-width: 1.4;
  opacity: 0.7;
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: link-draw 3.4s ease-in-out infinite;
}
.link.d2 { animation-delay: 0.5s; }
.link.d3 { animation-delay: 1s; }
@keyframes link-draw {
  0% { stroke-dashoffset: 90; }
  35%, 80% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -90; }
}

/* step 3 — waveform */
.wave {
  fill: none;
  stroke: var(--talk);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: wave-draw 3s ease-in-out infinite;
}
.wave.d2 { stroke: var(--accent); animation-delay: 0.4s; opacity: 0.7; }
@keyframes wave-draw {
  0% { stroke-dashoffset: 300; opacity: 0; }
  20% { opacity: 1; }
  60%, 75% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -300; opacity: 0; }
}

/* ============================================================
   MODES
   ============================================================ */
.modes { padding: clamp(90px, 14vh, 170px) var(--edge); }

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (max-width: 940px) { .mode-grid { grid-template-columns: 1fr; max-width: 620px; } }

.mode {
  position: relative;
  padding: clamp(36px, 4vw, 56px);
  min-height: 460px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s ease;
}
.mode:hover { border-color: var(--hairline-h); }
.mode-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--r-btn);
  margin-bottom: 28px;
}
.mode-talk .mode-tag { color: var(--talk); border: 1px solid rgba(194, 167, 244, 0.35); }
.mode-listen .mode-tag { color: var(--listen); border: 1px solid rgba(130, 199, 240, 0.35); }
.mode h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.mode-talk h3 { color: var(--talk); }
.mode-listen h3 { color: var(--listen); }
.mode-desc { color: var(--text-70); max-width: 420px; margin-bottom: 30px; }
.mode-list { list-style: none; }
.mode-list li {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-50);
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.mode-list li::before { content: "— "; color: var(--text-35); }

.mode-glow {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
  top: var(--gy, 20%); left: var(--gx, 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
}
.mode-talk .mode-glow { background: var(--talk); }
.mode-listen .mode-glow { background: var(--listen); }
.mode:hover .mode-glow { opacity: 0.28; }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy {
  padding: clamp(90px, 14vh, 170px) var(--edge);
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(94, 233, 201, 0.05), transparent 70%),
    var(--bg-deep);
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}
@media (max-width: 940px) { .privacy-grid { grid-template-columns: 1fr; } }

.privacy-list { list-style: none; }
.privacy-list li { padding: 26px 0; border-top: 1px solid var(--hairline); }
.privacy-list h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 8px;
}
.privacy-list p { color: var(--text-70); font-size: 15.5px; max-width: 460px; }

.terminal {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(3, 5, 9, 0.75);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
}
.terminal-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--surface-2);
}
.terminal-bar span:first-child { background: rgba(237, 115, 123, 0.6); }
.terminal-bar span:nth-child(2) { background: rgba(235, 197, 115, 0.6); }
.terminal-bar span:nth-child(3) { background: rgba(94, 233, 201, 0.6); }
.terminal-bar p {
  margin-left: auto; margin-right: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-35);
}
.terminal-body {
  padding: 26px 24px 30px;
  font-family: var(--font-mono);
  font-size: clamp(12.5px, 1.4vw, 14.5px);
  line-height: 1.85;
  color: var(--text-70);
  white-space: pre-wrap;
  min-height: 270px;
}
.terminal-body .caret {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--accent);
  vertical-align: -2px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.t-cmd { color: var(--text-95); }
.t-ok  { color: var(--accent); }
.t-dim { color: var(--text-35); }

/* ============================================================
   MARQUEE
   ============================================================ */
.anywhere {
  padding: clamp(90px, 14vh, 160px) 0;
  overflow: hidden;
}
.anywhere .eyebrow { margin-bottom: 48px; }
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee + .marquee { margin-top: 18px; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 42px;
  flex-shrink: 0;
  min-width: 100%;
  padding-right: 42px;
  animation: marquee-scroll 36s linear infinite;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 58px);
  letter-spacing: -0.01em;
  color: var(--text-35);
  white-space: nowrap;
  transition: color 0.4s ease;
}
.marquee:hover span { color: var(--text-70); }
.marquee-track i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   TECH STRIP
   ============================================================ */
.tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0 var(--edge) clamp(80px, 12vh, 140px);
}
.tech p {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-50);
  padding: 10px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.tech p:hover { color: var(--accent); border-color: rgba(94, 233, 201, 0.4); }

/* ============================================================
   CTA / WAITLIST
   ============================================================ */
.cta {
  position: relative;
  padding: clamp(130px, 20vh, 230px) var(--edge);
  text-align: center;
  overflow: hidden;
  background: var(--bg-deep);
}
.cta-rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  pointer-events: none;
}
.cta-rings span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(94, 233, 201, 0.16);
  border-radius: 50%;
  animation: cta-ripple 7s ease-out infinite;
}
.cta-rings span:nth-child(1) { width: 320px; height: 320px; animation-delay: 0s; }
.cta-rings span:nth-child(2) { width: 320px; height: 320px; animation-delay: 1.75s; }
.cta-rings span:nth-child(3) { width: 320px; height: 320px; animation-delay: 3.5s; }
.cta-rings span:nth-child(4) { width: 320px; height: 320px; animation-delay: 5.25s; }
@keyframes cta-ripple {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(4.2); opacity: 0; }
}
.cta-inner { position: relative; }
.cta h2 { font-size: clamp(48px, 8vw, 104px); margin-bottom: 44px; }

.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto 18px;
}
.waitlist-form input {
  flex: 1;
  min-width: 240px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-95);
  background: var(--surface);
  border: 1px solid var(--hairline-h);
  border-radius: var(--r-btn);
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.waitlist-form input::placeholder { color: var(--text-35); }
.waitlist-form input:focus {
  border-color: rgba(94, 233, 201, 0.55);
  background: var(--surface-2);
}
.form-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--text-35);
}
.form-note.is-success { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 34px var(--edge);
  border-top: 1px solid var(--hairline);
  background: var(--bg-deep);
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}
.footer-brand .nav-mark { width: 24px; height: 24px; color: var(--accent); }
.footer-note { color: var(--text-35); font-size: 13.5px; }
.footer-legal { margin-left: auto; color: var(--text-35); font-size: 13.5px; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .cursor { display: none; }
}
