*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0818;
  --bg-card: rgba(255, 255, 255, 0.04);
  --gold: #f5c842;
  --gold-light: #ffe98a;
  --gold-dark: #c9971a;
  --purple: #7b3fe4;
  --purple-light: #a86bff;
  --text: #f4f0ff;
  --text-muted: rgba(244, 240, 255, 0.65);
  --border: rgba(245, 200, 66, 0.2);
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(123, 63, 228, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245, 200, 66, 0.08), transparent);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--left {
  top: 10%;
  left: -10%;
  background: rgba(123, 63, 228, 0.15);
}

.bg-glow--right {
  bottom: 5%;
  right: -10%;
  background: rgba(245, 200, 66, 0.1);
}

.coins {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.coin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-dark);
  background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
  box-shadow: 0 4px 20px rgba(245, 200, 66, 0.3);
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.coin--1 { top: 18%; left: 8%; animation-delay: 0s; }
.coin--2 { top: 55%; left: 4%; animation-delay: -2s; width: 2rem; height: 2rem; font-size: 0.9rem; }
.coin--3 { top: 25%; right: 6%; animation-delay: -4s; width: 2.5rem; height: 2.5rem; }
.coin--4 { bottom: 20%; right: 10%; animation-delay: -1s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  position: relative;
  z-index: 1000;
  isolation: isolate;
}

.logo {
  display: block;
  line-height: 0;
}

.logo img {
  display: block;
  width: auto;
  height: 3.25rem;
}

.lang-switcher {
  position: relative;
  z-index: 1001;
}

.lang-switcher__toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lang-switcher__toggle:hover,
.lang-switcher__toggle[aria-expanded="true"] {
  border-color: var(--gold);
  background: rgba(245, 200, 66, 0.08);
}

.lang-switcher__chevron {
  transition: transform 0.2s;
}

.lang-switcher__toggle[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 11rem;
  list-style: none;
  background: #1a1228;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  z-index: 1002;
}

.lang-switcher__menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-switcher__option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-align: left;
  text-decoration: none;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.lang-switcher__option:hover,
.lang-switcher__option.is-active {
  color: var(--gold-light);
  background: rgba(245, 200, 66, 0.1);
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 0 3.5rem;
}

.hero__content {
  text-align: left;
}

.hero__visual {
  line-height: 0;
  position: relative;
  z-index: 0;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
}

.hero__tagline {
  max-width: 28rem;
  margin-top: 0.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(245, 200, 66, 0.1);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__description {
  max-width: 28rem;
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.showcase {
  text-align: center;
  margin-bottom: 3.5rem;
}

.showcase__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.showcase__text {
  max-width: 32rem;
  margin: 0.75rem auto 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.showcase__figure {
  margin-top: 1.75rem;
  line-height: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.showcase__image {
  display: block;
  width: 100%;
  height: auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  text-align: left;
}

.feature {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}

.feature:hover {
  border-color: rgba(245, 200, 66, 0.45);
  transform: translateY(-2px);
}

.feature__icon {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.feature__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.feature__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__game {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__game a {
  color: var(--purple-light);
  text-decoration: none;
  margin-left: 0.25rem;
  transition: color 0.15s;
}

.footer__game a:hover {
  color: var(--gold-light);
}

.footer__disclaimer {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(244, 240, 255, 0.4);
}

.footer__copy {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(244, 240, 255, 0.3);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 1.5rem;
  }

  .hero__content {
    text-align: center;
  }

  .hero__tagline,
  .hero__description {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  .header {
    padding-top: 1rem;
  }

  .logo img {
    height: 2.5rem;
  }

  .coin {
    opacity: 0.25;
  }
}
