:root {
  --bg: #070816;
  --bg-soft: rgba(12, 18, 38, 0.72);
  --card: rgba(11, 18, 38, 0.78);
  --card-strong: rgba(8, 13, 28, 0.92);
  --line: rgba(128, 168, 255, 0.28);
  --text: #f5f7ff;
  --muted: #b1bbd8;
  --cyan: #2cd9ff;
  --purple: #a157ff;
  --gold: #ffcb5c;
  --glow: 0 0 32px rgba(161, 87, 255, 0.35);
  --radius: 28px;
  --shadow: 0 24px 60px rgba(1, 5, 17, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(94, 35, 123, 0.7), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(22, 164, 197, 0.3), transparent 18%),
    radial-gradient(circle at 20% 90%, rgba(121, 67, 206, 0.28), transparent 22%),
    linear-gradient(180deg, #090b1b 0%, #080b14 50%, #05070d 100%);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 68%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 72%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 85%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px);
  opacity: 0.85;
}

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

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

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(145deg, rgba(44, 217, 255, 0.28), rgba(161, 87, 255, 0.48));
  box-shadow: 0 0 24px rgba(44, 217, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-switch a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.lang-switch a.active {
  background: linear-gradient(135deg, rgba(44, 217, 255, 0.18), rgba(161, 87, 255, 0.38));
  color: var(--text);
  box-shadow: var(--glow);
}

.hero {
  display: grid;
  gap: 42px;
  padding: 28px 0 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #dbe6ff;
  background: rgba(24, 33, 66, 0.78);
  border: 1px solid rgba(105, 139, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 42px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  background: linear-gradient(90deg, #f7fbff 0%, #81ecff 28%, #bc86ff 70%, #fdd17c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.button {
  background: linear-gradient(135deg, #7f4eff 0%, #c16dff 100%);
  box-shadow: 0 18px 36px rgba(119, 71, 255, 0.3);
}

.button-secondary {
  background: rgba(10, 17, 37, 0.68);
  border: 1px solid rgba(44, 217, 255, 0.4);
  color: #d9fcff;
}

.button:hover,
.button-secondary:hover,
.store-link:hover,
.lang-switch a:hover {
  transform: translateY(-2px);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item strong {
  font-size: 1.05rem;
}

.meta-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  position: relative;
  padding: 28px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(10, 16, 33, 0.9), rgba(7, 11, 24, 0.84));
  border: 1px solid rgba(137, 164, 255, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 87, 255, 0.35), transparent 70%);
}

.hero-panel-copy {
  min-height: 100%;
  display: grid;
  place-items: center;
}

.gameboard-mock {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
}

.gameboard-mock::before {
  content: "";
  position: absolute;
  inset: 20px 22px -10px;
  border-radius: 34px;
  background: radial-gradient(circle at top, rgba(44, 217, 255, 0.22), transparent 56%),
    radial-gradient(circle at bottom right, rgba(161, 87, 255, 0.2), transparent 52%);
  filter: blur(10px);
}

.gameboard-shell {
  position: relative;
  padding: 18px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(16, 23, 48, 0.96), rgba(8, 12, 26, 0.98));
  border: 1px solid rgba(161, 191, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 50px rgba(1, 5, 17, 0.42);
}

.gameboard-topbar,
.gameboard-footer,
.gameboard-row {
  display: flex;
  align-items: center;
}

.gameboard-topbar,
.gameboard-footer {
  justify-content: space-between;
  gap: 12px;
}

.gameboard-badge,
.gameboard-chip,
.gameboard-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe6ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gameboard-chip {
  background: rgba(44, 217, 255, 0.12);
  border-color: rgba(44, 217, 255, 0.2);
}

.gameboard-headline {
  margin: 18px 0 16px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.gameboard-grid {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(7, 13, 29, 0.92), rgba(11, 18, 38, 0.82));
  border: 1px solid rgba(128, 168, 255, 0.12);
}

.gameboard-row {
  justify-content: center;
  gap: 10px;
}

.tile {
  width: clamp(44px, 8vw, 56px);
  aspect-ratio: 1;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f7fbff;
  background: rgba(21, 31, 60, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tile-hit {
  background: linear-gradient(180deg, rgba(31, 206, 164, 0.92), rgba(24, 145, 120, 0.96));
  border-color: rgba(105, 255, 219, 0.3);
}

.tile-near {
  background: linear-gradient(180deg, rgba(255, 203, 92, 0.92), rgba(208, 145, 34, 0.96));
  border-color: rgba(255, 221, 136, 0.34);
  color: #111522;
}

.tile-miss {
  background: linear-gradient(180deg, rgba(58, 74, 115, 0.94), rgba(34, 45, 74, 0.98));
  border-color: rgba(157, 178, 230, 0.14);
}

.tile-empty {
  background: rgba(10, 16, 33, 0.68);
  border-style: dashed;
  border-color: rgba(128, 168, 255, 0.2);
  box-shadow: none;
}

.gameboard-footer {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.phone-frame {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(20, 26, 49, 0.92), rgba(8, 13, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 50px rgba(0, 0, 0, 0.38);
}

.phone-frame img {
  border-radius: 24px;
  width: 100%;
}

.orbit-pill {
  position: absolute;
  right: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(6, 14, 31, 0.82);
  border: 1px solid rgba(44, 217, 255, 0.24);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-stack {
  position: relative;
  display: grid;
  gap: 18px;
  padding-top: 42px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.signal-card {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: rgba(10, 17, 36, 0.74);
  border: 1px solid rgba(132, 176, 255, 0.16);
  overflow: hidden;
}

.signal-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -30px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 217, 255, 0.18), transparent 70%);
}

.signal-card-primary {
  padding: 22px;
  background: linear-gradient(180deg, rgba(13, 22, 46, 0.92), rgba(9, 14, 30, 0.88));
}

.signal-card strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 1.5rem;
  line-height: 1.05;
}

.signal-card p,
.signal-label {
  margin: 0;
  color: var(--muted);
}

.signal-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-value {
  display: block;
  margin-bottom: 8px;
  color: #e4fbff;
  font-size: 1.12rem;
  font-weight: 800;
}

.grid-section {
  padding: 14px 0 44px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.feature-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.legal-card,
.screenshot-card,
.quote-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-card::after,
.legal-card::after,
.quote-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 217, 255, 0.18), transparent 70%);
}

.feature-card strong,
.legal-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(44, 217, 255, 0.22), rgba(161, 87, 255, 0.38));
  box-shadow: 0 0 20px rgba(161, 87, 255, 0.18);
  font-size: 1.35rem;
}

.feature-card p,
.legal-card p {
  margin: 0;
  color: var(--muted);
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 18px;
}

.screenshot-card {
  padding: 20px;
  background: linear-gradient(180deg, rgba(9, 14, 30, 0.92), rgba(8, 11, 22, 0.88));
}

.screenshot-card h3,
.quote-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.screenshot-card p,
.quote-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.screenshot-card img {
  border-radius: 22px;
}

.texture-card {
  min-height: 100%;
}

.constellation-panel {
  position: relative;
  min-height: 260px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 22% 30%, rgba(161, 87, 255, 0.24), transparent 20%),
    radial-gradient(circle at 76% 26%, rgba(44, 217, 255, 0.18), transparent 18%),
    radial-gradient(circle at 68% 76%, rgba(255, 203, 92, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(9, 14, 30, 0.9), rgba(7, 10, 20, 0.92));
  border: 1px solid rgba(132, 176, 255, 0.14);
  overflow: hidden;
}

.constellation-panel span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dffbff;
  box-shadow: 0 0 18px rgba(44, 217, 255, 0.7);
}

