:root {
  --ground: #050505;
  --surface: #111113;
  --raised: #1c1c1e;
  --line: #2c2c2e;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #8e8e93;
  --yellow: #ffd60a;
  --orange: #ff8a3d;
  --green: #34c759;
  --radius: 24px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--faint); }
a:hover { text-decoration-color: var(--yellow); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

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

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(5 5 5 / 0.82); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark::after { content: ""; width: 24px; height: 14px; border-radius: 3px; background: var(--text); }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; font-weight: 600; margin: 0 0 18px; }
.eyebrow img { width: 36px; height: 36px; border-radius: 9px; }
h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 800; }
.bar { display: inline-block; white-space: nowrap; background: var(--text); color: transparent; border-radius: 0.12em; padding: 0 0.06em; line-height: 0.9; user-select: none; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 32px; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--text); color: var(--ground); font-weight: 700; text-decoration: none; }
.button.secondary { background: var(--raised); color: var(--text); }
.note { color: var(--faint); font-size: 14px; margin-top: 14px; }

.demo { position: relative; border-radius: 32px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 120px rgb(255 214 10 / 0.10), 0 0 0 1px rgb(255 255 255 / 0.06); aspect-ratio: 16 / 9; }
.demo video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo .chip { position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgb(0 0 0 / 0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 14px; font-weight: 600; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }

/* Sections */
section { padding: 64px 0; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 16px; }
.section-lede { color: var(--muted); font-size: 19px; max-width: 56ch; margin: 0 0 40px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid rgb(255 255 255 / 0.05); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.swatch { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--raised); }
.swatch span { display: block; width: 26px; height: 12px; border-radius: 3px; background: var(--yellow); }
.swatch.orange span { background: var(--orange); }
.swatch.green span { background: var(--green); }

.screens { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.screens figure { margin: 0; flex: 0 0 min(260px, 70vw); scroll-snap-align: start; }
.screens img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid rgb(255 255 255 / 0.06); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); }
.list li::before { content: ""; width: 14px; height: 8px; margin-top: 9px; border-radius: 2px; background: var(--text); }
.list strong { color: var(--text); font-weight: 600; }

.price { display: grid; gap: 4px; }
.price b { font-size: 28px; letter-spacing: -0.02em; }
.price small { color: var(--faint); font-size: 14px; }

/* Article pages */
.doc { max-width: 720px; padding: 56px 0 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: 26px; margin: 48px 0 12px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: #d1d1d6; }
.doc .meta { color: var(--faint); font-size: 15px; margin-top: -8px; }
.doc .summary { background: var(--surface); border-radius: var(--radius); padding: 8px 28px; margin: 32px 0; border: 1px solid rgb(255 255 255 / 0.05); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--text); font-weight: 600; }
.doc td { color: #d1d1d6; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }
.contact { background: var(--surface); border-radius: var(--radius); padding: 28px; margin-top: 40px; border: 1px solid rgb(255 255 255 / 0.05); }
.contact p { margin: 0 0 8px; }

/* Footer */
.site-footer { border-top: 1px solid rgb(255 255 255 / 0.06); padding: 32px 0 48px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 36px; }
  .features, .split { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-nav { gap: 14px; font-size: 14px; }
  .lede { font-size: 18px; }
  .card { padding: 22px; }
  .doc .summary { padding: 4px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
