:root {
  --ink: #0b0d12;
  --ink-2: #2a2f3a;
  --muted: #7a8190;
  --line: #e7e9ee;
  --blue: #7c3aed;
  --blue-2: #a78bfa;
  --panel: #e8e2f4;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; border-radius: 10px; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--lg { padding: 12px 22px; font-size: 16px; }
.btn--blue {
  color: #fff;
  background: linear-gradient(180deg, #9f67ff 0%, #6d28d9 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px -6px rgba(109,40,217,.55), 0 0 0 1px rgba(109,40,217,.6);
}
.btn--glass {
  color: #fff;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  backdrop-filter: blur(10px);
}

/* ---------- Nav ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 50; }
.nav__inner { height: 64px; display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: #fff; }
.nav__links a { opacity: .95; }
.nav__links a:hover { opacity: 1; }
.nav__login { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: #fff; opacity: .95; }
.nav__login:hover { opacity: 1; }
.logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; color: #fff; }
/* Matches the app icon (favicon.svg): blue rounded square with a white play triangle */
.logo__mark {
  width: 22px; height: 22px; border-radius: 25%; flex: none;
  background: linear-gradient(135deg, #2b36b0, #4752e3); position: relative;
}
.logo__mark::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  clip-path: polygon(37.5% 31.25%, 37.5% 68.75%, 68.75% 50%);
}
.logo--dark { color: var(--ink); }

.nav.is-scrolled { background: rgba(255,255,255,.8); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled .logo, .nav.is-scrolled .nav__links { color: var(--ink); }
.nav.is-scrolled .nav__login { color: var(--ink); }
@media (max-width: 640px) { .nav__links { display: none; } }

/* Floating CTA, revealed by script.js once the demo video scrolls into view */
.float-cta {
  position: fixed; z-index: 60; top: 14px; right: max(16px, calc((100vw - 1220px) / 2 + 32px));
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 14px; font-size: 15px; font-weight: 500; color: #fff;
  background: linear-gradient(180deg, #9f67ff 0%, #6d28d9 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px -6px rgba(109,40,217,.55), 0 0 0 1px rgba(109,40,217,.6);
  opacity: 0; translate: 0 -12px; pointer-events: none;
  transition: opacity .3s, translate .3s cubic-bezier(.2,.7,.2,1), box-shadow .15s;
}
.float-cta.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.float-cta:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 32px -8px rgba(109,40,217,.65), 0 0 0 1px rgba(109,40,217,.6); }
@media (max-width: 640px) { .float-cta { font-size: 14px; padding: 9px 16px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 128px; }
.hero__sky {
  position: absolute; inset: 0 0 auto; height: 800px; overflow: hidden; z-index: -1;
  background:
    radial-gradient(40% 35% at 76% 48%, rgba(216,180,254,.45), rgba(216,180,254,0) 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(168,85,247,.55), rgba(168,85,247,0) 70%),
    linear-gradient(180deg, #0f0621 0%, #1c0b3d 30%, #34166e 55%, #5b2ea6 72%, #c9b6f2 90%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 72%, transparent 100%);
          mask-image: radial-gradient(120% 100% at 50% 0%, #000 72%, transparent 100%);
}
.hero__sun {
  position: absolute; left: 79%; top: 51%; width: 130px; height: 130px;
  transform: translate(-50%, -50%) perspective(500px) rotateY(-28deg) rotateX(55deg); /* tilted back and turned toward the page center */
  border-radius: 50%;
  /* Plate: flat well, a soft ring where it lifts, then a brighter rim */
  background:
    radial-gradient(circle at 38% 34%, rgba(255,255,255,.9), transparent 45%),
    radial-gradient(circle, #f6f0ff 0 54%, #dccbfb 58%, #f3ecff 63%, #fff 82%, #e2d4fb 100%);
  box-shadow: inset 0 -3px 8px rgba(120,80,200,.25), 3px 7px 0 -1px #c9b3f3, 5px 11px 12px -4px rgba(60,20,120,.35), 0 0 40px 10px rgba(216,180,254,.3), 0 0 140px 50px rgba(168,85,247,.15);
}
.hero__sky::before {
  content: ""; position: absolute; inset: 0 0 45%;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 42% 26%, #fff, transparent), radial-gradient(1px 1px at 58% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 70% 22%, #fff, transparent), radial-gradient(1px 1px at 86% 10%, #fff, transparent),
    radial-gradient(1px 1px at 93% 30%, #fff, transparent), radial-gradient(1px 1px at 6% 36%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 20% 44%, #fff, transparent), radial-gradient(1px 1px at 36% 40%, #fff, transparent),
    radial-gradient(1px 1px at 64% 38%, #fff, transparent), radial-gradient(1.5px 1.5px at 82% 44%, #fff, transparent);
  opacity: .7; animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 50% { opacity: .35; } }
.hero__hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; opacity: .7; }

.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-family: var(--serif); font-weight: 400; color: #fff;
  font-size: clamp(48px, 7vw, 84px); line-height: 1.02; letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(10,0,40,.45);
}
.hero__rule { width: 280px; height: 1px; margin: 22px 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); }
.hero__sub { max-width: 560px; color: rgba(255,255,255,.92); font-size: 18px; line-height: 1.5; text-shadow: 0 1px 12px rgba(10,0,40,.45); }
.hero__ctas { margin-top: 32px; }

/* Demo placeholder */
.demo {
  position: relative; margin: 72px auto 0; max-width: 1180px; aspect-ratio: 1.72;
  border-radius: 18px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center;
  background: #f4c48a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 50px 100px -30px rgba(20,0,60,.65);
}
/* macOS-style swirl wallpaper, built from gradients */
.demo::before, .demo::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.demo::before {
  inset: -30%;
  background:
    radial-gradient(28% 40% at 22% 88%, rgba(40,95,225,.95), transparent 70%),
    radial-gradient(22% 30% at 30% 62%, rgba(150,110,220,.7), transparent 70%),
    radial-gradient(25% 30% at 78% 58%, rgba(190,120,215,.55), transparent 70%),
    conic-gradient(from 215deg at 50% 78%,
      #2f63d6 0deg, #4f7fe6 22deg, #9a7fe0 48deg, #f2a6a0 70deg, #fbc98e 92deg,
      #f7e3b8 118deg, #f6b877 140deg, #f19a6a 160deg, #c690d8 185deg, #f0a979 210deg,
      #fad7a1 235deg, #f6b06f 265deg, #7d78dc 300deg, #2f63d6 360deg);
  filter: blur(28px) saturate(1.1);
}
.demo::after {
  inset: 0;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(255,240,210,.85), transparent 70%),
    radial-gradient(45% 55% at 0% 85%, rgba(40,90,220,.75), transparent 70%),
    radial-gradient(35% 50% at 100% 70%, rgba(245,150,90,.55), transparent 70%),
    repeating-conic-gradient(from 200deg at 50% 85%, rgba(255,255,255,.10) 0deg 6deg, rgba(255,255,255,0) 6deg 14deg);
  mix-blend-mode: soft-light;
}

.demo__menubar {
  width: 100%; height: 32px; flex: none; color: #fff; background: rgba(255,255,255,.18); backdrop-filter: blur(10px);
}

.demo__window {
  width: 82%; margin: auto 0 56px; border-radius: 14px; overflow: hidden;
  background: #15161a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -15px rgba(20,10,40,.55);
}
.demo__bar { display: flex; gap: 7px; padding: 12px 14px; background: #1d1e23; }
.demo__bar span { width: 11px; height: 11px; border-radius: 50%; background: #d7dbe3; }
.demo__bar span:nth-child(1) { background: #ff5f57; } .demo__bar span:nth-child(2) { background: #febc2e; } .demo__bar span:nth-child(3) { background: #28c840; }
.demo__screen {
  aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 30px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(139,92,246,.28), transparent 70%), #111216;
}
.demo__screen--video { position: relative; display: block; overflow: hidden; background: #000; }
.demo__screen--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.demo__dock {
  position: absolute; bottom: 6px; left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 20px; background: rgba(255,255,255,.28); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.dock-app {
  width: 48px; height: 48px; border-radius: 12px; position: relative; display: grid; place-items: center;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.3);
}
.dock-app--grid { background: #f4f4f6; grid-template-columns: repeat(3, 8px); gap: 3px; place-content: center; }
.dock-app--grid i { width: 8px; height: 8px; border-radius: 2px; background: hsl(calc(var(--n, 0) * 40), 80%, 60%); }
.dock-app--grid i:nth-child(1){--n:0} .dock-app--grid i:nth-child(2){--n:1} .dock-app--grid i:nth-child(3){--n:2}
.dock-app--grid i:nth-child(4){--n:3} .dock-app--grid i:nth-child(5){--n:4} .dock-app--grid i:nth-child(6){--n:5}
.dock-app--grid i:nth-child(7){--n:6} .dock-app--grid i:nth-child(8){--n:7} .dock-app--grid i:nth-child(9){--n:8}
.dock-app--compass { background: #fff; }
.dock-app--compass::before { content: ""; width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle, #5ac8fa, #1a73e8); }
.dock-app--compass::after { content: ""; position: absolute; width: 4px; height: 26px; border-radius: 2px; background: linear-gradient(#ff3b30 50%, #fff 50%); rotate: 45deg; }
.dock-app--gear { background: radial-gradient(circle, #9a9ca3 0 30%, #3b3d42 31% 45%, #8e9097 46% 60%, #2c2d31 61%); }
.dock-app--brand { background: linear-gradient(135deg, #2b36b0, #4752e3); color: #fff; }
.dock-app--brand .logo__mark { width: 100%; height: 100%; background: none; }
.dock-app--trash { background: linear-gradient(180deg, #fafafa, #d9d9de); border-radius: 6px 6px 12px 12px; width: 38px; margin: 0 5px; }
.dock-sep { width: 1px; height: 40px; background: rgba(255,255,255,.5); }

@media (max-width: 640px) {
  .demo { aspect-ratio: auto; }
  .demo__window { width: 90%; margin: 20px 0; }
  .demo__dock { position: static; translate: none; margin-bottom: 14px; }
  .dock-app { width: 32px; height: 32px; border-radius: 8px; }
  .dock-app--compass::before { width: 24px; height: 24px; } .dock-app--compass::after { height: 16px; }
  .dock-app--grid { grid-template-columns: repeat(3, 5px); gap: 2px; } .dock-app--grid i { width: 5px; height: 5px; }
  .dock-app--trash { width: 26px; }
}
.demo__play {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff; padding-left: 5px;
  background: linear-gradient(180deg, #9f67ff, #6d28d9);
  box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 20px 40px -10px rgba(109,40,217,.6);
  transition: transform .2s;
}
.demo__play:hover { transform: scale(1.05); }
.demo__label { color: rgba(255,255,255,.85); font-weight: 500; }
@media (max-width: 640px) {
  .hero { padding-top: 104px; }
  .hero__sun { left: 88%; top: 15%; width: clamp(40px, 15vw, 56px); height: clamp(40px, 15vw, 56px); }
  .hero__title { font-size: clamp(38px, 12vw, 48px); }
  .hero__rule { width: min(280px, 70%); margin: 18px 0; }
  .hero__sub { font-size: 16px; }
  .hero__ctas { margin-top: 26px; }
  .demo { margin-top: 48px; border-radius: 14px; }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--center { text-align: center; }
.heading {
  font-weight: 500; letter-spacing: -.035em; line-height: 1.1;
  font-size: clamp(34px, 4.4vw, 48px); color: var(--ink);
}
.heading .fade {
  background: linear-gradient(90deg, #3a3f4c, #7b8194);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.heading--left { text-align: left; }
.sub { margin-top: 14px; color: var(--muted); font-size: 16px; }
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .heading { font-size: clamp(28px, 8.5vw, 34px); }
}

/* ---------- How ---------- */
.how { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }
.how__card { border-radius: 22px; padding: 36px 36px 44px; min-height: 520px; display: flex; flex-direction: column; overflow: hidden; }
.how__card h3 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.how__card > p { margin-top: 12px; font-size: 16px; line-height: 1.55; max-width: 420px; }
.how__card--blue {
  color: #fff;
  background: linear-gradient(170deg, #8b5cf6 0%, #6d3fe0 55%, #5424c4 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 20px 50px -25px rgba(109,40,217,.7);
}
.how__card--blue > p { color: rgba(255,255,255,.9); }
.how__card--light { background: linear-gradient(180deg, #f5f6fa, #e9ecf4); box-shadow: inset 0 0 0 1px #e1e4ec; }
.how__card--light > p { color: var(--muted); }
@media (max-width: 860px) { .how__card { min-height: 0; } }
@media (max-width: 640px) {
  .how { gap: 16px; }
  .how__card { padding: 28px 20px 24px; border-radius: 18px; }
  .how__card h3 { font-size: 21px; }
  .how__card > p { font-size: 15px; }
  .panel--frost { margin-top: 0; }
}

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 999px; vertical-align: 1px; }
.pill--light { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.pill--dark { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.scan { text-align: center; margin-top: 18px; }
.scan__timer { font-size: 34px; font-weight: 500; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.scan__label { font-size: 14px; color: rgba(255,255,255,.8); display: inline-flex; align-items: center; gap: 6px; }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: #ff6b6b; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.wave { height: 60px; margin: 26px 0 30px; display: flex; align-items: center; gap: 4px; }
.wave i { flex: 1; min-width: 2px; max-width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.6); transition: height .15s; }

.panel { border-radius: 12px; padding: 14px; margin-top: auto; font-size: 12px; }
.panel--frost { background: rgba(40,10,90,.35); backdrop-filter: blur(6px); box-shadow: 0 10px 30px -10px rgba(30,10,80,.6); color: rgba(255,255,255,.75); }
.panel--dark { background: #4a4c52; color: #d8dae0; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); margin-top: 0; }
.panel__tabs { display: flex; gap: 10px; justify-content: center; padding: 6px 0 10px; flex-wrap: wrap; }
.panel__tabs--dark { margin-top: 14px; }
.panel__tabs--steps span { transition: color .3s; }
.panel__tabs--steps span:nth-child(odd) { color: rgba(255,255,255,.5); }
.panel__tabs--steps span.is-on { color: #fff; }
.panel__tabs--steps span.is-on::before { content: "✦ "; }
.panel__input { border-radius: 9px; padding: 12px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.panel__input--dark { position: relative; padding-right: 44px; }
.panel__input--ticker { display: flex; align-items: center; }
.ticker { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .35s, translate .35s, filter .35s; }
.ticker.is-out { opacity: 0; translate: 0 -6px; filter: blur(4px); }
.caret { flex: none; width: 1.5px; height: 1.15em; margin-left: 2px; background: currentColor; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.panel__muted { color: #b6b9c2; }
.tag { background: #5b21b6; color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 11px; }
kbd { font-family: inherit; font-size: 10px; padding: 1px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); margin: 0 1px; }
.send { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: #5b21b6; color: #fff; display: grid; place-items: center; font-size: 9px; }

.progress { height: 6px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, #a78bfa, #d8c7ff); border-radius: 4px; transition: width .12s linear; }

.toolbar {
  align-self: center; margin: 22px 0 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px; border-radius: 999px; background: #3b3d42;
}
.toolbar__logo { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin: 0 4px; }
.toolbar__btn { color: #fff; width: 38px; height: 26px; display: grid; place-items: center; border-radius: 999px; background: #26272b; }
.toolbar__stop { width: 26px; height: 26px; border-radius: 50%; background: #26272b; position: relative; }
.toolbar__stop::after { content: ""; position: absolute; inset: 8px; border-radius: 2px; background: #fff; }

/* ---------- Showcase ---------- */
.showcase {
  margin: 48px auto 0; max-width: 900px; border-radius: 24px; padding: 80px 80px 0; overflow: hidden;
  background: linear-gradient(180deg, #d0c2ec, #e9e3f6);
}
.window { background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 30px 60px -20px rgba(40,50,90,.35); text-align: left; }
.window__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.d { width: 9px; height: 9px; border-radius: 50%; }
.d--r { background: #ff5f57; } .d--y { background: #febc2e; } .d--g { background: #28c840; }
.window__search { margin: 0 auto; font-size: 11px; color: var(--muted); background: #f1f2f5; padding: 4px 60px; border-radius: 6px; }
.window__btn { font-size: 10px; color: var(--blue); background: #f1eafe; padding: 3px 8px; border-radius: 5px; }
.window__body { padding: 28px 12% 36px; }
.window__date { font-size: 11px; color: var(--muted); }
.window__title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 4px 0 12px; }
.window__tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 7px; background: #f1f2f5; font-size: 11px; color: var(--muted); }
.window__tabs span { padding: 3px 9px; border-radius: 5px; }
.window__tabs .on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.frames { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0 22px; }
.frame { aspect-ratio: 16/10; border-radius: 7px; position: relative; }
.frame span { position: absolute; left: 6px; bottom: 5px; font-size: 9px; color: #fff; background: rgba(0,0,0,.4); padding: 1px 5px; border-radius: 4px; }
.frame { background: #e9e4f5 center / cover no-repeat; }
.f1 { background-image: url("https://images.unsplash.com/photo-1569718212165-3a8278d5f624?w=480&q=70&auto=format&fit=crop"); } /* 0:00 steaming ramen */
.f2 { background-image: url("https://images.unsplash.com/photo-1591325418441-ff678baf78ef?w=480&q=70&auto=format&fit=crop"); } /* 0:08 the broth */
.f3 { background-image: url("https://images.unsplash.com/photo-1623341214825-9f4f963727da?w=480&q=70&auto=format&fit=crop"); } /* 0:17 review overlay */
.f4 { background-image: url("https://images.unsplash.com/photo-1785462857008-83e108e37f40?w=480&q=70&auto=format&fit=crop"); } /* 0:31 storefront */
.f5 { background-image: url("https://images.unsplash.com/photo-1638866281450-3933540af86a?w=480&q=70&auto=format&fit=crop"); } /* 0:44 end card */
.window__h { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.window__list { padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-2); display: grid; gap: 6px; }
@media (max-width: 640px) {
  .showcase { padding: 24px 12px 0; margin-top: 36px; border-radius: 18px; }
  .d, .window__btn { flex: none; }
  .window__search { padding: 4px 12px; flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 4px; }
  .window__btn { white-space: nowrap; }
  .window__body { padding: 20px 16px 24px; }
  .window__title { font-size: 17px; }
  .frames { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .frame:nth-child(n+4) { display: none; }
  .compat__label { margin-top: 48px; }
  .compat { gap: 14px 28px; font-size: 15px; }
}

/* ---------- Features ---------- */
.feats { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }
.feat__art {
  aspect-ratio: 1.05; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, #d3c6ee, #e8e1f6);
}
.feat__art--purple { background: linear-gradient(160deg, #b99cf0, #8f6fe0 60%, #c5b6f0); }
.feat > p { margin-top: 18px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.feat > p b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .feats { margin-top: 36px; gap: 40px; }
  .feat__art { aspect-ratio: auto; min-height: 280px; padding: 14px; }
  .feat > p { font-size: 16px; }
  .keys { gap: 6px; padding: 6px; }
  .keys span { font-size: 10px; padding: 9px 0; }
}

.mini { background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 10px 30px -15px rgba(40,50,90,.35); font-size: 12px; }
.mini__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mini__head b { font-size: 13px; font-weight: 500; } .mini__head b span { color: var(--muted); font-size: 11px; }
.ok { font-size: 10px; background: #eef0f4; padding: 3px 7px; border-radius: 5px; }
.mini__row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f0f1f4; }
.mini__row div { flex: 1; display: flex; flex-direction: column; }
.mini__row b { font-weight: 500; } .mini__row small { color: var(--muted); font-size: 10px; }
.mini__row em { font-style: normal; color: var(--ink-2); font-size: 11px; }
.av { width: 28px; height: 28px; border-radius: 50%; background: #fdf1e3; display: grid; place-items: center; font-size: 15px; }

.review { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 10px 30px -15px rgba(40,50,90,.35); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.chip { font-size: 11px; padding: 4px 9px; border-radius: 6px; background: #f1eafe; color: var(--blue); font-weight: 500; }
.chip--alt { background: #fde8e8; color: #c62828; }
.stars { color: #f5a623; letter-spacing: 2px; }
.quote { font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.lines { width: 100%; display: grid; gap: 6px; }
.lines span { height: 7px; border-radius: 4px; background: #eef0f4; } .lines .short { width: 60%; }

.ratios { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(255,255,255,.18); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.r { display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; border-radius: 6px; background: rgba(255,255,255,.28); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.r--wide { width: 34%; aspect-ratio: 16/9; } .r--tall { width: 17%; aspect-ratio: 9/16; } .r--sq { width: 22%; aspect-ratio: 1; }
.keys { display: flex; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.35); }
.keys span { flex: 1; text-align: center; background: #fff; border-radius: 8px; padding: 10px 0; font-size: 11px; font-weight: 500; box-shadow: 0 2px 4px rgba(0,0,0,.08); }

.compat__label { margin-top: 64px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compat { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 44px; font-size: 16px; color: var(--ink-2); }
.compat span { display: inline-flex; align-items: center; gap: 10px; }
.compat svg { flex: none; width: 18px; height: 18px; fill: var(--c); }

/* ---------- Stats split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 48px; } }
.split__art { border-radius: 20px; padding: 36px; background: linear-gradient(180deg, #d3c6ee, #ebe5f6); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.tablet { width: 100%; max-width: 340px; background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 0 0 8px rgba(255,255,255,.55), 0 30px 60px -20px rgba(40,50,90,.4); }
.tablet__meta { font-size: 10px; color: var(--muted); }
.tablet h4 { font-size: 17px; font-weight: 500; letter-spacing: -.02em; margin: 6px 0 12px; line-height: 1.3; }
.tablet__shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.tablet__shots img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: #e9e4f5; }
/* Content rotates, so every text line is locked to one line: the card never changes height */
.tablet__meta, .tablet h4, .tline p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tablet [data-t] { transition: opacity .35s; }
.tablet.is-swapping [data-t] { opacity: 0; }
.tline { margin-top: 12px; font-size: 11px; }
.tline b { color: #8b5cf6; font-weight: 500; } .tline b.grey { color: var(--ink-2); }
.tline small { color: var(--muted); font-size: 9px; margin-left: 6px; }
.tline p { margin-top: 2px; color: var(--ink-2); }
.split__text .heading { margin-bottom: 36px; }
.stat { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.stat:first-of-type { border-top: 0; }
.stat__num { font-size: 40px; font-weight: 400; letter-spacing: -.03em; }
.stat__num small { font-size: 20px; margin-left: 2px; }
.stat h3 { font-size: 26px; font-weight: 400; letter-spacing: -.02em; }
.stat div p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 640px) {
  .split__art { padding: 24px 16px; border-radius: 18px; }
  .tablet { padding: 18px; }
  .split__text .heading { margin-bottom: 16px; }
  .stat { grid-template-columns: 84px 1fr; align-items: start; gap: 12px; padding: 20px 0; }
  .stat__num { font-size: 34px; line-height: 1; }
  .stat__num small { font-size: 16px; }
  .stat h3 { font-size: 21px; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex: none; margin-right: 6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 22px; color: var(--muted); line-height: 1.6; }
@media (max-width: 640px) { .faq summary { font-size: 17px; padding: 18px 0; } }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(180deg, #fff 0%, #ebe6f5 35%, #e6dff3 100%); padding: 180px 0 140px; }
.cta__inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
@media (max-width: 800px) { .cta { padding: 96px 0 80px; } .cta__inner { grid-template-columns: 1fr; } .keycaps { display: none; } }
.cta h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 26px; }
.shine {
  background: linear-gradient(90deg, #7a62a8 0%, #7a62a8 40%, #d6c8f0 50%, #7a62a8 60%, #7a62a8 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.keycaps { position: relative; height: 360px; }
.keycap {
  position: absolute; width: 96px; height: 96px; border-radius: 22px; display: grid; place-items: center;
  font-size: 34px; color: #b9a8dc;
  background: linear-gradient(145deg, #f4f5f9, #e6dff3);
  box-shadow: inset 0 1px 0 #fff, 0 20px 40px -10px rgba(90,60,160,.35), 0 0 60px rgba(160,110,255,.3);
  animation: float 6s ease-in-out infinite;
}
.keycap--a { right: 8%; top: 10px; transform: rotate(12deg); }
.keycap--b { right: 58%; top: 120px; transform: rotate(-10deg); animation-delay: -3s; }
.keycap--qr { right: 4%; top: 144px; width: 192px; height: 192px; border-radius: 40px; transform: rotate(-8deg); animation-delay: -1.5s; }
.qr {
  width: 140px; height: 140px; border-radius: 10px; display: grid; place-items: center; padding: 6px;
  border: 2px dashed #c9b9ea; background: rgba(255,255,255,.6);
  font-family: var(--sans); font-size: 9px; font-weight: 500; line-height: 1.25; text-align: center; color: #9a88c4;
}
.qr:has(img) { border: 0; background: #fff; padding: 4px; }
.qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.qr-note {
  position: absolute; right: calc(4% + 200px); top: 314px; display: inline-flex; align-items: flex-end; gap: 4px;
  font-family: var(--serif); font-style: italic; font-size: 15px; color: #a795cf; opacity: .8;
}
.qr-note svg { width: 34px; height: 22px; margin-bottom: 8px; }
@keyframes float { 50% { translate: 0 -12px; } }

/* ---------- Footer ---------- */
.footer { background: #e6dff3; padding: 40px 0 28px; }
.footer .container { border-top: 1px solid rgba(0,0,0,.07); padding-top: 32px; }
.footer__grid { align-items: flex-start; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer h4 { font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.footer__cols a { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 9px; }
.footer__cols a:hover { color: var(--ink); }
.status-ok { margin-top: 36px; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); background: rgba(255,255,255,.45); padding: 6px 10px; border-radius: 6px; }
.status-ok span { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.footer__bottom { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(0,0,0,.07); display: flex; justify-content: center; align-items: center; text-align: center; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .footer__cols { gap: 32px 48px; }
  .footer__bottom { flex-direction: column-reverse; align-items: center; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Animations ---------- */

/* Hero entrance */
@keyframes rise {
  from { opacity: 0; translate: 0 24px; filter: blur(8px); }
  to   { opacity: 1; translate: 0 0; filter: blur(0); }
}
@keyframes rule-in { from { opacity: 0; width: 0; } }
.hero__title, .hero__sub, .hero__ctas, .demo, .nav__inner { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.nav__inner { animation-duration: .8s; }
.hero__title { animation-delay: .1s; }
.hero__rule  { animation: rule-in 1s .35s cubic-bezier(.2,.7,.2,1) both; }
.hero__sub   { animation-delay: .3s; }
.hero__ctas  { animation-delay: .45s; }
.demo        { animation-delay: .6s; animation-duration: 1.2s; }

/* Sky: gently floating plate + parallax hills */
@keyframes plate-float {
  0%, 100% { translate: 0 0;      transform: translate(-50%, -50%) perspective(500px) rotateY(-28deg) rotateX(55deg); }
  50%      { translate: 3px -8px; transform: translate(-50%, -50%) perspective(500px) rotateY(-24deg) rotateX(51deg); }
}
.hero__sun { animation: plate-float 6s ease-in-out infinite; }
.hero__hills { translate: 0 calc(var(--scroll, 0) * 0.25px); }
.hero__inner { translate: 0 calc(var(--scroll, 0) * 0.15px); }

/* Demo play button pulse */
.demo__play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8); animation: ping 2.4s cubic-bezier(0,0,.2,1) infinite;
}
.demo__play { position: relative; }
@keyframes ping { 0% { opacity: .9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.6); } }

/* Scroll reveal (only when JS is on) */
.js [data-reveal] {
  opacity: 0; translate: 0 32px; filter: blur(6px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 110ms), translate .9s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 110ms), filter .9s calc(var(--i, 0) * 110ms), transform .4s cubic-bezier(.2,.7,.2,1);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; filter: blur(0); }

/* Showcase window slides up into its panel */
.js .showcase .window { translate: 0 80px; transition: translate 1.2s .2s cubic-bezier(.2,.7,.2,1); }
.js .showcase.is-in .window { translate: 0 0; }

/* Storyboard frames pop in one by one */
.js .frame { opacity: 0; scale: .85; transition: opacity .5s, scale .6s cubic-bezier(.3,1.5,.5,1); }
.js .is-in .frame { opacity: 1; scale: 1; }
.js .is-in .frame:nth-child(1) { transition-delay: .6s; }
.js .is-in .frame:nth-child(2) { transition-delay: .72s; }
.js .is-in .frame:nth-child(3) { transition-delay: .84s; }
.js .is-in .frame:nth-child(4) { transition-delay: .96s; }
.js .is-in .frame:nth-child(5) { transition-delay: 1.08s; }

/* Script lines type in */
.js .window__list li, .js .tline { opacity: 0; translate: -8px 0; transition: opacity .5s, translate .5s; }
.js .is-in .window__list li, .js .is-in .tline { opacity: 1; translate: 0 0; }
.js .is-in .window__list li:nth-child(n), .js .is-in .tline:nth-of-type(n) { transition-delay: calc(1.1s + var(--li, 0) * 120ms); }

/* Film-grain shimmer over storyboard frames */
.frame { overflow: hidden; }
.frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  translate: -100% 0; animation: sweep 3.5s ease-in-out infinite;
}
.frame:nth-child(2)::after { animation-delay: .2s; } .frame:nth-child(3)::after { animation-delay: .4s; }
.frame:nth-child(4)::after { animation-delay: .6s; } .frame:nth-child(5)::after { animation-delay: .8s; }
@keyframes sweep { 0%, 60% { translate: -100% 0; } 100% { translate: 100% 0; } }

/* Feature art: subtle float + lift on hover */
.feat__art, .how__card, .split__art, .showcase { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.feat:hover .feat__art { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(40,50,90,.45); }
.how__card:hover { transform: translateY(-4px); }
.feat__art > * { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.feat:hover .feat__art > :first-child { transform: scale(1.03); }
@keyframes bob { 50% { translate: 0 -6px; } }
.ratios .r { animation: bob 3.2s ease-in-out infinite; }
.ratios .r--tall { animation-delay: -1s; } .ratios .r--sq { animation-delay: -2s; }
.stars { background: linear-gradient(90deg, #f5a623 40%, #ffe29a 50%, #f5a623 60%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: stars 3s linear infinite; }
@keyframes stars { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Platform row */
.compat span { transition: transform .25s, color .25s; }
.compat span:hover { transform: translateY(-2px); color: var(--ink); }
.compat svg { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.compat span:hover svg { transform: rotate(-12deg) scale(1.2); }

/* FAQ smooth open */
.faq details[open] p { animation: faq-open .35s cubic-bezier(.2,.7,.2,1); }
@keyframes faq-open { from { opacity: 0; translate: 0 -6px; } }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--blue); }

/* Buttons: glossy sweep on hover */
.btn--blue { position: relative; overflow: hidden; }
.btn--blue::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  translate: -120% 0; transition: translate .7s;
}
.btn--blue:hover::after { translate: 120% 0; }
.btn--blue:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 32px -8px rgba(109,40,217,.65), 0 0 0 1px rgba(109,40,217,.6); }

/* Reduced motion: show everything, no movement */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .frame, .js .window__list li, .js .tline, .js .showcase .window {
    opacity: 1 !important; translate: none !important; scale: none !important; filter: none !important;
  }
  .hero__hills, .hero__inner { translate: none !important; }
  .caret { display: none; }
}

/* ---------- Subpages (contact, privacy, terms) ---------- */
.page { padding: 136px 0 96px; }
.page .container { max-width: 760px; }
.page__eyebrow { font-size: 13px; font-weight: 500; color: var(--blue); margin-bottom: 12px; }
.page .heading { margin-bottom: 14px; }
.page__meta { color: var(--muted); font-size: 14px; margin-bottom: 48px; }
.prose h2 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0 0 20px; display: grid; gap: 6px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.contact-card { margin-top: 8px; padding: 28px; border-radius: 16px; background: var(--panel); display: grid; gap: 18px; justify-items: start; }
.contact-card__email { font-size: clamp(20px, 4vw, 26px); font-weight: 500; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-card__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.copied { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); opacity: 0; translate: -6px 0; transition: opacity .2s, translate .2s; }
.copied::before { content: "✓"; color: #16a34a; font-weight: 600; }
.copied.is-on { opacity: 1; translate: 0 0; }
.contact-card__note { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.plan--featured { border-color: var(--blue-2); box-shadow: 0 0 0 1px var(--blue-2), 0 18px 40px -24px rgba(109,40,217,.45); }
.plan__name { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.plan__price { margin: 14px 0 22px; font-size: 48px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.plan__price small { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan__list { list-style: none; display: grid; gap: 12px; color: var(--ink-2); font-size: 15px; margin-bottom: 28px; }
.plan__btn { margin-top: auto; display: block; text-align: center; padding: 13px 20px; border-radius: 999px; font-weight: 500; border: 1px solid var(--line); transition: background .15s, transform .15s; }
.plan__btn:hover { background: #f6f4fb; transform: translateY(-1px); }
.plan__btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan__btn--solid:hover { background: #22252e; }
