/* =============================================================
   CAR PEN AUTOMOTIVE — base: tokens, reset, buttons, typography
   ============================================================= */
:root {
  --bg: #050505;
  --panel: rgba(12, 12, 13, 0.62);
  --panel-solid: rgba(14, 14, 15, 0.94);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f7f7f7;
  --muted: #c4c4c4;
  --dim: #8a8a8a;
  --yellow: #ffd400;
  --yellow-2: #ffb900;
  --danger: #ff2b2b;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  --font-head: "Montserrat", Inter, Arial, sans-serif;
  --font-body: Inter, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 4px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* Restore native semantics: several components below set an explicit
   `display` on the same element the JS toggles via the `hidden`
   attribute (e.g. .wizard-step, .btn). Author rules otherwise win that
   fight over the UA `[hidden]` rule, so this keeps `hidden` authoritative. */
[hidden] { display: none !important; }

.container { width: min(var(--max), calc(100% - 56px)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 9999;
  padding: 12px 16px; background: var(--yellow); color: #000; font-weight: 800;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 13px 22px 12px; border: 2px solid var(--yellow); border-radius: var(--radius);
  font-family: var(--font-head); font-size: 1rem; line-height: 1; font-weight: 900; letter-spacing: .04em;
  text-transform: uppercase; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
/* Sheen sweeps once on hover/focus rather than looping forever sitewide. */
.btn::before {
  content: ""; position: absolute; inset: -20% auto -20% -35%; width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transform: translateX(-140%) skewX(-22deg); opacity: 0; z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { animation: sheen .85s ease-in-out; }
@keyframes sheen { 0% { transform: translateX(-140%) skewX(-22deg); opacity: 0; } 20% { opacity: .5; } 100% { transform: translateX(340%) skewX(-22deg); opacity: 0; } }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(180deg, #ffdc26, #ffc400); color: #050505; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 14px 30px rgba(255,212,0,.22); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 20px 44px rgba(255,212,0,.34); }
.btn-outline { background: rgba(0,0,0,.42); color: #fff; }
.btn-outline:hover { background: rgba(255,212,0,.14); }
.btn-lg { min-height: 56px; padding-inline: 26px; }
.btn-full { width: 100%; }

/* =============================================================
   SHARED TYPOGRAPHY / PANEL PRIMITIVES
   ============================================================= */
.panel {
  position: relative; width: min(560px, 100%);
  padding: 40px 44px; border: 1px solid var(--border); border-radius: 10px;
  background: linear-gradient(160deg, rgba(20,20,22,.7), rgba(8,8,9,.56));
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
}
.panel::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 10px 0 0 10px;
  background: var(--yellow);
}

.eyebrow {
  margin: 0 0 14px; color: var(--yellow); font-family: var(--font-head);
  font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.section-title {
  font-family: var(--font-head); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: .96; letter-spacing: .01em; margin: 0 0 16px;
}
.section { position: relative; z-index: 10; padding: 76px 0; scroll-margin-top: 96px; }

/* Reveal-on-scroll utility, shared by every grounded section */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
