:root {
  --bg: #f7f6f3;
  --ink: #16151a;
  --text: #46434c;
  --muted: #56535c;
  --faint: #8b8892;
  --line: #d9d6d0;
  --line-soft: #e0ddd6;
  --accent: oklch(0.52 0.19 10);
  --gutter: clamp(20px, 4vw, 48px);
  --mono: 'Geist Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a, button { cursor: pointer; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
input::placeholder { color: var(--faint); }
[hidden] { display: none !important; }

@keyframes sbIn { from { opacity: 0; transform: translateX(-24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sbPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.page { font-family: 'Onest', system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; }

/* Header */
.header { max-width: 1200px; width: 100%; margin: 0 auto; padding: 24px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 28px; width: auto; display: block; }
.brand-fallback { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link { font-size: 14px; padding: 10px 14px; color: var(--muted); }
.nav-link:hover { color: var(--ink); }
.nav-signin { font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); white-space: nowrap; }
.nav-signin:hover { border-color: var(--ink); color: var(--ink); }

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) var(--gutter) 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
h1 { margin: 24px 0 0; font-weight: 500; font-size: clamp(44px, 7.4vw, 104px); line-height: 0.98; letter-spacing: -0.045em; max-width: 13ch; text-wrap: balance; }
.hero-row { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: end; }
.lead { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text); max-width: 34ch; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
.btn { font-size: 15px; font-weight: 500; padding: 15px 24px; border-radius: 999px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

/* Animated flow */
.flow-section { padding: clamp(56px, 8vw, 96px) var(--gutter) 0; width: 100%; }
.flow { min-height: 420px; display: flex; flex-direction: column; gap: 28px; }
.flow-source { display: flex; flex-direction: column; gap: 10px; }
.flow-labels { display: flex; justify-content: space-between; gap: 12px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.label-dark { color: var(--ink); }
.bar { position: relative; height: 56px; border-radius: 12px; overflow: hidden; background: repeating-linear-gradient(90deg, #e7e4de 0 2px, transparent 2px 7px), #efece7; border: 1px solid var(--line-soft); }
.bar-cut { position: absolute; top: 0; bottom: 0; background: var(--accent); opacity: .85; border-radius: 3px; }
.bar-head { position: absolute; top: -2px; bottom: -2px; left: 0; width: 2px; background: var(--ink); }
.bar-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(22, 21, 26, .04); }
.clips { display: flex; gap: 12px; overflow: hidden; min-height: 300px; -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent); mask-image: linear-gradient(90deg, #000 75%, transparent); }
.tile { flex: 0 0 clamp(128px, 15vw, 156px); display: flex; flex-direction: column; gap: 10px; }
.tile-card { aspect-ratio: 9 / 16; border-radius: 14px; position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, #ebe8e2 0 10px, #e4e1da 10px 20px); border: 1px solid var(--line-soft); transition: background .6s; }
.tile-id, .tile-len, .tile-from { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.tile-id { position: absolute; left: 12px; top: 12px; }
.tile-len { position: absolute; right: 12px; top: 12px; }
.tile-info { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.tile-views { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile-status { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tile-dot { width: 6px; height: 6px; border-radius: 50%; background: #c9c6ce; flex: none; }
.tile--live { animation: sbIn .6s cubic-bezier(.2, .8, .2, 1); }
.tile--live .tile-card { background: var(--ink); border-color: var(--ink); }
.tile--live .tile-id, .tile--live .tile-len, .tile--live .tile-from { color: #a9a6af; }
.tile--live .tile-views { color: var(--bg); }
.tile--live .tile-dot { background: var(--accent); animation: sbPulse 1.2s infinite; }
.flow-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.total { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* Steps */
.steps-section { padding: clamp(88px, 12vw, 160px) var(--gutter) 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 48px 40px; }
.steps h2 { margin: 0; font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; max-width: 12ch; }
.step { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h3 { margin: 0; font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* Case */
.case-section { padding: clamp(88px, 12vw, 160px) var(--gutter) 0; }
.case { background: var(--ink); color: var(--bg); border-radius: 24px; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 48px; }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; align-items: baseline; }
.case-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #a9a6af; }
.case-head p { margin: 0; font-size: 16px; line-height: 1.55; color: #c9c6ce; max-width: 46ch; text-wrap: pretty; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-value { font-size: clamp(56px, 7vw, 96px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat-accent { color: oklch(0.72 0.15 10); }
.stat-label { font-size: 15px; color: #a9a6af; }

/* Beta form */
.beta-section { padding: clamp(88px, 12vw, 160px) var(--gutter) clamp(72px, 10vw, 128px); }
.beta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; align-items: end; }
.beta-copy { display: flex; flex-direction: column; gap: 20px; }
.beta-copy h2 { margin: 0; font-weight: 500; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em; max-width: 14ch; text-wrap: balance; }
.beta-copy p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 40ch; text-wrap: pretty; }
.lead-form { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.lead-form input[type="email"] { flex: 1 1 180px; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 12px 16px; color: var(--ink); }
.lead-form button { font: inherit; font-size: 15px; font-weight: 500; padding: 13px 22px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }
.lead-form button:hover { background: var(--accent); }
.lead-form button:disabled { opacity: .6; cursor: default; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-sent { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 16px; }
.lead-sent .eyebrow-dot { width: 8px; height: 8px; }
.lead-error { margin: 14px 0 0 20px; font-size: 14px; color: var(--accent); }
.beta-signin { margin: 14px 0 0 20px; font-size: 14px; color: var(--faint); }
.beta-signin a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
  .nav-link { display: none; }
  .lead-form { border-radius: 28px; }
  .lead-form button { flex: 1 1 100%; }
}

/* Footer */
.footer { border-top: 1px solid var(--line-soft); }
.footer-row { max-width: 1200px; margin: 0 auto; padding: 24px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint); }
.footer-row a { color: var(--faint); }
.footer-row a:hover { color: var(--ink); }
