/* TwinkleCam v0. Tokens from launch/LANDING_DESIGN.md */
:root {
  --ground: #0E1F18;
  --ground-2: #112519;
  --surface: #16302A;
  --surface-2: #1B382F;
  --line: rgba(251, 246, 236, 0.13);
  --ink: #FBF6EC;
  --muted: rgba(251, 246, 236, 0.74);
  --gold: #FFD27A;
  --gold-ink: #1C1405;
  --rec: #FF4D4D;
  --radius: 16px;
  --wrap: 1160px;
  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 64px, var(--wrap)); } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 16px; }

/* Nav */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14, 31, 24, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--f-head); letter-spacing: -0.01em; min-height: 44px; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 12px rgba(255, 77, 77, 0.8); }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a.l { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 12px 0; background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 1px; transition: background-size .2s, color .2s; }
.top nav a.l:hover { color: var(--ink); background-size: 100% 1px; }
@media (max-width: 860px) { .top nav a.l { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font: 700 16px/1 var(--f-body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 210, 122, 0.22); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.line { background: transparent; color: var(--ink); border: 1px solid rgba(251, 246, 236, 0.35); }
.btn.line:hover { border-color: var(--gold); box-shadow: none; }
.btn svg { width: 18px; height: 18px; }

/* Type */
h1, h2, h3 { font-family: var(--f-head); letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.0; font-weight: 800; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; font-weight: 800; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 36ch; margin-top: 22px; }
.kicker { font: 500 13px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; display: block; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

section { padding: clamp(72px, 10vw, 128px) 0; }
section + section { border-top: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 112px); }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 0.95fr 1.2fr; gap: 64px; } }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 520px) { .hero .actions .btn { width: 100%; } }

/* Camera frame */
.cam { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #050807; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; }
.hud { position: absolute; inset: 0; pointer-events: none; color: #fff; font: 500 clamp(10px, 1.15vw, 13px)/1 var(--f-mono); letter-spacing: 0.05em; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
.hud span { position: absolute; display: flex; align-items: center; gap: 8px; }
.hud .tl { top: 14px; left: 16px; }
.hud .bl { bottom: 14px; left: 16px; }
.hud .tr { top: 12px; right: 14px; font: 700 11px/1 var(--f-body); letter-spacing: 0.02em; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.35); padding: 5px 9px; border-radius: 999px; text-shadow: none; }
.hud .rec { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: rec 1.4s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: 0.15; } }
.cam .pause { position: absolute; right: 10px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0.75; }
.cam .pause:hover { opacity: 1; }
.cam .pause svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9)); }

/* Steps */
.steps { display: grid; gap: 20px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step b { display: block; font: 500 13px/1 var(--f-mono); color: var(--gold); letter-spacing: 0.08em; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 12px 0 0; }

.pair { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 860px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair .cam { aspect-ratio: 16 / 10; box-shadow: none; }
.pair .cam img { transition: transform .5s ease; }
.pair .cam:hover img { transform: scale(1.025); }

/* Real */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .split { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.split .body p { color: var(--muted); font-size: 18px; }
.note { border: 1px solid rgba(255, 210, 122, 0.45); border-radius: var(--radius); padding: 28px; background: rgba(255, 210, 122, 0.05); }
.note h3 { margin-bottom: 10px; }
.note p { color: var(--muted); margin: 0; }

/* Scenes */
.scenes { display: grid; gap: 20px; }
@media (min-width: 860px) { .scenes { grid-template-columns: 1.3fr 1fr; } }
.scene-lead { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.scene-lead .cam { border: 0; border-radius: 0; box-shadow: none; }
.scene-lead .txt { padding: 24px 28px 28px; }
.scene-lead .txt p { color: var(--muted); margin: 8px 0 0; }
.scene-list { display: grid; gap: 12px; align-content: start; }
.scene-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; }
.scene-row p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.tag { flex: none; font: 500 11px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.on { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
@media (max-width: 520px) { .scene-row { flex-direction: column; align-items: flex-start; } }

/* Pricing */
.prices { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); } }
.price { display: flex; flex-direction: column; padding: 32px 28px; position: relative; }
.price.best { background: var(--surface-2); border-color: rgba(255, 210, 122, 0.6); }
.price .badge { position: absolute; top: -13px; left: 28px; background: var(--gold); color: var(--gold-ink); font: 700 12px/1 var(--f-body); padding: 7px 12px; border-radius: 999px; }
.price .amt { font: 800 46px/1 var(--f-head); letter-spacing: -0.03em; margin: 18px 0 4px; }
.price .amt small { font: 500 15px/1 var(--f-body); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.price li { padding-left: 28px; position: relative; color: var(--muted); }
.price li strong { color: var(--ink); font-weight: 600; }
.price li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.price .btn { margin-top: auto; width: 100%; }
.price-notes { margin-top: 28px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }

/* Close */
.close { text-align: center; background: radial-gradient(60% 80% at 50% 0%, rgba(255, 210, 122, 0.12), transparent 70%); }
.close h2 { max-width: 16ch; margin-inline: auto; }
.close p { color: var(--muted); max-width: 46ch; margin: 18px auto 32px; font-size: 18px; }

/* Docs */
.doc { padding-top: clamp(48px, 7vw, 88px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.doc .updated { color: var(--muted); font: 500 13px/1.4 var(--f-mono); margin-bottom: 40px; }
.doc h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 44px 0 14px; letter-spacing: -0.015em; }
.doc p, .doc li { color: rgba(251, 246, 236, 0.84); }
.doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--gold); }
.doc .short { font-size: 19px; border-left: 3px solid var(--gold); padding-left: 18px; margin-bottom: 32px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; }
footer .wrap { display: grid; gap: 28px; }
@media (min-width: 860px) { footer .wrap { grid-template-columns: 1.2fr 1fr; } }
footer .ai { color: var(--muted); max-width: 52ch; margin: 12px 0 0; }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 22px; align-content: start; }
@media (min-width: 860px) { footer .links { justify-content: flex-end; } }
footer .links a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer .links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
footer .legal { grid-column: 1 / -1; color: rgba(251, 246, 236, 0.55); font-size: 13px; border-top: 1px solid var(--line); padding-top: 20px; }

/* Entrance */
[data-enter] > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
[data-enter] > *:nth-child(2) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-enter] > *, .hud .rec { animation: none; }
  .btn, .pair .cam img, .top nav a.l { transition: none; }
}
