:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-dark: #111113;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --blue: #0071e3;
  --blue-dark: #005bbd;
  --green: #34c759;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.95), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 42%, #ececf0 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.035));
  pointer-events: none;
}

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

.section {
  padding: 112px 0;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(245, 245, 247, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.045);
}

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

.nav-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  gap: 4px;
  padding: 9px;
  background: rgba(0, 0, 0, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-menu-btn .bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 99px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-menu-btn.active .bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary,
.btn-soft {
  color: var(--blue);
  background: transparent;
  border-color: rgba(0, 113, 227, 0.28);
}

.btn-secondary:hover,
.btn-soft:hover {
  background: rgba(0, 113, 227, 0.08);
}

.nav-btn {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 112px;
  padding-bottom: 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 74px;
}

.hero-copy {
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(64px, 10vw, 132px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-desc {
  max-width: 660px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.38;
  font-weight: 600;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 570px;
  margin-top: 52px;
}

.stat {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
}

.stat span {
  display: block;
  margin-top: 9px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  min-height: 520px;
  padding: 18px;
  background: linear-gradient(180deg, #1c1c1e, #0f0f10);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 38px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%);
  pointer-events: none;
}

.preview-topbar,
.preview-logo,
.preview-lines,
.preview-status {
  position: relative;
  z-index: 1;
}

.preview-topbar {
  display: flex;
  gap: 7px;
  padding: 4px;
}

.preview-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.preview-logo {
  display: grid;
  place-items: center;
  width: 258px;
  height: 258px;
  margin: 56px auto 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
}

.preview-logo img {
  width: min(78%, 210px);
  border-radius: 26px;
}

.preview-lines {
  display: grid;
  gap: 12px;
  padding: 0 10px;
}

.preview-lines span {
  display: block;
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.preview-lines span:nth-child(2) {
  width: 78%;
}

.preview-lines span:nth-child(3) {
  width: 56%;
}

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 28px 10px 0;
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.games-strip {
  padding: 36px 0;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip-heading {
  margin-bottom: 14px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.games-list-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}

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

.section-head span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 900;
}

.section-head p {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 19px;
  font-weight: 600;
}

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

.key-card,
.script-card,
.faq-row {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.key-card {
  min-height: 300px;
  padding: 34px;
  color: var(--text);
  text-decoration: none;
  border-radius: 30px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.key-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
}

.key-card.featured {
  color: #fff;
  background: linear-gradient(180deg, #1c1c1e, #111113);
  border-color: rgba(0, 0, 0, 0.16);
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 11px;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.featured .card-kicker {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.key-card h3 {
  margin-top: 30px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.key-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 550;
}

.featured p {
  color: rgba(255, 255, 255, 0.7);
}

.card-link {
  display: inline-flex;
  margin-top: 32px;
  color: var(--blue);
  font-weight: 850;
}

.featured .card-link {
  color: #8fc7ff;
}

.script-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 30px;
}

.script-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.script-badge {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.script-header h3 {
  margin-top: 4px;
  font-size: 28px;
  letter-spacing: 0;
}

.script-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.code-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #111113;
}

.code-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 850;
}

.copy-btn {
  min-height: 34px;
  padding: 0 13px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--blue-dark);
}

.code-content {
  padding: 20px;
  color: #f5f5f7;
  font-family: "SFMono-Regular", "Consolas", "Courier New", monospace;
  font-size: 14px;
  overflow-x: auto;
  white-space: nowrap;
}

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

.steps-grid div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.035);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.steps-grid strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 13px;
}

.steps-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.faq-section-inner {
  max-width: 830px;
}

.faq-container {
  display: grid;
  gap: 12px;
}

.faq-row {
  overflow: hidden;
  border-radius: 22px;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 21px 22px;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-q span {
  color: var(--blue);
  font-size: 22px;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  color: var(--muted);
  font-size: 15px;
  transition: max-height 0.18s ease, padding 0.18s ease;
}

.faq-row.active .faq-a {
  max-height: 260px;
  padding: 0 22px 22px;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.footer p,
.footer a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

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

.banner-ad {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: none;
  width: min(350px, calc(100vw - 32px));
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.banner-ad.show {
  display: block;
}

.banner-badge {
  display: inline-flex;
  min-height: 26px;
  padding: 0 10px;
  align-items: center;
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.banner-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.045);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.banner-title {
  margin-top: 15px;
  font-size: 19px;
  letter-spacing: 0;
}

.banner-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.banner-cta {
  margin-top: 18px;
  color: var(--blue);
  font-weight: 850;
}

@media (max-width: 920px) {
  .nav-menu-btn {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 4px;
    padding: 12px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    justify-content: center;
    min-height: 46px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-panel {
    order: -1;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  .section {
    padding: 78px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 94px;
  }

  .hero-copy {
    text-align: center;
  }

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

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-stats,
  .keys-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .preview-logo {
    width: 210px;
    height: 210px;
    margin: 38px auto 28px;
  }

  .script-header,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    align-items: center;
    text-align: center;
  }

  .banner-ad {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: rgba(28, 28, 30, 0.72);
    --surface-strong: rgba(28, 28, 30, 0.94);
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --subtle: #8e8e93;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --shadow: 0 18px 70px rgba(0, 0, 0, 0.32);
  }

  .site-bg {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34%),
      linear-gradient(180deg, #050505 0%, #101012 48%, #000 100%);
  }

  .site-header {
    background: rgba(0, 0, 0, 0.72);
  }

  .section-alt,
  .games-strip,
  .footer {
    background: rgba(255, 255, 255, 0.035);
  }

  .nav-link:hover,
  .steps-grid div,
  .nav-menu-btn {
    background: rgba(255, 255, 255, 0.08);
  }

  .key-card:hover {
    background: rgba(36, 36, 38, 0.92);
  }

  .game-tag {
    background: rgba(255, 255, 255, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
