:root {
  --space: #080515;
  --space-deep: #12091f;
  --panel: rgba(17, 12, 36, 0.8);
  --panel-solid: #17102d;
  --line: rgba(255, 255, 255, 0.16);
  --text: #fff7ea;
  --muted: #c8bfd5;
  --pink: #ff4fb8;
  --orange: #ff9f1c;
  --yellow: #ffe45e;
  --mint: #6fffd7;
  --cyan: #5ad7ff;
  --violet: #8b5cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    linear-gradient(135deg, rgba(255, 79, 184, 0.16), transparent 26%),
    linear-gradient(225deg, rgba(90, 215, 255, 0.16), transparent 26%),
    linear-gradient(180deg, var(--space) 0%, var(--space-deep) 52%, #080515 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    radial-gradient(rgba(111, 255, 215, 0.22) 1px, transparent 1px);
  background-position: 0 0, 45px 80px;
  background-size: 110px 110px, 170px 170px;
  opacity: 0.35;
}

a {
  color: inherit;
}

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

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.product-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-mark img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(255, 79, 184, 0.3);
}

.support-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 5, 21, 0.62);
  box-shadow: var(--shadow);
}

.support-top span,
.kicker,
.card-number {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.support-top span {
  color: var(--mint);
}

.support-top a,
.text-link,
.product-footer a,
.policy-page a {
  color: var(--mint);
  font-weight: 700;
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 3.5rem 0 5rem;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--yellow);
}

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

h1,
h2,
h3 {
  font-family: "Orbitron", sans-serif;
  line-height: 1.05;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.1rem, 7vw, 6.9rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  color: #f4eafc;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-summary,
.intro-copy,
.chaos-copy p,
.updates-section p,
.feature-card p,
.product-footer p,
.policy-page p,
.policy-page li {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.store-badge {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(255, 228, 94, 0.45);
  border-radius: 10px;
  color: #130b1f;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 35px rgba(255, 159, 28, 0.28);
}

.hero-art {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.app-logo {
  position: absolute;
  top: 0;
  right: 7%;
  width: min(160px, 34vw);
  border-radius: 32px;
  filter: drop-shadow(0 24px 45px rgba(255, 79, 184, 0.34));
  transform: rotate(5deg);
}

.game-board {
  width: min(460px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    rgba(14, 7, 31, 0.88);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-3deg);
}

.tile {
  position: relative;
  display: block;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: inset -9px -12px 0 rgba(0, 0, 0, 0.18), 0 14px 28px rgba(0, 0, 0, 0.28);
}

.tile::after {
  content: "";
  position: absolute;
  top: 19%;
  left: 22%;
  width: 24%;
  height: 16%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.planet-a {
  background: linear-gradient(135deg, #6fffd7, #22a8ff);
}

.planet-b {
  background: linear-gradient(135deg, #ffe45e, #ff8d35);
}

.planet-c {
  background: linear-gradient(135deg, #ff4fb8, #8b5cff);
}

.planet-d {
  background: linear-gradient(135deg, #b8ff6f, #41d65d);
}

.hazard {
  background: radial-gradient(circle at 50% 50%, #080515 0 28%, #8b5cff 31% 48%, #020109 52%);
}

.laser {
  background:
    linear-gradient(45deg, transparent 38%, #ffe45e 39% 49%, transparent 50%),
    linear-gradient(135deg, #ff4fb8, #5ad7ff);
}

.star {
  border-radius: 26%;
  background: linear-gradient(135deg, #fff7ea, #ffe45e 52%, #ff9f1c);
}

.intro-section,
.updates-section,
.chaos-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.intro-copy p + p,
.policy-page p + p {
  margin-top: 1rem;
}

.section-block {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card-number {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--mint);
}

.hazard-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hazard-list span {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--pink);
  border-radius: 8px;
  background: rgba(17, 12, 36, 0.72);
  color: #fff7ea;
  font-weight: 800;
}

.hazard-list span:nth-child(2n) {
  border-left-color: var(--cyan);
}

.hazard-list span:nth-child(3n) {
  border-left-color: var(--yellow);
}

.cta-section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.cta-section h2 {
  max-width: 920px;
}

.product-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.product-footer strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
}

.policy-shell {
  width: min(980px, calc(100% - 40px));
}

.policy-page {
  padding: 4rem 0 5rem;
}

.policy-page h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.policy-meta {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.policy-page section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.policy-page h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.policy-page ul {
  margin: 1rem 0 1rem 1.2rem;
  padding: 0;
}

.policy-page li + li {
  margin-top: 0.45rem;
}

.compact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero,
  .intro-section,
  .updates-section,
  .chaos-section,
  .mode-grid,
  .product-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-art {
    min-height: 430px;
  }

  .app-logo {
    right: 0;
  }
}

@media (max-width: 640px) {
  .site-shell,
  .policy-shell {
    width: min(100% - 28px, 1180px);
  }

  .product-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-mark span {
    font-size: 0.9rem;
  }

  .support-top {
    width: 100%;
    justify-content: space-between;
    border-radius: 10px;
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .store-badge {
    width: 100%;
    text-align: center;
  }

  .hero-art {
    min-height: 360px;
  }

  .game-board {
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 20px;
  }

  .app-logo {
    width: 118px;
    border-radius: 24px;
  }

  .hazard-list {
    grid-template-columns: 1fr;
  }

  .intro-section,
  .updates-section,
  .chaos-section,
  .section-block,
  .cta-section {
    padding: 4rem 0;
  }
}
