/* Sticker Money Racing - site styles. Tokens first, then base, layout, components. */
:root {
  --black: #0a0a0c;
  --panel: #141418;
  --purple: #7b2cff;
  --purple-deep: #4b1599;
  --chrome-light: #f4f4f6;
  --chrome-mid: #9a9aa3;
  --chrome-dark: #e6e6ea;
  --chrome: linear-gradient(180deg, #f4f4f6 0%, #9a9aa3 50%, #e6e6ea 100%);
  --text: #ececf1;
  --muted: #9a9aa8;
  --line: #2a2a33;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1160px;
  --cut: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--chrome-light); }
h1, h2, h3, h4 {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  line-height: 1.05; margin: 0 0 .5em; font-weight: 700;
}
h1 { font-size: clamp(2.6rem, 9vw, 5.5rem); font-style: italic; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.chrome-text {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff; padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(10,10,12,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple) 60%, transparent);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; }
@media (max-width: 400px) { .brand img { height: 20px; } }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  width: 44px; height: 44px; border-radius: 4px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--text); margin: 0 auto; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -7px; left: 0; }
.nav-toggle span::after { position: absolute; top: 7px; left: 0; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 14px; color: var(--text); font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; transform: skewX(-12deg);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--purple); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em;
  font-size: 1.05rem; padding: 14px 28px; border: 2px solid var(--purple); color: #fff; background: var(--purple);
  transform: skewX(-12deg); cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--purple-deep); border-color: var(--purple-deep); color: #fff; }
.btn-outline { background: transparent; border-color: var(--chrome-mid); color: var(--chrome-light); }
.btn-outline:hover { background: var(--chrome-light); border-color: var(--chrome-light); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 72px 0; }
.section-alt { background: var(--panel); }
.section-angled { /* angled top and bottom edges; put on a .section */
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  padding: calc(var(--cut) + 56px) 0; margin: calc(var(--cut) * -.5) 0;
}
.section-head { margin-bottom: 36px; }
.section-head .eyebrow, .eyebrow {
  display: block; color: var(--purple); font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .25em; font-size: .9rem; margin-bottom: 8px;
}
.stripes { /* thin purple speed stripes divider */
  height: 12px; margin: 0; border: 0;
  background: repeating-linear-gradient(115deg, var(--purple) 0 6px, transparent 6px 14px);
  opacity: .8;
}
.checkered { /* subtle checkered backdrop; add to any section */
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.03) 75%),
    linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.03) 75%);
  background-size: 40px 40px; background-position: 0 0, 20px 20px;
}
.page-title { padding: 56px 0 40px; background: var(--panel); border-bottom: 1px solid var(--line); position: relative; }
.page-title h1 { font-size: clamp(2.2rem, 7vw, 4rem); margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 96px; background:
  radial-gradient(ellipse at 80% 20%, rgba(123,44,255,.35), transparent 60%), var(--black);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(123,44,255,.12) 60px 64px); }
.hero-inner { position: relative; display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr 1.2fr; }
.hero .tagline { font-size: 1.2rem; color: var(--muted); max-width: 32ch; }
.hero-media img { width: 100%; filter: drop-shadow(0 18px 30px rgba(123,44,255,.4)); }

/* ---------- Card grid / cards ---------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--purple);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--purple); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--black); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body .btn { align-self: flex-start; margin-top: auto; }
.card-link { color: inherit; display: block; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0;
  background: var(--panel); border-top: 3px solid var(--purple); border-bottom: 1px solid var(--line);
}
.stat { padding: 24px 16px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; margin-top: 6px; }

/* ---------- Person card ---------- */
.person-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.person-card { background: var(--panel); border: 1px solid var(--line); text-align: center; padding-bottom: 20px; }
.person-card img { width: 100%; aspect-ratio: 1; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.person-card h3 { margin: 16px 0 2px; }
.person-card .role { color: var(--purple); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .15em; font-size: .9rem; }
.person-card p { color: var(--muted); padding: 0 16px; margin: 10px 0 0; font-size: .95rem; }

/* ---------- Car spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--panel); }
.spec-table caption { text-align: left; font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; padding: 0 0 10px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 40%; color: var(--purple); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.spec-table tr:nth-child(even) { background: rgba(255,255,255,.02); }

/* ---------- Sponsors ---------- */
.sponsor-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.sponsor-logo {
  display: flex; align-items: center; justify-content: center; min-height: 90px; padding: 16px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; text-align: center;
}
.sponsor-logo img { max-height: 60px; width: auto; }
.sponsor-strip { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.tier-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.tier-card { background: var(--panel); border: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.tier-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--chrome); }
.tier-card h3 { font-size: 1.8rem; }
.tier-card .price { font-family: var(--font-display); font-size: 2.2rem; color: var(--purple); margin-bottom: 12px; }
.tier-card ul { padding-left: 18px; color: var(--muted); margin: 0 0 20px; }
.tier-card .btn { align-self: flex-start; margin-top: auto; }
.tier-featured { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple), 0 12px 30px rgba(123,44,255,.25); }
.tier-featured::before { background: var(--purple); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(100deg, var(--purple-deep), var(--purple)); text-align: center;
  padding: calc(var(--cut) + 24px) 0; margin-top: calc(var(--cut) * -.5);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 55ch; margin: 0 auto 1em; }
.cta-band .btn { background: var(--black); border-color: var(--black); }
.cta-band .btn:hover { background: var(--chrome-light); color: var(--black); border-color: var(--chrome-light); }
.cta-band .btn-row { justify-content: center; }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-left: 4px solid var(--purple); padding: 12px 14px; font: inherit; border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--purple); border-color: var(--purple); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }

/* ---------- Results teaser ---------- */
.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.result-list .pos { font-family: var(--font-display); font-size: 1.4rem; color: var(--purple); min-width: 3ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); border-top: 3px solid var(--purple); padding: 40px 0 24px; margin-top: 0; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { color: var(--chrome-mid); font-size: 1rem; letter-spacing: .15em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--purple); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; color: var(--muted); font-size: .85rem; }

/* ---------- Reveal effect (only when JS is on) ---------- */
.js-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; }
.js-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-on .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-bottom: 3px solid var(--purple); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .site-nav a { transform: none; padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .section { padding: 56px 0; }
  :root { --cut: 28px; }
}
@media (max-width: 420px) {
  .btn { padding: 12px 20px; }
  .btn-row .btn { width: 100%; text-align: center; }
  .stat-value { font-size: 2rem; }
}

/* ---------- Photo hero (full-bleed photo + dark gradient for readable text) ---------- */
.hero-photo { min-height: 78vh; display: flex; align-items: center; padding: 96px 0 140px; }
.hero-photo .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { z-index: 1; opacity: 1; background:
  linear-gradient(90deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.7) 45%, rgba(10,10,12,.15) 100%),
  linear-gradient(0deg, rgba(10,10,12,.85) 0%, transparent 40%); }
.hero-photo .hero-inner { z-index: 2; grid-template-columns: 1fr; }
.hero-photo .hero-inner > div { max-width: 640px; }
.hero-photo .tagline { color: var(--text); }
@media (max-width: 860px) {
  .hero-photo { min-height: 70vh; padding: 64px 0 100px; }
  .hero-photo::before { background: linear-gradient(0deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.6) 60%, rgba(10,10,12,.4) 100%); }
}

/* Hero photo tweaks (leader): keep the car in frame on phones, readable eyebrow over photos */
.hero-photo .hero-bg { object-position: 50% 60%; }
.hero-photo .eyebrow { color: #b48cff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
@media (max-width: 860px) { .hero-photo .hero-bg { object-position: 68% 60%; } }
