:root {
  --bg: #08111f;
  --bg-soft: #101d31;
  --panel: rgba(9, 18, 34, 0.78);
  --panel-strong: #0f1d33;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #9db0c7;
  --accent: #ff6b2c;
  --accent-soft: #ffb067;
  --cyan: #2ed3c6;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(46, 211, 198, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 107, 44, 0.22), transparent 24%),
    linear-gradient(135deg, #040914 0%, #07101f 45%, #0d1930 100%);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar,
.hero,
.ticker,
.section-head,
.content-split,
.newsletter {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #101826;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.brand h1,
.brand-kicker,
.section-label,
.hero h2,
.hero-panel h3,
.section-head h2,
.panel-header h2,
.newsletter h2 {
  margin: 0;
}

.brand-kicker,
.section-label {
  color: var(--cyan);
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.brand h1 {
  font-size: 1.4rem;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.live-pill,
.primary-btn,
.secondary-btn,
.filter-btn,
.newsletter-form button {
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.7);
  animation: pulse 1.8s infinite;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
  margin-top: 30px;
}

.hero-copy,
.hero-panel,
.featured-news,
.news-card,
.matches-panel,
.standings-panel,
.newsletter,
.ticker {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.matches-panel,
.standings-panel,
.newsletter {
  border-radius: 30px;
}

.hero-copy {
  padding: 40px;
}

.hero h2 {
  margin-top: 16px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.95;
  font-family: "Barlow Condensed", sans-serif;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  font-weight: 700;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #101826;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-stats article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2rem;
  font-family: "Barlow Condensed", sans-serif;
}

.hero-stats span,
.hero-panel p,
.panel-date,
.match-info,
.standing-row span,
.news-card p,
.featured-news p {
  color: var(--muted);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  isolation: isolate;
}

.panel-glow {
  position: absolute;
  inset: auto -25% -35% auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 211, 198, 0.28), transparent 65%);
  z-index: -1;
}

.hero-panel h3 {
  margin: 18px 0 12px;
  font-size: 2rem;
}

.score-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.score-card strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
}

.score-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticker {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  margin-top: 26px;
  padding: 16px 18px;
  border-radius: 22px;
}

.ticker-label {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 44, 0.15);
  color: var(--accent-soft);
  font-weight: 800;
}

.ticker-track {
  overflow: hidden;
}

.ticker-items {
  display: flex;
  gap: 38px;
  white-space: nowrap;
  color: #dbe6f3;
  animation: ticker 22s linear infinite;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 22px;
}

.section-head h2,
.panel-header h2,
.newsletter h2 {
  margin-top: 8px;
  font-size: 2.1rem;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(255, 107, 44, 0.22), rgba(46, 211, 198, 0.18));
  color: var(--text);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 1fr);
  gap: 18px;
}

.featured-news,
.news-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.featured-news {
  grid-row: span 2;
  background:
    linear-gradient(160deg, rgba(255, 107, 44, 0.16), transparent 58%),
    rgba(9, 18, 34, 0.78);
}

.featured-news:hover,
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.featured-news h3,
.news-card h3 {
  margin: 18px 0 12px;
  line-height: 1.35;
}

.featured-news h3 {
  font-size: 2rem;
}

.news-card h3 {
  font-size: 1.25rem;
}

.featured-news a {
  display: inline-block;
  margin-top: 20px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

.content-split {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
  margin-top: 24px;
}

.matches-panel,
.standings-panel,
.newsletter {
  padding: 28px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.match-card,
.standing-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.match-card:last-child,
.standing-row:last-child {
  border-bottom: 0;
}

.match-card {
  grid-template-columns: 1fr auto;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.match-teams strong,
.standing-row strong {
  font-size: 1.15rem;
}

.match-info {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 6px;
  font-weight: 600;
}

.standing-row {
  grid-template-columns: 34px 1fr auto;
}

.standing-row span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
}

.standing-row em {
  font-style: normal;
  color: var(--accent-soft);
  font-weight: 800;
}

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  min-width: min(320px, 100%);
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
}

.newsletter-form input::placeholder {
  color: #85a0bc;
}

.newsletter-form button {
  min-height: 52px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--cyan), #79e7dd);
  color: #082032;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden {
  display: none;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-45%);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 107, 44, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 44, 0);
  }
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .section-head,
  .content-split,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-head,
  .newsletter {
    display: grid;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-news {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .newsletter {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 100%);
    padding-top: 14px;
  }

  .topbar,
  .hero-copy,
  .hero-panel,
  .matches-panel,
  .standings-panel,
  .newsletter {
    padding: 22px;
    border-radius: 24px;
  }

  .nav {
    gap: 12px;
  }

  .hero-stats,
  .news-grid,
  .content-split {
    grid-template-columns: 1fr;
  }

  .ticker {
    padding: 14px;
  }

  .match-card,
  .panel-header,
  .newsletter-form,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .match-card,
  .newsletter {
    display: grid;
  }

  .match-info {
    align-items: start;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-items,
  .pulse,
  .reveal {
    animation: none;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
