/* The page reads as a depth map: near (light) at the top, far (dark) at the bottom. */
:root {
  --near: #f3f4f6;
  --mid-near: #c9ccd2;
  --mid-far: #2a2d34;
  --far: #0d0f13;
  --ink: #0d0f13;
  --paper: #f3f4f6;
  --cut: #5b5bff;
  --muted-light: #5a5f69;
  --muted-dark: #9aa0aa;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--body);
  color: var(--ink);
  background: var(--near);
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cut); outline-offset: 3px; }
code, pre { font-family: var(--mono); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mark { font: 700 22px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.mark span { color: var(--cut); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted-light); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero h1 {
  margin: 0;
  max-width: 15ch;
  font: 700 clamp(44px, 7.4vw, 96px)/0.96 var(--display);
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 85;
}
.hero h1 em { font-style: normal; color: var(--cut); }
.hero p.lead { max-width: 56ch; margin: 28px 0 0; font-size: 20px; color: var(--muted-light); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  font: 500 16px/1 var(--body); text-decoration: none;
  border: 1.5px solid var(--ink);
}
.btn.solid { background: var(--ink); color: var(--paper); }
.btn:hover { transform: translateY(-1px); }

/* Signature: a source cut into shots, each rendered as a depth map. */
.strip { margin: 64px 0 0; }
.strip-track {
  position: relative; display: flex; height: 168px;
  border-radius: 14px; overflow: hidden; background: var(--far);
}
.shot { position: relative; height: 100%; }
.shot + .shot { border-left: 3px solid var(--cut); }
.shot.s1 { flex: 2.9; background: radial-gradient(60% 90% at 38% 70%, #fafafa 0%, #9a9a9a 38%, #2b2b2b 72%, #0a0a0a 100%); }
.shot.s2 { flex: 7.53; background: linear-gradient(90deg, #111 0%, #3a3a3a 30%, #d8d8d8 52%, #4a4a4a 70%, #0c0c0c 100%), #111; background-blend-mode: normal; }
.shot.s2::after { content: ""; position: absolute; inset: 0; background: radial-gradient(22% 55% at 54% 62%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%); }
.shot.s3 { flex: 2.53; background: linear-gradient(180deg, #050505 0%, #3d3d3d 45%, #bdbdbd 100%); }
.shot.s4 { flex: 3.67; background: radial-gradient(45% 70% at 70% 40%, #ededed 0%, #777 45%, #1c1c1c 80%); }
.shot.s5 { flex: 2.4; background: linear-gradient(135deg, #e6e6e6 0%, #6d6d6d 40%, #121212 100%); }
.playhead {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: rgba(255,255,255,.9); box-shadow: 0 0 12px rgba(255,255,255,.6);
  animation: play 12s linear infinite;
}
@keyframes play { from { left: 0; } to { left: 100%; } }
.strip-labels { display: flex; margin-top: 10px; font: 400 12px/1.4 var(--mono); color: var(--muted-light); }
.strip-labels span { flex: var(--f); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.strip-labels b { display: block; font-weight: 500; color: var(--ink); }
.strip-note { margin: 14px 0 0; font-size: 14px; color: var(--muted-light); }

/* Sections step down in depth */
.band { padding: 96px 0; }
.band h2 {
  margin: 0 0 40px; font: 700 clamp(32px, 4.2vw, 52px)/1.02 var(--display);
  letter-spacing: -0.03em; font-variation-settings: "wdth" 88;
}
.band.d1 { background: var(--mid-near); }
.band.d2 { background: var(--mid-far); color: var(--paper); }
.band.d3 { background: var(--far); color: var(--paper); }
.band.d2 .muted, .band.d3 .muted { color: var(--muted-dark); }
.muted { color: var(--muted-light); }

/* What comes back */
.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.file h3 { margin: 0 0 10px; font: 500 15px/1.3 var(--mono); }
.file p { margin: 0; }

/* Pricing */
.price { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.rate { font: 700 clamp(56px, 9vw, 120px)/0.9 var(--display); letter-spacing: -0.04em; }
.rate small { display: block; margin-top: 14px; font: 400 18px/1.4 var(--body); letter-spacing: 0; color: var(--muted-dark); }
.terms-list { margin: 0; padding: 0; list-style: none; }
.terms-list li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); }
.terms-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.terms-list strong { display: block; font-weight: 500; }
.examples { width: 100%; margin-top: 48px; border-collapse: collapse; font-size: 15px; }
.examples th, .examples td { padding: 10px 0; text-align: left; border-bottom: 1px solid rgba(255,255,255,.14); }
.examples th { font-weight: 500; color: var(--muted-dark); }
.examples td:last-child, .examples th:last-child { text-align: right; font-family: var(--mono); }

/* API */
.api { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
pre {
  margin: 0; padding: 22px; overflow-x: auto; border-radius: 12px;
  background: #16191f; border: 1px solid #262a32; font-size: 13.5px; line-height: 1.65; color: #d7dbe2;
}
pre .c { color: #7d8490; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 12px; }

/* Footer */
.foot { padding: 48px 0 56px; background: var(--far); color: var(--muted-dark); font-size: 14px; border-top: 1px solid #1d2026; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Legal pages */
.doc { padding: 40px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin: 24px 0 8px; font: 700 clamp(36px, 5vw, 56px)/1 var(--display); letter-spacing: -0.03em; }
.doc .updated { margin: 0 0 40px; font: 400 14px/1.4 var(--mono); color: var(--muted-light); }
.doc h2 { margin: 40px 0 10px; font: 600 22px/1.25 var(--display); letter-spacing: -0.01em; }
.doc p, .doc li { color: #2b2f37; }
.doc ul { padding-left: 20px; }

@media (max-width: 860px) {
  .files, .price, .api { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 40px 0 64px; }
  .band { padding: 72px 0; }
  .strip-track { height: 120px; }
  .strip-labels span:nth-child(n+3) { visibility: hidden; }
  .nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .playhead { animation: none; left: 38%; }
  .btn:hover { transform: none; }
}
