:root {
  --bg-top: #1a1a2e;
  --bg-bottom: #0f1626;
  --panel: #16213e;
  --panel-light: #22305a;
  --gold: #f2c14e;
  --gold-soft: #ffe9a8;
  --player: #4fc3f7;
  --ai: #ef9a9a;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --body: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --header-h: 68px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(var(--bg-top), var(--bg-bottom)) fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-soft);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(15, 22, 38, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links > a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}

.nav-links > a:hover,
.nav-links > a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-links > a.btn {
  color: #14213e;
}

.nav-links > a.btn:hover {
  color: #14213e;
  background: var(--gold-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease,
    border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #14213e;
}

.btn-primary:hover {
  color: #14213e;
  background: linear-gradient(135deg, #fff3c9, #f7cd66);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease,
    background 0.2s ease;
}

.store-btn:hover {
  border-color: var(--gold);
  color: var(--text);
  background: rgba(242, 193, 78, 0.08);
  transform: translateY(-2px);
}

.store-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-text small {
  font-size: 0.62rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.store-text strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.store-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.store-btn-disabled:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transform: none;
}

.store-badge {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel-light);
  border: 1px solid rgba(242, 193, 78, 0.45);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.5;
}

.hero {
  text-align: center;
  padding: 84px 24px 72px;
  max-width: 780px;
  margin: 0 auto;
}

.hero-logo {
  width: clamp(170px, 40vw, 250px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 30px;
  border-radius: 24%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(242, 193, 78, 0.18);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 9vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 auto 34px;
  max-width: 640px;
  color: var(--body);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.section {
  padding: 68px 24px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 42px;
}

.section-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 4.5vw, 2.3rem);
  letter-spacing: 0.5px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 193, 78, 0.45);
}

.card .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--panel-light);
  color: var(--gold);
}

.card .icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  counter-reset: step;
}

.step {
  display: flex;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step .num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #14213e;
  font-weight: 800;
  font-size: 1.05rem;
}

.step .num::before {
  content: counter(step);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

details.faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 22px;
}

details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

details.faq[open] summary::after {
  transform: rotate(45deg);
}

details.faq p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.97rem;
}

.cta {
  background: linear-gradient(135deg, var(--panel-light), var(--panel));
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: 26px;
  padding: clamp(34px, 6vw, 56px);
  text-align: center;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.cta p {
  margin: 0 auto 26px;
  max-width: 560px;
  color: var(--muted);
}

.page-head {
  padding: 56px 24px 8px;
  text-align: center;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: 1px;
}

.page-head .updated {
  color: var(--muted);
  font-size: 0.92rem;
}

.doc {
  max-width: 860px;
  margin: 34px auto 72px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(26px, 5vw, 54px);
}

.doc h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.3rem;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

.doc h2:first-of-type {
  margin-top: 1.4rem;
}

.doc h3 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.05rem;
}

.doc p,
.doc li {
  color: var(--body);
  font-size: 0.99rem;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 26px;
}

.toc strong {
  display: block;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--gold);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  padding: 48px 0 26px;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 320px;
}

.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 5px 0;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    background: rgba(15, 22, 38, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a {
    padding: 13px 14px;
  }

  .nav-links > a.btn {
    text-align: center;
    margin-top: 6px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .btn {
    transition: none;
  }

  .card:hover,
  .btn:hover {
    transform: none;
  }
}
