:root {
  color-scheme: dark;
  --ink: #f4fbff;
  --muted: #a9bfd0;
  --deep: #050712;
  --panel: rgba(8, 14, 28, 0.74);
  --panel-strong: rgba(10, 18, 36, 0.92);
  --line: rgba(153, 231, 255, 0.18);
  --cyan: #23e8ff;
  --pink: #ff2bd0;
  --yellow: #ffd84d;
  --violet: #805cff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--deep);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(35, 232, 255, 0.16), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(255, 43, 208, 0.16), transparent 24%),
    linear-gradient(180deg, #070915 0%, #080b18 46%, #03040a 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.56));
  background-size: 48px 48px, 48px 48px, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(2, 5, 13, 0.62);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 112px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(35, 232, 255, 0.42));
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: rgba(244, 251, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-play {
  color: #041019;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 0 28px rgba(35, 232, 255, 0.24);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 124px clamp(20px, 6vw, 88px) 58px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("./game/img/Pulsar%20Splash.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.15) contrast(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 520px at 70% 44%, rgba(255, 43, 208, 0.12), transparent 72%),
    radial-gradient(620px 460px at 44% 42%, rgba(35, 232, 255, 0.1), transparent 74%),
    linear-gradient(90deg, rgba(3, 5, 14, 0.96) 0%, rgba(5, 8, 18, 0.76) 46%, rgba(3, 5, 14, 0.32) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(4, 5, 12, 0.96));
}

.hero-content {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(320px, 0.68fr);
  gap: clamp(34px, 7vw, 98px);
  align-items: center;
}

.hero-copy,
.hero-card,
.section-copy,
.speed-copy {
  min-width: 0;
}

.hero-logo {
  width: min(520px, 68vw);
  margin: 0 0 -14px -14px;
  filter: drop-shadow(0 0 26px rgba(35, 232, 255, 0.46)) drop-shadow(0 0 42px rgba(255, 43, 208, 0.34));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 670px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions,
.play-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  border: 1px solid var(--line);
}

.button.primary {
  color: #041019;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(35, 232, 255, 0.2), 0 0 36px rgba(255, 43, 208, 0.18);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.hero-card {
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
}

.hero-stats div,
.track-card,
.ship-grid article,
.feature-grid article,
.play-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.hero-stats div {
  padding: 18px 14px;
  border-radius: 8px;
  text-align: center;
}

dt {
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  text-shadow: 0 0 20px rgba(35, 232, 255, 0.42);
}

dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.track-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 8px;
  box-shadow: inset 0 0 34px rgba(35, 232, 255, 0.05);
}

.track-card span,
.ship-grid span,
.feature-grid span {
  color: var(--pink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.track-card strong {
  font-size: 24px;
}

.track-card p,
.section-copy p,
.ship-grid p,
.feature-grid p,
.speed-copy p,
.play-strip p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.ship-section,
.speedrun {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
}

.section-copy,
.speed-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.ship-grid,
.feature-grid {
  display: grid;
  gap: 14px;
}

.ship-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ship-grid article {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  min-height: 292px;
  padding: 22px;
  border-radius: 8px;
}

.ship-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(35, 232, 255, 0.09), transparent 42%, rgba(255, 43, 208, 0.08));
  pointer-events: none;
}

.ship-grid img {
  position: relative;
  align-self: center;
  width: 100%;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(35, 232, 255, 0.28)) drop-shadow(0 20px 28px rgba(0, 0, 0, 0.44));
}

.ship-grid h3,
.ship-grid p,
.ship-grid span {
  position: relative;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article {
  min-height: 270px;
  padding: 24px;
  border-radius: 8px;
}

.feature-grid span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--yellow);
}

.feature-grid h3 {
  margin-bottom: 12px;
}

.speedrun {
  padding-top: 48px;
}

.speed-copy .button {
  justify-self: start;
  margin-top: 8px;
}

.image-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.play-strip {
  justify-content: space-between;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 8px;
  margin-bottom: 78px;
}

.play-strip p {
  margin-top: 8px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  color: rgba(244, 251, 255, 0.78);
  background: rgba(2, 5, 13, 0.72);
  backdrop-filter: blur(18px);
}

footer div {
  display: grid;
  gap: 4px;
}

footer strong {
  color: var(--ink);
  font-size: 16px;
}

footer span {
  color: var(--muted);
  font-size: 13px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 800;
}

footer a:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 12px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 138px;
  }

  .hero-content,
  .ship-section,
  .speedrun {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 620px;
  }

  .ship-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
  }

  nav {
    margin-left: auto;
  }

  .nav-play {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 30;
  }

  .brand img {
    width: 96px;
    height: 38px;
  }

  .brand span,
  nav a:not(.nav-play) {
    display: none;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-content {
    justify-self: center;
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  .hero-logo {
    width: min(340px, 86vw);
    margin-left: -8px;
  }

  h1 {
    max-width: 330px;
    font-size: 34px;
    line-height: 0.98;
  }

  .lead {
    max-width: 330px;
    font-size: 18px;
  }

  .hero-card {
    width: 100%;
    max-width: 100%;
  }

  .hero-stats,
  .ship-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-stats div {
    padding: 12px 6px;
    min-width: 0;
  }

  dt {
    font-size: 26px;
  }

  dd {
    font-size: 11px;
    line-height: 1.25;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 58px 0;
  }

  .ship-grid article,
  .feature-grid article {
    min-height: 0;
  }

  .play-strip,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
