/* ---------- Fonts (self-hosted: no Google requests, GDPR-friendly) ---------- */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --panel: #16161a;
  --line: #26262c;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #c6ff3d;      /* electric lime */
  --accent-ink: #0a0a0b;
  --clip-1: #7c5cff;      /* timeline clip colors, decorative only */
  --clip-2: #2dd4bf;
  --clip-3: #f472b6;
  --radius: 14px;
  --max: 1120px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(198,255,61,.0); }
.btn-primary:hover { box-shadow: 0 0 32px rgba(198,255,61,.35); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-block { width: 100%; }
.kf { width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); border-radius: 2px; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,10,11,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--font-display); letter-spacing: -0.02em; }
.logo img { width: 30px; height: 30px; }
.logo b { color: var(--accent); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; color: var(--accent-ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 5vw, 52px); margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1;
  background: radial-gradient(50% 60% at 50% 30%, rgba(198,255,61,.14), transparent 70%);
}
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: 13px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { font-size: clamp(44px, 9vw, 96px); margin-top: 20px; }
.hero .lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 560px; margin-top: 20px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 14px; color: var(--dim); font-size: 14px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Editor mockup (placeholder for demo video) ---------- */
.editor { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.editor-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.editor-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.editor-bar .mono { margin-left: auto; }
.viewer { position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.viewer video, .viewer .viewer-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer-fill { background: radial-gradient(60% 80% at 30% 40%, #2b2f45, #0c0d12 70%); }
.viewer-subject { position: absolute; left: 50%; top: 52%; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle at 40% 35%, #f7c7a3, #9a5b3d 70%); animation: zoompunch 3.2s cubic-bezier(.7,0,.2,1) infinite; }
.viewer-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.6); }
.viewer-tag.right { left: auto; right: 12px; color: var(--accent); }
@keyframes zoompunch { 0%, 35% { transform: translate(-50%,-50%) scale(1); } 45%, 85% { transform: translate(-50%,-50%) scale(2.1); } 100% { transform: translate(-50%,-50%) scale(1); } }
.timeline { position: relative; padding: 12px 12px 14px; display: grid; gap: 6px; background: var(--bg-2); }
.ruler { height: 14px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px); opacity: .9; }
.track { position: relative; height: 22px; border-radius: 4px; background: #1b1b20; }
.clip { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; }
.clip.c1 { left: 2%; width: 34%; background: var(--clip-1); }
.clip.c2 { left: 37%; width: 26%; background: var(--clip-2); }
.clip.c3 { left: 64%; width: 34%; background: var(--clip-1); }
.clip.a1 { left: 2%; width: 96%; background: #1f8f5f; opacity: .7; }
.clip.fx { left: 40%; width: 14%; background: var(--accent); }
.kf-row { position: absolute; inset: 0; }
.kf-row span { position: absolute; top: 50%; width: 9px; height: 9px; background: var(--accent); transform: translate(-50%,-50%) rotate(45deg); border-radius: 1px; }
.playhead { position: absolute; top: 0; bottom: 0; left: 10%; width: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: playhead 3.2s linear infinite; }
.playhead::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--accent); }
@keyframes playhead { from { left: 4%; } to { left: 96%; } }
@media (prefers-reduced-motion: reduce) { .viewer-subject, .playhead { animation: none; } }

/* ---------- Product cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 26px; }
.card p { color: var(--muted); }
.card .price { font: 700 22px/1 var(--font-display); margin-top: auto; }
.card .price s { color: var(--dim); font-weight: 500; font-size: 16px; margin-left: 8px; }
.card .tag { z-index: 2; position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.4 var(--font-body); background: var(--accent); color: var(--accent-ink); }
.card .tag.soon { background: var(--line); color: var(--muted); }
.card.featured { border-color: rgba(198,255,61,.45); background: linear-gradient(180deg, rgba(198,255,61,.07), var(--panel) 40%); }
.card-media { aspect-ratio: 16/10; border-radius: 10px; background: #0d0d10; border: 1px solid var(--line); position: relative; overflow: hidden; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.card li { display: flex; gap: 10px; align-items: baseline; }
.card li::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg) translateY(-2px); flex: none; }

/* blob tracker mini visual */
.blob { position: absolute; border: 1.5px solid var(--accent); border-radius: 2px; }
.blob::after { content: attr(data-l); position: absolute; top: -18px; left: -1px; font: 500 9px/1 var(--font-mono); color: var(--accent); white-space: nowrap; }
.blob-line { position: absolute; height: 1px; background: rgba(198,255,61,.6); transform-origin: 0 0; }
.dot-m { position: absolute; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

/* ---------- Before / after ---------- */
.ba { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); user-select: none; touch-action: pan-y; --pos: 50%; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer img, .ba-layer video { width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none; }
.ba-handle::after { content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 10px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; letter-spacing: 2px; white-space: nowrap; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; top: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.65); z-index: 2; }
.ba-label.l { left: 12px; } .ba-label.r { right: 12px; color: var(--accent); }
.ph-after { background: radial-gradient(18% 32% at 55% 48%, #f7c7a3, #9a5b3d 60%, transparent 62%), radial-gradient(70% 90% at 70% 40%, #ff7a59, #5b2bd6 60%, #120a2a); }
.ph-before { background: radial-gradient(12% 21% at 55% 48%, #f7c7a3, #9a5b3d 60%, transparent 62%), radial-gradient(70% 90% at 70% 40%, #ff7a59, #5b2bd6 60%, #120a2a); filter: grayscale(.85) contrast(.7) brightness(.8); }
.ph-text { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(18px,3vw,28px)/1 var(--font-display); color: rgba(255,255,255,.85); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step .mono { color: var(--accent); }
.step h3 { font-size: 24px; margin: 10px 0 8px; }
.step p { color: var(--muted); }

/* ---------- Social proof placeholder ---------- */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } }
.quote { border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); }
.quote strong { display: block; color: var(--text); margin-top: 14px; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final .box { border: 1px solid var(--line); border-radius: 24px; padding: 56px 24px; background: radial-gradient(60% 100% at 50% 0%, rgba(198,255,61,.12), transparent 70%), var(--bg-2); }
.final h2 { font-size: clamp(34px, 6vw, 64px); }
.final p { color: var(--muted); margin: 14px auto 28px; max-width: 520px; }

/* ---------- Free landing ---------- */
.free-page main { padding: 28px 0 48px; }
.free-wrap { max-width: 560px; }
.free-page h1 { font-size: clamp(38px, 9vw, 60px); margin: 16px 0 12px; }
.free-page .sub { color: var(--muted); font-size: 18px; }
.free-page .editor { margin: 24px 0; }
.benefits { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.benefits .kf { color: var(--accent); margin-top: 8px; }

/* ---------- Form ---------- */
.form-card { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 22px; }
.form-card h2 { font-size: 24px; margin-bottom: 4px; }
.form-card .hint { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 400 16px/1 var(--font-body); appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--text); }
.form-error { color: #ff8a8a; font-size: 14px; margin-top: 10px; min-height: 1em; }
.form-legal { color: var(--dim); font-size: 12.5px; margin-top: 12px; }
.success { display: none; text-align: center; padding: 8px 0; }
.success h2 { font-size: 28px; margin: 12px 0 8px; }
.success p { color: var(--muted); margin-bottom: 20px; }
.success .big-kf { width: 46px; height: 46px; margin: 8px auto 0; background: var(--accent); transform: rotate(45deg); border-radius: 8px; box-shadow: 0 0 40px rgba(198,255,61,.5); }
.form-card.done form { display: none; }
.form-card.done .success { display: block; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Legal pages ---------- */
.legal main { padding: 48px 0 80px; }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--muted); }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--text); }
.todo { background: rgba(198,255,61,.15); color: var(--accent); padding: 0 4px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { margin: 0 0 12px; color: var(--text); font: 600 14px/1 var(--font-body); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer .logo { color: var(--text); }
.site-footer a:hover { color: var(--text); }
.site-footer button.linklike { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-align: left; }
.site-footer button.linklike:hover { color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; }
.socials svg { width: 18px; height: 18px; fill: currentColor; fill-rule: evenodd; }
.legal-line { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; color: var(--dim); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }

/* ---------- Cookie banner ---------- */
.cc { position: fixed; z-index: 100; left: 12px; right: 12px; bottom: 12px; max-width: 520px; margin-left: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(22,22,26,.97); backdrop-filter: blur(10px); padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); font-size: 14px; color: var(--muted); display: none; }
.cc.show { display: block; }
.cc strong { color: var(--text); display: block; margin-bottom: 6px; font-size: 15px; }
.cc a { color: var(--text); }
.cc-actions { display: flex; gap: 8px; margin-top: 14px; }
.cc-actions .btn { flex: 1; min-height: 44px; font-size: 14px; padding: 0 14px; }
