@font-face {
  font-family: "Audiowide";
  src: url("assets/fonts/Audiowide-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0a0716;
  --bg-alt: #110b24;
  --panel: rgba(20, 14, 40, 0.72);
  --line: rgba(160, 140, 255, 0.16);
  --text: #e8e6ff;
  --dim: #9a94c8;
  --cyan: #26e6ff;
  --pink: #ff2fb4;
  --orange: #ffa21a;
  --display: "Audiowide", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
h1, h2, h3, .eyebrow, .btn, .nav, kbd, .rival-name, dt { font-family: var(--display); font-weight: 400; }
h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 0 0 14px; letter-spacing: 0.02em; }
h3 { font-size: 19px; margin: 18px 0 8px; letter-spacing: 0.03em; }
code { font-family: Consolas, ui-monospace, monospace; color: var(--cyan); }

.cyan { color: var(--cyan); text-shadow: 0 0 18px rgba(38, 230, 255, 0.55); }
.pink { color: var(--pink); text-shadow: 0 0 18px rgba(255, 47, 180, 0.55); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--dim);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lede { color: var(--dim); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* Demo / coming-soon messaging */
.demo-badge {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0 0 22px; padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255, 162, 26, 0.55); border-radius: 999px;
  background: rgba(10, 7, 22, 0.6); color: #ffd9a0;
  font-size: 14px; letter-spacing: 0.06em;
}
.demo-badge span {
  padding: 3px 10px; border-radius: 999px;
  background: var(--orange); color: var(--bg);
  font-family: var(--display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.coming-soon { margin: -10px 0 26px; color: #ffd9a0; font-size: 15px; }
.coming-soon strong { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(38, 230, 255, 0.22), rgba(38, 230, 255, 0.08));
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
  box-shadow: 0 0 0 0 rgba(38, 230, 255, 0), inset 0 0 18px rgba(38, 230, 255, 0.15);
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.btn:hover, .btn:focus-visible {
  box-shadow: 0 0 28px rgba(38, 230, 255, 0.55), inset 0 0 18px rgba(38, 230, 255, 0.3);
  transform: translateY(-1px);
  outline: none;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-ghost { border-color: rgba(255, 47, 180, 0.7); background: transparent; box-shadow: none; }
.btn-ghost:hover, .btn-ghost:focus-visible { box-shadow: 0 0 28px rgba(255, 47, 180, 0.45); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(10, 7, 22, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; letter-spacing: 0.06em; }
.nav-brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--dim); text-decoration: none; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 960px); min-height: min(100svh, 960px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 7, 22, 0.95) 0%, rgba(10, 7, 22, 0.7) 38%, rgba(10, 7, 22, 0.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("assets/img/hero.jpg") center 45% / cover no-repeat;
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1) translateX(-1.5%); } }
.rain { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px clamp(16px, 4vw, 40px) 100px; }
.logo {
  margin: 0;
  font-size: clamp(56px, 12vw, 148px);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.logo .cyan { text-shadow: 0 0 12px rgba(38, 230, 255, 0.8), 0 0 48px rgba(38, 230, 255, 0.45); }
.logo .pink { text-shadow: 0 0 12px rgba(255, 47, 180, 0.8), 0 0 48px rgba(255, 47, 180, 0.45); animation: flicker 7s infinite; }
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.55; } 94% { opacity: 1; } 95.5% { opacity: 0.7; } 96.5% { opacity: 1; }
}
.tagline { font-size: clamp(18px, 2.4vw, 24px); max-width: 560px; margin: 22px 0 34px; color: #cfcaf5; }
.tagline strong { color: var(--orange); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { color: var(--dim); font-size: 14px; margin: 16px 0 0; letter-spacing: 0.04em; }

.checker {
  --sq: clamp(12px, 1.6vw, 18px); /* square size; two rows like a start/finish line */
  height: calc(var(--sq) * 2);
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.85) 0 25%, transparent 0 50%) 0 0 / calc(var(--sq) * 2) calc(var(--sq) * 2);
  opacity: 0.7;
}
.hero > .checker { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0.25; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) clamp(16px, 4vw, 40px); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 12%, var(--bg-alt) 88%, var(--bg) 100%); }
.section-head { text-align: center; margin-bottom: 56px; }

/* Trailer */
.js-watch svg { fill: currentColor; stroke: none; }
.trailer { padding-top: clamp(48px, 7vw, 80px); }
.video-frame {
  position: relative;
  max-width: 1040px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(38, 230, 255, 0.25), 0 0 80px rgba(38, 230, 255, 0.12), 0 0 140px rgba(255, 47, 180, 0.1);
}
.trailer-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--cyan);
  background: rgba(10, 7, 22, 0.55);
  color: #fff; cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 40px rgba(38, 230, 255, 0.5), inset 0 0 24px rgba(38, 230, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.video-play svg { width: 40px; height: 40px; fill: currentColor; margin-left: 5px; }
