/* SuperCam — black and white, like the logo */
:root {
  --bg: #000;
  --fg: #fff;
  --text: #c9c9c9;
  --muted: #808080;
  --line: rgba(255, 255, 255, 0.13);
  --card: #0a0a0a;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(84px, 13vw, 170px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", "Futura", "Century Gothic", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

h1, h2, h3 { color: var(--fg); margin: 0; font-weight: 300; letter-spacing: -0.02em; }
h1 strong, h2 strong { font-weight: 700; }
h1 { font-size: clamp(2.7rem, 8.4vw, 6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.08; }
h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg); color: #000;
  font: inherit; font-weight: 500; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { padding: 0.6em 1.2em; font-size: 0.92rem; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; margin-right: auto; }
.brand img { height: 23px; width: auto; }
.links { display: flex; gap: 30px; }
.links a { color: var(--text); text-decoration: none; font-size: 0.98rem; font-weight: 400; transition: color 0.2s ease; }
.links a:hover { color: var(--fg); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 var(--section); text-align: center; overflow: hidden; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 30px; padding: 7px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); animation: pulse 2.4s ease-in-out infinite; }
.lede { max-width: 620px; margin: 28px auto 0; font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }

.mirror-wrap { position: relative; margin-top: clamp(56px, 9vw, 110px); max-width: 1040px; scroll-margin-top: 110px; }
.mirror-wrap::before {
  content: ""; position: absolute; inset: -8% -12% -18%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.09), transparent 72%);
  pointer-events: none;
}
.mirror { position: relative; width: 100%; height: auto; overflow: visible; }
.m-stem { fill: var(--fg); }
.m-frame { fill: none; stroke: var(--fg); stroke-width: 2.5; stroke-linejoin: round; }
.sky { fill: #101010; }
.ground { fill: #060606; }
.horizon { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.5; }
.edge { stroke: rgba(255, 255, 255, 0.3); stroke-width: 2; }
.lane { stroke: rgba(255, 255, 255, 0.75); stroke-width: 3; stroke-dasharray: 22 26; animation: road 0.9s linear infinite; }
.flank { fill: #1b1b1b; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; }
.car-body { fill: #000; stroke: var(--fg); stroke-width: 2.5; stroke-linejoin: round; }
.car-glass { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.5; stroke-linejoin: round; }
.car-light { fill: var(--fg); }
.car { transform-box: view-box; transform-origin: 0 0; opacity: 0; }
.car-m { animation: car-m 9s linear infinite; }
.car-l { animation: car-l 9s linear infinite; }

.mirror-labels {
  position: relative; display: grid; grid-template-columns: 27fr 46fr 27fr;
  margin-top: 18px;
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
}
.mirror-note { position: relative; margin-top: 14px; font-size: 0.82rem; color: #5c5c5c; }

/* the same distance curve drives both views: far away for a long time, then fast */
@keyframes car-m {
  0%   { transform: translate(585.6px, 270.2px) scale(0.03); opacity: 0; }
  4%   { opacity: 1; }
  30%  { transform: translate(528px, 298.9px) scale(0.15); }
  55%  { transform: translate(408px, 358.6px) scale(0.4); }
  72%  { transform: translate(216px, 454.2px) scale(0.8); }
  85%  { transform: translate(-216px, 669.3px) scale(1.7); opacity: 1; }
  86%, 100% { transform: translate(-216px, 669.3px) scale(1.7); opacity: 0; }
}
@keyframes car-l {
  0%   { transform: translate(277.5px, 270.2px) scale(0.03); opacity: 0; }
  4%   { opacity: 1; }
  30%  { transform: translate(247.5px, 298.9px) scale(0.15); }
  55%  { transform: translate(185px, 358.6px) scale(0.4); }
  72%  { transform: translate(85px, 454.2px) scale(0.8); }
  85%  { transform: translate(-140px, 669.3px) scale(1.7); opacity: 1; }
  86%, 100% { transform: translate(-140px, 669.3px) scale(1.7); opacity: 0; }
}
@keyframes road { to { stroke-dashoffset: 48; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.why { padding: 0 0 var(--section); text-align: center; }
.why p { margin-top: 26px; font-size: clamp(1.1rem, 2.1vw, 1.3rem); }

.features { padding-bottom: var(--section); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 30px 26px 32px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.card h3 { margin: 22px 0 10px; }
.card p { font-size: 1.02rem; }
.ico { width: 44px; height: 44px; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ico .fill { fill: var(--fg); stroke: none; }

.built { padding: var(--section) 0; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.steps li { padding-top: 22px; border-top: 1px solid var(--fg); }
.num { display: block; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.2em; color: var(--muted); }
.steps h3 { margin: 16px 0 10px; font-size: 1.7rem; font-weight: 300; }

.cars { padding: var(--section) 0; border-top: 1px solid var(--line); }
.sub { max-width: 620px; margin-top: 22px; font-size: clamp(1.08rem, 2vw, 1.25rem); }
.carlist { list-style: none; margin: clamp(36px, 5vw, 60px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.carlist li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.car-name { color: var(--fg); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 300; letter-spacing: -0.01em; }
.tag { flex: none; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--text); transition: border-color 0.2s ease, color 0.2s ease; }
a.tag:hover { border-color: var(--fg); color: var(--fg); }
.tag-on { background: var(--fg); border-color: var(--fg); color: #000; }

.waitlist { padding: var(--section) 0; border-top: 1px solid var(--line); text-align: center; }
.waitlist .sub { margin-left: auto; margin-right: auto; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; text-align: left; }
.form .full { grid-column: 1 / -1; }
.form label span { display: block; margin-bottom: 8px; font-size: 0.8rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.form input {
  width: 100%; padding: 15px 18px;
  background: var(--card); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-weight: 400; font-size: 1.05rem;
  transition: border-color 0.2s ease;
}
.form input::placeholder { color: #555; }
.form input:focus { outline: none; border-color: var(--fg); }
.form input.bad { border-color: #ff6b5e; }
.form .btn { margin-top: 8px; padding: 1.05em; font-size: 1.05rem; }
.form-status { grid-column: 1 / -1; min-height: 1.6em; text-align: center; font-size: 1rem; color: var(--fg); }
.form-note { grid-column: 1 / -1; text-align: center; font-size: 0.85rem; color: #6a6a6a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer { padding: 56px 0 64px; border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot-in img { height: 20px; width: auto; }
.tagline { color: var(--text); font-size: 1rem; }
.legal { max-width: 560px; font-size: 0.82rem; color: #6a6a6a; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 1.05rem; }
  .links { display: none; }
  .nav-in { height: 60px; }
  .brand img { height: 18px; }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .eyebrow { font-size: 0.68rem; letter-spacing: 0.08em; }
  .mirror-labels { letter-spacing: 0.16em; font-size: 0.68rem; }
  .m-frame { stroke-width: 4; }
  .lane { stroke-width: 5; }
}
@media (max-width: 520px) {
  .grid4 { grid-template-columns: 1fr; }
  .carlist li { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lane, .dot { animation: none; }
  .car-m { animation: none; opacity: 0; }
  .car-l { animation: none; opacity: 1; transform: translate(160px, 382.5px) scale(0.5); }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
