@font-face {
  font-family: 'RaceDisplay';
  src: url('assets/font-racing-display.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'RaceNumbers';
  src: url('assets/font-racing-numbers.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08080a;
  --bg-elev: #110f14;
  --bg-card: #131117;
  --border: #2f252e;
  --border-accent: #683040;
  --crimson: #ff3945;
  --crimson-bright: #ff4b62;
  --mint: #59e2ba;
  --amber: #ffc66e;
  --text: #f4eef2;
  --text-soft: #c7b8c3;
  --text-muted: #938290;
  --font-display: 'RaceDisplay', 'Arial Narrow', 'Segoe UI', sans-serif;
  --font-ui: 'RaceNumbers', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  line-height: 1.55;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* Subtle motorsport structural grid */
.site-bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 70% 45% at 75% 0%, #5c162626, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 30%, #1d3a361a, transparent 70%),
    linear-gradient(to right, #ffffff04 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff04 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 72px 72px, 72px 72px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #cf8c9b;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px #59e2ba99;
  animation: livePulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px #59e2ba99; }
  50% { opacity: .45; box-shadow: 0 0 4px #59e2ba44; }
}

.brand-accent { color: var(--crimson); font-style: inherit; }

/* Chamfered Motorsport Plates */
.btn-plate {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 24px;
  border: 1px solid var(--crimson-bright);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(125deg, #d1233e 0%, #9b162d 62%, #ba1e38 100%);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  letter-spacing: 1.3px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 30px #ff2b4a33, inset 0 1px 0 #ff9aa866;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), filter .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-plate::before {
  content: '';
  position: absolute;
  inset: -45% -60%;
  background: linear-gradient(110deg, transparent 38%, #ffffff33 50%, transparent 62%);
  transform: translateX(-115%);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.btn-plate:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 14px 36px #ff2b4a4d, inset 0 1px 0 #ffb3bd88;
}
.btn-plate:hover::before { transform: translateX(115%); }
.btn-plate:active { transform: translateY(0) scale(.985); }

.btn-plate--dark {
  background: linear-gradient(125deg, #1d1017 0%, #120b10 60%, #26111a 100%);
  border-color: var(--crimson-bright);
  box-shadow: 0 0 24px #ff335224, inset 0 1px 0 #ff455d44;
}
.btn-plate--dark::before {
  background: linear-gradient(110deg, transparent 38%, #ff455d36 50%, transparent 62%);
}
.btn-plate--dark:hover {
  border-color: #ff6b7e;
  box-shadow: 0 8px 30px #ff2b4a40, inset 0 1px 0 #ff8a9966;
}

.btn-plate--coffee {
  background: linear-gradient(125deg, #251b10 0%, #15110b 60%, #2f200f 100%);
  border-color: #f3b549;
  color: #fff6e5;
  box-shadow: 0 0 24px #f3b54922, inset 0 1px 0 #ffd78a44;
}
.btn-plate--coffee::before {
  background: linear-gradient(110deg, transparent 38%, #ffd27834 50%, transparent 62%);
}
.btn-plate--coffee:hover {
  border-color: #ffd070;
  box-shadow: 0 10px 30px #f3b5493a, inset 0 1px 0 #ffe0a377;
}

.btn-plate--sm {
  padding: 9px 17px;
  font-size: 16px;
  gap: 8px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn-plate svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.btn-plate--dark svg { stroke: var(--crimson-bright); }
.btn-plate--coffee svg { stroke: #ffcb66; }

.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}
.btn-stack small {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.3px;
  color: #f6ced6;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.btn-plate--dark .btn-stack small { color: #bda8b6; }
.btn-stack strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 20px;
  letter-spacing: 1.2px;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #08080be0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #2a212a;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 31px;
  letter-spacing: 1.8px;
  color: #fff;
  transition: filter .24s ease, transform .18s ease;
}
.wordmark::after {
  content: '';
  position: absolute;
  inset: auto 0 -5px;
  height: 2px;
  background: linear-gradient(90deg, #a91d32, #ff4059 75%, #ffd0d7);
  box-shadow: 0 0 9px #ff405980;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}
.wordmark:hover { filter: drop-shadow(0 0 10px #ff394566); transform: translateY(-1px); }
.wordmark:hover::after { transform: scaleX(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color .2s ease;
}
.nav-links a:hover { color: #fff; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-menu-btn {
  display: none;
  width: 40px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: #161118;
  border: 1px solid #4d2e39;
  color: #f4dce3;
  padding: 0;
}
.nav-menu-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(44px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
  border-bottom: 1px solid #2b2129;
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero-atmosphere::before {
  content: '';
  position: absolute;
  inset: -4%;
  background: url('assets/live-night-track.webp') right center / cover no-repeat;
  opacity: .28;
  filter: brightness(.72) saturate(1.08);
  transform: scale(1.03);
  transition: transform 2.6s cubic-bezier(.22, 1, .36, 1);
}
.hero:hover .hero-atmosphere::before { transform: scale(1.07); }
.hero-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #08080af5 0%, #08080ad9 44%, #08080a82 76%, #08080ab8 100%),
    linear-gradient(180deg, #08080a99 0%, transparent 25%, #08080a 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 58px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(46px, 5.8vw, 82px);
  line-height: .96;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}
.hero-title .line-accent {
  display: block;
  color: var(--crimson);
  text-shadow: 0 0 32px #ff394533;
}
.hero-subtitle {
  margin: 0;
  max-width: 510px;
  font-size: clamp(15.5px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--text-soft);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 6px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid #352731;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--crimson-bright);
  display: inline-block;
}

/* Interactive Telemetry Showcase Stage */
.stage-shell {
  position: relative;
  border: 1px solid #48303b;
  background: linear-gradient(155deg, #16131a, #0a090d 62%, #130f16);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 30px 90px #000c, 0 0 60px #ff394514;
  overflow: hidden;
}
.stage-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  width: 110px;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson-bright), transparent);
  pointer-events: none;
}
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #2b222c;
  background: #0d0b10d9;
}
.stage-car {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.stage-car strong {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: .6px;
  color: #f3e8ef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-pi {
  display: inline-flex;
  align-items: stretch;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #ffffff26;
  flex-shrink: 0;
}
.stage-pi b {
  background: #cf3529;
  color: #fff;
  padding: 2px 6px;
}
.stage-pi span {
  background: #231d25;
  color: #fff;
  padding: 2px 6px;
}
.stage-tabs {
  display: inline-flex;
  gap: 4px;
  background: #17131b;
  padding: 3px;
  border: 1px solid #352935;
}
.stage-tab {
  border: 0;
  background: transparent;
  color: #a998a5;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 11px;
  transition: background .18s, color .18s;
}
.stage-tab[aria-selected="true"] {
  background: #7d1d31;
  color: #fff;
  box-shadow: inset 0 1px 0 #ff6a8066;
}
.stage-body {
  position: relative;
  min-height: 392px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(10, 9, 13, .72), rgba(8, 7, 10, .92)),
    url('assets/live-garage.webp') center / cover no-repeat;
}
.stage-panel {
  animation: panelFade .24s ease;
}
@keyframes panelFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Stage Tab 1: Real GR86 LIVE Telemetry Preview */
.demo-live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 10px;
}
.demo-card {
  position: relative;
  border: 1px solid #3a313a;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: linear-gradient(155deg, #16141a, #0a090d 65%, #121016);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-card h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #a994a4;
  text-transform: uppercase;
}
.demo-motor {
  grid-column: 1 / -1;
  border-top: 2px solid #9d303c;
  padding: 12px 16px 11px;
}
.demo-leds {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 5px;
}
.demo-leds i {
  height: 11px;
  border-radius: 2px;
  background: #232d39;
  transition: background .06s, box-shadow .06s;
}
.demo-motor-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 4px 0 2px;
}
.demo-gear-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 8px;
}
.demo-gear {
  position: relative;
  isolation: isolate;
  inline-size: 2ch;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 62px;
  font-weight: 700;
  line-height: .95;
  color: #f4fff9;
  font-variant-numeric: tabular-nums;
}
.demo-gear::before {
  content: '';
  position: absolute;
  inset-block: .02em;
  left: 50%;
  width: 2.25ch;
  transform: translateX(-50%) skewX(-16deg);
  z-index: -1;
  border: 1px solid #9c2c40;
  border-top-color: #ef576c;
  border-radius: 7px;
  background: linear-gradient(145deg, #36121a80, transparent 55%, #35111970);
  box-shadow: inset 0 0 12px #ff385226, 0 0 9px #ff385222;
}
.demo-gear-wrap small {
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 2.2px;
  color: #8f8a94;
}
.demo-motor-divider {
  width: 1px;
  height: 70px;
  transform: skewX(-16deg);
  background: linear-gradient(transparent, #8e525f 28%, #6d3f4a 72%, transparent);
}
.demo-rpm-speed {
  display: grid;
  grid-template-columns: minmax(6ch, 1fr) auto;
  align-items: baseline;
  column-gap: 7px;
  row-gap: 2px;
}
.demo-rpm {
  inline-size: 6ch;
  justify-self: end;
  text-align: right;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 600;
  color: #b4f1db;
  font-variant-numeric: tabular-nums;
}
.demo-rpm-unit {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #8f9bb0;
}
.demo-speed-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.demo-speed {
  inline-size: 3ch;
  text-align: right;
  font-family: var(--font-ui);
  font-size: 56px;
  font-weight: 700;
  line-height: .96;
  letter-spacing: -2px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.demo-speed-line small {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #a5b4ae;
}
.demo-rpm-bar {
  height: 5px;
  background: #202833;
  border-radius: 99px;
  overflow: hidden;
}
.demo-rpm-bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--mint) 0%, var(--amber) 72%, var(--crimson-bright) 100%);
}

/* G-Force mini widget */
.demo-g-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.demo-g-wrap svg { width: 88px; height: 88px; }
.demo-g-ring { fill: none; stroke: #382e39; stroke-width: 1.1; }
.demo-g-axis { stroke: #28212b; stroke-width: 1; }
.demo-g-dot { fill: var(--mint); filter: drop-shadow(0 0 5px #59e2baaa); }
.demo-g-total {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: #f4d8df;
  font-variant-numeric: tabular-nums;
}
.demo-g-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}
.demo-g-cards span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 4px;
  background: #141016b8;
  border: 1px solid #352933;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 8.5px;
  letter-spacing: .5px;
  color: #b19eab;
  text-transform: uppercase;
}
.demo-g-cards b {
  font-size: 12.5px;
  color: #f4eef2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Steering + Pedals mini widget */
.demo-steer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.demo-steer-wrap svg { width: 78px; height: 78px; }
.demo-steer-val {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.demo-pedals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.demo-pedal {
  display: grid;
  grid-template-columns: 36px 1fr 30px;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 10px;
  color: #9e8d9a;
}
.demo-pedal-track {
  height: 9px;
  background: #23303f;
  border-radius: 2px;
  overflow: hidden;
}
.demo-pedal-track i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
}
.demo-pedal--throttle i { background: var(--mint); box-shadow: 0 0 8px #59e2ba66; }
.demo-pedal--brake i { background: #f77d94; box-shadow: 0 0 8px #f77d9466; }
.demo-pedal output {
  text-align: right;
  color: #ede4ea;
  font-variant-numeric: tabular-nums;
}

/* Tires mini widget */
.demo-tires {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.demo-tire {
  --tc: #63c5e6;
  display: grid;
  grid-template-columns: 20px 1fr;
  grid-template-rows: auto auto auto;
  gap: 2px 6px;
  align-items: center;
  padding: 6px;
  background: #141922;
  border: 1px solid #2b3544;
  border-radius: 5px;
  transition: border-color .15s, background .15s;
}
.demo-tire[data-slip="true"] {
  border-color: #c97a5b;
  background: #31211b;
}
.demo-tire svg {
  grid-row: 1 / 3;
  width: 20px;
  height: 36px;
  color: var(--tc);
}
.demo-tire .t-pos {
  font-family: var(--font-ui);
  font-size: 9px;
  color: #8da0b4;
}
.demo-tire .t-temp {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--tc);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.demo-tire .t-bar {
  grid-column: 1 / -1;
  height: 3px;
  background: #263342;
  overflow: hidden;
  margin-top: 2px;
}
.demo-tire .t-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--mint);
  transform-origin: left;
  transform: scaleX(0);
}
.demo-tire[data-slip="true"] .t-bar i { background: #ff9d70; }

/* Stage Tab 2: Analysis + Native Video Slot */
.demo-analysis-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 12px;
  min-height: 356px;
}
.demo-video-box {
  position: relative;
  border: 1px solid #3c313b;
  background: #08070a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.demo-video-stage {
  position: relative;
  flex: 1;
  min-height: 220px;
  background:
    linear-gradient(180deg, #08070a33, #08070ac9),
    url('assets/live-night-track.webp') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo-video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-video-overlay {
  position: relative;
  z-index: 2;
  padding: 16px;
  text-align: center;
  max-width: 260px;
}
.demo-video-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #6b3040;
  background: #140c11d9;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #f4cad4;
  margin-bottom: 10px;
}
.demo-video-overlay strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.1;
}
.demo-video-overlay p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #c7b6c2;
}
.demo-scrub-bar {
  padding: 10px 12px;
  background: #120f15;
  border-top: 1px solid #2e242d;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-scrub-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 11px;
  color: #b4a2af;
  font-variant-numeric: tabular-nums;
}
.demo-scrub-track {
  height: 5px;
  background: #2b232d;
  border-radius: 99px;
  overflow: hidden;
}
.demo-scrub-track i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--crimson), #ff6f84);
}
.demo-charts-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-chart-card {
  flex: 1;
  border: 1px solid #3a303a;
  background: #110e14;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.demo-chart-head span {
  font-family: var(--font-ui);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #b09cab;
}
.demo-chart-head output {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.demo-chart-card canvas {
  width: 100%;
  height: 76px;
  flex: 1;
}

/* Stage Tab 3: Mobile iPhone PWA Preview */
.demo-mobile-stage {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 356px;
  padding-inline: 6px;
}
.iphone-frame {
  width: 214px;
  border-radius: 30px;
  border: 2px solid #4d3b46;
  background: #08080b;
  padding: 10px;
  box-shadow: 0 22px 55px #000d, inset 0 0 0 1px #ffffff14;
}
.iphone-island {
  width: 68px;
  height: 16px;
  border-radius: 99px;
  background: #020203;
  margin: 0 auto 8px;
  border: 1px solid #1c181e;
}
.iphone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.iphone-home-btn {
  width: 26px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--crimson-bright);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  background: #1b0f15;
  color: var(--crimson-bright);
}
.iphone-home-btn svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.iphone-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.iphone-video {
  height: 90px;
  border: 1px solid #3c2f3a;
  background:
    linear-gradient(180deg, #08080a22, #08080ab8),
    url('assets/live-night-track.webp') center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 6px 8px;
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 9px;
  color: #f3d7de;
}
.iphone-card {
  border: 1px solid #352b34;
  background: #121016;
  padding: 8px;
  margin-bottom: 7px;
}
.iphone-motor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.iphone-gear {
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  padding: 2px 10px;
  border: 1px solid #9c2c40;
  border-radius: 5px;
  background: #261018;
  font-variant-numeric: tabular-nums;
}
.iphone-speed {
  text-align: right;
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
}
.iphone-speed strong { display: block; font-size: 26px; line-height: 1; color: #fff; }
.iphone-speed small { font-size: 10px; color: #b4f1db; }
.iphone-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.iphone-mini {
  border: 1px solid #30262f;
  background: #110f14;
  padding: 6px;
  text-align: center;
  font-family: var(--font-ui);
}
.iphone-mini span { display: block; font-size: 8px; letter-spacing: 1px; color: #a492a0; }
.iphone-mini b { font-size: 13px; color: #f6edf2; font-variant-numeric: tabular-nums; }
.iphone-home-bar {
  width: 68px;
  height: 4px;
  border-radius: 99px;
  background: #ffffff38;
  margin: 10px auto 2px;
}
.demo-mobile-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-mobile-copy h4 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1.05;
  color: #fff;
}
.demo-mobile-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}
.demo-mobile-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: #dcd0d8;
}
.demo-mobile-list li::marker { color: var(--crimson-bright); }

.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #2b222c;
  background: #0c0a0f;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 1px;
  color: #9e8d9a;
}
.stage-foot a {
  color: #ffb8c3;
  text-decoration: none;
  border-bottom: 1px solid #ff455d88;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.stage-foot a:hover { color: #fff; border-color: var(--crimson-bright); }

/* Section Layout */
.section {
  padding: clamp(64px, 7.5vw, 108px) 0;
  position: relative;
}
.section + .section {
  border-top: 1px solid #231c23;
}
.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 4vw, 50px);
}
.section-title {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
}
.section-lead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* Signature Atmospheric Split Cards (VertexLab Home DNA) */
.atmosphere-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.atmo-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 360px;
  padding: clamp(28px, 3.2vw, 44px);
  border: 1px solid #3f2d38;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  background: #0d0b10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  transition: border-color .35s ease, box-shadow .35s ease;
}
.atmo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--scene) right bottom / cover no-repeat;
  opacity: .34;
  filter: brightness(.72);
  transform: scale(1);
  transform-origin: 85% 85%;
  transition: opacity 1.05s cubic-bezier(.22, 1, .36, 1), filter 1.2s cubic-bezier(.22, 1, .36, 1), transform 2.2s cubic-bezier(.22, 1, .36, 1);
}
.atmo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(15deg, #08080af5 12%, #08080ac2 52%, #08080a44 100%),
    radial-gradient(ellipse at 100% 100%, #e11f3c1f, transparent 62%);
}
.atmo-card:hover {
  border-color: #9e374b;
  box-shadow: 0 22px 65px #000a, 0 0 38px #ff394518;
}
.atmo-card:hover::before {
  opacity: .68;
  filter: brightness(.95);
  transform: scale(1.07);
}
.atmo-card--track { --scene: url('assets/live-night-track.webp'); }
.atmo-card--garage { --scene: url('assets/library-night-garage.webp'); }

.atmo-num {
  position: absolute;
  top: 18px;
  right: 26px;
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 92px;
  line-height: 1;
  color: #ffffff0a;
  pointer-events: none;
  user-select: none;
}
.atmo-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 2.8vw, 38px);
  letter-spacing: 1.1px;
  line-height: 1.05;
  color: #fff;
}
.atmo-card p {
  margin: 0;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.feature-pills span {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .9px;
  padding: 5px 10px;
  border: 1px solid #48323f;
  background: #151018cc;
  color: #e9d9e4;
}

/* Secondary 2-col feature cards */
.subfeature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.subfeature-card {
  position: relative;
  padding: clamp(24px, 2.8vw, 36px);
  border: 1px solid #352933;
  border-top: 2px solid #7d2c3c;
  background: linear-gradient(150deg, #141118, #0c0a0f);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
}
.subfeature-card:hover {
  border-color: #823748;
  border-top-color: var(--crimson-bright);
  transform: translateY(-2px);
}
.subfeature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #6b2e3f;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  background: #231119;
  color: var(--crimson-bright);
}
.subfeature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.subfeature-card h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 27px;
  letter-spacing: .9px;
  color: #fff;
}
.subfeature-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* 3 Steps Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step-card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid #322731;
  background: linear-gradient(160deg, #131017, #0b090e);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-badge {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 38px;
  line-height: 1;
  color: var(--crimson-bright);
  text-shadow: 0 0 22px #ff394533;
}
.step-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 25px;
  letter-spacing: .8px;
  color: #fff;
}
.step-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Download Banner */
.download-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #5d2e3d;
  border-top: 2px solid var(--crimson-bright);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  padding: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: 32px;
  box-shadow: 0 26px 85px #000b;
}
.download-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('assets/live-garage.webp') center / cover no-repeat;
  opacity: .24;
  transform: scale(1.02);
  transition: transform 2.2s cubic-bezier(.22, 1, .36, 1), opacity 1s ease;
}
.download-panel:hover::before { transform: scale(1.06); opacity: .36; }
.download-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, #0b090ef5 0%, #120d14eb 58%, #210f17d8 100%);
}
.download-copy h2 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.02;
  letter-spacing: 1.2px;
  color: #fff;
}
.download-copy p {
  margin: 0 0 20px;
  font-size: 15.5px;
  color: var(--text-soft);
  max-width: 560px;
}
.download-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.download-specs li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #e4d6df;
}
.download-specs li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 8px #59e2ba88;
  flex-shrink: 0;
}
.download-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.download-version {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1px;
  color: #b59ead;
}
.download-version a {
  color: #f3c4cf;
  text-decoration: none;
  border-bottom: 1px solid #ff455d66;
}

/* Buy Me a Coffee Support Section */
.support-panel {
  border: 1px solid #3d3124;
  border-left: 3px solid #f3b549;
  background: linear-gradient(125deg, #16120e, #0e0c11 65%, #19130c);
  padding: clamp(26px, 3.5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.support-copy {
  max-width: 620px;
}
.support-copy h2 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: 1px;
  color: #fff;
}
.support-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}
.support-note {
  margin: 10px 0 0;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #e4be7d;
}

/* Footer */
.site-footer {
  border-top: 1px solid #2b222a;
  background: #060608;
  padding: 46px 0 calc(36px + env(safe-area-inset-bottom, 0px));
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid #211b22;
}
.footer-brand p {
  margin: 10px 0 0;
  max-width: 340px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.footer-cols {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
}
.footer-col h4 {
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #b98695;
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  text-decoration: none;
  font-size: 14px;
  color: var(--text-soft);
  transition: color .18s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 12.5px;
  color: #837380;
}

/* Legal Pages (/privacy, /terms) */
.legal-main {
  padding: clamp(44px, 6vw, 76px) 0 88px;
}
.legal-shell {
  max-width: 820px;
  margin-inline: auto;
  border: 1px solid #382a34;
  border-top: 2px solid var(--crimson-bright);
  background: linear-gradient(160deg, #131016, #0b090e);
  padding: clamp(26px, 4.5vw, 52px);
}
.legal-shell h1 {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: 1px;
  color: #fff;
}
.legal-updated {
  margin: 0 0 28px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 1px;
  color: #a691a0;
}
.legal-shell h2 {
  margin: 30px 0 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  letter-spacing: .8px;
  color: #fff;
}
.legal-shell p, .legal-shell li {
  font-size: 15px;
  line-height: 1.72;
  color: #d6c8d2;
}
.legal-shell ul {
  margin: 10px 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-shell li::marker { color: var(--crimson-bright); }
.legal-shell a { color: #ff8ea0; }
.legal-callout {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid #593241;
  border-left: 3px solid var(--mint);
  background: #14171cd9;
}
.legal-callout strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 8px;
}
.legal-callout p { margin: 6px 0; font-size: 14.5px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #d5b8c6;
}
.legal-back:hover { color: #fff; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px 20px 20px;
  border-top: 1px solid #2b212a;
  background: #0b090ef5;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  padding: 10px 4px;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #eadce5;
  border-bottom: 1px solid #221b22;
}

/* Responsive */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .download-panel { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .atmosphere-grid,
  .subfeature-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .atmo-card { min-height: 290px; }
  .demo-live-grid { grid-template-columns: 1fr 1fr; }
  .demo-tires-card { grid-column: 1 / -1; }
  .demo-analysis-grid { grid-template-columns: 1fr; }
  .demo-mobile-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .demo-mobile-list { text-align: left; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 28px); }
  .nav-inner { height: 64px; }
  .wordmark { font-size: 26px; }
  .nav-actions .btn-plate--sm { padding: 8px 12px; font-size: 14px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn-plate { width: 100%; justify-content: center; }
  .stage-top { flex-direction: column; align-items: stretch; }
  .stage-tabs { width: 100%; justify-content: space-between; }
  .stage-tab { flex: 1; text-align: center; padding: 7px 6px; }
  .demo-motor-main { gap: 18px; }
  .demo-gear { font-size: 48px; }
  .demo-speed { font-size: 44px; }
  .demo-live-grid { grid-template-columns: 1fr; }
  .download-specs { grid-template-columns: 1fr; }
  .support-panel .btn-plate { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot, .stage-panel { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-atmosphere::before, .atmo-card::before, .download-panel::before, .btn-plate::before { transition: none !important; }
}
