:root {
  --bg: #0b0c10;
  --bg2: #111319;
  --panel: #161921;
  --line: #262a35;
  --text: #f2f3f6;
  --muted: #9aa1b0;
  --brand: #e03a52;
  --brand-hi: #ff5a70;
  --cyan: #3fe0ff;
  --gold: #ffc94a;
  --green: #39e58c;
  --radius: 18px;
  --display: 'Anton', 'Impact', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.fine { color: var(--muted); font-size: 0.8em; margin-top: 10px; }
.center { text-align: center; }
.grow { flex: 1; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.85em 1.4em; border-radius: 999px; border: 0; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; transition: background 0.15s, transform 0.1s; white-space: nowrap; }
.btn:hover { background: var(--brand-hi); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--muted); background: rgba(255, 255, 255, 0.04); }
.btn.small { padding: 0.55em 1em; font-size: 0.88em; }
.btn:disabled { opacity: 0.5; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 0.45em 0.95em; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 0.88em; }
.chips button:hover { border-color: var(--muted); }
.chips button.on { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc(50% - 600px)); background: rgba(11, 12, 16, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.scrolled { border-color: var(--line); }
.nav nav { display: flex; gap: 22px; flex: 1; justify-content: center; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.92em; }
.nav nav a:hover { color: var(--text); }
.mark { display: inline-flex; align-items: center; text-decoration: none; }
.mark img { height: 30px; width: auto; display: block; }
footer .mark img { height: 36px; }

/* Sections */
main > section, footer { padding-left: max(16px, calc(50% - 600px)); padding-right: max(16px, calc(50% - 600px)); }
.section { padding-top: 110px; }
.head { max-width: 720px; margin-bottom: 36px; }
.eyebrow { color: var(--brand-hi); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78em; margin-bottom: 10px; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02; }
h1 { font-size: clamp(2.6em, 5.6vw, 4.6em); margin-bottom: 20px; }
h1 em { font-style: normal; color: var(--brand); }
h2 { font-size: clamp(2em, 4vw, 3.2em); margin-bottom: 14px; }
h3 { font-size: 1.12em; margin-bottom: 6px; }
.lead { font-size: 1.15em; color: #c9cdd6; max-width: 34em; }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

/* Hero and the playable demo */
.hero { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 56px; align-items: center; padding-top: 56px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.demo { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 14px; box-shadow: 0 30px 80px rgba(224, 58, 82, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.02); }
.demo-top { margin-bottom: 12px; }
.wall { position: relative; aspect-ratio: 1; width: min(100%, max(320px, calc(100vh - 290px))); margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000; touch-action: manipulation; }
.wall canvas { width: 100%; height: 100%; cursor: crosshair; }
.wall .banner { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); font-weight: 700; font-size: 0.85em; white-space: nowrap; display: none; pointer-events: none; }
.wall .hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); font-weight: 700; font-size: 0.9em; pointer-events: none; white-space: nowrap; transition: opacity 0.3s; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.wall .hint.good { color: var(--green); }
.wall .hint.bad { color: #ff8b98; }
.wall .over { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(0, 0, 0, 0.6); text-align: center; padding: 20px; }
.wall .over.show { display: flex; }
.wall .over b { font-family: var(--display); font-size: 2.2em; text-transform: uppercase; font-weight: 400; }
.demo-bottom { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.scores { display: flex; gap: 8px; flex: 1; min-width: 200px; }
.score { flex: 1; padding: 8px 12px; border-radius: 12px; background: var(--bg2); border-left: 4px solid var(--line); min-width: 0; }
.score.active { border-left-color: var(--brand); background: #1d2029; }
.score .nm { font-weight: 700; font-size: 0.9em; }
.score .pts { font-family: var(--display); font-size: 1.6em; line-height: 1.1; }
.score .sub { color: var(--muted); font-size: 0.75em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-cap { color: var(--muted); font-size: 0.82em; margin-top: 10px; text-align: center; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 80px; padding: 0 !important; margin-left: max(16px, calc(50% - 600px)); margin-right: max(16px, calc(50% - 600px)); }
.stats div { background: var(--bg); padding: 22px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.4em; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 0.9em; }

/* Videos */
.videos { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.phone { width: min(300px, 80vw); text-align: center; }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 34px; border: 8px solid #1d2029; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.phone figcaption { margin-top: 14px; font-weight: 700; }

/* Library */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
#planChips button.on { background: var(--gold); border-color: var(--gold); }
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.card { position: relative; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); padding: 0; text-align: left; transition: transform 0.15s, border-color 0.15s, opacity 0.2s, filter 0.2s; }
.card:hover { transform: translateY(-3px); border-color: var(--muted); }
.card .art { aspect-ratio: 1; background: #000 center / cover; }
.card .meta { padding: 10px 12px 12px; }
.card b { display: block; font-size: 0.95em; }
.card span { color: var(--muted); font-size: 0.78em; }
.card .tag { position: absolute; top: 8px; right: 8px; font-size: 0.7em; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.7); color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.card.out { opacity: 0.35; filter: grayscale(1); }
.card.hidden { display: none; }

/* How it works */
.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 0.6em 1.2em; border-radius: 999px; font-weight: 700; color: var(--muted); }
.tabs button.on { background: var(--text); color: var(--bg); }
.how .panel { display: none; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.how .panel.on { display: grid; animation: rise 0.35s ease; }
.how img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Feature grids */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.hw, .grid.four { grid-template-columns: repeat(4, 1fr); }
.grid article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid article > span { font-size: 1.8em; display: block; margin-bottom: 12px; }
.grid p { color: var(--muted); font-size: 0.95em; }

/* Hardware */
.rig { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 24px; margin-bottom: 20px; }
.rig svg { width: 100%; height: auto; }
.rig .t { fill: var(--text); font: 600 12px 'Inter', sans-serif; }
.rig .t.muted { fill: var(--muted); font-weight: 400; }
.rig .t.gold { fill: var(--gold); }
.rig .ticks { margin-top: 0; }
.kit { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 24px; margin-bottom: 20px; }
.kit-controls { display: grid; gap: 20px; align-content: start; }
.kit-controls label { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-weight: 600; font-size: 0.95em; }
.kit-controls output { font-weight: 800; color: var(--cyan); }
.kit-controls input { grid-column: 1 / -1; width: 100%; accent-color: var(--brand); height: 28px; }
.kit-controls .lbl { display: block; font-weight: 600; font-size: 0.95em; margin-bottom: 8px; }
.kit table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
.kit th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.85em; padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.kit td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kit td span { display: block; color: var(--muted); font-size: 0.85em; }
.kit .n { text-align: right; white-space: nowrap; }
.kit tfoot td { border-bottom: 0; font-weight: 800; padding-top: 14px; }
.kit tfoot .n { color: var(--green); font-size: 1.15em; }
.specs p { font-size: 0.9em; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.sliders { display: grid; gap: 20px; }
.sliders label { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-weight: 600; font-size: 0.95em; }
.sliders output { font-weight: 800; color: var(--cyan); }
.sliders input { grid-column: 1 / -1; width: 100%; accent-color: var(--brand); height: 28px; }
.result { background: var(--bg2); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.result > b { font-family: var(--display); font-weight: 400; font-size: 3.6em; line-height: 1.05; color: var(--green); }
.bars { display: grid; gap: 6px; margin: 16px 0 10px; }
.bar { height: 14px; border-radius: 7px; background: var(--green); width: 0; transition: width 0.3s; }
.bar.plan { background: var(--brand); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.plan.best { border-color: var(--brand); box-shadow: 0 20px 60px rgba(224, 58, 82, 0.18); }
.plan .flag { position: absolute; top: -12px; left: 28px; background: var(--brand); padding: 3px 12px; border-radius: 999px; font-size: 0.75em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.plan h3 { font-size: 1.3em; }
.plan .price { font-family: var(--display); font-size: 3em; line-height: 1.1; margin: 10px 0 2px; }
.plan .price small { font-family: 'Inter', sans-serif; font-size: 0.32em; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; margin: 18px 0 24px; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li.no { color: #5b6170; text-decoration: line-through; }
.plan .count { color: var(--muted); font-size: 0.85em; }

/* Sign-up and branding preview */
.signup-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
form { display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9em; }
form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 0.7em 0.85em; outline: none; font-weight: 400; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-hi); }
input.bad { border-color: var(--brand); }
.file { position: relative; display: block; background: var(--bg2); border: 1px dashed var(--line); border-radius: 12px; padding: 0.7em 0.85em; color: var(--muted); font-weight: 400; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-weight: 600; }
.form-msg.good { color: var(--green); }
.form-msg.bad { color: #ff8b98; }
.preview { position: sticky; top: 90px; }
.tablet { background: #050608; border: 10px solid #1d2029; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.tbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0d0f14; border-bottom: 1px solid var(--line); font-size: 0.85em; }
.tbar img { height: 26px; max-width: 110px; object-fit: contain; }
.tbar img:not([src]), .tbar img[src=''] { display: none; }
.tname { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.tbar .pill { background: #1b4d33; color: #8ff0bb; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 0.85em; white-space: nowrap; }
.tbar .time { font-family: var(--display); font-size: 1.3em; }
.tablet canvas { width: 100%; aspect-ratio: 16 / 10; cursor: crosshair; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 820px; }
.faq summary { font-weight: 700; font-size: 1.08em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--brand-hi); font-size: 1.4em; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin-top: 10px; max-width: 46em; }

footer { margin-top: 120px; padding-top: 40px; padding-bottom: 48px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

/* Smaller screens */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .how .panel.on, .calc, .signup-grid, .rig, .kit { grid-template-columns: 1fr; }
  .grid, .grid.hw, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .preview { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .nav { justify-content: space-between; }
  .section { padding-top: 80px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .grid, .grid.hw, .grid.four, form .two { grid-template-columns: 1fr; }
  .library { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .calc, form, .rig, .kit { padding: 18px; }
  .kit td, .kit th { padding-left: 4px; padding-right: 4px; }
  .tabs { display: flex; border-radius: 18px; }
  .tabs button { flex: 1; padding: 0.6em 0.5em; font-size: 0.85em; }
  .result > b { font-size: 2.8em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
