:root {
  --bg: #07111f;
  --bg-soft: #0d1b2f;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fbff;
  --muted: #a7b7cf;
  --green: #0db56f;
  --gold: #d9b24c;
  --red: #ff4d5e;
  --blue: #56b6ff;
  --navy: #081a30;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 18px;
  --container: min(1180px, calc(100% - 2rem));
  --transition: all 0.35s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(86, 182, 255, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 77, 94, 0.12), transparent 22%),
    radial-gradient(circle at bottom center, rgba(13, 181, 111, 0.12), transparent 30%),
    linear-gradient(180deg, #04101d 0%, #07111f 38%, #081525 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-page {
  background:
    radial-gradient(circle at top left, rgba(13, 181, 111, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(217, 178, 76, 0.12), transparent 20%),
    linear-gradient(180deg, #05111c 0%, #091726 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-heading h2,
.page-hero h1,
.hero h1 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.02em;
}

.section-heading p,
.hero p,
.page-hero p,
.footer-copy,
.feature-card p,
.info-chip span,
.countdown-note,
.menu-card p {
  color: var(--muted);
}

.section-tag,
.eyebrow,
.menu-badge,
.status-badge,
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 15, 29, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.brand__crest {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(13,181,111,0.85), rgba(86,182,255,0.8));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 25px rgba(13, 181, 111, 0.25);
  font-size: 1.4rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu a {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: var(--transition);
  font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 99px;
  transition: var(--transition);
}

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.42)),
    radial-gradient(circle at center bottom, rgba(13,181,111,0.26), transparent 35%),
    linear-gradient(180deg, rgba(5,17,28,0.45), rgba(5,17,28,0.85));
}

.hero__content,
.page-hero__content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.02;
  max-width: 900px;
}

.hero p,
.page-hero p {
  max-width: 720px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
}

.hero__actions,
.page-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 180px;
  padding: 1rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--green), #0cd38c);
  color: #04101d;
  box-shadow: 0 14px 34px rgba(13, 181, 111, 0.28);
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 20px 38px rgba(13, 181, 111, 0.35);
}

.btn--secondary {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}

.btn--secondary:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.11);
}

.hero__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.2rem;
  max-width: 850px;
}

.hero__highlights div,
.info-chip,
.countdown-unit,
.feature-card,
.menu-card,
.menu-filter {
  border-radius: var(--radius-sm);
}

.hero__highlights div {
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero__highlights span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.hero__highlights strong {
  font-size: 0.98rem;
}

.hero__stadium-lights,
.hero__field-lines,
.hero__floating,
.page-hero__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__stadium-lights {
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,0.24), transparent 12%),
    radial-gradient(circle at 50% 8%, rgba(255,255,255,0.2), transparent 10%),
    radial-gradient(circle at 82% 14%, rgba(255,255,255,0.2), transparent 12%);
  filter: blur(10px);
}

.hero__field-lines {
  inset: auto 5% 2rem;
  height: 42%;
  border: 2px solid rgba(255,255,255,0.08);
  border-bottom-width: 4px;
  border-radius: 28px 28px 0 0;
  transform: perspective(900px) rotateX(74deg);
  transform-origin: bottom center;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.03),
    inset 0 -50px 120px rgba(13,181,111,0.18);
}

.hero__field-lines::before,
.hero__field-lines::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.08);
}

.hero__field-lines::before {
  width: 25%;
  height: 48%;
  top: 18%;
}

.hero__field-lines::after {
  width: 2px;
  top: 0;
  bottom: 0;
  background: rgba(255,255,255,0.08);
  border: 0;
}

.hero__floating--ball {
  inset: auto 10% 12%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff, #dfe6ef 48%, #bcc6d4 75%, #98a6b6 100%);
  box-shadow:
    inset -12px -14px 20px rgba(0,0,0,0.12),
    0 18px 45px rgba(0,0,0,0.35);
  animation: floatBall 6s ease-in-out infinite;
}

.hero__floating--ball::before,
.hero__floating--ball::after {
  content: '';
  position: absolute;
  inset: 22%;
  background: rgba(4, 16, 29, 0.85);
  clip-path: polygon(50% 0%, 100% 38%, 81% 100%, 19% 100%, 0% 38%);
}

.hero__floating--ball::after {
  inset: auto;
  width: 26px;
  height: 26px;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__floating--glow {
  background:
    radial-gradient(circle at 70% 50%, rgba(217,178,76,0.14), transparent 12%),
    radial-gradient(circle at 30% 60%, rgba(255,77,94,0.12), transparent 14%),
    radial-gradient(circle at 55% 20%, rgba(86,182,255,0.14), transparent 14%);
  animation: pulseGlow 7s linear infinite;
}

.match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 1.4rem;
}

