:root {
  /* Colors */
  --void: #000000;
  --white: #ffffff;
  --ash: #9a9a9a;
  --silver: #bdbdbd;
  --iris: #2fa06f;
  --iris-soft: rgba(47, 160, 111, 0.14);
  --saffron: #ffb829;
  --verdant: #15846e;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --page-max: 1200px;
  --gutter: clamp(24px, 6vw, 96px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

#ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, .nav, .footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--saffron); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 24px;
}
.eyebrow.amber { color: var(--saffron); }

.display {
  font-size: clamp(56px, 11vw, 118px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0;
}
.hero-title {
  font-size: clamp(38px, 6.4vw, 70px);
  line-height: 1.05;
  white-space: nowrap;
}
.hero-title em { font-style: italic; }
.heading-lg {
  font-size: clamp(40px, 7vw, 78px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
}
.heading {
  font-size: clamp(34px, 5.2vw, 52px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
}
.lede {
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 200;
  line-height: 1.5;
  color: var(--white);
  max-width: 30ch;
  margin: 30px 0 0;
}
.lede.center { max-width: 46ch; margin-left: auto; margin-right: auto; }
.body {
  font-size: clamp(16px, 1.9vw, 18px);
  font-weight: 200;
  line-height: 1.6;
  color: var(--white);
  max-width: 42ch;
  margin: 28px 0 0;
}
.body.dim { color: var(--silver); }

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9em;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  font-size: 0.82em;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
}
code {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--saffron);
  font-size: 0.92em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background 0.3s, opacity 0.3s;
}
.btn-primary {
  background: var(--iris);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 999px;
}
.btn-primary:hover { transform: translateY(-2px); background: #37b57f; }
.btn-ghost { color: var(--ash); padding: 14px 4px; }
.btn-ghost:hover { color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px var(--gutter);
  max-width: var(--page-max);
  margin: 0 auto;
  transition: padding 0.4s var(--ease), background 0.4s;
}
.nav.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; }
.brand-word { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ash);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta { margin-left: 4px; }

/* ---------- Layout shell ---------- */
main > section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: 82vh;
  padding-top: 40px;
  padding-bottom: 80px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-note { margin-top: 26px; font-size: 14px; font-weight: 200; color: var(--ash); }
.hero-visual { position: relative; height: 520px; }
#wave { width: 100%; height: 100%; }

/* ---------- Alternating blocks ---------- */
.block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 60px;
  padding-top: clamp(80px, 12vw, 150px);
  padding-bottom: clamp(80px, 12vw, 150px);
}
.block.reversed { grid-template-columns: 1.15fr 0.85fr; }
.block.reversed .block-visual { order: 2; }
.block.reversed .block-copy { order: 1; }
.block-visual { display: flex; justify-content: center; align-items: center; }

/* mic orb */
.mic-orb {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.mic-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--iris);
  animation: pulse 3.6s var(--ease) infinite;
}
.mic-ring.r2 { animation-delay: 1.2s; border-color: var(--verdant); }
.mic-ring.r3 { animation-delay: 2.4s; border-color: rgba(255,184,41,0.6); }
.mic-glyph { color: var(--white); position: relative; z-index: 1; }
@keyframes pulse {
  0%   { transform: scale(0.55); opacity: 0; }
  25%  { opacity: 0.9; }
  100% { transform: scale(1.05); opacity: 0; }
}
.shield { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

/* screen-capture / OCR scanning animation — replicates the app's ScanOverlay:
   a levitating scan-text tile (float + tilt + breathe on independent transform
   properties, each on its own period) with a mirrored magnifier wandering over
   it (X and Y wander on different periods via nested wrappers + a zoom pulse). */
.scan-stage {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-stage::before {
  content: '';
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 32%;
  background: radial-gradient(closest-side, var(--iris-soft), transparent 72%);
}
.scan-tile {
  position: relative;
  width: 158px;
  height: 158px;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.55));
  animation: tileFloat 1.6s ease-in-out infinite alternate,
             tileTilt 1.75s ease-in-out infinite alternate,
             tileBreathe 2.5s ease-in-out infinite alternate;
}
@keyframes tileFloat { from { translate: -3px 8px; } to { translate: 3px -12px; } }
@keyframes tileTilt  { from { rotate: -3deg; } to { rotate: 4deg; } }
@keyframes tileBreathe { from { scale: 1; } to { scale: 1.05; } }