.constellation-panel span:nth-child(1) {
  top: 20%;
  left: 18%;
}

.constellation-panel span:nth-child(2) {
  top: 32%;
  left: 42%;
}

.constellation-panel span:nth-child(3) {
  top: 18%;
  right: 20%;
}

.constellation-panel span:nth-child(4) {
  bottom: 26%;
  left: 28%;
}

.constellation-panel span:nth-child(5) {
  bottom: 18%;
  right: 26%;
}

.constellation-panel span:nth-child(6) {
  top: 50%;
  left: 60%;
}

.constellation-panel::before,
.constellation-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.constellation-panel::before {
  background:
    linear-gradient(120deg, transparent 0 21%, rgba(94, 133, 255, 0.32) 21% 22%, transparent 22% 100%),
    linear-gradient(145deg, transparent 0 47%, rgba(44, 217, 255, 0.28) 47% 48%, transparent 48% 100%),
    linear-gradient(180deg, transparent 0 73%, rgba(161, 87, 255, 0.24) 73% 74%, transparent 74% 100%);
  opacity: 0.9;
}

.constellation-panel::after {
  background: radial-gradient(circle at 50% 50%, transparent 0 45%, rgba(255, 255, 255, 0.03) 45% 46%, transparent 46% 100%);
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(15, 17, 38, 0.94), rgba(8, 10, 22, 0.9));
}

.quote-card blockquote {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 700;
}

.quote-card blockquote span {
  color: #87ecff;
}

.quote-footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.device-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.device-chip,
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
}

.device-chip {
  color: var(--muted);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-link {
  background: rgba(8, 15, 30, 0.9);
}

.store-link strong {
  display: block;
}

.store-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.store-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(44, 217, 255, 0.22), rgba(161, 87, 255, 0.34));
}

.store-icon svg {
  width: 20px;
  height: 20px;
  fill: #f5f7ff;
}

.store-icon-apple {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(161, 87, 255, 0.22));
}

.store-icon-play {
  background: linear-gradient(145deg, rgba(44, 217, 255, 0.24), rgba(255, 203, 92, 0.28));
}

.footer {
  padding: 30px 0 60px;
  color: var(--muted);
}

.footer-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-page {
  padding-bottom: 64px;
}

.legal-hero {
  padding: 28px 0 10px;
}

.legal-shell {
  padding: 28px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--card-strong);
  border: 1px solid rgba(137, 164, 255, 0.18);
  box-shadow: var(--shadow);
}

.legal-shell h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.02;
}

.legal-shell p.lead {
  margin: 0;
  color: var(--muted);
  max-width: 780px;
}

.legal-shell hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 26px 0;
}

.legal-shell h2 {
  margin: 28px 0 10px;
  font-size: 1.28rem;
}

.legal-shell p,
.legal-shell li {
  color: #d9e1f5;
}

.legal-shell ul {
  margin: 0;
  padding-left: 20px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #d9fcff;
}

@media (max-width: 980px) {
  .hero-grid,
  .showcase,
  .feature-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 12px;
  }

  .signal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy h1 {
    max-width: 10ch;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    padding-top: 18px;
  }

  .hero-panel,
  .legal-shell,
  .feature-card,
  .legal-card,
  .screenshot-card,
  .quote-card,
  .footer-card {
    padding: 18px;
  }

  .cta-row,
  .store-row {
    flex-direction: column;
  }

  .button,
  .button-secondary,
  .store-link {
    width: 100%;
  }

  .meta-row {
    gap: 16px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }
}
