:root {
  --bg: #09000f;
  --panel: #160022;
  --panel-2: #220036;
  --purple: #7024b1;
  --purple-soft: #b18df7;
  --gold: #f5d094;
  --gold-bright: #ffeac8;
  --text: #fff7ea;
  --muted: #b7a9c9;
  --line: rgba(255, 234, 200, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 0%, rgba(112, 36, 177, 0.4), transparent 28rem),
    radial-gradient(circle at 12% 14%, rgba(245, 208, 148, 0.16), transparent 28rem),
    linear-gradient(180deg, #050009 0%, #10001c 38%, #060008 100%);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 0, 13, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #14001f;
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-bright), #b77927 62%, var(--purple-soft));
  box-shadow: 0 0 28px rgba(245, 208, 148, 0.36);
}

.brand-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-text span {
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a {
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--gold-bright);
}

.login-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-strip input {
  width: 132px;
  height: 34px;
  padding: 0 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: none;
  background: #0d0f14;
}

.login-strip input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  color: #1a0628;
  background: linear-gradient(180deg, #fff8d7 0%, #f6d48f 42%, #b87523 100%);
  box-shadow: 0 8px 28px rgba(245, 208, 148, 0.22);
}

.btn-silver {
  color: #570d94;
  background: linear-gradient(180deg, #f9fafc 0%, #c9d3eb 48%, #f6f6ff 100%);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  color: var(--gold-bright);
  border: 1px solid rgba(255, 234, 200, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.btn-xl {
  min-height: 54px;
  padding-inline: 30px;
  font-size: 17px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gold-bright);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 44px;
}

.hero:before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.hero-glow {
  position: absolute;
  right: -120px;
  top: 40px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(112, 36, 177, 0.28);
  filter: blur(40px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 48px;
  align-items: center;
}

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

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 630px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-row span {
  padding: 8px 12px;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-art {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(112, 36, 177, 0.38), rgba(28, 0, 51, 0.72));
  box-shadow: var(--shadow);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.quick-card,
.game-card,
.support-card,
.device-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(43, 0, 70, 0.86), rgba(12, 0, 20, 0.88));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.quick-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #150020;
  font-size: 13px;
  font-weight: 900;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}

.quick-card strong {
  display: block;
  font-size: 17px;
}

.quick-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.tab-list {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.tab {
  min-width: 76px;
  height: 36px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  background: transparent;
}

.tab.active {
  color: #12001c;
  font-weight: 900;
  background: var(--gold);
}

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

.game-card {
  position: relative;
  min-height: 226px;
  padding: 22px;
  overflow: hidden;
  border-radius: 18px;
}

.game-card:after {
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 156px;
  height: 156px;
  content: "";
  border: 1px solid rgba(255, 234, 200, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 208, 148, 0.24), transparent 62%);
}

.game-card.feature {
  grid-row: span 2;
  min-height: 468px;
  background:
    linear-gradient(180deg, rgba(112, 36, 177, 0.32), rgba(14, 0, 22, 0.92)),
    radial-gradient(circle at 50% 28%, rgba(245, 208, 148, 0.18), transparent 17rem);
}

.game-badge {
  display: inline-flex;
  padding: 7px 11px;
  color: #180024;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: var(--gold);
}

.game-card h3 {
  margin: 56px 0 10px;
  font-size: 26px;
}

.game-card p {
  position: relative;
  z-index: 1;
  max-width: 310px;
  color: var(--muted);
  line-height: 1.55;
}

.game-card a {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  color: var(--gold-bright);
  font-weight: 900;
}

.promo-band {
  background: linear-gradient(90deg, rgba(112, 36, 177, 0.22), rgba(245, 208, 148, 0.08), rgba(112, 36, 177, 0.22));
  border-block: 1px solid var(--line);
}

.promo-grid,
.download {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: center;
}

.promo-copy p:not(.eyebrow),
.download p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.promo-stack {
  display: grid;
  gap: 12px;
}

.promo-stack article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 0, 18, 0.62);
}

.promo-stack span {
  color: var(--gold);
}

.device-card {
  display: grid;
  place-items: center;
  min-height: 430px;
  border-radius: 22px;
}

.phone-frame {
  width: 230px;
  height: 390px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background: #050009;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.phone-top {
  display: block;
  width: 74px;
  height: 6px;
  margin: 0 auto 16px;
  border-radius: 99px;
  background: #322044;
}

.phone-screen {
  display: grid;
  gap: 14px;
  height: calc(100% - 22px);
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 208, 148, 0.18), transparent 9rem),
    linear-gradient(180deg, #24013c, #09000e);
}

.phone-screen b {
  color: var(--gold);
}

.phone-screen span,
.phone-screen a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.phone-screen a {
  justify-content: center;
  color: #16001f;
  font-weight: 900;
  background: var(--gold);
}

.support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 18px;
}

.support-card h2 {
  font-size: 34px;
}

.support-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 30px 0 92px;
  border-top: 1px solid var(--line);
  background: #050009;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-inner span {
  color: var(--gold);
  font-weight: 900;
}

.mobile-dock {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal.active {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-card {
  position: relative;
  width: min(460px, calc(100% - 32px));
  margin: 16vh auto 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #30034e, #11001d);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  color: var(--gold);
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1020px) {
  .main-nav,
  .login-strip {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-open .main-nav {
    position: fixed;
    inset: 78px 16px auto;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #130021;
    box-shadow: var(--shadow);
  }

  .nav-open .main-nav a {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-open .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero-grid,
  .promo-grid,
  .download {
    grid-template-columns: 1fr;
  }

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

  .quick-panel,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card.feature {
    min-height: 300px;
  }

  .section-head,
  .support-card,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .tab-list {
    width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .quick-card {
    align-items: flex-start;
  }

  .promo-stack article {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-dock {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(7, 0, 13, 0.92);
    backdrop-filter: blur(12px);
  }

  .mobile-dock a {
    display: grid;
    place-items: center;
    min-height: 42px;
    color: var(--muted);
    font-size: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-dock a:nth-child(3) {
    color: #16001f;
    font-weight: 900;
    background: var(--gold);
  }
}
