:root {
  --bg: #07090e;
  --surface: #0f131c;
  --surface-2: #151b28;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #8b95a8;
  --accent: #a855f7;
  --accent-hover: #c084fc;
  --accent-glow: rgba(168, 85, 247, 0.35);
  --radius: 14px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Outfit", var(--font);
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::after {
  content: "";
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
  pointer-events: none;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 14, 0.9);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding: 0.85rem 0 0.75rem;
  min-height: var(--header-h);
}

.site-header--centered {
  height: auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo__img {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(240px, 78vw);
  object-fit: contain;
  object-position: center;
}

.site-footer__logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin: 0 auto 0.35rem;
}

.logo__text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-header__end {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav > a:hover {
  color: var(--text);
}

.site-nav__dropdown {
  position: relative;
}

.site-nav__dropbtn {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.site-nav__dropbtn:hover {
  color: var(--text);
}

.site-nav__menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  z-index: 300;
}

.site-nav__menu[hidden] {
  display: none !important;
}

.site-nav__dropdown.is-open .site-nav__menu {
  display: block;
}

.games-nav__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
}

.games-nav__item:hover {
  background: var(--surface-2);
}

.games-nav__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.games-nav__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.45rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

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

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

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

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-2);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero {
  text-align: center;
}

.hero__inner {
  max-width: 640px;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-hover);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 48ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section__head {
  margin-bottom: 2rem;
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.section__head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
}

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

.section__head--split {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: none;
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 280px));
  justify-content: center;
  gap: 0.75rem;
  max-width: 1160px;
  margin-inline: auto;
}

.game-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.game-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.game-tile__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.game-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.game-tile__body {
  flex: 1;
  min-width: 0;
}

.game-tile__body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.game-tile__body p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.game-tile__price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-hover);
  white-space: nowrap;
}

.game-tile__price small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Plans */
.cycle-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.cycle-toggle button {
  padding: 0.4rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.cycle-toggle button.is-active {
  background: var(--accent);
  color: #fff;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  justify-content: center;
  gap: 1rem;
  max-width: 960px;
  margin-inline: auto;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.plan-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.plan-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
}

.plan-card__name {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1.25rem;
}

.plan-card__spec {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.plan-card__price {
  margin-bottom: 1rem;
}

.plan-card__amount {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--display);
}

.plan-card__per {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-card__list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan-card__list li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.plan-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.plan-cta {
  margin-top: auto;
}

/* Popular purchases */
.purchases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  justify-content: center;
  gap: 0.75rem;
  max-width: 1000px;
  margin-inline: auto;
}

.purchase-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.purchase-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.purchase-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.purchase-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.purchase-card__body {
  flex: 1;
  min-width: 0;
}

.purchase-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-hover);
  margin-bottom: 0.2rem;
}

.purchase-card__body h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.purchase-card__spec {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.purchase-card__note {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.purchase-card__price {
  text-align: right;
  flex-shrink: 0;
}

.purchase-card__amount {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
}

.purchase-card__period {
  font-size: 0.75rem;
  color: var(--muted);
}

.plan-card__billing-note {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  min-height: 2.5em;
}

/* Perks */
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin-inline: auto;
}

.perk {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.perk strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.perk span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.site-footer__tag {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Currency (shared) */
.currency-select {
  position: relative;
}

.currency-select__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.currency-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 110px;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: 0.15s ease;
  z-index: 400;
}

.currency-select.is-open .currency-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.currency-select__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.6rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.currency-select__menu button:hover,
.currency-select__menu button.is-active {
  background: var(--surface-2);
  color: var(--text);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 0.75rem 1.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  z-index: 500;
  opacity: 0;
  transition: 0.25s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .perks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    background: var(--bg);
    z-index: 180;
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
  }

  .site-nav__dropdown.is-open .site-nav__menu {
    display: block;
  }

  .menu-btn {
    display: flex;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}
