:root {
--bg: #141414;
--surface: #1b1b1b;
--raise: #222222;
--line: #2b2b2b;
--line-soft: #242424;
--fg: #f3f0ec;
--muted: #8f8a85;
--accent: #3b82f6;
--accent-ink: #1a0707;
--danger: #ff4b4b;
--amber: #ffb04a;
--mint: #4fd6a4;
--sky: #5aa9ff;
--font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
--font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--fg);
font-family: var(--font-body);
font-size: 16px;
line-height: 1.55;
padding-left: max(16px, env(safe-area-inset-left, 0px));
padding-right: max(16px, env(safe-area-inset-right, 0px));
padding-block: 0 48px;
overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin-inline: auto; }
.mono { font-family: var(--font-mono); }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.mark { width: 26px; height: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.mark i { display: block; background: var(--fg); border-radius: 2px; }
.mark i.hot { background: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding-inline: 20px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { background: var(--raise); border-color: #3a3a3a; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #ff6262; border-color: #ff6262; }
.btn.sm { height: 38px; padding-inline: 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; padding-block: 56px 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(79, 214, 164, .15); }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 0.95; letter-spacing: -0.035em; margin: 20px 0 22px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 34em; margin: 0 0 30px; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Shortener demo */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; }
.demo-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.demo-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.demo-top span { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px; font-family: var(--font-mono); font-size: 13.5px; min-height: 76px; word-break: break-all; line-height: 1.5; }
.caret { display: inline-block; width: 7px; height: 1.1em; background: var(--accent); vertical-align: -0.18em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.arrow { display: flex; justify-content: center; padding-block: 12px; color: var(--accent); }
.result { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border: 1px solid var(--accent); border-radius: 10px; padding: 14px; font-family: var(--font-mono); font-size: 15px; }
.result .short { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result .short b { color: var(--accent); font-weight: 500; }
.chip { flex: none; font-family: var(--font-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 999px; background: var(--raise); color: var(--muted); }

/* Cell band */
.band { margin-block: 24px 8px; }
.cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 6px; }
.cell { aspect-ratio: 1; border-radius: 3px; background: var(--raise); }
.band-note { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding-top: 96px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 36px; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1; letter-spacing: -0.03em; margin: 14px 0 0; text-wrap: balance; }
.sec-head p { color: var(--muted); margin: 0; max-width: 30em; text-wrap: pretty; }

/* Feature grid: shared hairlines */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--line); gap: 1px; }
.feat { background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.viz { height: 140px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; padding: 14px; }
.feat h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }

.v-slug { font-family: var(--font-mono); font-size: 14px; display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.v-slug .pre { color: var(--muted); }
.v-slug .slug { color: var(--accent); }
.v-bars { display: flex; align-items: flex-end; gap: 9px; height: 100%; width: 100%; padding-inline: 8px; }
.v-bars i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; height: 40%; transform-origin: bottom; }
.v-bars i:nth-child(odd) { background: var(--amber); }
.v-qr { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; width: 112px; height: 112px; position: relative; }
.v-qr i { background: var(--fg); border-radius: 1.5px; }
.v-qr .logo { position: absolute; inset: 38% ; background: var(--accent); border-radius: 5px; box-shadow: 0 0 0 4px var(--bg); }
.v-ring { position: relative; width: 108px; height: 108px; }
.v-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.v-ring .t { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); line-height: 1.3; }
.v-ring .t b { display: block; font-size: 22px; color: var(--fg); font-weight: 500; }
.v-count { display: flex; gap: 28px; font-family: var(--font-mono); }
.v-count div span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.v-count div b { font-size: 34px; font-weight: 500; font-variant-numeric: tabular-nums; }
.v-count div:last-child b { color: var(--mint); }
.v-log { width: 100%; font-family: var(--font-mono); font-size: 12px; display: grid; gap: 7px; }
.v-log div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; background: var(--surface); border-radius: 6px; white-space: nowrap; }
.v-log div span:first-child { overflow: hidden; text-overflow: ellipsis; }
.v-log .bot { color: var(--muted); text-decoration: line-through; }
.v-log .bot span:last-child { color: var(--amber); text-decoration: none; }
.v-log .ok span:last-child { color: var(--mint); }

/* ---------- Dashboard preview ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.panel-head .chip { background: var(--bg); }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th { text-align: left; font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 20px; border-bottom: 1px solid var(--line); }
td { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 14.5px; }
tr:last-child td { border-bottom: 0; }
td .t { font-weight: 600; }
td .s { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
td .o { display: block; font-size: 12.5px; color: var(--muted); max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
th.n { text-align: right; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.b-on { background: rgba(79, 214, 164, .14); color: var(--mint); }
.b-warn { background: rgba(255, 176, 74, .14); color: var(--amber); }
.b-off { background: rgba(255, 75, 75, .14); color: var(--danger); }
.spark { width: 84px; height: 26px; display: block; margin-left: auto; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.step .tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.step h3 { margin: 0; font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step code { font-family: var(--font-mono); font-size: 12.5px; background: var(--bg); border: 1px solid var(--line-soft); padding: 10px 12px; border-radius: 8px; color: var(--fg); overflow-x: auto; white-space: nowrap; display: block; }

/* ---------- CTA ---------- */
.final { margin-top: 96px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: clamp(28px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; overflow: hidden; position: relative; }
.final h2 { margin-top: 0; font-size: clamp(2.1rem, 5vw, 3.8rem); }
.final p { color: var(--muted); margin: 16px 0 28px; max-width: 28em; }
.dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--raise); display: block; }

footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
.hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 32px; }
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sec-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.steps { grid-template-columns: minmax(0, 1fr); }
.final { grid-template-columns: minmax(0, 1fr); }
.cells { grid-template-columns: repeat(16, 1fr); }
}
@media (max-width: 640px) {
.nav-links a:not(.btn) { display: none; }
.grid { grid-template-columns: minmax(0, 1fr); }
section { padding-top: 72px; }
.cells { grid-template-columns: repeat(10, 1fr); gap: 4px; }
.cells .cell:nth-child(n+41) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
.caret { animation: none; }
}