/* SuperRev — red on black, matching the app (lib/ui/theme/app_theme.dart). */
:root {
  --bg: #050608; --surface: #0F1115; --raised: #1C1F24; --outline: #2A2D33;
  --red: #FF3B30; --red-deep: #C8231A; --text: #E6E8EC; --muted: #8A909A;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px; --max: 1200px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 59, 48, .18), transparent 70%);
  background-repeat: no-repeat;
}
a { color: var(--text); }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; }
main { max-width: var(--max); margin: 0 auto; padding: 0 16px 48px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; font-stretch: condensed; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: .4em 0 .3em; }
h1 span, .logo span { color: var(--red); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.3rem; margin: 0 0 .4em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); font-size: .9rem; }

/* header / footer */
.site-header { display: flex; align-items: center; justify-content: space-between; max-width: var(--max); margin: 0 auto; padding: 16px; }
.logo { font: 900 1.5rem/1 var(--display); letter-spacing: .12em; text-decoration: none; font-style: italic; }
.site-header nav { display: flex; gap: 16px; align-items: center; }
.site-header nav a { text-decoration: none; font-weight: 600; }
.site-footer { border-top: 1px solid var(--outline); text-align: center; padding: 32px 16px 48px; }
.site-footer a { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 14px 28px; font: 700 1rem var(--body); cursor: pointer; text-decoration: none; }
.btn-red { background: var(--red-deep); color: #fff; box-shadow: 0 0 24px rgba(255, 59, 48, .45); }
.btn-red:hover { background: #A81B13; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--outline); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.badge img { display: block; height: 40px; width: auto; }
.badges-large .badge img { height: 52px; }

/* demo */
.demo { position: relative; background: var(--surface); border: 1px solid var(--outline); border-radius: 24px; padding: 20px; margin: 24px auto; max-width: 560px; text-align: center; }
.dash { display: grid; justify-items: center; gap: 8px; }
.tach { width: min(300px, 78vw, 32vh); height: min(300px, 78vw, 32vh); }
.readouts { display: flex; gap: 40px; }
.readouts div { display: grid; }
.readouts span { font: 800 2.2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.readouts small { color: var(--muted); letter-spacing: .2em; font-size: .75rem; }
.picker { display: grid; gap: 4px; margin: 16px auto 4px; max-width: 360px; text-align: left; }
.picker span { color: var(--muted); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }
select, .filter { width: 100%; background: var(--raised); color: var(--text); border: 1px solid var(--outline); border-radius: 10px; padding: 12px; font: inherit; }
.car-link { font-size: .9rem; color: var(--muted); }
.views { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; }
.views button { background: var(--raised); color: #B8BCC4; border: 0; border-radius: 3px; padding: 10px 4px; font: 700 .72rem var(--body); letter-spacing: .06em; cursor: pointer; }
.views button[aria-pressed="true"] { background: var(--red); color: #1A0B05; }
.btn-start { width: 100%; font-size: 1.1rem; margin-top: 10px; }
.btn-start[disabled] { opacity: .7; cursor: progress; }
.pedal { width: 100%; height: 88px; border-radius: 18px; border: 2px solid var(--red); background: linear-gradient(180deg, #24070A, #120405); color: var(--text); font: 800 1.3rem var(--display); letter-spacing: .15em; text-transform: uppercase; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pedal.is-down { background: var(--red); color: #fff; box-shadow: 0 0 40px rgba(255, 59, 48, .6); transform: translateY(2px); }
.status { color: var(--muted); font-size: .9rem; min-height: 1.6em; }
.limit-card { position: absolute; inset: 12px; display: grid; align-content: center; justify-items: center; gap: 8px; background: rgba(5, 6, 8, .96); border: 1px solid var(--red); border-radius: 18px; padding: 20px; }
/* sections */
.hero { text-align: center; padding-top: 24px; }
.hero .lead { margin: 0 auto; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.features article, .cat-grid a, .car-grid a { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 18px; }
.features p { color: var(--muted); margin: 0; }
.shots { display: flex; justify-content: safe center; gap: 16px; overflow-x: auto; padding: 24px 0 8px; scroll-snap-type: x mandatory; }
.shots img { flex: 0 0 auto; width: 240px; border-radius: 18px; border: 1px solid var(--outline); scroll-snap-align: center; }
.cat-grid, .car-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cat-grid a, .car-grid a { display: grid; gap: 4px; text-decoration: none; height: 100%; }
.cat-grid a:hover, .car-grid a:hover { border-color: var(--red); color: var(--text); }
.cat-grid span, .car-grid span { color: var(--muted); font-size: .88rem; }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 8px; }
.crumbs a { color: var(--muted); }
.spec { color: var(--red); font-weight: 600; letter-spacing: .02em; }
.car-hero { text-align: center; }
.about p { max-width: 70ch; }
.faq details { border-bottom: 1px solid var(--outline); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }
.filter { margin: 8px 0 8px; max-width: 420px; }
.cat-section h2 a { text-decoration: none; }
.disclaimer { margin-top: 32px; }

/* First screen: headline + engine console, Start visible without scrolling.
   Phones: headline, console, then the intro. Wide screens: text left, console right. */
.stage { display: flex; flex-direction: column; }
.stage .hero { display: contents; }
.stage .hero > :not(h1) { order: 1; }
@media (max-width: 899px) { .car-hero .badges { display: none; } }
@media (min-width: 900px) {
  .stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 520px); gap: 56px; align-items: center; }
  .stage .hero { display: block; text-align: left; padding-top: 0; }
  .stage .hero .lead { margin: 0; }
  .stage .badges { justify-content: flex-start; }
  .stage .car-hero { text-align: left; }
  .stage .demo { margin: 0; width: 100%; }
}

@media (max-width: 480px) {
  .demo { margin: 12px auto; padding: 14px; }
  .dash { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 14px; }
  .readouts { flex-direction: column; gap: 14px; }
  .tach { width: min(56vw, 32vh); height: min(56vw, 32vh); }
  .views { margin: 12px 0; }
  .picker { margin-top: 10px; }
  .views button { font-size: .62rem; }
  .site-header nav a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
