:root {
  --bg: #07070c;
  --bg-2: #0b0b13;
  --panel: #11111b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f5f5f7;
  --muted: #a3a3b6;
  --dim: #6c6c82;
  --lime: #c6ff00;
  --violet: #7b5cff;
  --pink: #ff4d8d;
  --r: 16px;
  --r-lg: 26px;
  --f-display: 'Syne', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
.wrap-wide { width: min(100% - 32px, 1320px); margin-inline: auto; }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 max(16px, calc((100% - 1320px) / 2));
  background: rgba(7, 7, 12, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.logo { font: 800 22px/1 var(--f-display); letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; }
.logo b { color: var(--lime); font-weight: 800; }
.logo-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--lime); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 255, 0, 0.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(198, 255, 0, 0); } }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 820px) { .nav-links { display: none; } .nav > .btn { margin-left: auto; } }

/* ------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--lime); --btn-fg: #07070c; --btn-hover: #ffffff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 15px/1 var(--f-body); letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  box-shadow: 0 12px 34px -12px rgba(198, 255, 0, 0.55);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--btn-hover); transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: none; }
.btn .arr { display: inline-block; transition: transform 0.45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-xl { padding: 20px 30px; font-size: 17px; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-hover: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: clamp(36px, 7vh, 80px) 0 clamp(40px, 6vw, 80px); }
.hero::before {
  content: ''; position: absolute; inset: -10% 0 auto; height: 110%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 40% at 78% 18%, rgba(123, 92, 255, 0.24), transparent 70%),
    radial-gradient(35% 30% at 12% 8%, rgba(198, 255, 0, 0.09), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.02);
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }
.h1 { font: 800 clamp(40px, 6.4vw, 94px)/0.95 var(--f-display); letter-spacing: -0.045em; margin: 22px 0 28px; }
.h1 .line { display: block; overflow: hidden; padding-bottom: 0.07em; }
.h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.h1 em {
  font-style: normal; color: transparent;
  background: linear-gradient(90deg, var(--lime), #eaff8a 30%, var(--violet) 60%, var(--lime) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: sheen 7s linear infinite;
}
@keyframes rise { to { transform: none; } }
@keyframes sheen { to { background-position: -220% 0; } }
.hero-row { display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 44px; }
.lead { max-width: 580px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.micro { font: 500 12px/1.4 var(--f-mono); color: var(--dim); letter-spacing: 0.05em; }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) 0.35s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- player */
.player {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, #15151f, #0b0b12);
  border: 1px solid var(--line-2);
  box-shadow: 0 70px 140px -50px rgba(123, 92, 255, 0.45), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(40px) scale(0.98);
  animation: fadeUp 1.2s var(--ease) 0.5s forwards;
}
.player-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font: 500 12px/1 var(--f-mono); color: var(--dim); letter-spacing: 0.04em; }
.player-bar.top { border-bottom: 1px solid var(--line); }
.player-bar.bottom { border-top: 1px solid var(--line); gap: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.pl-title { margin-left: 8px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-meta { margin-left: auto; white-space: nowrap; }
.stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.stage canvas { width: 100%; height: 100%; }
.sound-btn {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  font: 600 13px/1 var(--f-body); color: #fff;
  background: rgba(10, 10, 16, 0.6); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, color 0.2s;
}
.sound-btn:hover { background: rgba(10, 10, 16, 0.85); }
.sound-btn[aria-pressed='true'] { background: var(--lime); color: #000; border-color: var(--lime); }
.sound-btn svg { width: 16px; height: 16px; }
.pp { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--lime); color: #000; display: grid; place-items: center; }
.pp svg { width: 14px; height: 14px; }
.tc { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc.dim { color: var(--dim); }
.timeline { position: relative; flex: 1; height: 40px; cursor: pointer; touch-action: none; min-width: 60px; }
.tl-track { position: absolute; left: 0; right: 0; bottom: 9px; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.tl-fill { height: 100%; background: linear-gradient(90deg, var(--violet), var(--lime)); transform-origin: left; transform: scaleX(0); }
.tl-markers span {
  position: absolute; top: 2px; height: 30px; padding-left: 5px;
  font: 500 9px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
  border-left: 1px solid var(--line-2); white-space: nowrap;
}
.tl-head { position: absolute; top: 0; bottom: 4px; width: 2px; margin-left: -1px; left: 0; background: var(--text); box-shadow: 0 0 12px var(--lime); pointer-events: none; }
@media (max-width: 640px) {
  .stage { aspect-ratio: 4 / 5; }
  .pl-meta, .tl-markers { display: none; }
  .tc.dim { display: none; }
}

/* ------------------------------------------------------------- marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee-track {
  display: flex; gap: 42px; width: max-content; animation: marq 45s linear infinite;
  font: 800 clamp(28px, 4vw, 54px)/1 var(--f-display); letter-spacing: -0.03em; white-space: nowrap;
}
.marquee-track span:nth-child(4n + 3) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45); }
.marquee-track i { color: var(--lime); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(80px, 11vw, 150px) 0; scroll-margin-top: calc(var(--nav-h) - 1px); }
.sec-head { display: grid; gap: 18px; margin-bottom: 56px; max-width: 840px; }
.sec-num { font: 500 12px/1 var(--f-mono); color: var(--lime); letter-spacing: 0.2em; text-transform: uppercase; }
h2 { font: 800 clamp(34px, 5.4vw, 72px)/0.98 var(--f-display); letter-spacing: -0.04em; }
.sec-head p { color: var(--muted); font-size: 18px; max-width: 640px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 360px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 60%);
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.step:hover { border-color: rgba(198, 255, 0, 0.4); transform: translateY(-4px); }
.step-n { font: 800 84px/1 var(--f-display); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2); }
.step h3 { font: 700 24px/1.15 var(--f-display); letter-spacing: -0.02em; margin-top: auto; }
.step p { color: var(--muted); font-size: 15px; }
.viz { display: grid; gap: 8px; margin: 18px 0 8px; }
.viz-field { height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); position: relative; overflow: hidden; }
.viz-field::after {
  content: ''; position: absolute; left: 10px; top: 10px; height: 9px; border-radius: 3px; background: rgba(255, 255, 255, 0.55);
  width: 0; animation: type 4s steps(14) infinite;
}
.viz-field:nth-child(2)::after { animation-delay: 0.6s; background: var(--lime); }
.viz-field:nth-child(3)::after { animation-delay: 1.2s; }
@keyframes type { 0%, 10% { width: 0; } 55%, 100% { width: 62%; } }
.viz-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.viz-swatches i { height: 58px; border-radius: 10px; border: 1px solid var(--line-2); animation: pick 4s infinite; }
.viz-swatches i:nth-child(1) { background: linear-gradient(135deg, #07070c 55%, #c6ff00 55%); }
.viz-swatches i:nth-child(2) { background: radial-gradient(circle at 80% 80%, #ff3b1f 38%, #efebe3 39%); animation-delay: 1s; }
.viz-swatches i:nth-child(3) { background: linear-gradient(135deg, #ff6fae, #3ee6ff); animation-delay: 2s; }
.viz-swatches i:nth-child(4) { background: linear-gradient(135deg, #ffe500 60%, #1f3bff 60%); animation-delay: 3s; }
@keyframes pick { 0%, 20% { transform: none; box-shadow: none; } 5%, 15% { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--lime); } }
.viz-file { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); font: 500 12px var(--f-mono); color: var(--muted); }
.viz-file b { color: var(--text); font-weight: 600; }
.viz-bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.viz-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--lime)); animation: fillbar 4s var(--ease) infinite; }
@keyframes fillbar { 0% { width: 0; } 70%, 100% { width: 100%; } }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

.styles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.style-card {
  display: block; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--panel);
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.style-card canvas { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.sc-meta { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.sc-meta b { font: 700 19px/1 var(--f-display); letter-spacing: -0.02em; }
.sc-meta span { color: var(--muted); font-size: 14px; }
.sc-go { margin-left: auto; color: var(--lime) !important; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: 0.4s var(--ease); white-space: nowrap; }
.style-card:hover { transform: translateY(-4px); border-color: rgba(198, 255, 0, 0.35); }
.style-card:hover .sc-go, .style-card:focus-visible .sc-go { opacity: 1; transform: none; }
@media (max-width: 760px) { .styles-grid { grid-template-columns: 1fr; } .sc-go { opacity: 1; transform: none; } }

.why .two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.big-stat { font: 800 clamp(96px, 17vw, 230px)/0.85 var(--f-display); letter-spacing: -0.06em; color: var(--lime); margin: 18px 0 22px; }
.big-stat small { font-size: 0.4em; letter-spacing: -0.03em; }
.why p { color: var(--muted); font-size: 18px; max-width: 560px; }
.why cite { font-style: normal; color: var(--dim); font-size: 13px; display: block; margin-top: 12px; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, 0.02);
}
.checks li::before {
  content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307070c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}
@media (max-width: 900px) { .why .two-col { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; max-width: 1000px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 34px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.plan-pro {
  border-color: rgba(198, 255, 0, 0.45);
  background: radial-gradient(120% 80% at 100% 0%, rgba(123, 92, 255, 0.35), transparent 60%), linear-gradient(180deg, #15151f, #0e0e16);
  box-shadow: 0 40px 100px -40px rgba(198, 255, 0, 0.28);
}
.plan-tag { position: absolute; top: 24px; right: 24px; padding: 7px 10px; border-radius: 999px; background: var(--lime); color: #000; font: 600 11px/1 var(--f-mono); letter-spacing: 0.12em; }
.plan h3 { font: 700 20px/1 var(--f-display); }
.price { font: 800 64px/1 var(--f-display); letter-spacing: -0.04em; }
.price small { display: block; margin-top: 10px; font: 500 15px/1 var(--f-body); color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; display: grid; gap: 10px; color: var(--muted); }
.plan li::before { content: '✓'; color: var(--lime); font-weight: 700; margin-right: 10px; }
.plan li.no::before { content: '—'; color: var(--dim); }
.plan .btn { margin-top: auto; }
.fine { font-size: 13px; color: var(--dim); margin-top: 20px; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; } }

.faq { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font: 600 clamp(17px, 2vw, 21px)/1.3 var(--f-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 300 30px/1 var(--f-body); color: var(--lime); transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 740px; }

.final { position: relative; overflow: hidden; text-align: center; padding: clamp(100px, 14vw, 190px) 0; border-top: 1px solid var(--line); }
.final::before {
  content: ''; position: absolute; left: 50%; bottom: -60%; width: 120%; aspect-ratio: 1; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(198, 255, 0, 0.18), rgba(123, 92, 255, 0.12) 50%, transparent);
}
.final h2 { font-size: clamp(40px, 7vw, 104px); max-width: 1000px; margin: 0 auto 38px; }
.final .micro { margin-top: 16px; }

.footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--dim); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--text); }

.js .rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- consent */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 480px; margin-left: auto;
  display: grid; gap: 14px; padding: 20px; font-size: 14px; color: var(--muted);
  background: #12121c; border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}
.consent b { color: var(--text); }
.consent a { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; }

/* ----------------------------------------------------------------- studio */
.nav-studio .pass-badge { margin-left: auto; }
.pass-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line-2);
}
.pass-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.pass-badge.pro { color: #000; background: var(--lime); border-color: var(--lime); }
.pass-badge.pro::before { background: #000; }

.studio { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; min-height: calc(100vh - var(--nav-h)); }
.st-panel { order: -1; border-right: 1px solid var(--line); background: var(--bg-2); }
.st-preview {
  position: sticky; top: var(--nav-h); align-self: start;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 28px clamp(16px, 3vw, 48px) 40px;
}
.st-stage {
  --r: 1.7778; aspect-ratio: var(--ar, 16 / 9);
  width: min(100%, calc((100vh - var(--nav-h) - 300px) * var(--r)));
  min-width: min(100%, 220px);
  border-radius: 16px; overflow: hidden; background: #000;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -50px rgba(123, 92, 255, 0.5);
}
.st-stage canvas { width: 100%; height: 100%; }
.st-controls, .st-actions { width: 100%; max-width: 860px; }
.st-controls { display: flex; align-items: center; gap: 14px; font: 500 12px/1 var(--f-mono); color: var(--dim); }
.st-controls .sound-btn { position: static; }
.st-actions { display: grid; gap: 12px; }
.st-actions .btn-xl { width: 100%; }
.st-note { font-size: 13px; color: var(--dim); text-align: center; }
.upsell {
  display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--r); border: 1px solid rgba(198, 255, 0, 0.35);
  background: radial-gradient(100% 140% at 100% 0%, rgba(123, 92, 255, 0.25), transparent 60%), #11111b;
}
.upsell b { display: block; font: 700 16px/1.2 var(--f-display); }
.upsell > div > span { font-size: 13px; color: var(--muted); }
.upsell[hidden] { display: none; }

.fs { padding: 22px 24px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.fs h2 { font: 500 11px/1 var(--f-mono); letter-spacing: 0.16em; color: var(--lime); text-transform: uppercase; margin-bottom: 2px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 500; }
.input {
  width: 100%; padding: 11px 12px; border-radius: 10px; color: var(--text);
  font: 500 15px/1.2 var(--f-body); background: #07070d; border: 1px solid var(--line-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #4d4d60; }
.input:focus { outline: 0; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198, 255, 0, 0.15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-row { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; cursor: pointer; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line-2); text-align: center; font-size: 12px; color: var(--muted); transition: border-color 0.2s, color 0.2s; }
.opt i { display: block; height: 38px; border-radius: 8px; margin-bottom: 6px; }
.opt input:checked + span { border-color: var(--lime); color: var(--text); box-shadow: 0 0 0 2px rgba(198, 255, 0, 0.22); }
.opt input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.sw-neon { background: linear-gradient(135deg, #07070c 55%, #c6ff00 55%); }
.sw-suisse { background: radial-gradient(circle at 78% 78%, #ff3b1f 38%, #efebe3 39%); }
.sw-aurora { background: linear-gradient(135deg, #ff6fae, #3ee6ff); }
.sw-brutal { background: linear-gradient(135deg, #ffe500 60%, #1f3bff 60%); }
.seg { display: flex; padding: 4px; border-radius: 12px; background: #07070d; border: 1px solid var(--line-2); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; cursor: pointer; padding: 9px 4px; border-radius: 9px; text-align: center; font: 600 12px/1 var(--f-mono); color: var(--muted); }
.seg input:checked + span { background: var(--lime); color: #000; }
.seg input:focus-visible + span { outline: 2px solid var(--lime); }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type='color'] { width: 44px; height: 38px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: #07070d; cursor: pointer; }
.link-btn { font-size: 13px; color: var(--muted); text-decoration: underline; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--lime); width: 16px; height: 16px; flex: none; }
.panel-foot { padding: 22px 24px 40px; font-size: 12px; color: var(--dim); }

@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; }
  .st-panel { order: 0; border-right: 0; border-top: 1px solid var(--line); }
  .st-preview { position: static; }
  .st-stage { width: min(100%, calc(60vh * var(--r))); }
}

/* ---------------------------------------------------------------- dialogs */
dialog {
  margin: auto; padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 32px);
  color: var(--text); background: #101019; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.9);
}
dialog::backdrop { background: rgba(4, 4, 8, 0.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg { display: grid; gap: 18px; padding: 28px; }
.dlg h2 { font-size: 30px; }
.dlg p { color: var(--muted); font-size: 15px; }
.dlg ul { list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.dlg li::before { content: '✓'; color: var(--lime); font-weight: 700; margin-right: 10px; }
.dlg-price { font: 800 48px/1 var(--f-display); letter-spacing: -0.04em; }
.dlg-price small { font: 500 14px var(--f-body); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dlg-actions .btn { flex: 1; }
.export-holder { display: grid; place-items: center; background: #000; border-radius: 12px; overflow: hidden; }
.export-holder canvas { width: auto; height: auto; max-width: 100%; max-height: 46vh; }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--lime)); }
.status { font: 500 13px/1.4 var(--f-mono); color: var(--muted); }
.err, .dlg .err { color: #ff7b7b; font-size: 14px; }
.err:empty { display: none; }
.pay-note { font-size: 12px; color: var(--dim); text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translateX(-50%);
  padding: 12px 18px; border-radius: 999px; font-size: 14px;
  background: #1b1b28; border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  animation: fadeUp 0.5s var(--ease);
}

/* ------------------------------------------------------------ merci/legal */
.merci { position: relative; min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 40px 16px; text-align: center; }
.merci-card { max-width: 640px; display: grid; gap: 20px; justify-items: center; }
.merci h1 { font: 800 clamp(40px, 7vw, 84px)/0.95 var(--f-display); letter-spacing: -0.045em; }
.merci p { color: var(--muted); font-size: 17px; }
.copy { display: flex; gap: 8px; width: 100%; }
.copy .input { font: 500 12px var(--f-mono); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--lime); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.legal { padding: 70px 0 110px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font: 800 clamp(36px, 6vw, 64px)/1 var(--f-display); letter-spacing: -0.04em; margin-bottom: 30px; }
.legal h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--lime); }
.todo { padding: 1px 6px; border-radius: 4px; background: rgba(255, 77, 141, 0.16); color: #ff9cc0; font: 500 0.85em var(--f-mono); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}
