:root {
  --bg: #060607;
  --surface: #0e0e11;
  --surface-2: #15151a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --c1: #ff5c8a;
  --c2: #ffa24c;
  --c3: #8a63ff;
  --c4: #3fd3ff;
  --glow: conic-gradient(from var(--a, 0deg), var(--c1), var(--c2), var(--c3), var(--c4), var(--c1));
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 22px;
  --max: 1160px;
  color-scheme: dark;
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p a, .faq a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
p a:hover, .faq a:hover { text-decoration-color: var(--text); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
code, kbd { font: 500 0.88em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; }
:focus-visible { outline: 2px solid var(--c4); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.fine { color: var(--dim); font-size: 0.82rem; margin: 0; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, calc((100vw - var(--max)) / 2)); background: rgba(6, 6, 7, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.12rem var(--display); letter-spacing: 0.02em; }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 0.94rem; transition: color 0.2s; }
.nav nav a:hover { color: var(--text); }

/* BUTTONS */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; padding: 10px 18px; font: 600 0.94rem var(--body); text-decoration: none; transition: transform 0.2s, background 0.2s, border-color 0.2s; white-space: nowrap; }
.pill svg { width: 18px; height: 18px; }
.pill.big { padding: 14px 24px; font-size: 1rem; }
.pill-light { background: var(--text); color: #0a0a0b; }
.pill-light:hover { background: #fff; transform: translateY(-1px); }
.pill-dark { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.pill-dark:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }

/* HERO */
.hero { text-align: center; padding: 88px 20px 40px; max-width: var(--max); margin: 0 auto; position: relative; }
.hero::before { content: ''; position: absolute; inset: -140px 0 auto; height: 620px; background: radial-gradient(50% 55% at 50% 30%, rgba(138, 99, 255, 0.16), transparent 70%), radial-gradient(35% 40% at 30% 40%, rgba(255, 92, 138, 0.1), transparent 70%); pointer-events: none; z-index: -1; }
.eyebrow { display: inline-block; margin: 0 0 22px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 0.85rem; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.6rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.045em; }
.hero h1 em { font-size: 1.08em; letter-spacing: -0.02em; background: linear-gradient(100deg, var(--c1), var(--c2) 45%, var(--c3)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.lede { max-width: 620px; margin: 24px auto 32px; color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.2rem); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 18px; }

/* REEL: the video framed by a light that runs around it, like the app */
.reel { margin: 64px auto 0; max-width: 1040px; }
.rim { position: relative; padding: 2px; border-radius: 20px; background: var(--glow); animation: spin 8s linear infinite; }
.rim::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; filter: blur(28px); opacity: 0.55; z-index: -1; }
.screen { border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 1600 / 1040; }
.screen video { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s; }
.screen video.swap { opacity: 0; }
@keyframes spin { to { --a: 360deg; } }
.reel-tabs { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.reel-tabs button, .tabs button { font: 500 0.92rem var(--body); color: var(--muted); background: none; border: 0; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.reel-tabs button[aria-selected='true'], .tabs button[aria-selected='true'] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.reel-tabs button:hover, .tabs button:hover { color: var(--text); }

/* COUNTS */
.counts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 48px; max-width: var(--max); margin: 72px auto 0; padding: 28px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.counts div { display: flex; align-items: baseline; gap: 8px; }
.counts b { font: 700 1.6rem var(--display); letter-spacing: -0.02em; }
.counts span { color: var(--muted); font-size: 0.92rem; }

/* SECTIONS */
.section { max-width: var(--max); margin: 0 auto; padding: 120px 20px 0; scroll-margin-top: 40px; }
.section.narrow { max-width: 780px; }
.kicker { margin: 0 0 14px; color: var(--dim); font: 600 0.78rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; }
.section h2, .final h2 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; }
.section h2 em, .final h2 em { color: #d4d4d8; }
.sub { max-width: 620px; color: var(--muted); font-size: 1.08rem; margin: 18px 0 0; }

/* FEATURE GRID */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; min-width: 0; }
.span2, .keys-card { grid-column: span 2; }
.card.span2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0 0; }
.chips li { font-size: 0.82rem; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: #d4d4d8; }
.keychips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; }
.keychips kbd { font-size: 0.78rem; padding: 0.05em 0.4em; margin-right: 2px; }
.chips.small li { font-size: 0.78rem; padding: 4px 10px; }

/* little animated screen in the lights card */
.lightbox { aspect-ratio: 16 / 10.5; border-radius: 14px; background: #000; border: 1px solid var(--line); display: grid; place-items: center; padding: 18px; }
.lb-screen { position: relative; width: 100%; height: 100%; border-radius: 10px; background: linear-gradient(180deg, #0b0b10, #050507); overflow: hidden; }
.lb-screen::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 3px; background: var(--glow); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 5s linear infinite; }
.lb-screen::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 40px rgba(138, 99, 255, 0.45), inset 0 0 90px rgba(255, 92, 138, 0.18); animation: beat 0.52s ease-out infinite; }
.lb-screen span { position: absolute; left: 12%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.lb-screen span:nth-child(1) { top: 22%; width: 46%; }
.lb-screen span:nth-child(2) { top: 36%; width: 62%; }
.lb-screen span:nth-child(3) { top: 50%; width: 38%; }
@keyframes beat { 0% { opacity: 1; } 100% { opacity: 0.45; } }

/* lyric icon demo */
.lyric-input { width: 100%; margin-top: 18px; padding: 12px 14px; font: 500 0.95rem var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; }
.lyric-input:focus { outline: none; border-color: var(--c3); }
.lyric-out { margin-top: 16px !important; min-height: 3.2em; font: 700 1.28rem/1.5 var(--display); color: var(--text) !important; letter-spacing: -0.01em; }
.lyric-out .w { display: inline-block; margin-right: 0.28em; }
.lyric-out svg { display: inline-block; width: 1.2em; height: 1.2em; margin-left: 0.16em; vertical-align: -0.22em; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; filter: drop-shadow(0 0 6px rgba(255, 162, 76, 0.45)); }
.lyric-out svg .f { stroke: none; }
.lyric-out svg .d { fill-opacity: 0.18; }
.lyric-out svg g { stroke-width: 1.7; }
.lyric-out .pop svg { animation: pop 0.45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }

/* gallery */
.gallery-card { overflow: hidden; }
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: -30px; padding-right: 30px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gallery figure { flex: 0 0 72%; margin: 0; scroll-snap-align: start; }
.gallery video { width: 100%; aspect-ratio: 16 / 10.4; object-fit: cover; background: #000; border-radius: 12px; border: 1px solid var(--line); }
.gallery figcaption { color: var(--dim); font-size: 0.82rem; margin-top: 8px; }

/* INSTALL */
.tabs { display: inline-flex; gap: 4px; margin-top: 36px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.panel { margin-top: 24px; }
.dl-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dl-box h3 { font-size: 1.3rem; }
.dl-box p { margin: 4px 0 0; font-size: 0.92rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; gap: 2px; }
.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 58px; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); font: 600 0.9rem var(--body); }
.steps b { color: var(--text); font-weight: 600; }
.why { margin-top: 28px; padding: 26px 30px; border-radius: var(--radius); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, rgba(255, 92, 138, 0.5), rgba(138, 99, 255, 0.5)) border-box; border: 1px solid transparent; scroll-margin-top: 90px; }
.why h3 { font-size: 1.15rem; margin-bottom: 10px; }
.why p { color: var(--muted); margin: 0 0 10px; }
.why p:last-child { margin-bottom: 0; }

/* HOW */
.how { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; margin-top: 48px; }
.howsteps { list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; }
.howsteps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.howsteps li > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); font: 700 1.05rem var(--display); }
.howsteps h3 { font-size: 1.15rem; margin: 2px 0 6px; }
.howsteps p { margin: 0; color: var(--muted); }
.howsteps b { color: var(--text); font-weight: 600; }
.how-shot { margin: 0; position: sticky; top: 100px; }
.how-shot video { width: 100%; background: #000;  border-radius: 18px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(138, 99, 255, 0.12); }
html[data-os='win'] .os-mac, html:not([data-os='win']) .os-win { display: none; }
.keys { margin-top: 64px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.keys h3 { font-size: 1.2rem; }
.keys .muted { margin: 4px 0 20px; }
.keys dl { margin: 0; columns: 2; column-gap: 40px; }
.keys dl div { break-inside: avoid; }
.keys dl div { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.keys dt { min-width: 118px; font: 500 0.9rem ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.keys dt kbd { margin-right: 3px; }
.keys dd { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 1.06rem var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); max-width: 680px; }

/* FINAL */
.final { text-align: center; padding: 140px 20px 120px; position: relative; }
.final::before { content: ''; position: absolute; inset: 40px 0 0; background: radial-gradient(40% 50% at 50% 40%, rgba(255, 92, 138, 0.1), transparent 70%); z-index: -1; }
.final img { margin: 0 auto 28px; filter: drop-shadow(0 20px 40px rgba(138, 99, 255, 0.35)); }
.final h2 { margin-bottom: 32px; }

/* FOOTER */
.footer { max-width: var(--max); margin: 0 auto; padding: 36px 20px 48px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer nav a:hover { color: var(--text); }

/* REVEAL ON SCROLL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .grid { grid-template-columns: 1fr; }
  .grid > .card { grid-column: auto; }
  .card.span2 { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .how-shot { position: static; max-width: 520px; }
  .keys dl { columns: 1; }
}
@media (max-width: 560px) {
  .hero { padding-top: 56px; }
  .cta-row .pill { width: 100%; }
  .reel { margin-top: 44px; }
  .reel-tabs button { padding: 8px 13px; font-size: 0.86rem; }
  .counts { gap: 10px 26px; justify-content: flex-start; }
  .section { padding-top: 88px; }
  .card, .dl-box, .why, .keys { padding: 22px; }
  .gallery { margin-right: -22px; padding-right: 22px; }
  .gallery figure { flex-basis: 86%; }
  .dl-box .pill { width: 100%; }
  .steps li { padding-left: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rim, .lb-screen::before, .lb-screen::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lyric-out .pop svg { animation: none; }
}
