/* ============================================================
   VANTA//GT — Hyper Configurator
   Main stylesheet
   Aesthetic: dark luxury + cyberpunk HUD + automotive precision
   ============================================================ */

/* -----------------------------
   1. DESIGN TOKENS
   ----------------------------- */
:root {
  /* Core palette */
  --bg-0:        #050608;      /* deepest */
  --bg-1:        #0a0c12;      /* base */
  --bg-2:        #11141c;      /* cards */
  --bg-3:        #181c26;      /* elevated */

  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);

  --ink-0:       #f4f6fb;      /* primary text */
  --ink-1:       #c4c8d4;      /* secondary */
  --ink-2:       #7a8094;      /* tertiary */
  --ink-3:       #4a5063;      /* muted */

  /* Accents */
  --accent-red:    #ff2d3a;
  --accent-blue:   #1d8eff;
  --accent-violet: #7a2dff;
  --accent-cyan:   #00f0ff;
  --accent-silver: #c4cad6;

  /* Glass */
  --glass-bg:    rgba(14, 16, 22, 0.55);
  --glass-edge:  rgba(255, 255, 255, 0.10);
  --glass-glow:  rgba(255, 45, 58, 0.08);

  /* Type */
  --font-display: 'Orbitron', 'Arial Black', sans-serif;
  --font-body:    'Chakra Petch', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Easing */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-power:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* -----------------------------
   2. RESET / BASE
   ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-1);
  color: var(--ink-0);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  /* Subtle film grain via radial+conic blend */
  background-image:
    radial-gradient(ellipse at top, rgba(29, 142, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(255, 45, 58, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-red), var(--accent-violet));
  border-radius: 4px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }

/* Selection */
::selection { background: var(--accent-red); color: #fff; }

/* -----------------------------
   3. UTILITY: GLASS
   ----------------------------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-edge);
  border-radius: 2px;
  position: relative;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 50%, rgba(255,45,58,0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* -----------------------------
   4. LOADER
   ----------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-0);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease-power), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }

.loader-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}

.loader-content {
  position: relative;
  text-align: center;
  width: min(440px, 80vw);
}
.loader-brand {
  display: flex; align-items: baseline; justify-content: center; gap: 12px;
  margin-bottom: 36px;
}
.loader-brand-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--accent-red);
  letter-spacing: 0.05em;
}
.loader-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.4em;
  color: var(--ink-0);
}

.loader-rev {
  margin-bottom: 24px;
}
.loader-rev-track {
  position: relative;
  height: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.loader-rev-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-red), var(--accent-violet));
  box-shadow: 0 0 12px var(--accent-red);
  transition: width 0.1s linear;
}
.loader-rev-ticks {
  position: absolute; inset: 0;
  display: flex; justify-content: space-between;
  pointer-events: none;
}
.loader-rev-ticks span {
  width: 1px; background: var(--bg-0);
}
.loader-rev-meta {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}
.loader-pct { color: var(--accent-red); }

.loader-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-2);
  text-transform: uppercase;
  min-height: 16px;
}

/* -----------------------------
   5. PROMPT PANEL
   ----------------------------- */
.prompt-toggle {
  position: fixed;
  left: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: none;
  border-radius: 0 4px 4px 0;
  transition: all 0.3s var(--ease-out);
}
.prompt-toggle:hover {
  background: var(--bg-3);
  border-color: var(--accent-red);
  padding-left: 18px;
}
.prompt-toggle:hover .prompt-toggle-line { background: var(--accent-red); }
.prompt-toggle-line {
  width: 1px; height: 28px;
  background: var(--ink-2);
  transition: background 0.3s var(--ease-out);
}
.prompt-toggle-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ink-0);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.prompt-panel {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: min(520px, 92vw);
  z-index: 250;
  background: var(--bg-1);
  border-right: 1px solid var(--accent-red);
  box-shadow: 24px 0 80px rgba(0,0,0,0.6);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-power);
  display: flex; flex-direction: column;
}
.prompt-panel.is-open { transform: translateX(0); }

.prompt-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.prompt-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ink-0);
  display: flex; align-items: center; gap: 10px;
}
.prompt-panel-mark {
  color: var(--accent-red);
  font-weight: 900;
}
.prompt-panel-close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-1);
  transition: all 0.2s var(--ease-out);
}
.prompt-panel-close:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.prompt-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-1);
  white-space: pre-wrap;
  word-break: break-word;
}
.prompt-panel-body strong {
  color: var(--accent-red);
  font-weight: 700;
}
.prompt-panel-body em {
  color: var(--accent-blue);
  font-style: normal;
}

