:root {
  --bg: #050917;
  --bg-2: #07152a;
  --surface: #0a1b35;
  --surface-2: #10284b;
  --ink: #f7fbff;
  --muted: #aebed2;
  --gold: #ffd84d;
  --gold-2: #ff9f1c;
  --cyan: #1ed7ff;
  --green: #20d27b;
  --red: #ff344c;
  --line: rgba(30, 215, 255, 0.2);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --container: 1240px;
  color-scheme: dark;
}

* { 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;
  color: var(--ink);
  line-height: 1.6;
  background:
    linear-gradient(rgba(30, 215, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 215, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #050917 0%, #07152a 48%, #030712 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); max-width: 820px; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.3rem); }
h3 { font-size: 1.16rem; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 9, 23, 0.92);
  border-bottom: 1px solid rgba(255, 216, 77, 0.18);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 1.28rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(255, 216, 77, 0.35);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08172e;
  color: var(--ink);
  font-size: 1.2rem;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(30, 215, 255, 0.16);
  border-radius: 999px;
  background: rgba(9, 25, 48, 0.76);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  color: #07101f;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary { color: #111400; background: linear-gradient(135deg, #fff5a8, var(--gold), var(--gold-2)); box-shadow: 0 16px 38px rgba(255, 159, 28, 0.28); }
.btn-secondary { color: #03111f; background: linear-gradient(135deg, var(--cyan), #87f3ff); }
.btn-red { color: white; background: linear-gradient(135deg, var(--green), #07975a); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 54px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "MEGA888";
  position: absolute;
  right: 2vw;
  top: 18px;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 950;
  line-height: 1;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 0.95fr) minmax(280px, 0.82fr) minmax(320px, 0.58fr);
  gap: 22px;
  align-items: stretch;
}

.hero-content {
  align-self: center;
  padding: 22px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  margin-top: 20px;
  max-width: 650px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.hero-actions, .section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-facts span {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(30, 215, 255, 0.26);
  border-radius: 999px;
  background: rgba(30, 215, 255, 0.08);
  color: #dffaff;
  font-size: 0.83rem;
  font-weight: 850;
}

.hero-art {
  position: relative;
  margin: 0;
  min-height: 500px;
  border: 1px solid rgba(255, 216, 77, 0.22);
  border-radius: 8px;
  overflow: hidden;
  background: #061126;
  box-shadow: var(--shadow);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(5, 9, 23, 0.76));
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.hero-showcase {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(30, 215, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 34, 64, 0.96), rgba(4, 12, 26, 0.96));
  box-shadow: var(--shadow);
}

.app-card-main {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 216, 77, 0.24);
  border-radius: 8px;
  background: rgba(255, 216, 77, 0.08);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
}

.card-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.download-stack {
  display: grid;
  gap: 9px;
}

.download-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.download-tile strong { color: var(--ink); }
.download-tile span { color: var(--muted); font-size: 0.86rem; }
.download-tile.android { box-shadow: inset 5px 0 0 var(--green); }
.download-tile.ios { box-shadow: inset 5px 0 0 var(--cyan); }
.download-tile.pc { box-shadow: inset 5px 0 0 var(--gold); }

.test-id-card {
  padding: 14px;
  border: 1px dashed rgba(255, 216, 77, 0.46);
  border-radius: 8px;
  background: #061226;
}

.test-id-card span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.test-id-card strong {
  display: block;
  color: var(--ink);
  margin-top: 4px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  position: relative;
  z-index: 3;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.trust-item {
  min-height: 118px;
  padding: 20px;
  background: rgba(8, 24, 48, 0.96);
}

.trust-item strong,
.feature-chip strong {
  display: block;
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.section { padding: 78px 0; }
.section.tight { padding: 46px 0 78px; }

.section-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.split-head {
  max-width: none;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 28px;
  align-items: end;
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card,
.promo-card,
.game-card,
.step,
.faq-item,
.feature-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 27, 53, 0.82);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.card,
.promo-card,
.game-card,
.feature-chip {
  padding: 22px;
}

.game-card {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--gold), var(--cyan), var(--green), var(--gold));
}

.game-card:hover {
  border-color: rgba(255, 216, 77, 0.48);
}

.app-strip {
  padding: 0;
  background: #061126;
  border-block: 1px solid var(--line);
}

.app-strip-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) 1fr;
  gap: 34px;
  align-items: center;
  padding-block: 56px;
}

.brand-copy {
  max-width: 780px;
}

.brand-copy p {
  margin-top: 14px;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.media-band {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 34px;
  align-items: center;
}

.media-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 216, 77, 0.24);
  box-shadow: var(--shadow);
}

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

