:root {
  color-scheme: dark;
  --bg-main: #030617;
  --bg-panel: rgba(15, 23, 42, 0.85);
  --text-primary: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #f97316;
  --border: rgba(148, 163, 184, 0.2);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 80px rgba(15, 23, 42, 0.65);
  --gradient: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.25), transparent 40%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  background: var(--bg-main);
  color: var(--text-primary);
}

body.nav-open {
  overflow: hidden;
}

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

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

a:hover {
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: var(--gradient);
  background-attachment: fixed;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 6, 23, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.masthead__row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2.4rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.brand img {
  width: 120px;
  height: auto;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.primary-nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav a.is-active,
.primary-nav a:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.15);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  display: block;
}

.content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 132, 199, 0.35));
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.2rem 0 1rem;
  line-height: 1.2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(15, 118, 242, 0.2);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: var(--accent);
  color: #02101f;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

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

.stat-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(7, 11, 27, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.stat-card span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-card strong {
  font-size: 1.4rem;
}

.slab {
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(30, 41, 59, 0.7);
  box-shadow: var(--shadow-soft);
}

.slab__grid {
  display: grid;
  gap: 1.5rem;
}

.slab__grid--two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel {
  padding: clamp(1.25rem, 2vw, 1.8rem);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.panel--highlight {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(249, 115, 22, 0.15));
}

.panel--muted {
  background: rgba(2, 132, 199, 0.07);
}

.panel--glass {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(18px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--accent);
  margin: 0 0 0.8rem;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.panel p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.author-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.65);
  margin-bottom: 1.5rem;
}

.author-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.author-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card .info {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.content-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-primary);
}

.content-body h2,
.content-body h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.content-body table td,
.content-body table th {
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.5rem 0.75rem;
}

.content-body ol,
.content-body ul {
  padding-left: 1.2rem;
}

.data-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.data-list--two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.data-list div {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(8, 12, 32, 0.75);
}

.data-list dt {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-list dd {
  margin: 0.3rem 0 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.step-list {
  margin: 0;
  padding-left: 1.4rem;
  counter-reset: steps;
}

.step-list li {
  margin-bottom: 0.6rem;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.game-card {
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(3, 7, 24, 0.85);
}

.game-card h3 {
  margin: 0 0 0.8rem;
}

.game-card__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.list-check {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.list-check li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.app-card {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(10, 15, 30, 0.7);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.payment-card {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1rem;
  background: rgba(7, 11, 27, 0.8);
}

.payment-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.faq-block {
  display: grid;
  gap: 0.8rem;
}

.faq-block details {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(8, 11, 25, 0.7);
  padding: 0.8rem 1rem;
}

.faq-block summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq-block details[open] summary {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .primary-nav {
    position: fixed;
    inset: 0;
    padding: 6rem 2rem 2rem;
    flex-direction: column;
    background: rgba(2, 6, 23, 0.95);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 200;
    overflow-y: auto;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .primary-nav.is-open {
    transform: translateY(0);
  }

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

  .primary-nav a {
    width: 100%;
    text-align: center;
    font-size: 1.35rem;
    padding: 0.9rem 0;
  }
}

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

  .content {
    padding-bottom: 3rem;
  }
}