.prompt-panel-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}
.btn-ghost-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.25em;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink-0);
  transition: all 0.2s var(--ease-out);
}
.btn-ghost-sm:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(255, 45, 58, 0.08);
}

/* -----------------------------
   6. NAV / HUD
   ----------------------------- */
.hud-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(180deg, rgba(5,6,8,0.85), rgba(5,6,8,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: padding 0.3s var(--ease-out);
}
.hud-nav.is-scrolled {
  padding: 12px 32px;
  background: rgba(5,6,8,0.92);
  border-bottom: 1px solid var(--line);
}

.hud-brand {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
}
.hud-brand-mark {
  font-weight: 900;
  font-size: 18px;
  color: var(--accent-red);
}
.hud-brand-name {
  font-size: 14px;
  letter-spacing: 0.3em;
}
.hud-brand-dot { color: var(--accent-red); margin: 0 2px; }

.hud-nav-links {
  display: flex; gap: 32px;
  list-style: none;
}
.hud-nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-1);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s var(--ease-out);
}
.hud-nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent-red);
  transition: width 0.3s var(--ease-out);
}
.hud-nav-links a:hover { color: var(--ink-0); }
.hud-nav-links a:hover::after { width: 100%; }
.hud-nav-links a.is-active { color: var(--accent-red); }
.hud-nav-links a.is-active::after { width: 100%; background: var(--accent-red); }

.hud-nav-right {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-2);
}
.hud-clock { color: var(--ink-1); }
.hud-status {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
}
.hud-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* -----------------------------
   7. HERO
   ----------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex; align-items: center;
  padding: 100px 32px 60px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, transparent 0%, #000 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, #000 80%);
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(5,6,8,0.7) 100%);
  pointer-events: none;
}
.hero-scanlines {
  position: absolute; inset: 0; z-index: 4;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* HUD corner brackets */
.hero-hud-corner {
  position: absolute; z-index: 5;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
  padding: 14px;
}
.hero-hud-corner.top-left { top: 80px; left: 24px; }
.hero-hud-corner.top-right { top: 80px; right: 24px; flex-direction: row-reverse; }
.hero-hud-corner.bottom-left { bottom: 24px; left: 24px; }
.hero-hud-corner.bottom-right { bottom: 24px; right: 24px; flex-direction: row-reverse; }

.hud-bracket {
  width: 18px; height: 18px;
  border-top: 1px solid var(--accent-red);
  border-left: 1px solid var(--accent-red);
}
.hud-bracket.flip-x { transform: scaleX(-1); }
.hud-bracket.flip-y { transform: scaleY(-1); }
.hud-bracket.flip-xy { transform: scale(-1, -1); }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 16, 22, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-1);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-tag-dot {
  width: 6px; height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title-line {
  display: block;
  overflow: hidden;
}
.hero-title-line:first-child {
  color: var(--ink-0);
  -webkit-text-stroke: 0px;
}
.hero-title-line.glitch {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--ink-0) 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-sub {
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--ink-1);
  max-width: 520px;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: flex; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3em;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 95% 100%, 0 100%);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.btn-primary:hover { background: #ff4451; box-shadow: 0 8px 32px rgba(255, 45, 58, 0.45); }
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary-arrow { font-size: 14px; transition: transform 0.3s var(--ease-out); }
.btn-primary:hover .btn-primary-arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  background: transparent;
  color: var(--ink-0);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3em;
  border: 1px solid var(--line-strong);
  transition: all 0.3s var(--ease-out);
}
.btn-ghost:hover {
  border-color: var(--ink-0);
  background: rgba(255,255,255,0.05);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.hero-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--ink-0);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-2);
}

.hero-scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ink-2);
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--ink-1));
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -10px; left: 0;
  width: 100%; height: 10px;
  background: var(--accent-red);
  animation: scroll-down 2.4s var(--ease-inout) infinite;
}
@keyframes scroll-down {
  0% { top: -10px; }
  100% { top: 100%; }
}

/* -----------------------------
   8. SECTION HEADERS
   ----------------------------- */
.section-header {
  display: flex; align-items: center; gap: 24px;
  padding: 40px 32px 0;
  max-width: 1600px;
  margin: 0 auto 40px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent-red);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* -----------------------------
   9. FLEET / SHOWCASE
   ----------------------------- */
