:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.18);
  --gold: #f7c96a;
  --gold-deep: #d8962f;
  --red: #ef3e52;
  --green: #12b779;
  --blue: #4ca7ff;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #030711;
  color: var(--text);
  overflow-x: hidden;
}

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

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

.landing {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(18px, 2.4vh, 32px);
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("./assets/world-cup-2026-poster.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 7, 18, 0.92) 0%, rgba(2, 7, 18, 0.74) 34%, rgba(2, 7, 18, 0.22) 66%, rgba(2, 7, 18, 0.38) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.05) 44%, rgba(0, 0, 0, 0.7) 100%);
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(18px, 2vh, 26px) 0 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 176px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.48));
}

.brand__logo {
  display: block;
  width: 100%;
  height: auto;
}

.header-link {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.hero__content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: start;
  padding: 0;
  flex: 0 0 auto;
}

.hero__copy {
  width: min(660px, 100%);
  min-width: 0;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.42));
}

h1 {
  margin: 0;
  max-width: 8em;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__lead {
  margin: 22px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.75;
  font-weight: 500;
}

.hero__badges {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__badges span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.hero__actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  min-height: 60px;
  min-width: 196px;
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.btn:focus-visible {
  outline: 3px solid rgba(76, 167, 255, 0.76);
  outline-offset: 4px;
}

.btn__icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.btn__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--glass {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), var(--shadow);
  backdrop-filter: blur(22px);
}

.btn--glass:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
}

.btn--primary {
  color: #160e03;
  background: linear-gradient(135deg, #ffe49a 0%, var(--gold) 42%, var(--gold-deep) 100%);
  box-shadow: 0 22px 60px rgba(216, 150, 47, 0.42);
}

.btn--primary:hover {
  box-shadow: 0 26px 72px rgba(247, 201, 106, 0.5);
}

.match-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 0 0 auto;
}

.match-strip > div {
  min-height: 74px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 9, 22, 0.5);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.match-strip span {
  color: var(--gold);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.match-strip strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.25;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto clamp(18px, 2.6vh, 30px);
  flex: 0 0 auto;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 15, 30, 0.62), rgba(4, 9, 20, 0.84)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 58%);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 68px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.hot-leagues {
  padding: 20px 24px 22px;
}

.footer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.footer-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.footer-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 600;
}

.league-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 2px;
}

.league-strip::-webkit-scrollbar {
  display: none;
}

.league-pill {
  min-height: 94px;
  min-width: 86px;
  padding: 6px 4px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.league-pill:hover {
  transform: translateY(-2px);
  color: var(--gold);
}

.league-pill img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.league-pill img.logo-mark--invert {
  filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.league-pill img.logo-mark--lighten {
  filter: brightness(1.35) contrast(1.08) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.league-pill span {
  line-height: 1;
}

.copyright-note {
  margin: 0;
  padding: 14px 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.75;
  font-weight: 600;
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
    justify-content: flex-start;
    gap: 0;
  }

  .hero__background {
    background-position: 58% center;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(2, 7, 18, 0.82) 0%, rgba(2, 7, 18, 0.54) 38%, rgba(2, 7, 18, 0.9) 100%),
      linear-gradient(90deg, rgba(2, 7, 18, 0.72) 0%, rgba(2, 7, 18, 0.24) 100%);
  }

  .site-header {
    width: min(calc(100vw - 32px), 390px);
    margin-left: auto;
    margin-right: auto;
    padding-top: 16px;
    padding-bottom: 0;
    justify-content: center;
  }

  .brand__text {
    display: none;
  }

  .header-link {
    display: none;
  }

  .hero__content {
    width: min(calc(100vw - 32px), 360px);
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: start;
    padding: 38px 0 18px;
    text-align: center;
  }

  .hero__copy {
    width: 100%;
  }

  h1 {
    max-width: 7.4em;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero__lead {
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
    max-width: 330px;
    font-size: 16px;
    line-height: 1.68;
  }

  .hero__badges {
    width: min(100%, 330px);
    margin: 14px auto 0;
    justify-content: center;
    gap: 8px;
  }

  .hero__badges span {
    min-height: 30px;
    padding: 0 11px;
    font-size: 12px;
  }

  .hero__actions {
    width: min(100%, 312px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-height: 56px;
    min-width: 0;
    font-size: 16px;
  }

  .match-strip {
    width: min(calc(100vw - 48px), 312px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 18px;
    margin-bottom: 16px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer {
    width: min(calc(100vw - 48px), 312px);
    margin: 0 auto 16px;
  }

  .hot-leagues {
    padding: 14px 14px 15px;
  }

  .footer-heading {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    text-align: center;
  }

  .footer-heading h2 {
    font-size: 17px;
  }

  .footer-heading p {
    font-size: 12px;
    line-height: 1.45;
  }

  .league-strip {
    gap: 8px;
    justify-content: flex-start;
  }

  .league-pill {
    min-height: 70px;
    min-width: 62px;
    padding: 4px 2px;
    gap: 6px;
    font-size: 12px;
  }

  .league-pill img {
    width: 38px;
    height: 38px;
  }

  .copyright-note {
    padding: 12px 14px 14px;
    text-align: center;
    font-size: 11px;
    line-height: 1.65;
  }

  .match-strip > div {
    min-height: 58px;
    padding: 14px 18px;
    border-radius: 18px;
  }
}

@media (max-width: 410px) {
  .site-header {
    gap: 12px;
  }

  .brand {
    width: 152px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
