:root {
  --bg: #0f1115;
  --bg2: #14171d;
  --panel: #1a1e26;
  --line: #2a2f3b;
  --text: #c9ced8;
  --bright: #f2f4f8;
  --dim: #8a91a1;
  --accent: #5aa9ff;
  --blue: #3e63dd;
  --teal: #12a594;
  --orange: #f76b15;
  --violet: #8e6cf0;
  --warm: #ffb454;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { margin: 0; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(15, 17, 21, 0.94); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { font-weight: 800; font-size: 19px; color: var(--bright); display: flex; align-items: center; gap: 9px; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo i { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; }
.logo i b { display: block; width: 4px; border-radius: 1px; transform-origin: bottom; }
.logo i b:nth-child(1) { height: 10px; background: var(--blue); }
.logo i b:nth-child(2) { height: 16px; background: var(--teal); }
.logo i b:nth-child(3) { height: 7px; background: var(--orange); }
.logo:hover i b { animation: bounce 0.9s ease-in-out infinite alternate; }
.logo:hover i b:nth-child(2) { animation-delay: -0.3s; }
.logo:hover i b:nth-child(3) { animation-delay: -0.6s; }
nav { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; }
nav a { color: var(--text); }
nav a:hover { color: var(--bright); text-decoration: none; }
nav .nav-cta { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--bright); }
nav .nav-cta:hover { border-color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 650; font-size: 15px; border: 1px solid var(--line); color: var(--bright); background: var(--panel); transition: transform 0.15s, box-shadow 0.2s, filter 0.15s, border-color 0.15s; }
.btn.primary { background: linear-gradient(135deg, #6fb6ff, #3e7bff); border-color: transparent; color: #071023; box-shadow: 0 8px 28px rgba(62, 123, 255, 0.35); }
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn.primary:hover { box-shadow: 0 12px 36px rgba(62, 123, 255, 0.5); }
.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn.ghost { background: rgba(255, 255, 255, 0.04); }
.btn.ghost:hover { border-color: var(--accent); }
.btn span { transition: transform 0.15s; }
.btn:hover span { transform: translateX(3px); }

/* hero */
.hero { position: relative; padding: 72px 0 40px; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); pointer-events: none; }
.glow { position: absolute; inset: 0; pointer-events: none; opacity: 0.7; }
.glow span { position: absolute; background: radial-gradient(closest-side, rgba(var(--g), 0.95), rgba(var(--g), 0.55) 35%, rgba(var(--g), 0.18) 68%, transparent); will-change: transform; animation: drift 18s ease-in-out infinite alternate; }
.glow span:nth-child(1) { width: 760px; height: 640px; left: 2%; top: -240px; --g: 62, 99, 221; }
.glow span:nth-child(2) { width: 680px; height: 600px; right: 0; top: -180px; --g: 18, 165, 148; animation-delay: -6s; }
.glow span:nth-child(3) { width: 560px; height: 480px; left: 36%; top: 110px; --g: 247, 107, 21; opacity: 0.55; animation-delay: -12s; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: var(--bright); font-size: 13.5px; font-weight: 550; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq b { width: 3px; height: 100%; border-radius: 1px; background: var(--teal); transform-origin: bottom; animation: bounce 1s ease-in-out infinite alternate; }
.eq b:nth-child(2) { background: var(--blue); animation-duration: 0.8s; animation-delay: -0.2s; }
.eq b:nth-child(3) { background: var(--orange); animation-duration: 1.2s; animation-delay: -0.5s; }
.eq b:nth-child(4) { background: var(--teal); animation-duration: 0.7s; animation-delay: -0.3s; }
.eq b:nth-child(5) { background: var(--blue); animation-duration: 1.1s; animation-delay: -0.7s; }
.hero h1 { position: relative; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.05; color: var(--bright); margin: 0 auto 22px; max-width: 1040px; text-wrap: balance; letter-spacing: -0.035em; font-weight: 800; }
.grad { background: linear-gradient(100deg, #7cc0ff 0%, #4ee0c4 45%, #ffb454 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { position: relative; font-size: clamp(17px, 2vw, 20px); max-width: 720px; margin: 0 auto 30px; color: var(--text); }
.ctas { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero small { position: relative; display: block; margin-top: 14px; color: var(--dim); font-size: 13px; }

.stage { position: relative; margin: 56px auto 0; max-width: 1080px; perspective: 1800px; }
.shot { position: relative; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px rgba(90, 169, 255, 0.08); transform: rotateX(10deg) scale(0.97); transform-origin: 50% 0; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* its shadow and glow: gradients behind it (big blurred box-shadows stalled fast scrolling) */
.stage::before { content: ""; position: absolute; z-index: -1; left: -8%; right: -8%; top: -6%; bottom: -14%; pointer-events: none; background: radial-gradient(closest-side, rgba(62, 99, 221, 0.28), transparent), radial-gradient(closest-side at 50% 60%, rgba(0, 0, 0, 0.7), transparent); }
.stage:hover .shot { transform: rotateX(0) scale(1); }
.chrome { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1b1e25; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.chrome i:nth-child(2) { background: #febc2e; }
.chrome i:nth-child(3) { background: #28c840; }
.chrome span { margin: 0 auto; padding-right: 50px; font-size: 12px; color: var(--dim); }
.shot img { display: block; width: 100%; height: auto; }
/* a playhead sweeping the arrangement (16.4%–76.4% of the screenshot's width) */
.playhead { position: absolute; top: calc(34px + (100% - 34px) * 0.05); bottom: calc((100% - 34px) * 0.325); left: 16.4%; width: 60%; pointer-events: none; }
.playhead::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.8); opacity: 0.85; }
.playhead { will-change: transform; animation: play 9s linear infinite; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 550; color: var(--bright); background: rgba(26, 30, 38, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); will-change: transform; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); white-space: nowrap; animation: float 6s ease-in-out infinite; }
.chip b { padding: 1px 7px; border-radius: 6px; background: rgba(90, 169, 255, 0.18); color: #9fd0ff; font-size: 12.5px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(18, 165, 148, 0.25); }
.chip.c1 { left: -28px; top: 18%; }
.chip.c2 { right: -34px; top: 42%; animation-delay: -2s; }
.chip.c3 { left: 6%; bottom: -18px; animation-delay: -4s; }
.chip.c3 b { background: rgba(247, 107, 21, 0.2); color: #ffb88a; }

/* ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg2); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker > div { display: flex; width: max-content; animation: ticker 50s linear infinite; }
.ticker span { padding: 0 22px; color: var(--dim); font-weight: 600; font-size: 15px; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-left: 44px; color: var(--line); }
.ticker:hover > div { animation-play-state: paused; }

/* sections */
section { padding: 84px 0; border-top: 1px solid var(--line); }
.home section { border-top: 0; }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
section h2 { text-wrap: balance; color: var(--bright); font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.025em; font-weight: 800; max-width: 820px; }
section p.sub { color: var(--dim); font-size: 17px; max-width: 760px; margin: 0 0 34px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.home .card:hover { transform: translateY(-3px); border-color: #3a4252; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--bright); letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 15px; }
.card ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; }
.card li { margin-bottom: 4px; }
.card li::marker { color: var(--dim); }
.ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 11px; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.blue { color: #8fb3ff; --c: 62, 99, 221; }
.teal { color: #4ee0c4; --c: 18, 165, 148; }
.orange { color: #ffa26b; --c: 247, 107, 21; }
.violet { color: #b9a3ff; --c: 142, 108, 240; }
.ico { background: rgba(var(--c), 0.16); box-shadow: inset 0 0 0 1px rgba(var(--c), 0.35); }
.feat::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at 0 0, rgba(90, 169, 255, 0.08), transparent 60%); pointer-events: none; }
.grid.feats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.feats { grid-template-columns: 1fr; } }
.feats .card h3 { display: flex; align-items: center; gap: 8px; }
.tag { font-size: 11px; }
#features { background: linear-gradient(180deg, transparent, rgba(62, 99, 221, 0.06) 50%, transparent); }

/* get it */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ways .card h3 { font-size: 22px; }
.ways .card .btn { margin-top: 18px; }
.way:first-child { background: linear-gradient(160deg, rgba(62, 99, 221, 0.18), var(--panel) 60%); border-color: #34437a; }
.note { color: var(--warm); font-size: 14px; margin-top: 12px; }

.finale { position: relative; padding: 90px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 120%, rgba(62, 99, 221, 0.35), transparent 60%), radial-gradient(ellipse at 20% 0%, rgba(18, 165, 148, 0.15), transparent 50%); }
.finale h2 { margin: 0 auto 28px; font-size: clamp(28px, 4.5vw, 48px); color: var(--bright); letter-spacing: -0.03em; font-weight: 800; line-height: 1.1; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; }

@keyframes bounce { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes play { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pop { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .two { grid-template-columns: 1fr; }
  .chip { display: none; }
  .shot { transform: none; }
}
@media (max-width: 640px) {
  nav a:not(.nav-cta):not([href="/download"]) { display: none; }
  nav { gap: 12px; font-size: 14px; }
  .hero { padding-top: 48px; }
  section { padding: 60px 0; }
  .eyebrow { font-size: 12px; }
  .eyebrow .wide { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .home .chat .msg, .home .chat .takes { opacity: 1; transform: none; }
  .playhead { display: none; }
}

/* downloads */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 10px; }
.dl .card h3 { display: flex; align-items: baseline; gap: 8px; }
.dl .file { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dl .meta { color: var(--dim); font-size: 13px; }
.dl code, .help code { font-size: 12px; color: var(--dim); word-break: break-all; }
.help { margin-top: 28px; }
.help h3 { color: var(--bright); font-size: 17px; margin: 18px 0 4px; }
.empty { color: var(--dim); }