.showcase {
  padding: 80px 0 120px;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  max-width: 1600px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fleet-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-1);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.5s var(--ease-power), background 0.5s var(--ease-out);
  min-height: 400px;
  display: flex; flex-direction: column;
}
.fleet-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, var(--accent), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.fleet-card:hover { background: var(--bg-2); transform: translateY(-4px); }
.fleet-card:hover .fleet-card-bg { opacity: 0.25; }
.fleet-card:hover .fleet-card-arrow { transform: translateX(8px); color: var(--accent-red); }

.fleet-card-id {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.fleet-card-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1;
}
.fleet-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
  margin-bottom: auto;
  padding-bottom: 32px;
}
.fleet-card-stats {
  display: flex; gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
}
.fleet-card-stats > div {
  display: flex; flex-direction: column; gap: 2px;
}
.fleet-card-stats span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-0);
}
.fleet-card-stats small {
  font-size: 12px;
  color: var(--ink-2);
}
.fleet-card-stats em {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  font-style: normal;
}
.fleet-card-arrow {
  position: absolute;
  bottom: 32px; right: 32px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink-1);
  transition: all 0.3s var(--ease-out);
}

/* -----------------------------
   10. GARAGE
   ----------------------------- */
.garage {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.garage-stage {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  height: 560px;
  perspective: 1200px;
  perspective-origin: 50% 60%;
}

.garage-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  transform: rotateX(60deg);
  transform-origin: bottom;
  background:
    linear-gradient(180deg, transparent, rgba(255, 45, 58, 0.04) 60%, rgba(29, 142, 255, 0.04)),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  mask-image: linear-gradient(180deg, transparent, #000 30%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%);
}

.garage-wall {
  position: absolute;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border: 1px solid var(--line);
}
.garage-wall-back { top: 0; left: 25%; right: 25%; height: 50%; }
.garage-wall-left { top: 0; left: 0; width: 25%; height: 70%; transform-origin: right; transform: rotateY(35deg); opacity: 0.6; }
.garage-wall-right { top: 0; right: 0; width: 25%; height: 70%; transform-origin: left; transform: rotateY(-35deg); opacity: 0.6; }

.garage-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: light-drift 8s ease-in-out infinite;
}
.garage-light-1 { top: 20%; left: 15%; width: 220px; height: 220px; background: var(--accent-red); opacity: 0.25; }
.garage-light-2 { top: 30%; right: 18%; width: 280px; height: 280px; background: var(--accent-blue); opacity: 0.22; animation-delay: -3s; }
.garage-light-3 { bottom: 20%; left: 50%; width: 320px; height: 320px; background: var(--accent-violet); opacity: 0.18; animation-delay: -6s; transform: translateX(-50%); }
@keyframes light-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

.garage-content {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90%);
  padding: 36px 40px;
}
.garage-meta {
  display: flex; gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.garage-meta-id { color: var(--accent-red); }
.garage-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.garage-text {
  color: var(--ink-1);
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 560px;
}
.garage-features {
  display: flex; gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.garage-feature { display: flex; flex-direction: column; gap: 4px; }
.garage-feature-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink-0);
}
.garage-feature-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-2);
}

/* -----------------------------
   11. PERFORMANCE
   ----------------------------- */
.performance {
  padding: 80px 0 120px;
}

.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--line);
  max-width: 1600px;
  margin: 0 auto;
  border: 1px solid var(--line);
}

.perf-card {
  padding: 32px;
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
.perf-card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.perf-card-head span:first-child { color: var(--ink-0); }
.perf-card-id { color: var(--accent-red); }

/* Speedometer */
.perf-speedo {
  display: flex; flex-direction: column;
}
.speedo {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 1.2;
}
.speedo-svg {
  width: 100%; height: 100%;
}
.speedo-center {
  position: absolute;
  top: 60%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.speedo-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  color: var(--ink-0);
  line-height: 1;
}
.speedo-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-2);
  margin-top: 4px;
}

/* Counters */
.perf-counter { margin-bottom: 22px; }
.perf-counter:last-child { margin-bottom: 0; }
.perf-counter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.perf-counter-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--ink-0);
  line-height: 1;
  margin-bottom: 10px;
}
.perf-counter-bar {
  height: 4px;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
.perf-counter-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
  transition: width 1.6s var(--ease-power);
}
.perf-counter-fill.is-live { width: var(--w); }

