:root {
  --ink: #030303;
  --carbon: #121417;
  --graphite: #2a2e33;
  --text: #ecedee;
  --muted: #9aa0a6;
  --red: #C8161C;
  --red-bright: #e2252b;
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 1200px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); }
body {
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--text); }
img { max-width: 100%; }

.topbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px;
  padding: 28px var(--gutter);
  border-bottom: 1px solid var(--carbon);
}
.wordmark { font-weight: 700; letter-spacing: 0.28em; font-size: 0.95rem; }
.tag { font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; }

section { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

/* 2-4: headline, hero image, Driver-in-the-Loop line */
.hero { padding-top: clamp(40px, 7vh, 88px); }
h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.01em; margin: 0;
}
.subhead {
  margin: 12px 0 0; font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 400; color: #d2d5d9; letter-spacing: 0.01em;
}
.subhead::after { content: ""; display: block; width: 56px; height: 3px; background: var(--red); margin-top: 22px; }
.visual { margin: clamp(8px, 2vw, 24px) 0 0; }
.visual img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 66% 70% at 52% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 66% 70% at 52% 50%, #000 55%, transparent 100%);
}
.lede {
  max-width: 760px; margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.6; font-weight: 300; color: #d2d5d9;
}

/* 5: overlay still */
.overlay { padding-top: clamp(56px, 9vh, 104px); }
.overlay figure { margin: 0; }
.overlay img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--graphite); border-radius: 8px; background: var(--carbon);
}
.overlay figcaption {
  margin-top: 14px; font-family: "IBM Plex Mono", monospace; font-size: 0.82rem;
  letter-spacing: 0.04em; color: var(--muted);
}

/* 6: tiers */
.tiers { padding-top: clamp(56px, 9vh, 104px); }
.tiers-label { margin: 0 0 26px; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
.section-title {
  font-family: "IBM Plex Mono", monospace; text-transform: uppercase; font-weight: 500;
  letter-spacing: 0.14em; font-size: 0.78rem; color: var(--red-bright); margin: 0 0 22px;
}
.tiers ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px);
}
.tiers li { border-top: 2px solid var(--red); padding-top: 18px; }
.tiers h3 { margin: 0 0 10px; font-size: 1.25rem; font-weight: 600; }
.tiers p { margin: 0; line-height: 1.6; color: #c9ccd0; font-weight: 300; }

/* 7: mailing list */
.join { padding-top: clamp(56px, 9vh, 104px); padding-bottom: clamp(56px, 9vh, 104px); }
.signup {
  max-width: 640px;
  background: var(--carbon); border: 1px solid var(--graphite);
  border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 14px;
}
.form-title { margin: 0; font-weight: 600; font-size: 0.95rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--muted); }
input, textarea {
  font: inherit; font-size: 0.95rem; color: var(--text);
  width: 100%; background: var(--ink); border: 1px solid var(--graphite); border-radius: 6px; padding: 11px 12px;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
button {
  font: inherit; font-weight: 600; letter-spacing: 0.04em; cursor: pointer;
  background: var(--red); color: #fff; border: 0; border-radius: 6px; padding: 13px;
  transition: background 0.2s ease;
}
button:hover { background: var(--red-bright); }
.fineprint { margin: 0; font-size: 0.75rem; color: var(--muted); }

/* 8: footer */
.footer {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline;
  padding: 22px var(--gutter); border-top: 1px solid var(--carbon);
  font-size: 0.78rem; color: var(--muted);
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .tm { flex-basis: 100%; font-size: 0.7rem; color: #6c7177; }

/* Privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: clamp(32px, 6vh, 64px) 16px; line-height: 1.65; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.05rem; margin: 28px 0 6px; }
.doc p { color: #c9ccd0; margin: 0 0 12px; }
.doc .eff { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 880px) {
  .tiers ul { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .visual { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
}
