:root {
  /* Palette in OKLCH: one violet hue, steps by lightness, so equal L reads as equal brightness. */
  --hue: 293;
  --bg: oklch(11.1% 0.028 var(--hue));
  --surface: oklch(16.2% 0.043 var(--hue));          /* cards and panels: lighter than the page */
  --surface-hi: oklch(20% 0.06 var(--hue));          /* raised: lighter again (dark mode shows depth by light, not shadow) */
  --ink: oklch(96.6% 0.017 var(--hue));
  --text: oklch(88.2% 0.036 var(--hue));
  --muted: oklch(76.7% 0.048 var(--hue));
  --violet: oklch(61.2% 0.229 291.4);
  --violet-soft: oklch(81.8% 0.103 296);
  --line: rgb(255 255 255 / 0.1);                    /* borders are alpha, so they sit on any surface */
  --lift: inset 0 1px 0 rgb(255 255 255 / 0.07);     /* a lit top edge on raised surfaces */
  --spectrum: linear-gradient(90deg, #4fd8ff, #63e6a8 35%, #ffd75e 65%, #ff8a4c);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { overflow-x: hidden; min-height: 100vh; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- fixed stage ---------- */
#stage, #dust, .vignette { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#stage { z-index: 1; transform: translateY(25vh);
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 90%, transparent), linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(transparent, #000 14%, #000 90%, transparent), linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect; }
#stage-frames, .stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-poster { overflow: hidden; }
#stage-frames, #dust { visibility: hidden; }
.stage-poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
#stage.has-frame #stage-frames, .motion #dust { visibility: visible; }
.motion #dust.off-shot { visibility: hidden; }
#stage.has-frame .stage-poster { visibility: hidden; }
.motion #stage { will-change: transform, opacity; }
html:not(.motion) #stage { position: absolute; height: 100vh; height: 100dvh; }
#dust { z-index: 0; }   /* behind the devices */
.vignette { z-index: 2; background:
  radial-gradient(120% 90% at 50% 45%, transparent 55%, #05030dcc 100%),
  linear-gradient(#05030d99, transparent 16%, transparent 80%, #05030dcc); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px;
  padding: max(14px, env(safe-area-inset-top)) clamp(18px, 4vw, 48px) 14px; }
.nav { transition: background .4s, box-shadow .4s; }
.nav.solid { background: #05030dcc; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 #ffffff12; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; font-size: 17px; }
.brand img { border-radius: 9px; }
.nav nav { margin-left: auto; display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.pill { font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 99px; background: #ffffff1a;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px #ffffff26; transition: background .2s; }
.pill:hover { background: #ffffff30; }

.dots { position: fixed; z-index: 20; right: clamp(12px, 2vw, 28px); top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
.dots li { width: 7px; height: 7px; border-radius: 50%; background: #ffffff40; cursor: pointer; transition: all .3s; }
.dots li.on { background: #fff; box-shadow: 0 0 12px var(--violet), 0 0 2px #fff; transform: scale(1.35); }

/* ---------- scenes and beats ---------- */
main { position: relative; z-index: 10; }
.scene { position: relative; }
.motion .scene { height: calc(var(--len) * 1vh); }
.motion .anchor { position: absolute; left: 0; top: calc(var(--at) * 100%); }
html:not(.motion) .scene { padding: 0 6vw 8vh; }
html:not(.motion) .scene .hero { width: min(820px, 100%); margin-inline: auto; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 76px 0 20vh; }
html:not(.motion) .scene .beat:not(.hero, .cue) { max-width: 620px; margin: 0 auto 10vh; }
html:not(.motion) .scene .anchor { display: block; scroll-margin-top: 86px; }
html:not(.motion) .cue, html:not(.motion) .dots, html:not(.js) .static-shot { display: none; }
.static-shot { display: block; width: min(100%, 440px); height: auto; margin: 24px auto 0; }
.static-shot:not([src]) { visibility: hidden; }
.motion .static-shot { display: none; }

.motion .beat { position: fixed; z-index: 11; opacity: 0; visibility: hidden; will-change: opacity, transform; max-width: min(430px, 88vw); }
/* A soft dark pool behind side text, so it reads over a lit screen in the shot. */
.motion .beat.left::before, .motion .beat.right::before { content: ''; position: absolute; inset: -22% -28%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5,3,13,.86), rgba(5,3,13,.6) 55%, transparent); }
.motion .beat.left { left: clamp(20px, 5vw, 84px); top: 50%; --ty: -50%; }
.motion .beat.right { right: clamp(34px, 6vw, 96px); top: 50%; --ty: -50%; }
.motion .beat.center { left: 50%; top: 41%; --tx: -50%; --ty: -50%; text-align: center; max-width: min(820px, 92vw); width: 100%; }

.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px;
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
h1, h2 { font-weight: 700; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; text-shadow: 0 2px 40px #05030d; }
h1 { font-size: clamp(50px, 8vw, 118px); }
h2 { font-size: clamp(34px, 3.9vw, 58px); }
h1 em, h2 em { font-style: normal; text-shadow: none; background: linear-gradient(100deg, #b79cff, #7c5cff 45%, #4fd8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.beat p:not(.eyebrow), .lede { margin-top: 20px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--text); text-shadow: 0 1px 24px #05030d, 0 0 4px #05030d; }
.lede { max-width: 620px; margin-inline: auto; }

.hero .appicon { border-radius: 22px; box-shadow: 0 12px 60px #7c5cff80; margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border-radius: 99px; font-size: 17px; font-weight: 600; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: #fff; color: #0b0720; box-shadow: 0 8px 40px #8b5cff80; }
.btn.ghost { background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff30; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.motion .beat.cue { left: 50%; bottom: 3.5vh; --tx: -50%; }
.scrollcue { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.scrollcue span { width: 1px; height: 44px; background: linear-gradient(#fff, transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.cards { margin-top: 26px; display: grid; gap: 10px; }
.cards.two { grid-template-columns: 1fr; }
.cards li { padding: 15px 18px; border-radius: 16px; background: #0d0a1fb3; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px #ffffff1c, 0 10px 40px #0006; display: grid; gap: 4px; }
.cards b { font-size: 16px; font-weight: 650; }
.cards span { font-size: 14.5px; line-height: 1.45; color: var(--muted); }


/* ---------- features ---------- */
.features { position: relative; grid-template-columns: minmax(0, 1fr); padding: 18vh clamp(20px, 6vw, 96px) 4vh; display: grid; gap: clamp(90px, 16vh, 180px);
  background: linear-gradient(transparent, #05030df2 14vh); }
.features-head { text-align: center; max-width: 900px; margin-inline: auto; }
.features-head h2 { font-size: clamp(40px, 5.6vw, 84px); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center;
  max-width: 1320px; width: 100%; margin-inline: auto; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(30px, 3.2vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.feature-copy > p:not(.eyebrow) { margin-top: 18px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--text); }
.ticks { margin-top: 24px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, #b79cff, #4fd8ff); box-shadow: 0 0 10px #8b5cff99; }
.ticks b { color: var(--ink); font-weight: 600; }
.ticks code { font: 500 .92em ui-monospace, "SF Mono", Menlo, monospace; color: #cbbcff; background: #ffffff10; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .ticks code { white-space: normal; }
}

.grid-head { text-align: center; margin-bottom: calc(-1 * clamp(40px, 8vh, 110px)); }
.grid-head h2 { font-size: clamp(34px, 4.2vw, 60px); }

/* A photoreal Duo (rendered with the real screenshot on it), floating with a soft glow under it. */
.device-shot { position: relative; justify-self: center; width: 100%; max-width: 760px; }
.device-shot.tall { max-width: 460px; }
.device-shot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 60px #000c); }
.device-shot::before { content: ''; position: absolute; inset: 18% 8% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, #7c5cff40, transparent); filter: blur(30px); }

/* ---------- feature explorer ---------- */
.explorer { max-width: 1320px; width: 100%; margin-inline: auto; display: grid; gap: 34px; }
.explorer .grid-head { margin-bottom: 0; }
.ex-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ex-tab { position: relative; overflow: hidden; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  padding: 12px 20px; border: 0; border-radius: 99px; background: #ffffff0d; box-shadow: inset 0 0 0 1px #ffffff1a; transition: color .25s, background .25s, box-shadow .25s; }
.ex-tab:hover { color: var(--ink); }
.ex-tab[aria-selected="true"] { color: var(--ink); background: #8b5cff26; box-shadow: inset 0 0 0 1px #8b5cff80; }
.ex-tab span { position: relative; z-index: 1; }
.ex-tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--spectrum); }
.ex-tab[aria-selected="true"] i { animation: ex-progress var(--ex-time, 7s) linear forwards; }
.explorer.paused .ex-tab i { animation-play-state: paused; }
@keyframes ex-progress { to { width: 100%; } }
.ex-panels { position: relative; border-radius: 30px; background: linear-gradient(160deg in oklch, var(--surface-hi), var(--surface) 60%); box-shadow: var(--lift), inset 0 0 0 1px var(--line), 0 40px 120px #0008;
  padding: clamp(24px, 4vw, 56px); overflow: hidden; }
.ex-panels::before { content: ''; position: absolute; width: 60%; height: 120%; left: -10%; top: -10%; background: radial-gradient(closest-side, #7c5cff22, transparent); pointer-events: none; }
.ex-panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.ex-panel[hidden] { display: none; }
.ex-panel.on { animation: ex-in .6s cubic-bezier(.2,.7,.2,1); }
@keyframes ex-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.ex-visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.ex-visual img { width: 100%; height: auto; max-height: 520px; object-fit: contain; filter: drop-shadow(0 30px 50px #000c); }
.ex-emblem { width: min(320px, 70%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #8b5cff40, #0d0a1f 70%); box-shadow: inset 0 0 0 1px #8b5cff55, 0 0 120px #7c5cff40; }
.ex-emblem svg { width: 44%; fill: none; stroke: var(--violet-soft); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px #8b5cff); }
.ex-list { display: grid; gap: 6px; }
.ex-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 26px; transition: background .25s; }   /* 12px icon corner + 14px padding */
.ex-list li:hover { background: var(--surface-hi); }
.ex-list svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #8b5cff1f; fill: none; stroke: var(--violet-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ex-list b { display: block; font-size: 17px; font-weight: 650; margin-bottom: 3px; }
.ex-list span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 820px) {
  .ex-panel { grid-template-columns: minmax(0, 1fr); }
  .ex-visual { min-height: 0; }
  .ex-visual img { max-height: 340px; }
  .ex-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent); }
  .ex-tab { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .ex-tab i { display: none; } .ex-panel.on { animation: none; } }

/* ---------- pricing ---------- */
.pricing { position: relative; padding: 16vh clamp(20px, 6vw, 96px) 0; background: #05030df2; display: grid; gap: 56px; justify-items: center; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 22px; justify-content: center; width: 100%; text-align: left; }
.plan { position: relative; padding: 34px 32px 32px; border-radius: 26px; background: var(--surface); box-shadow: var(--lift), inset 0 0 0 1px var(--line); display: grid; align-content: start; gap: 6px; }
.plan.pro { background: linear-gradient(160deg in oklch, oklch(24% 0.1 var(--hue)), var(--surface) 60%); box-shadow: var(--lift), inset 0 0 0 1px #8b5cff80, 0 30px 90px #7c5cff33; }
.plan h3 { font-size: 22px; font-weight: 650; }
.plan .price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font-size: 54px; font-weight: 700; letter-spacing: -.04em; }
.plan .price span { color: var(--muted); font-size: 16px; }
.plan .price-alt { color: var(--muted); font-size: 15px; margin-top: -2px; }
.plan .price-alt b { color: var(--text); font-weight: 600; }
.plan-sub { color: var(--text); font-size: 16px; line-height: 1.5; margin-top: 4px; }
.plan .ticks { margin: 20px 0 28px; }
.plan .btn { justify-content: center; }
.badge { position: absolute; top: -13px; right: 26px; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px;
  background: linear-gradient(100deg, #b79cff, #7c5cff 45%, #4fd8ff); color: #0b0720; }
.pricing .fine { margin-top: -30px; }
@media (max-width: 820px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .grid-head { margin-bottom: 0; }
}

/* ---------- download ---------- */
.download { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; justify-items: center; text-align: center;
  padding: 16vh 6vw 0; background: linear-gradient(transparent, #05030df2 22%); }
.download .appicon { border-radius: 26px; box-shadow: 0 16px 80px #7c5cffa0; margin-bottom: 30px; }
.download h2 { font-size: clamp(48px, 8vw, 112px); }
.btn.store { background: #fff; color: #0b0720; padding: 13px 26px 13px 20px; text-align: left; box-shadow: 0 8px 40px #8b5cff66; }
.btn.store svg { width: 30px; height: 30px; }
.btn.store span { display: grid; line-height: 1.2; }
.btn.store small { font-size: 11.5px; font-weight: 500; opacity: .65; }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
footer { margin-top: 14vh; padding: 26px 0 max(26px, env(safe-area-inset-bottom)); width: 100%; border-top: 1px solid #ffffff14;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12.5px; color: #8f89ab; }

/* ---------- small screens: device on top, words below ---------- */
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .nav nav, .dots { display: none; }
  .nav .pill { margin-left: auto; }
  .motion .beat.left, .motion .beat.right { left: 20px; right: 20px; top: auto; bottom: max(28px, env(safe-area-inset-bottom)); --ty: 0%; max-width: none; }
  .vignette { background: linear-gradient(#05030db3, transparent 14%, transparent 42%, #05030de6 64%, #05030d 100%); }
  .hero .appicon { width: 76px; height: 76px; }
  .cards { gap: 8px; margin-top: 18px; }
  .cards li { padding: 11px 14px; }
  .cards span { font-size: 13.5px; }
  .motion .beat.center { top: 36%; }
}
@media (max-width: 820px) { .cards li:nth-child(n+3) { display: none; } }

@media (max-aspect-ratio: 21/20) {
  #stage { transform: translateY(14vh); }
  .stage-poster img { position: absolute; left: 50%; top: 36%; width: max(175vw, 92.45vh); height: auto;
    max-width: none; transform: translate(-64%, -50%); }
  html:not(.motion) .scene .hero { padding-bottom: 28vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scrollcue span { animation: none; }
}

/* ---------- gradients through OKLCH, so colour mixes stay vivid instead of greying in the middle ---------- */
@supports (background: linear-gradient(in oklch, red, blue)) {
  :root { --spectrum: linear-gradient(90deg in oklch, #4fd8ff, #63e6a8 35%, #ffd75e 65%, #ff8a4c); }
  h1 em, h2 em, .badge { background-image: linear-gradient(100deg in oklch, #b79cff, #7c5cff 45%, #4fd8ff); }
  .ticks li::before { background: linear-gradient(135deg in oklch, #b79cff, #4fd8ff); }
}