/* Graph */
.perf-graph-svg {
  width: 100%; height: 200px;
  display: block;
}
.perf-graph-legend {
  display: flex; gap: 24px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-1);
}
.perf-graph-legend-item {
  display: flex; align-items: center; gap: 8px;
}
.perf-graph-legend-item i {
  width: 10px; height: 2px;
  display: inline-block;
}

/* Strip */
.perf-strip-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 72px;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 24px;
}
.perf-strip-track {
  position: relative;
  height: 6px;
  background: var(--bg-3);
  margin-bottom: 12px;
}
.perf-strip-fill {
  position: absolute; inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-red), var(--accent-violet));
  transition: width 2s var(--ease-power);
}
.perf-strip-fill.is-live { width: 100%; }
.perf-strip-marker {
  position: absolute;
  top: -4px;
  width: 2px; height: 14px;
  background: var(--ink-0);
}
.perf-strip-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-2);
}

/* -----------------------------
   12. GALLERY
   ----------------------------- */
.gallery {
  padding: 80px 0 120px;
}

.gallery-stage {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.gallery-track {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-0);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s var(--ease-power), transform 1.2s var(--ease-power);
  display: flex;
  align-items: flex-end;
  padding: 48px;
  background-size: cover;
  background-position: center;
}
.gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.gallery-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,6,8,0.2) 0%, rgba(5,6,8,0.9) 100%);
  pointer-events: none;
}

.gallery-slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.gallery-slide-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent-red);
  margin-bottom: 12px;
}
.gallery-slide-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}
.gallery-slide-text {
  color: var(--ink-1);
  font-size: 14px;
}

.gallery-controls {
  display: flex; align-items: center; gap: 24px;
  justify-content: center;
  margin-top: 24px;
}
.gallery-btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--ink-0);
  transition: all 0.2s var(--ease-out);
}
.gallery-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(255,45,58,0.08);
}
.gallery-counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--ink-1);
  min-width: 80px;
  text-align: center;
}
.gallery-counter-sep { color: var(--ink-3); margin: 0 8px; }

/* -----------------------------
   13. FOOTER
   ----------------------------- */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding: 80px 32px 24px;
}
.footer-top {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3em;
  margin-bottom: 28px;
}
.footer-brand-mark {
  font-weight: 900;
  font-size: 22px;
  color: var(--accent-red);
}
.footer-tag {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.footer-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3em;
  transition: all 0.3s var(--ease-out);
}
.footer-cta:hover {
  border-color: var(--accent-red);
  background: rgba(255,45,58,0.08);
  color: var(--accent-red);
}
.footer-cta-arrow { transition: transform 0.3s var(--ease-out); }
.footer-cta:hover .footer-cta-arrow { transform: translateX(4px); }

.footer-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.footer-col a {
  font-size: 13px;
  color: var(--ink-1);
  transition: color 0.2s var(--ease-out);
  position: relative;
  width: fit-content;
}
.footer-col a:hover { color: var(--ink-0); }
.footer-col a[data-social]:hover { color: var(--accent-red); text-shadow: 0 0 12px var(--accent-red); }

.footer-bottom {
  max-width: 1600px;
  margin: 24px auto 0;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-3);
}
.footer-bottom-domain {
  color: var(--accent-red);
}

/* -----------------------------
   14. RESPONSIVE
   ----------------------------- */
@media (max-width: 900px) {
  .hud-nav { padding: 14px 18px; }
  .hud-nav-links { display: none; }
  .hud-nav-right { gap: 10px; }
  .hud-clock { display: none; }

  .hero { padding: 100px 18px 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { padding: 12px 14px; }
  .hero-stat:nth-child(2) { border-right: none; }
  .hero-hud-corner { font-size: 9px; padding: 8px; }
  .hero-hud-corner.top-left { top: 70px; left: 8px; }
  .hero-hud-corner.top-right { top: 70px; right: 8px; }

  .section-header { padding: 24px 18px 0; gap: 14px; margin-bottom: 24px; }

  .perf-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-right { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }

  .gallery-stage { padding: 0 14px; }
  .gallery-track { height: 380px; }
  .gallery-slide { padding: 24px; }

  .garage-stage { height: 460px; }
  .garage-content { padding: 24px; bottom: 20px; }
  .garage-features { gap: 20px; flex-wrap: wrap; }

  .prompt-toggle { padding: 16px 10px; gap: 10px; }
  .prompt-toggle-line { height: 18px; }
  .prompt-toggle-label { font-size: 10px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .footer-right { grid-template-columns: 1fr; }
}
