:root {
  --bg: #070c18;
  --bg-card: #111a2c;
  --line: rgba(46, 230, 208, 0.18);
  --turquoise: #2ee6d0;
  --yellow: #ffe14d;
  --yellow-hot: #ffd000;
  --white: #ffffff;
  --text: #f5f8fc;
  --muted: #9aa8bc;
  --navy: #08101c;
  --ink: #10182a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --container: 1120px;
  --pad: clamp(0.9rem, 4.2vw, 1.75rem);
  --disclaimer-h: 52px;
  --header-h: 64px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(46, 230, 208, 0.1), transparent 52%),
    radial-gradient(720px 360px at 100% 0%, rgba(255, 225, 77, 0.07), transparent 48%),
    linear-gradient(180deg, #08101c 0%, var(--bg) 38%, #070b16 100%);
  line-height: 1.5;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
a {
  font-family: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(1.7rem, 8vw, 3.6rem);
}

h2 {
  font-size: clamp(1.35rem, 4.4vw, 2.15rem);
}

h3 {
  font-size: 1.08rem;
}

.container {
  width: min(100% - var(--pad) * 2, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 80;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: calc(var(--disclaimer-h) + 0.5rem);
}

.disclaimer {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--disclaimer-h);
  display: grid;
  place-items: center;
  padding: 0.65rem var(--pad);
  background: linear-gradient(90deg, var(--yellow-hot) 0%, var(--yellow) 48%, #fff36a 100%);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(255, 208, 0, 0.28);
  text-align: center;
}

.disclaimer__text {
  font-size: clamp(0.82rem, 3.2vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.header {
  position: sticky;
  top: var(--disclaimer-h);
  z-index: 50;
  background: rgba(7, 12, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--white);
  background: rgba(46, 230, 208, 0.12);
}

.header__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-card);
}

.lang-switch button {
  min-height: 40px;
  min-width: 40px;
  padding: 0 0.6rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--turquoise);
  color: var(--navy);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--white);
  cursor: pointer;
}

.menu-btn__label {
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.menu-btn__icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.menu-btn__icon span {
  display: block;
  height: 2px;
  background: var(--turquoise);
  border-radius: 99px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn.is-open .menu-btn__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.is-open .menu-btn__icon span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open .menu-btn__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: sticky;
  top: calc(var(--disclaimer-h) + var(--header-h));
  z-index: 45;
  background: #0e1728;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem var(--pad) 0.75rem;
}

.mobile-menu__list a {
  display: flex;
  align-items: center;
  min-height: 46px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(4, 8, 16, 0.55);
}

.hero {
  padding: clamp(1.35rem, 4.5vw, 4.5rem) 0 clamp(1.8rem, 5.5vw, 5rem);
}

.hero__grid {
  display: grid;
  gap: 1.25rem;
}

.hero__lead {
  margin-top: 0.85rem;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.6vw, 1.12rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hero__actions .btn {
  flex: 1 1 100%;
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__stats li {
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17, 26, 44, 0.72);
}

.hero__stat-value {
  display: block;
  color: var(--yellow);
  font-weight: 800;
  font-size: 1rem;
}

.hero__stat-label {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.spotlight {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(46, 230, 208, 0.1), transparent 40%),
    var(--bg-card);
  box-shadow: var(--shadow);
}

.spotlight__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.spotlight__meta,
.spotlight__time {
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.spotlight__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0.65rem;
}

.spotlight__team {
  min-width: 0;
  font-weight: 800;
  font-size: clamp(0.95rem, 3.2vw, 1.25rem);
}

.spotlight__team:last-of-type {
  text-align: right;
}

.spotlight__score {
  min-width: 3.6rem;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  background: rgba(46, 230, 208, 0.12);
  color: var(--turquoise);
  text-align: center;
  font-weight: 800;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 26px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--live {
  background: #ff3b3b;
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn--primary {
  background: var(--turquoise);
  color: var(--navy);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}

.btn--full {
  width: 100%;
  margin-top: 0.85rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.features {
  padding: clamp(1.25rem, 4.8vw, 4rem) 0;
}

.section-head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.05rem;
}

.feature-grid {
  display: grid;
  gap: 0.8rem;
}

.feature-card {
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.8rem;
  border-radius: 14px;
  background: rgba(46, 230, 208, 0.12);
  color: var(--turquoise);
}

.feature-card p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notify {
  padding: 0 0 clamp(1.6rem, 5vw, 4rem);
}

.notify__card {
  max-width: 720px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(46, 230, 208, 0.08), transparent 42%),
    var(--bg-card);
}

.notify__lead {
  margin-top: 0.5rem;
  color: var(--muted);
  max-width: 42ch;
}

.notify__form {
  margin-top: 1.1rem;
}

.notify__row {
  display: grid;
  gap: 0.65rem;
}

.notify__input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 12, 24, 0.7);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
}

.notify__input::placeholder {
  color: #7e8ea3;
}

.notify__input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.notify__input.is-invalid {
  border-color: #ff6b6b;
}

.notify__error {
  margin-top: 0.55rem;
  color: #ff9b9b;
  font-size: 0.9rem;
  font-weight: 600;
}

.notify__submit {
  width: 100%;
}

.footer {
  padding: 1.4rem 0 calc(1.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  gap: 0.35rem;
}

.footer__note {
  color: var(--muted);
  max-width: 48ch;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 8, 16, 0.72);
}

.modal__dialog {
  width: min(100%, 420px);
  padding: 1.2rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.modal__dialog p {
  margin: 0.7rem 0 1.1rem;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

@media (min-width: 360px) {
  .menu-btn {
    padding: 0.35rem 0.7rem;
  }

  .menu-btn__label {
    display: inline;
  }

  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__stats li {
    padding: 0.65rem 0.4rem;
    text-align: center;
  }
}

@media (min-width: 390px) {
  .spotlight {
    padding: 1.15rem;
  }
}

@media (min-width: 430px) {
  .hero__actions .btn {
    flex: 0 1 auto;
    min-width: 10.5rem;
  }

  .feature-card {
    padding: 1.1rem;
  }
}

@media (min-width: 768px) {
  .notify__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .notify__submit {
    width: auto;
    min-width: 10.5rem;
  }

  .notify__card {
    padding: 1.4rem 1.5rem;
  }

  .menu-btn,
  .mobile-menu,
  .overlay {
    display: none !important;
  }

  .nav {
    display: block;
  }

  .header__inner {
    gap: 1rem;
  }

  .header__tools {
    width: auto;
    justify-content: flex-end;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 2rem;
  }

  h1 {
    max-width: 14ch;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    padding-top: 4.2rem;
  }

  .lang-switch button {
    min-width: 44px;
  }
}

@media (min-width: 1280px) {
  h1 {
    max-width: 12ch;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .menu-btn__icon span {
    animation: none;
    transition: none;
  }
}
