/* Starsurge Wavekiller: neon arcade on deep space. No external fonts or scripts. */
:root {
  --bg: #07060f;
  --bg-2: #0e0b24;
  --panel: rgba(22, 17, 52, 0.62);
  --line: rgba(160, 150, 255, 0.14);
  --text: #eceaf6;
  --muted: #a9a5c6;
  --cyan: #4debff;
  --magenta: #ff61f2;
  --red: #ff2e47;
  --orange: #ff8a3d;
  --gold: #ffd84d;
  --green: #8fff52;
  --white: #f4f6ff;
  --display: "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", Roboto, system-ui, sans-serif;
  --body: "Avenir Next", "Avenir", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 12% 18%, rgba(229, 51, 179, 0.10), transparent 60%),
    radial-gradient(1000px 640px at 92% 46%, rgba(51, 204, 255, 0.07), transparent 60%),
    linear-gradient(180deg, #0d0722 0%, var(--bg) 55%, #04040b 100%);
  background-color: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--cyan); color: #04040b; font-weight: 700; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; }
h2 {
  font-size: clamp(30px, 5.2vw, 52px); font-weight: 800; font-style: italic; letter-spacing: -0.01em;
  text-wrap: balance;
}
h3 { font-size: 20px; font-weight: 800; font-style: italic; }
.eyebrow {
  margin: 0 0 12px; font: 700 13px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.cyan { color: var(--cyan); text-shadow: 0 0 22px rgba(77, 235, 255, 0.55); }
.magenta { color: var(--magenta); text-shadow: 0 0 22px rgba(255, 97, 242, 0.5); }
.red { color: #ff4d62; text-shadow: 0 0 22px rgba(255, 46, 71, 0.6); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(7, 6, 15, 0.92), rgba(7, 6, 15, 0.72));
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 18px rgba(77, 235, 255, 0.18); }
.brand span { font: 800 italic 17px/1 var(--display); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand b { color: var(--cyan); font-weight: 800; }
.nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav li a { display: block; padding: 8px 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 999px; }
.nav li a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav .nav-cta { color: #04040b; background: var(--cyan); box-shadow: 0 0 22px rgba(77, 235, 255, 0.45); }
.nav .nav-cta:hover { color: #04040b; background: #8ff3ff; }
@media (max-width: 719px) {
  .nav li:not(:last-child) { display: none; }
  .brand span { font-size: 16px; }
}

/* Hero */
.hero { position: relative; }
.hero-art { position: relative; overflow: hidden; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 720px) { .hero-art img { aspect-ratio: 3840 / 1646; } }
.hero-art::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 28%;
  background: linear-gradient(180deg, transparent, var(--bg) 96%);
  pointer-events: none;
}
.hero-copy { position: relative; margin-top: -2.2vw; text-align: center; padding-bottom: 56px; }
.lede {
  max-width: 640px; margin: 0 auto; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.5; color: var(--text);
  text-wrap: balance;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-top: 26px; }
.store-badge { display: inline-block; border-radius: 10px; line-height: 0; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { filter: drop-shadow(0 0 14px rgba(77, 235, 255, 0.45)); }
.chip {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px;
  border: 1px solid rgba(143, 255, 82, 0.35); border-radius: 999px; background: rgba(143, 255, 82, 0.06);
  color: #d9ffc7; font: 700 14px/1 var(--display); letter-spacing: 0.04em;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.price { margin: 18px 0 0; color: var(--muted); font-size: 15px; letter-spacing: 0.02em; }

/* The game's red defence line as a section divider. */
.redline {
  height: 2px; margin: 0 auto; max-width: 100%;
  background: linear-gradient(90deg, transparent, var(--red) 12%, var(--red) 88%, transparent);
  box-shadow: 0 0 18px 2px rgba(255, 46, 71, 0.55), 0 0 60px 8px rgba(255, 46, 71, 0.18);
  opacity: 0.9;
}

/* Gameplay */
.gameplay { padding: 88px 0; }
.gameplay-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 860px) { .gameplay-grid { grid-template-columns: 360px 1fr; gap: 72px; } }
.phone {
  justify-self: center; width: min(78vw, 330px); padding: 11px; border-radius: 52px;
  background: linear-gradient(145deg, #2a2550, #0f0c25 40%, #1b1740);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.55), 0 0 90px rgba(77, 235, 255, 0.16), 0 0 140px rgba(255, 97, 242, 0.12);
}
.phone-screen { width: 100%; height: auto; aspect-ratio: 480 / 1040; border-radius: 42px; background: #05040c; object-fit: cover; }
.gameplay-copy p { color: var(--muted); max-width: 560px; }
.gameplay-copy h2 + p { margin-top: 22px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.stats li {
  flex: 1 1 0; min-width: 96px; max-width: 170px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--panel);
}
.stats strong { display: block; font: 800 italic 30px/1 var(--display); color: var(--gold); text-shadow: 0 0 18px rgba(255, 216, 77, 0.45); }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Features */
.features { padding: 40px 0 96px; }
.feature-grid {
  display: grid; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  --c: var(--cyan);
  position: relative; padding: 24px 22px 22px; border-radius: 22px; background: var(--panel);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: ""; position: absolute; inset: -40% 40% auto -30%; height: 160px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 0 34px color-mix(in srgb, var(--c) 18%, transparent);
}
.card svg {
  position: relative; width: 44px; height: 44px; fill: none; stroke: var(--c); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--c));
}
.card svg .accent { stroke: var(--red); filter: drop-shadow(0 0 6px var(--red)); }
.card h3 { position: relative; margin-top: 18px; color: var(--text); }
.card p { position: relative; margin: 8px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Screens */
.screens { padding: 24px 0 96px; }
.gallery {
  margin-top: 36px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: rgba(77, 235, 255, 0.4) transparent;
  padding: 8px 0 22px;
}
.gallery:focus-visible { outline-offset: -2px; }
.gallery ul {
  display: flex; gap: 18px; margin: 0; padding: 0 var(--gutter); list-style: none; width: max-content;
}
@media (min-width: 1168px) { .gallery ul { padding-inline: calc((100vw - var(--wrap)) / 2); } }
.gallery li { flex: 0 0 auto; width: min(64vw, 280px); scroll-snap-align: center; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: 400 / 869; border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.5);
}

/* Download */
.download {
  position: relative; padding: 96px 0 104px; text-align: center; overflow: hidden;
  border-top: 1px solid var(--line);
  background: radial-gradient(700px 360px at 50% 0%, rgba(77, 235, 255, 0.12), transparent 70%);
}
.download::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 15%, var(--red) 85%, transparent);
  box-shadow: 0 0 20px 3px rgba(255, 46, 71, 0.55);
}
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download-icon { width: 112px; height: 112px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 60px rgba(77, 235, 255, 0.3); }
.download h2 { margin-top: 28px; font-size: clamp(36px, 7vw, 64px); text-transform: uppercase; letter-spacing: 0.06em; }
.download p { margin: 14px 0 0; color: var(--muted); max-width: 520px; }
.center { justify-content: center; }

/* Footer */
.footer { padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.footer-inner { display: grid; gap: 22px; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 22%; }
.footer-brand p { margin: 0; }
.footer-name { color: var(--text); font: 800 italic 16px/1.3 var(--display); }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer nav a { color: var(--text); text-decoration: none; }
.footer nav a:hover { color: var(--cyan); }
.legal { grid-column: 1 / -1; margin: 0; font-size: 12.5px; line-height: 1.6; color: #7f7b9d; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
