/* ============================================================
   AirVoice — landing styles
   Dark, cinematic, on-device. Display: Instrument Serif.
   ============================================================ */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #04060b;
  --bg-2: #070a12;
  --bg-3: #0b0f1a;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f2f5ff;
  --text-2: #a9b2c8;
  --text-3: #6b7591;
  --cyan: #59e0ff;
  --violet: #7b62ff;
  --blue: #3e9bff;
  --warm: #ffc226;
  --green: #30d158;
  --red: #ff6259;
  --yellow: #ffbd2e;
  --pill-bg: #06080b;
  --ui-card: #161a24;
  --ui-line: rgba(255, 255, 255, 0.07);
  --display: "Instrument Serif", "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
  --ease-spring: cubic-bezier(0.34, 1.4, 0.34, 1);
  --ease-out: cubic-bezier(0.22, 0.72, 0.18, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; cursor: pointer; }
svg { display: block; }
::selection { background: rgba(89, 224, 255, 0.28); }

main > section { position: relative; }

/* Film grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  z-index: 3000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--bg);
  background: var(--text);
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

:is(a, button):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================== Header ============================== */
.site-header {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 28px), 1060px);
  height: 62px;
  padding: 8px 10px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(9, 12, 20, 0.55);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transform: translateX(-50%);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(8, 11, 18, 0.82);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.025em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
}
.brand-mark span {
  width: 2.6px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--violet), var(--cyan));
}
.brand-mark span:nth-child(1), .brand-mark span:nth-child(5) { height: 8px; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(4) { height: 15px; }
.brand-mark span:nth-child(3) { height: 23px; }

.nav { display: flex; gap: 30px; font-size: 13.5px; font-weight: 480; color: var(--text-2); }
.nav a { position: relative; padding: 12px 0; text-decoration: none; transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  right: 0; bottom: 8px; left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================== Buttons ============================== */
.button {
  position: relative;
  min-height: 54px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 15px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 620;
  letter-spacing: -0.01em;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.22s ease, border-color 0.22s ease;
}
.button svg { width: 18px; height: 18px; fill: currentColor; }
.button--primary {
  color: #06080f;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7f5 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 38px rgba(89, 224, 255, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.5);
}
.button--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 55px rgba(89, 224, 255, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.5);
}
.button--primary:active { transform: translateY(0); }
.button--ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.button--small { min-height: 44px; padding: 0 17px; border-radius: 12px; font-size: 13px; }

/* ============================== Type ============================== */
.eyebrow {
  margin: 0 0 26px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 660;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
h2 { font-size: clamp(42px, 5.6vw, 76px); }
h2 em, h1 em, .line--serif {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(105deg, #8ea6ff 0%, var(--cyan) 45%, #c9b8ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-heading { max-width: 820px; }
.section-heading > p:last-child {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading--center > p:last-child { margin-inline: auto; }

/* ============================== Hero ============================== */
.hero {
  position: relative;
  padding: 172px 24px 90px;
  text-align: center;
  overflow: hidden;
}
.hero__aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.aurora--cyan {
  top: -260px; left: 50%;
  width: 760px; height: 540px;
  margin-left: -560px;
  background: radial-gradient(circle, rgba(89, 224, 255, 0.17), transparent 65%);
}
.aurora--violet {
  top: -300px; left: 50%;
  width: 820px; height: 600px;
  margin-left: -140px;
  background: radial-gradient(circle, rgba(123, 98, 255, 0.2), transparent 65%);
}
.aurora--blue {
  top: 120px; left: 50%;
  width: 900px; height: 480px;
  margin-left: -450px;
  background: radial-gradient(circle, rgba(62, 155, 255, 0.1), transparent 70%);
}

.hero__title {
  position: relative;
  font-size: clamp(56px, 9vw, 128px);
}
.line-mask { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.line { display: block; }
.line--serif { padding-right: 0.06em; }

.hero__copy {
  position: relative;
  max-width: 600px;
  margin: 30px auto 0;
  color: var(--text-2);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
}
.hero__actions {
  position: relative;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.hero__meta { color: var(--text-3); font-size: 12.5px; letter-spacing: 0.01em; }

/* -------- Stage: the Mac display demo -------- */
.stage {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 74px auto 0;
  perspective: 1400px;
}
.stage__screen {
  position: relative;
  height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 78% -10%, rgba(123, 98, 255, 0.16), transparent 55%),
    radial-gradient(110% 80% at 18% 108%, rgba(62, 155, 255, 0.12), transparent 60%),
    linear-gradient(160deg, #0c101c 0%, #05070d 60%, #070b14 100%);
  box-shadow:
    0 60px 140px rgba(0, 0, 0, 0.6),
    0 24px 60px rgba(30, 48, 110, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.09);
}
.stage__notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 96px;
  height: 27px;
  border-radius: 0 0 11px 11px;
  background: #010204;
  transform: translateX(-50%);
  z-index: 5;
}
.stage__contour {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 140px;
  z-index: 4;
  pointer-events: none;
}
.contour path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contour--cool path { stroke: url(#glow-cool); }
.contour--warm path { stroke: url(#glow-warm); }
.contour__wide { stroke-width: 18; filter: blur(12px); opacity: 0.5; }
.contour__mid  { stroke-width: 6;  filter: blur(4px);  opacity: 0.8; }
.contour__edge { stroke-width: 2.2; }
.contour {
  opacity: 0;
  transform: scaleX(0.1);
  transform-origin: 50% 0;
  transition: transform 0.6s var(--ease-out), opacity 0.35s ease;
}
.contour--warm { transition: opacity 0.36s ease; }
.stage.is-glowing .contour--cool { opacity: 1; transform: scaleX(1); }
.stage.is-warm .contour--cool { opacity: 0; }
.stage.is-warm.is-glowing .contour--warm { opacity: 1; transform: scaleX(1); }
.stage.is-pulsing .contour--warm path,
.stage.is-pulsing .stage__halo { animation: contour-pulse 1.55s ease-in-out infinite; }
@keyframes contour-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.stage__halo {
  position: absolute;
  top: -110px;
  left: 50%;
  width: min(72%, 780px);
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(77, 232, 255, 0.42) 24%,
    rgba(110, 90, 255, 0.26) 58%,
    transparent 100%);
  filter: blur(26px);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.55s ease, background 0.36s ease;
  z-index: 3;
}
.stage.is-glowing .stage__halo { opacity: 0.9; }
.stage.is-warm .stage__halo {
  background: radial-gradient(ellipse at center,
    rgba(255, 247, 173, 0.6) 0%,
    rgba(255, 194, 31, 0.45) 24%,
    rgba(255, 122, 15, 0.25) 58%,
    transparent 100%);
}

/* -------- The AirVoice pill (matches OverlayWindowController.swift) -------- */
.pill {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 296px;
  height: 55px;
  z-index: 6;
  border-radius: 28px;
  background: var(--pill-bg);
  box-shadow:
    inset 0 0 0 0.8px rgba(255, 255, 255, 0.12),
    0 8px 17px rgba(0, 0, 0, 0.42),
    0 -4px 24px rgba(89, 224, 255, 0.14);
  transform: translateX(-50%);
  transition:
    width 0.4s var(--ease-spring),
    transform 0.5s var(--ease-spring),
    top 0.5s var(--ease-spring),
    opacity 0.32s ease,
    box-shadow 0.4s ease;
}
.pill.is-hidden, .pill.is-dismissing {
  top: -34px;
  transform: translateX(-50%) scale(0.42);
  opacity: 0;
}
.pill.is-dismissing { transition-duration: 0.34s, 0.42s, 0.42s, 0.3s, 0.4s; }
.pill.is-processing, .pill.is-success { width: 55px; }
.pill.is-processing, .pill.is-success, .pill.is-dismissing {
  box-shadow:
    inset 0 0 0 0.8px rgba(255, 255, 255, 0.12),
    0 8px 17px rgba(0, 0, 0, 0.42),
    0 -4px 24px rgba(255, 214, 60, 0.18);
}
.pill__row {
  position: absolute;
  inset: 0;
  padding: 0 12px 0 8.5px;
  display: flex;
  align-items: center;
  gap: 13px;
  opacity: 1;
  transition: opacity 0.22s ease;
}
.pill.is-processing .pill__row, .pill.is-success .pill__row, .pill.is-dismissing .pill__row { opacity: 0; }
.pill__mic {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.pill__mic svg { width: 19px; height: 19px; fill: #fff; }
.pill__wave { flex: 1; width: 100%; height: 40px; }
.pill__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.pill.is-listening .pill__dot {
  background: #59e0ff;
  box-shadow: 0 0 10px rgba(89, 224, 255, 0.75);
}
.pill__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.66);
  transition: opacity 0.24s ease, transform 0.3s var(--ease-spring);
}
.pill.is-processing .pill__status, .pill.is-success .pill__status, .pill.is-dismissing .pill__status {
  opacity: 1;
  transform: scale(1);
}
.pill__spinner { position: absolute; width: 22px; height: 22px; opacity: 0; transition: opacity 0.18s ease; }
.pill.is-processing .pill__spinner { opacity: 1; animation: spin 1.44s linear infinite; }
.pill__spinner-track { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 2.4; }
.pill__spinner-arc {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 68 32;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pill__check {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  opacity: 0;
}
.pill.is-success .pill__check, .pill.is-dismissing .pill__check {
  opacity: 1;
  animation: draw-check 0.36s var(--ease-out) forwards;
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }

/* -------- Compose window inside the stage -------- */
.compose {
  position: absolute;
  top: 172px;
  left: 50%;
  width: min(640px, calc(100% - 48px));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(18, 22, 33, 0.78);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: left;
  z-index: 2;
}
.compose__bar {
  height: 46px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #8a93a8;
  font-size: 12px;
}
.traffic { display: flex; gap: 7px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; }
.traffic i:nth-child(1) { background: var(--red); }
.traffic i:nth-child(2) { background: var(--yellow); }
.traffic i:nth-child(3) { background: #28c941; }
.compose__title { font-weight: 560; color: #b9c1d4; }
.compose__status { justify-self: end; display: flex; align-items: center; gap: 6px; font-size: 11px; }
.compose__status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2ee08a;
  box-shadow: 0 0 9px rgba(46, 224, 138, 0.8);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.compose__status i.is-live { background: var(--cyan); box-shadow: 0 0 9px rgba(89, 224, 255, 0.8); }
.compose__status b { font-weight: 500; }
.compose__fields { padding: 4px 22px 0; }
.compose__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.compose__field label { color: #6d7790; font-size: 12px; min-width: 48px; }
.compose__field strong { font-weight: 560; color: #dbe1f0; }
.compose__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #dbe1f0;
  font-size: 12.5px;
}
.compose__chip i {
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #59e0ff, #7b62ff);
  color: #05070d;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 740;
}
.compose__body {
  min-height: 148px;
  padding: 18px 22px 24px;
  color: #e7ecf9;
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}
.compose__body [data-demo-text] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(5px);
  filter: blur(3px);
}
.compose__body [data-demo-text] .w.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 0.22s ease, transform 0.25s var(--ease-out), filter 0.22s ease;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--cyan);
  animation: blink 1.05s steps(2, end) infinite;
}
@keyframes blink { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }

/* -------- Hint bar under the stage -------- */
.stage__hintbar {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 13px;
}
.stage__hint { transition: opacity 0.25s ease; min-width: 120px; text-align: left; }
.stage__hint.is-swapping { opacity: 0; }

/* -------- Keycap (matches ShortcutKeyCap) -------- */
.keycap {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 32px;
  padding: 0 7px;
  border-radius: 7px;
  background: linear-gradient(180deg, #2b3140 0%, #1b2029 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    inset 0 -3px 0 rgba(0, 0, 0, 0.32),
    0 4px 10px rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.2s ease;
}
.keycap.is-down, .keycap--demo.is-down {
  transform: translateY(2px);
  box-shadow:
    inset 0 0 0 1px rgba(89, 224, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32),
    0 1px 4px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #303a4e 0%, #202634 100%);
}

/* ============================== Trust line ============================== */
.trust-line {
  position: relative;
  width: min(900px, 100%);
  margin: 46px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 6vw, 80px);
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 480;
}
.trust-line span { display: flex; align-items: center; gap: 9px; }
.trust-line svg { width: 17px; height: 17px; fill: #4d5878; }

/* ============================== Stats ============================== */
.stats {
  padding: 40px 24px 60px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}
.stats__grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  padding: 26px 10px;
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--line-soft);
}
.stat__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-size: clamp(44px, 4.6vw, 64px);
  font-weight: 620;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 20%, #93a2c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__value i { font-style: normal; font-size: 0.42em; letter-spacing: 0; }
.stat__label {
  display: block;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 13px;
}

/* ============================== How ============================== */
.how {
  padding: 150px max(24px, calc((100% - var(--max)) / 2)) 140px;
  background:
    radial-gradient(70% 50% at 85% 0%, rgba(123, 98, 255, 0.07), transparent 60%),
    var(--bg-2);
}
.steps {
  margin-top: 78px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  position: relative;
  padding: 26px 26px 34px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.step:hover { border-color: rgba(255, 255, 255, 0.14); transform: translateY(-4px); }
.step header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.step__index { font-variant-numeric: tabular-nums; }
.step__tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
}
.step__demo {
  height: 168px;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 16px;
  background: rgba(4, 6, 11, 0.55);
  border: 1px solid var(--line-soft);
}
.step__demo small {
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.step h3 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

.keycap--demo {
  min-width: 74px;
  height: 70px;
  border-radius: 15px;
  font-size: 30px;
}
.keycap--demo.is-down { transform: translateY(3px); }

.minipill {
  width: 218px;
  height: 48px;
  padding: 0 12px 0 7px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 24px;
  background: var(--pill-bg);
  box-shadow:
    inset 0 0 0 0.8px rgba(255, 255, 255, 0.12),
    0 8px 17px rgba(0, 0, 0, 0.42),
    0 -4px 20px rgba(89, 224, 255, 0.12);
}
.minipill__mic {
  flex: none;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.minipill__mic svg { width: 16px; height: 16px; fill: #fff; }
.minipill__bars { flex: 1; display: flex; align-items: center; justify-content: center; gap: 3.2px; height: 30px; }
.minipill__bars i {
  width: 2.2px;
  border-radius: 2px;
  background: #fff;
  height: 26px;
  animation: speak 1.15s ease-in-out infinite;
}
.minipill__bars i:nth-child(2n) { animation-delay: -0.62s; height: 20px; }
.minipill__bars i:nth-child(3n) { animation-delay: -0.26s; height: 14px; }
.minipill__bars i:nth-child(5n) { animation-delay: -0.85s; height: 24px; }
@keyframes speak { 0%, 100% { transform: scaleY(0.28); opacity: 0.6; } 50% { transform: scaleY(1); opacity: 1; } }
.minipill__dot {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #59e0ff;
  box-shadow: 0 0 10px rgba(89, 224, 255, 0.75);
}

.insert-demo {
  position: relative;
  display: flex;
  align-items: center;
  color: #e7ecf9;
  font-size: 19px;
  font-weight: 480;
  letter-spacing: -0.01em;
}
.insert-demo__check {
  position: absolute;
  right: -38px;
  top: 50%;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-50%) scale(0);
  animation: check-pop 3.4s var(--ease-spring) infinite;
}
.insert-demo__check svg { width: 12px; height: 12px; fill: none; stroke: #041408; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes check-pop {
  0%, 55% { transform: translateY(-50%) scale(0); }
  63%, 88% { transform: translateY(-50%) scale(1); }
  96%, 100% { transform: translateY(-50%) scale(0); }
}

/* ============================== Everywhere ============================== */
.everywhere { padding: 150px 0 140px; overflow: hidden; }
.everywhere .section-heading { padding: 0 24px; }
.marquee {
  margin-top: 66px;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 14px; padding-right: 14px; }
.app-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 540;
  white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.app-tile:hover { border-color: rgba(89, 224, 255, 0.3); color: var(--text); }
.app-tile svg { width: 21px; height: 21px; fill: #7f8bb0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================== Features / bento ============================== */
.features {
  padding: 150px 24px 150px;
  background:
    radial-gradient(55% 40% at 12% 8%, rgba(62, 155, 255, 0.06), transparent 60%),
    var(--bg-2);
}
.bento {
  width: min(var(--max), 100%);
  margin: 76px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 560px;
  padding: 40px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014) 55%);
  transition: border-color 0.3s ease;
}
.card:hover { border-color: rgba(255, 255, 255, 0.14); }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(58% 40% at 50% 118%, rgba(89, 224, 255, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card--wide { grid-column: 1 / -1; min-height: 520px; flex-direction: row; align-items: center; gap: 40px; }
.card--wide .card__copy { flex: 0 0 38%; }
.card--wide .card__visual { flex: 1; }
.card h3 {
  margin: 0 0 16px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.card p { margin: 0; max-width: 430px; color: var(--text-2); font-size: 15px; line-height: 1.62; }
.card__visual { position: relative; flex: 1; min-height: 240px; }

/* --- macOS-style UI mockups (match the real app) --- */
.ui-card {
  padding: 16px;
  border-radius: 13px;
  background: var(--ui-card);
  box-shadow: inset 0 0 0 1px var(--ui-line), 0 18px 44px rgba(0, 0, 0, 0.34);
}
.ui-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ui-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #98a1b8;
  font-size: 12.5px;
  font-weight: 600;
}
.ui-label svg { width: 14px; height: 14px; fill: #98a1b8; }
.ui-uptick {
  width: 25px; height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.12);
}
.ui-uptick svg { width: 12px; height: 12px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ui-bignum {
  display: block;
  font-family: ui-rounded, "SF Pro Rounded", var(--sans);
  font-size: 34px;
  font-weight: 620;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ui-caption { color: #7c86a0; font-size: 11.5px; line-height: 1.45; }
.ui-strong { font-size: 13px; font-weight: 620; }
.ui-num { display: block; font-size: 19px; font-weight: 620; letter-spacing: -0.01em; }

.card__visual--usage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto;
  gap: 14px;
  align-content: center;
}
.ui-card--time { grid-row: 1 / 3; align-self: center; display: flex; flex-direction: column; gap: 10px; }
.ui-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ui-card--metric { display: flex; flex-direction: column; gap: 7px; padding: 14px; }
.ui-metric-icon { width: 15px; height: 15px; fill: var(--cyan); }
.ui-chart { display: flex; align-items: flex-end; gap: 16px; height: 96px; }
.ui-chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  height: 100%;
}
.ui-chart__col span { color: #7c86a0; font-size: 10.5px; font-weight: 620; }
.ui-chart__col b { color: #7c86a0; font-size: 10px; font-weight: 500; }
.ui-bar {
  width: 100%;
  max-width: 46px;
  height: calc(var(--h, 50) * 0.56px);
  border-radius: 5px;
  background: linear-gradient(180deg, #59e0ff, #3e9bff);
  transform-origin: bottom;
}

.card__visual--history .ui-panel,
.card__visual--models .ui-panel {
  position: absolute;
  inset: auto -6px -46px -6px;
  padding: 18px 18px 40px;
  border-radius: 18px 18px 0 0;
  background: #131722;
  box-shadow: inset 0 0 0 1px var(--ui-line), 0 -22px 60px rgba(0, 0, 0, 0.3);
}
.ui-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ui-panel__head .ui-strong { font-size: 15px; }
.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #98a1b8;
  font-size: 10.5px;
  font-weight: 560;
}
.ui-badge svg { width: 11px; height: 11px; fill: #98a1b8; }
.ui-sectionlabel {
  display: block;
  margin: 12px 2px 8px;
  color: #6d7790;
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ui-history-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--ui-card);
  box-shadow: inset 0 0 0 1px var(--ui-line);
}
.ui-history-row + .ui-history-row { margin-top: 8px; }
.ui-history-row p { margin: 0 0 6px; color: #dde3f2; font-size: 13px; line-height: 1.45; }
.ui-copy {
  flex: none;
  position: relative;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #8a93a8;
}
.ui-copy svg { width: 15px; height: 15px; fill: currentColor; position: absolute; transition: opacity 0.2s ease, transform 0.2s ease; }
.ui-copy__check { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.6); }
.ui-copy.is-copied { color: var(--green); }
.ui-copy.is-copied .ui-copy__doc { opacity: 0; transform: scale(0.6); }
.ui-copy.is-copied .ui-copy__check { opacity: 1; transform: scale(1); }

.ui-model-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--ui-card);
  box-shadow: inset 0 0 0 1px var(--ui-line);
}
.ui-model-row + .ui-model-row { margin-top: 8px; }
.ui-model-row > div { flex: 1; min-width: 0; }
.ui-model-row.is-active { box-shadow: inset 0 0 0 1px rgba(89, 224, 255, 0.25); }
.ui-model-icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}
.ui-model-icon svg { width: 19px; height: 19px; fill: #98a1b8; }
.is-active .ui-model-icon { background: rgba(89, 224, 255, 0.13); }
.is-active .ui-model-icon svg { fill: var(--cyan); }
.ui-model-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 560;
  white-space: nowrap;
}
.ui-tag {
  padding: 2.5px 7px;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ui-tag--rec { color: var(--cyan); background: rgba(89, 224, 255, 0.1); }
.ui-tag--active { color: var(--green); background: rgba(48, 209, 88, 0.12); }
.ui-minibtn {
  flex: none;
  padding: 6px 13px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 580;
}
.ui-minibtn--ghost { padding: 6px; background: transparent; }
.ui-minibtn--ghost svg { width: 15px; height: 15px; fill: #6d7790; }
.ui-progress {
  display: block;
  width: min(220px, 90%);
  height: 4px;
  margin-top: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.ui-progress i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3e9bff, #59e0ff);
  transition: width 0.4s ease;
}
.ui-percent { flex: none; font-variant-numeric: tabular-nums; }

.card__visual--keys {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.keyrow { display: flex; gap: 14px; }
.keycap--pick {
  min-width: 62px;
  height: 58px;
  border-radius: 13px;
  font-size: 21px;
  color: var(--text-2);
}
.keycap--pick.is-chosen {
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(89, 224, 255, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.32),
    0 6px 22px rgba(89, 224, 255, 0.22);
}
.keyrow__caption {
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card__visual--native { display: flex; align-items: center; justify-content: center; }
.ui-panel--settings {
  width: min(360px, 100%);
  padding: 8px 16px;
  border-radius: 14px;
  background: #131722;
  box-shadow: inset 0 0 0 1px var(--ui-line), 0 24px 60px rgba(0, 0, 0, 0.34);
}
.ui-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  font-size: 13.5px;
}
.ui-setting + .ui-setting { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ui-segment {
  display: flex;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
}
.ui-segment i { padding: 5px 12px; border-radius: 6px; color: #98a1b8; font-style: normal; }
.ui-segment i.is-on { color: #fff; background: rgba(255, 255, 255, 0.13); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.ui-toggle {
  width: 38px; height: 23px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease;
}
.ui-toggle.is-on { background: var(--green); }
.ui-toggle i {
  display: block;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ease-out);
}
.ui-toggle.is-on i { transform: translateX(15px); }

/* ============================== Privacy ============================== */
.privacy {
  min-height: 720px;
  padding: 130px max(24px, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  background:
    radial-gradient(50% 55% at 26% 50%, rgba(89, 224, 255, 0.05), transparent 65%),
    var(--bg);
}
.privacy__visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.privacy__halo {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 224, 255, 0.2), rgba(123, 98, 255, 0.12) 45%, transparent 70%);
  filter: blur(20px);
}
.privacy__mac {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1.42;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #39415a;
  border-radius: 20px;
  background: linear-gradient(150deg, #10151f, #05070c);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), inset 0 0 70px rgba(89, 110, 255, 0.07);
}
.privacy__mac::after {
  content: "";
  position: absolute;
  right: 17%; bottom: -26px; left: 17%;
  height: 26px;
  border-radius: 0 0 46% 46%;
  background: linear-gradient(180deg, #2c3245, #171b26);
}
.privacy__notch {
  position: absolute;
  top: -1px;
  width: 84px; height: 16px;
  border-radius: 0 0 9px 9px;
  background: #010204;
}
.privacy__lock {
  width: 74px; height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  color: #8feeff;
  background: rgba(89, 224, 255, 0.07);
  box-shadow: 0 0 46px rgba(89, 224, 255, 0.16);
}
.privacy__lock svg { width: 30px; height: 30px; fill: currentColor; }
.privacy__label { margin-top: 22px; color: #a6b0c6; font-size: 13px; font-weight: 540; }
.privacy__sub { margin-top: 6px; color: #5d6884; font-size: 11px; }
.privacy__copy h2 { max-width: 560px; }
.privacy__copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 28px 0 8px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.62;
}
.privacy ul { padding: 0; margin: 28px 0 0; list-style: none; }
.privacy li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #c6cddd;
  font-size: 14px;
}
.privacy li span {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6ee7c1;
  box-shadow: 0 0 12px #6ee7c1;
}

/* ============================== FAQ ============================== */
.faq { padding: 140px max(24px, calc((100% - 1000px) / 2)) 150px; background: var(--bg-2); }
.faq__list { margin-top: 60px; }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item:first-child { border-top: 1px solid var(--line-soft); }
.faq__q {
  width: 100%;
  padding: 26px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: none;
  text-align: left;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 560;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}
.faq__q:hover { color: var(--cyan); }
.faq__icon {
  flex: none;
  position: relative;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.35s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.6px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); border-color: rgba(89, 224, 255, 0.4); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.faq__a > div { overflow: hidden; }
.faq__a p {
  margin: 0;
  padding: 0 40px 28px 4px;
  max-width: 720px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ============================== Final CTA ============================== */
.final-cta {
  position: relative;
  padding: 170px 24px 160px;
  text-align: center;
  overflow: hidden;
}
.final-cta__aurora {
  position: absolute;
  bottom: -420px;
  left: 50%;
  width: 1100px; height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 224, 255, 0.2), rgba(123, 98, 255, 0.12) 40%, transparent 68%);
  filter: blur(40px);
  transform: translateX(-50%);
}
.final-cta__mark {
  position: relative;
  width: 100px; height: 100px;
  margin: 0 auto 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 0 60px rgba(89, 224, 255, 0.1);
}
.final-cta__mark span {
  width: 4.5px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--violet), var(--cyan));
  animation: speak 1.15s ease-in-out infinite;
}
.final-cta__mark span:nth-child(2n) { animation-delay: -0.62s; height: 34px; }
.final-cta__mark span:nth-child(3n) { animation-delay: -0.26s; height: 16px; }
.final-cta h2 { position: relative; max-width: 860px; margin-inline: auto; }
.final-cta > p:not(.eyebrow) {
  position: relative;
  margin: 26px auto 0;
  color: var(--text-2);
  font-size: 17px;
}
.final-cta__actions {
  position: relative;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.final-cta__actions > span { color: var(--text-3); font-size: 12px; }

/* ============================== Footer ============================== */
.footer {
  padding: 42px max(24px, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-3);
  font-size: 12.5px;
  background: var(--bg);
}
.footer__left { display: flex; flex-direction: column; gap: 10px; }
.footer__left p { margin: 0; }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a { text-decoration: none; transition: color 0.2s ease; }
.footer__nav a:hover { color: var(--text); }
.footer__legal { justify-self: end; margin: 0; }

/* ============================== Toast ============================== */
.download-toast {
  position: fixed;
  z-index: 500;
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100% - 44px));
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(10, 13, 21, 0.94);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s var(--ease-out);
}
.download-toast.is-visible { opacity: 1; transform: translateY(0); }
.download-toast span { font-size: 13.5px; font-weight: 620; }
.download-toast small { color: #9aa4ba; font-size: 11.5px; line-height: 1.45; }

/* ============================== Reveal defaults (JS-enhanced) ============================== */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-hero] { opacity: 0; }
.js .line { transform: translateY(110%); }

/* ============================== Responsive ============================== */
@media (max-width: 1024px) {
  .card--wide { flex-direction: column; align-items: stretch; }
  .card--wide .card__copy { flex: none; }
  .privacy { grid-template-columns: 1fr; gap: 30px; padding-block: 110px; }
  .privacy__visual { order: 2; min-height: 420px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__visual--history .ui-panel, .card__visual--models .ui-panel { position: relative; inset: auto; margin: 0 -6px -46px; }
  .stage__screen { height: 560px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header { top: 10px; width: calc(100% - 20px); height: 56px; padding: 6px 8px 6px 16px; border-radius: 15px; }
  .site-header .button svg { display: none; }
  .site-header .button { min-height: 40px; padding: 0 14px; }
  .hero { padding: 136px 16px 70px; }
  .hero__title { font-size: clamp(46px, 13.5vw, 76px); }
  .hero__copy { margin-top: 24px; font-size: 15.5px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .button { width: 100%; max-width: 340px; }
  .stage { margin-top: 52px; }
  .stage__screen { height: 470px; border-radius: 18px; }
  .stage__notch { width: 74px; height: 21px; }
  .pill { top: 46px; transform: translateX(-50%) scale(0.82); }
  .pill.is-hidden, .pill.is-dismissing { transform: translateX(-50%) scale(0.36); }
  .compose { top: 128px; width: calc(100% - 28px); }
  .compose__bar { height: 42px; }
  .compose__fields { padding-inline: 16px; }
  .compose__body { min-height: 132px; padding: 15px 16px 20px; font-size: 14.5px; }
  .trust-line { flex-direction: column; gap: 13px; margin-top: 38px; }
  .stats { padding: 14px 16px 30px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { padding: 20px 6px; }
  .stat + .stat::before { left: 0; }
  .stat:nth-child(odd)::before { display: none; }
  .how, .everywhere, .features, .faq { padding-top: 100px; padding-bottom: 100px; }
  .steps { margin-top: 52px; }
  .bento { margin-top: 52px; }
  .card { padding: 26px 22px; border-radius: 22px; }
  .card--wide { gap: 26px; }
  .card__visual--usage { grid-template-columns: 1fr; }
  .ui-card--time { grid-row: auto; }
  .marquee { margin-top: 48px; }
  .app-tile { padding: 14px 20px; font-size: 13.5px; }
  .privacy { padding-block: 100px; }
  .privacy__visual { min-height: 340px; }
  .privacy__halo { width: 320px; height: 320px; }
  .privacy__mac { width: min(340px, 100%); }
  .faq__q { padding-block: 22px; }
  .final-cta { padding: 120px 20px 110px; }
  .final-cta__actions .button { width: 100%; max-width: 340px; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer__left { align-items: center; }
  .footer__nav { justify-content: center; flex-wrap: wrap; }
  .footer__legal { justify-self: center; }
}

@media (max-width: 380px) {
  .pill { transform: translateX(-50%) scale(0.7); }
  .keyrow { gap: 9px; }
  .keycap--pick { min-width: 52px; height: 50px; font-size: 18px; }
}

/* ============================== 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;
  }
  .js [data-reveal], .js [data-hero] { opacity: 1; transform: none; }
  .js .line { transform: none; }
  .marquee__track { animation: none; }
}