.match-card,
.countdown-card,
.menu-card,
.feature-card {
  padding: 1.4rem;
}

.match-card__top,
.countdown-card__header,
.menu-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.match-card__label,
.menu-card__category {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-badge.live {
  background: rgba(255,77,94,0.18);
  color: #ffd9dd;
  border-color: rgba(255,77,94,0.3);
}

.status-badge.upcoming {
  background: rgba(86,182,255,0.18);
  color: #dff2ff;
  border-color: rgba(86,182,255,0.28);
}

.status-badge.finished {
  background: rgba(217,178,76,0.18);
  color: #fff2c7;
  border-color: rgba(217,178,76,0.28);
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr minmax(170px, 240px) 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
}

.team-block {
  text-align: center;
}

.flag {
  width: 94px;
  height: 94px;
  margin: 0 auto 0.9rem;
  border-radius: 26px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.team-block h4,
.score-line span,
.countdown-unit span,
.menu-price {
  margin: 0;
}

.score-block {
  text-align: center;
}

.score-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Orbitron', sans-serif;
}

.score-line span {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.score-divider {
  color: var(--gold);
  font-size: 1rem !important;
  letter-spacing: 0.2em;
}

.match-meta {
  color: var(--muted);
  margin-top: 0.7rem;
}

.match-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-chip {
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.info-chip strong {
  display: block;
  margin-top: 0.35rem;
}

.live-card {
  background: linear-gradient(135deg, rgba(255,77,94,0.18), rgba(217,178,76,0.12));
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.2rem 0 1rem;
}

.countdown-unit {
  padding: 1rem;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.countdown-unit span {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  margin-bottom: 0.4rem;
  color: #fff;
}

.countdown-unit small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-grid,
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.feature-card,
.menu-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.feature-card::before,
.menu-card::before {
  content: '';
  position: absolute;
  inset: auto -20% -60% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(86,182,255,0.16), transparent 65%);
  transition: var(--transition);
}

.feature-card:hover,
.menu-card:hover,
.menu-filter:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.18);
}

.feature-card:hover::before,
.menu-card:hover::before {
  transform: scale(1.1);
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13,181,111,0.22), rgba(86,182,255,0.22));
  margin-bottom: 1rem;
}

.page-hero {
  padding: 7rem 0 3.5rem;
}

.page-hero__pattern {
  background:
    radial-gradient(circle at 18% 22%, rgba(13,181,111,0.18), transparent 16%),
    radial-gradient(circle at 78% 20%, rgba(86,182,255,0.16), transparent 16%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.page-hero__stats .glass-card {
  padding: 1rem 1.2rem;
}

.menu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.menu-filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.menu-filter {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #fff;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.menu-filter.active {
  background: linear-gradient(135deg, rgba(13,181,111,0.25), rgba(86,182,255,0.2));
  border-color: rgba(13,181,111,0.4);
}

.menu-grid {
  grid-template-columns: repeat(3, 1fr);
}

.menu-card__header {
  margin-bottom: 0.8rem;
}

.menu-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.menu-price {
  font-family: 'Orbitron', sans-serif;
  color: var(--gold);
  font-size: 1.05rem;
}

.category-badge {
  margin-top: 1rem;
  font-size: 0.78rem;
}

.site-footer {
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(3, 10, 20, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0 2rem;
  text-align: center;
  color: var(--muted);
}

.loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(13,181,111,0.14), transparent 25%), #05101d;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  z-index: 2000;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__ball,
.loader__ring {
  grid-area: 1 / 1;
}

.loader__ball {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #d9e0e9 55%, #a1aebe 100%);
  animation: spinBall 1.2s linear infinite;
}

.loader__ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.14);
  border-top-color: var(--green);
  animation: spinRing 1.4s linear infinite;
}

.loader p {
  color: var(--muted);
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatBall {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(8deg); }
}

@keyframes pulseGlow {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinBall {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .match-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__highlights,
  .match-info-grid {
    grid-template-columns: 1fr;
  }

  .scoreboard {
    grid-template-columns: 1fr;
  }

  .score-divider {
    display: none;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.5rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.3rem;
    padding: 0.7rem;
    background: rgba(6,15,29,0.94);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .feature-grid,
  .menu-grid,
  .countdown-grid {
    grid-template-columns: 1fr;
  }

  .page-hero__stats {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1rem, 1180px);
  }

  .navbar {
    min-height: 72px;
  }

  .hero__actions,
  .page-hero__actions,
  .menu-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .flag {
    width: 78px;
    height: 78px;
    font-size: 2.4rem;
  }

  .hero__floating--ball {
    width: 95px;
    height: 95px;
    right: 4%;
    bottom: 10%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