.video-play:hover, .video-play:focus-visible { transform: scale(1.06); box-shadow: 0 0 60px rgba(38, 230, 255, 0.75), inset 0 0 24px rgba(38, 230, 255, 0.35); outline: none; }
.video-frame.playing .video-play { opacity: 0; pointer-events: none; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
}
.feature:hover { border-color: rgba(38, 230, 255, 0.45); transform: translateY(-3px); }
.feature p { color: var(--dim); margin: 0; font-size: 16px; }
.feature-icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; }
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cyan-glow { color: var(--cyan); background: rgba(38, 230, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(38, 230, 255, 0.35), 0 0 22px rgba(38, 230, 255, 0.15); }
.pink-glow { color: var(--pink); background: rgba(255, 47, 180, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 47, 180, 0.35), 0 0 22px rgba(255, 47, 180, 0.15); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.3s; }
.shot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.3s;
}
.shot:hover img { transform: scale(1.04); filter: saturate(1.15); }
.shot:hover::after, .shot:focus-visible::after { box-shadow: inset 0 0 0 2px var(--cyan), 0 0 30px rgba(38, 230, 255, 0.4); }
.shot:focus-visible { outline: none; }
.shot-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* Rivals */
.rivals { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rival-redline { --c: #ff2619; }
.rival-rebel { --c: #ff33cc; }
.rival-ghostline { --c: #99b3ff; }
.rival-nightshade { --c: #9940ff; }
.rival-mustang { --c: #ff991a; }
.rival-you { --c: #26e6ff; }
.rival {
  position: relative;
  display: grid; grid-template-columns: 6px 1fr; column-gap: 18px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.rival::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%);
  opacity: 0.7; pointer-events: none;
}
.rival-bar { grid-row: span 2; background: var(--c); border-radius: 3px; box-shadow: 0 0 14px var(--c); }
.rival-name { font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; }
.rival-tag { color: var(--dim); font-size: 15px; }
.rival-you { border-color: rgba(38, 230, 255, 0.5); }
.rival-you .rival-name { color: var(--cyan); }

/* Controls */
.controls-wrap { max-width: 720px; overflow-x: auto; }
.controls {
  width: 100%; border-collapse: collapse;
  background: var(--panel);
  border-top: 2px solid var(--pink);
  border-radius: 0 0 var(--radius) var(--radius);
}
.controls th, .controls td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.controls thead th { color: var(--dim); font: 400 12px var(--display); letter-spacing: 0.18em; text-transform: uppercase; }
.controls tbody th { color: var(--cyan); font: 400 15px var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.controls tbody tr:last-child > * { border-bottom: 0; }
kbd {
  display: inline-block; min-width: 30px; padding: 3px 9px; margin: 2px 2px 2px 0;
  text-align: center; font-size: 13px; color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-width: 3px;
  border-radius: 5px;
}

/* Download */
.download { position: relative; }
.download-card {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 47, 180, 0.18), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(38, 230, 255, 0.16), transparent 55%),
    var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--cyan);
  border-radius: var(--radius);
}
.download-icon { width: 160px; height: 160px; border-radius: 34px; box-shadow: 0 0 60px rgba(255, 47, 180, 0.35); }
.download-body .lede { margin: 0 0 26px; }
.specs {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px;
  margin: 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.specs dt { color: var(--dim); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.specs dd { margin: 4px 0 0; font-size: 15px; }

/* Footer */
.footer { text-align: center; padding: 0 16px 40px; color: var(--dim); }
.footer .checker { margin: 0 -16px 36px; opacity: 0.18; }
.footer p { margin: 6px 0; font-family: var(--display); letter-spacing: 0.08em; }
.footer .made-in { display: inline-flex; align-items: center; gap: 8px; font: 13px var(--body); letter-spacing: 0.04em; }
.defs { position: absolute; }
.usa {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 18px 0 0; color: #f2efff;
  font-family: var(--display); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
}
.usa .flag { width: 38px; height: 20px; border-radius: 2px; }
.flag { width: 21px; height: 11px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.footer .footer-small { font: 13px var(--body); letter-spacing: 0; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(5, 3, 12, 0.94);
  color: var(--text);
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 8px; box-shadow: 0 0 60px rgba(38, 230, 255, 0.2); }
.lightbox figcaption { color: var(--dim); font-family: var(--display); font-size: 14px; letter-spacing: 0.08em; text-align: center; }
.lightbox button {
  background: none; border: 0; color: var(--text); cursor: pointer;
  font-size: 48px; line-height: 1; padding: 8px; opacity: 0.7; transition: opacity 0.2s, color 0.2s;
}
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; color: var(--cyan); outline: none; }
.lightbox-close { position: absolute; top: 12px; right: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .shot-wide { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .download-icon { margin: 0 auto; width: 120px; height: 120px; border-radius: 26px; }
  .download-body .lede { margin-left: auto; margin-right: auto; }
  .download .hero-cta { justify-content: center; }
  .specs { text-align: left; }
}
@media (max-width: 560px) {
  .demo-badge { gap: 8px; padding-right: 10px; font-size: 12px; letter-spacing: 0.02em; }
  .demo-badge span { padding: 3px 8px; font-size: 10px; letter-spacing: 0.08em; }
  body { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .shot-wide { grid-column: auto; }
  .hero-bg { background-position: 70% center, 0 0, 70% center; }
  .hero-cta .btn { width: 100%; justify-content: center; padding: 15px 16px; font-size: 14px; letter-spacing: 0.05em; }
  .controls th, .controls td { padding: 12px 8px; white-space: normal; }
  .controls tbody th { font-size: 13px; }
  kbd { min-width: 26px; padding: 2px 6px; font-size: 12px; }
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .video-play { width: 72px; height: 72px; }
  .video-play svg { width: 30px; height: 30px; }
  .lightbox button { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .logo .pink { animation: none; }
  .rain { display: none; }
}