.scan-lens-y, .scan-lens-x {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-lens-y { animation: lensY 1.9s ease-in-out infinite alternate; }
.scan-lens-x { animation: lensX 1.3s ease-in-out infinite alternate; }
@keyframes lensY { from { translate: 0 -12px; } to { translate: 0 14px; } }
@keyframes lensX { from { translate: -20px 0; } to { translate: 20px 0; } }
.scan-lens {
  width: 96px;
  height: 96px;
  transform: scaleX(-1); /* handle to bottom-right, per source art */
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.45));
  animation: lensZoom 1.1s ease-in-out infinite alternate;
}
@keyframes lensZoom { from { scale: 1; } to { scale: 1.12; } }

.cta-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 14px 32px rgba(0,0,0,0.5));
}

/* LangFlip / layout-flip animation — replicates the app's FlipOverlay: the
   keyboard-flip glyph bounces up and turns over on the Y axis (a full 360°
   card-flip), signalling "layout switched", then rests and repeats. */
.flip-stage {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}
.flip-stage::before {
  content: '';
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 32%;
  background: radial-gradient(closest-side, var(--iris-soft), transparent 72%);
}
.flip-tile {
  width: 152px;
  height: 152px;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.55));
  animation: flipTurn 3.6s ease-in-out infinite,
             flipBob 3.6s ease-in-out infinite;
}
@keyframes flipTurn {
  0%, 20%   { rotate: y 0deg; }
  50%       { rotate: y 180deg; }
  80%, 100% { rotate: y 360deg; }
}
@keyframes flipBob {
  0%, 20%, 80%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

/* ---------- Superpowers ---------- */
.powers { padding-top: clamp(60px, 9vw, 120px); padding-bottom: clamp(60px, 9vw, 120px); }
.powers-head { margin-bottom: 72px; }
.power-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 60px;
}
.power {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.power-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
  color: var(--silver);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.power:hover .power-icon { color: var(--white); transform: translateY(-2px); }
.power h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 12px; transition: color 0.35s var(--ease); }
.power p { font-size: 15.5px; font-weight: 200; line-height: 1.55; color: var(--silver); margin: 0; max-width: 32ch; }

/* ---------- How it works ---------- */
.how { padding-top: clamp(60px, 9vw, 120px); padding-bottom: clamp(60px, 9vw, 120px); }
.how-head { margin-bottom: 64px; }
.steps {
  list-style: none;
  margin: 0 0 90px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.step-num {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--iris);
}
.step h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 20px 0 12px; }
.step p { font-size: 16px; font-weight: 200; line-height: 1.55; color: var(--silver); margin: 0; max-width: 30ch; }

.shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 60px;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.shortcut {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chord { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 168px; color: var(--ash); font-size: 13px; }
.shortcut p { margin: 0; font-size: 16px; font-weight: 200; color: var(--white); }

/* ---------- Privacy list ---------- */
.privacy-list { list-style: none; padding: 0; }
.privacy-list li { position: relative; padding-left: 24px; margin: 12px 0; max-width: 44ch; }
.privacy-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--iris);
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding-top: clamp(90px, 14vw, 170px);
  padding-bottom: clamp(90px, 14vw, 170px);
}
.cta .heading-lg { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 60px var(--gutter) 80px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-links { display: flex; gap: 28px; margin: 0; }
.footer-links a { font-size: 14px; font-weight: 500; color: var(--ash); transition: color 0.25s; }
.footer-links a:hover { color: var(--white); }
.footer-fine { margin: 0; font-size: 14px; font-weight: 200; color: var(--ash); max-width: 46ch; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  will-change: opacity, transform, filter;
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
/* scale-in variant, for section visuals */
.reveal-zoom { transform: scale(0.92); }
.reveal-zoom.in { transform: none; }

/* on-load entrances (above the fold, independent of scroll observer) */
@keyframes navDrop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes softFade { from { opacity: 0; } to { opacity: 1; } }
.nav { animation: navDrop 0.75s var(--ease) both; }
#ambient { animation: softFade 2.2s ease both; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { gap: 16px; }
  .nav-cta { margin-left: auto; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
    gap: 8px;
  }
  .hero-title { white-space: normal; font-size: clamp(40px, 12vw, 62px); }
  .hero-visual { height: 340px; order: -1; }
  .block, .block.reversed { grid-template-columns: 1fr; gap: 40px; }
  .block.reversed .block-visual, .block.reversed .block-copy { order: initial; }
  .block-copy { text-align: left; }
  .power-list { grid-template-columns: 1fr; gap: 0; }
  .power { padding: 30px 0; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .shortcuts { grid-template-columns: 1fr; gap: 0; }
  .chord { flex-basis: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}