.download-band {
  background: linear-gradient(135deg, rgba(15, 45, 84, 0.82), rgba(4, 12, 26, 0.96));
  border-block: 1px solid var(--line);
}

.download-board {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 216, 77, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 216, 77, 0.2);
}

.download-board div {
  display: grid;
  grid-template-columns: 52px 170px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: #081a33;
}

.download-board span {
  color: var(--cyan);
  font-weight: 950;
}

.promo-card {
  display: grid;
  gap: 14px;
}

.promo-card .amount {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.page-hero {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #071a34, #050917);
}

.page-hero .container {
  display: grid;
  gap: 14px;
  align-items: end;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a { color: var(--gold); }
.page-hero p { max-width: 760px; }

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  padding: 22px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #07101f;
  font-weight: 950;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table { width: 100%; border-collapse: collapse; min-width: 680px; background: rgba(9, 27, 53, 0.72); }
th, td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--gold); background: rgba(30, 215, 255, 0.08); }
tr:last-child td { border-bottom: 0; }

.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 20px; }
.faq-item h3 { margin-bottom: 8px; }

.cta-band {
  padding: 58px 0;
  text-align: center;
  background: linear-gradient(135deg, #091f3b, #0b4b76);
  border-top: 1px solid var(--line);
}

.cta-band .lead {
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  padding: 44px 0 24px;
  border-top: 1px solid var(--line);
  background: #030712;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 950;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 215, 255, 0.14);
  color: var(--muted);
  font-size: 0.9rem;
}

.floating-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(3, 7, 18, 0.94);
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .nav-wrap { grid-template-columns: auto auto; }
  .nav-toggle { display: grid; place-items: center; justify-self: end; }
  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 8px;
  }
  .main-nav.is-open { display: flex; }
  .nav-actions { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-content { max-width: 760px; }
  .hero-art { min-height: 440px; }
  .hero-art img { min-height: 440px; }
  .hero-showcase { grid-template-columns: 1fr 1.2fr 0.8fr; align-items: stretch; }
  .download-stack { grid-template-columns: repeat(3, 1fr); }
  .download-tile { grid-template-columns: 1fr; }
  .trust-row, .fact-strip, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .media-band, .app-strip-inner, .split-head { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, var(--container)); }
  h1 { font-size: clamp(2.2rem, 13vw, 3.5rem); }
  h2 { font-size: clamp(1.7rem, 9vw, 2.45rem); }
  .hero { padding: 42px 0 34px; }
  .hero-inner,
  .hero-showcase,
  .download-stack,
  .trust-row,
  .fact-strip,
  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-art { min-height: 320px; order: -1; }
  .hero-art img { min-height: 320px; }
  .app-card-main { grid-template-columns: 58px 1fr; }
  .app-icon { width: 58px; height: 58px; border-radius: 14px; }
  .download-tile { min-height: 58px; }
  .download-board div { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .app-strip-inner { padding-block: 42px; }
  .hero-actions .btn, .section-actions .btn, .floating-cta .btn { flex: 1 1 auto; }
  .floating-cta { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 420px) {
  .brand span { display: none; }
  .hero-art { min-height: 260px; }
  .hero-art img { min-height: 260px; }
  .hero-actions .btn,
  .section-actions .btn {
    width: 100%;
  }
  .trust-item,
  .card,
  .promo-card,
  .game-card,
  .feature-chip {
    padding: 18px;
  }
}
