:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef6f2;
  --ink: #18202d;
  --muted: #647083;
  --line: #dde3ec;
  --green: #138a4b;
  --green-dark: #0c6337;
  --red: #dc3d38;
  --blue: #2563eb;
  --gold: #d29022;
  --shadow: 0 18px 50px rgba(24, 32, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

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

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 72px;
  padding: 0 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.12rem;
  font-weight: 800;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

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

.nav-menu a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 14px;
}

.nav-menu a:hover {
  background: var(--surface-2);
  color: var(--green-dark);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 8px;
  width: 42px;
}

.nav-toggle span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  margin: 5px 0;
}

.hero {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 72px);
  padding: 72px 24px 48px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
  max-width: 820px;
}

.hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 22px 0 0;
  max-width: 680px;
}

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

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(19, 138, 75, 0.24);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 12px;
}

.hero-media {
  align-items: center;
  display: flex;
  justify-content: center;
}

.hero-media img {
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: min(100%, 520px);
}

.content-wrap {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: 260px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 24px 72px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(24, 32, 45, 0.06);
  padding: 18px;
  position: sticky;
  top: 96px;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.toc a {
  border-radius: 6px;
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 10px;
}

.toc a:hover {
  background: var(--surface-2);
  color: var(--green-dark);
}

.article {
  min-width: 0;
}

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 30px;
}

.section h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 14px;
}

.section h3 {
  line-height: 1.25;
  margin: 0 0 8px;
}

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

.feature-grid,
.game-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.game-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature,
.game-card {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.feature p,
.game-card p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

.icon,
.game-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
  padding: 4px 9px;
}

.icon {
  background: var(--surface-2);
  color: var(--green-dark);
}

.game-badge {
  color: #fff;
}

.game-badge.red {
  background: var(--red);
}

.game-badge.green {
  background: var(--green);
}

.game-badge.blue {
  background: var(--blue);
}

.game-badge.gold {
  background: var(--gold);
}

.info-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.info-table div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.info-table div + div {
  border-top: 1px solid var(--line);
}

.info-table span,
.info-table strong {
  padding: 14px 16px;
}

.info-table span {
  background: #f3f6fa;
  color: var(--muted);
  font-weight: 700;
}

.download-panel {
  align-items: center;
  background: linear-gradient(135deg, #eef6f2, #fff7e8);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 20px;
}

.download-panel p {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.steps li {
  border-left: 3px solid var(--green);
  margin-bottom: 16px;
  padding: 4px 0 4px 18px;
}

.steps strong {
  display: block;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq details p {
  margin: 12px 0 0;
}

.rating {
  text-align: center;
}

.stars {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.stars button {
  background: transparent;
  border: 0;
  color: #c5ccd8;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 3px;
}

.stars button.active,
.stars button:hover,
.stars button:hover ~ button {
  color: var(--gold);
}

.rating-text {
  margin-top: 10px;
}

.footer {
  background: var(--ink);
  color: #dce2ea;
  padding: 28px 24px;
  text-align: center;
}

.footer p {
  margin: 0;
}

.sticky-cta {
  bottom: 18px;
  left: 50%;
  position: fixed;
  transform: translateX(-50%);
  z-index: 40;
}

.sticky-cta a {
  background: var(--green);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(19, 138, 75, 0.28);
  color: #fff;
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 800;
  min-height: 48px;
  padding: 11px 22px;
  white-space: nowrap;
}

.register-hero {
  background:
    radial-gradient(circle at 82% 12%, rgba(19, 138, 75, 0.18), transparent 32%),
    linear-gradient(135deg, #f7f8fb 0%, #eef6f2 58%, #fff7e8 100%);
}

.trust-bar {
  align-items: center;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 14px 18px;
}

.trust-bar span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 6px 12px;
}

.stats-panel {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
}

.stats-panel h2 {
  color: #fff;
}

.stats-panel .stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.stats-panel .stat-grid div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px;
}

.stats-panel strong,
.stats-panel span {
  display: block;
}

.stats-panel strong {
  color: #d8f8e4;
  font-size: 1.6rem;
  line-height: 1;
}

.stats-panel span {
  font-size: 0.92rem;
  font-weight: 800;
  margin-top: 8px;
}

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

  .nav-menu {
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
    left: 0;
    padding: 10px 24px 18px;
    position: absolute;
    right: 0;
    top: 72px;
  }

  .nav-menu.open {
    display: grid;
    gap: 4px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-media {
    justify-content: flex-start;
  }

  .content-wrap {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .feature-grid,
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .nav {
    padding: 0 16px;
  }

  .hero,
  .content-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section {
    padding: 22px;
  }

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

  .info-table div {
    grid-template-columns: 1fr;
  }

  .download-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .sticky-cta {
    bottom: 10px;
    width: calc(100% - 32px);
  }

  .sticky-cta a {
    justify-content: center;
    width: 100%;
  }

  .stats-panel .stat-grid {
    grid-template-columns: 1fr;
  }
}



.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin: 16px auto 0;
  max-width: 900px;
}

.footer-links a {
  color: #dce2ea;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.78;
}

.footer-links a:hover {
  color: #fff;
  opacity: 1;
}

.footer-note {
  font-size: 0.86rem;
  margin-top: 18px;
  opacity: 0.78;
}

.footer-disclaimer {
  font-size: 0.78rem;
  margin-top: 6px;
  opacity: 0.55;
}

.brand-logo {
  border-radius: 8px;
  height: 40px;
  object-fit: contain;
  width: 40px;
}





/* ===== FINAL CONTRAST + ACCESSIBILITY FIX ===== */

/* 1. Buttons (contrast fix) */
.button.primary {
  background: #0b8043; /* darker green */
  color: #ffffff;
}

.button.primary:hover {
  background: #075c30;
}

/* Sticky CTA */
.sticky-cta a {
  background: #0b8043;
  color: #ffffff;
}

/* 2. Game badges (contrast boost) */
.game-badge.red {
  background: #b71c1c;
  color: #ffffff;
}

.game-badge.green {
  background: #1b5e20;
  color: #ffffff;
}

.game-badge.blue {
  background: #1e40af;
  color: #ffffff;
}

.game-badge.gold {
  background: #a16207;
  color: #ffffff;
}

/* 3. Light text readability fix */
.section p,
.hero-copy > p:not(.eyebrow),
.toc a,
.trust-strip span {
  color: #4a5568; /* darker than muted */
}

/* 4. Footer readability */
.footer-links a {
  opacity: 0.9;
}

/* 5. Stars contrast */
.stars button {
  color: #9aa4b2;
}

.stars button.active,
.stars button:hover,
.stars button:hover ~ button {
  color: #f59e0b;
}

/* 6. Nav links visibility */
.nav-menu a {
  color: #4a5568;
}

/* ===== END ===== */


/* ===== MOBILE IMAGE FIX ===== */
@media (max-width: 768px) {
  .hero-media img {
    width: 100%;
    height: auto;   /* important */
    aspect-ratio: auto; /* force natural ratio */
  }
}
