.page-home {
  position: relative;
  z-index: 0;
  overflow-x: clip;
  background: var(--space-blue);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-headline);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.02em;
}

.page-home h1 {
  max-width: 14em;
  margin: 0.1em 0 0.35em;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.page-home .btn {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.page-home .btn:active {
  transform: translateY(1px);
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--electric-green);
  background: var(--glass-tint);
  color: var(--electric-green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--electric-green);
}

.home-hero {
  position: relative;
  padding: clamp(2.8rem, 6vw, 5.2rem) 0 clamp(3.2rem, 6vw, 5rem);
  margin-bottom: 2rem;
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 255, 156, 0.2), transparent 30%),
    radial-gradient(circle at 12% 85%, rgba(255, 77, 0, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(7, 17, 38, 0.35), rgba(11, 30, 58, 0.85)),
    var(--space-blue);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 80px;
  background: linear-gradient(115deg, var(--electric-green) 0 8%, transparent 8% 100%);
  opacity: 0.14;
  pointer-events: none;
}

.home-hero__inner {
  display: grid;
  gap: 2rem;
}

.home-hero__panel {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-top: 2px solid var(--electric-green);
  background: rgba(7, 17, 38, 0.38);
  clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
}

.home-hero__lead {
  max-width: 70ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.home-hero__signal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-stat {
  position: relative;
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(138, 160, 192, 0.22);
  border-radius: var(--radius);
  background: rgba(18, 42, 78, 0.75);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero-stat:hover {
  border-color: var(--electric-green);
  background: var(--glass-tint);
  transform: translateY(-4px);
}

.hero-stat::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 34px;
  height: 3px;
  background: var(--electric-green);
}

.hero-stat--lg {
  grid-column: 1 / -1;
  border-color: var(--electric-green);
  background: var(--glass-tint);
}

.hero-stat--lg::before {
  width: 48px;
  background: var(--flame-orange);
}

.hero-stat__num {
  font-family: var(--font-headline);
  font-size: 2.6rem;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--electric-green);
}

.hero-stat--lg .hero-stat__num {
  font-size: 4rem;
  color: var(--text-primary);
}

.hero-stat__label {
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 960px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
    align-items: end;
  }
}

.home-calendar {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.home-calendar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--line-glow), transparent);
  opacity: 0.8;
}

.calendar-fx {
  position: absolute;
  right: -12rem;
  bottom: -10rem;
  width: min(56vw, 640px);
  opacity: 0.2;
  pointer-events: none;
  transform: rotate(-8deg);
}

.calendar-fx img {
  display: block;
  width: 100%;
  height: auto;
}

.league-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  margin: 1.6rem 0 1.8rem;
}

.league-tab {
  flex: 0 0 auto;
  padding: 0.48rem 1.1rem;
  border: 1px solid var(--line-glow);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.league-tab:hover,
.league-tab:focus-visible {
  border-color: var(--electric-green);
  background: var(--electric-green);
  color: var(--deep-navy);
  outline: none;
}

.league-tab.is-current {
  border-color: var(--electric-green);
  color: var(--electric-green);
  box-shadow: 0 0 14px rgba(0, 255, 156, 0.25);
}

.matchweek-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.matchweek {
  overflow: hidden;
  border: 1px solid rgba(138, 160, 192, 0.2);
  border-radius: var(--radius-lg);
  background: var(--midnight-blue);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.matchweek[open] {
  border-color: var(--line-glow);
  box-shadow: 0 0 28px rgba(0, 255, 156, 0.08);
}

.matchweek__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.matchweek__head::-webkit-details-marker {
  display: none;
}

.matchweek:hover .matchweek__head {
  background: rgba(0, 255, 156, 0.04);
}

.matchweek__label {
  font-family: var(--font-headline);
  font-size: 1.45rem;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.matchweek__tag {
  padding-left: 0.55rem;
  border-left: 2px solid var(--electric-green);
  color: var(--electric-green);
  font-size: 0.85rem;
}

.matchweek__meta {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.matchweek__body {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0 1.2rem 1.2rem;
  list-style: none;
}

.match-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  padding: 0.65rem 0.8rem;
  border-left: 2px solid transparent;
  border-radius: 6px;
  background: rgba(7, 17, 38, 0.55);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.match-row:hover {
  border-left-color: var(--electric-green);
  background: rgba(7, 17, 38, 0.8);
}

.match-row--changed {
  border-left-color: var(--flame-orange);
}

.match-row__time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.match-row__league {
  color: var(--electric-green);
  font-size: 0.82rem;
}

.match-row__name {
  color: var(--text-primary);
}

.match-row__status {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.match-row--changed .match-row__status {
  color: var(--flame-orange);
}

.home-feature {
  position: relative;
  padding: 4.5rem 0;
  background: linear-gradient(180deg, var(--space-blue) 0%, var(--deep-navy) 100%);
}

.home-feature::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(255, 77, 0, 0.14), transparent 45%);
  pointer-events: none;
}

.section__header--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.feature-stage {
  position: relative;
  display: flex;
  min-height: 420px;
  align-items: flex-end;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--line-glow);
  border-radius: var(--radius-lg);
  background: var(--deep-navy);
  clip-path: polygon(0 0, calc(100% - 2.8rem) 0, 100% 2.8rem, 100% 100%, 1.6rem 100%, 0 calc(100% - 1.6rem));
}

.feature-stage__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-stage__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 38, 0.9) 0%, rgba(7, 17, 38, 0.45) 68%, rgba(7, 17, 38, 0.3) 100%);
}

.feature-stage__body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: clamp(1.6rem, 4vw, 3rem);
}

.feature-stage__title {
  margin: 1rem 0 0.3rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-primary);
}

.feature-stage__lead {
  color: var(--text-dim);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin: 0.5rem 0 1rem;
}

.feature-countdown__num {
  font-family: var(--font-headline);
  font-size: clamp(4.2rem, 10vw, 7.2rem);
  font-style: italic;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  text-shadow: 0 0 40px rgba(0, 255, 156, 0.4);
  color: var(--electric-green);
}

.feature-countdown__sep {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-style: italic;
  color: var(--text-dim);
}

.feature-stage__note {
  margin: 0 0 0.6rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.feature-stage__more {
  margin: 0 0 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-stage:hover .feature-stage__more,
.feature-stage:focus-within .feature-stage__more {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .feature-stage {
    min-height: 360px;
    clip-path: polygon(0 0, calc(100% - 1.6rem) 0, 100% 1.6rem, 100% 100%, 0 100%);
  }

  .feature-stage__more {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  position: relative;
  display: block;
  padding: 1.3rem 1.5rem;
  border: 1px solid rgba(255, 77, 0, 0.18);
  border-left: 3px solid var(--flame-orange);
  background: var(--midnight-blue);
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.1rem) 100%, 0 100%);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.feature-item:hover {
  background: rgba(255, 77, 0, 0.08);
  transform: translateY(-3px);
}

.feature-item__time {
  display: block;
  font-family: var(--font-headline);
  font-size: 2.2rem;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.feature-item__lead {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.feature-item__tag {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--flame-orange);
  font-weight: 700;
  font-size: 0.82rem;
}

.home-alert {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  background: radial-gradient(circle at 15% 45%, rgba(255, 77, 0, 0.12), transparent 32%), var(--space-blue);
}

.home-alert::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(0, 255, 156, 0.05) 45%, transparent 55%);
  pointer-events: none;
}

.alert-demo {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 2rem auto 0;
}

.alert-card {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(255, 77, 0, 0.5);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.14), rgba(18, 42, 78, 0.95) 55%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  animation: page-home-alert-in 0.6s ease both;
}

@keyframes page-home-alert-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.alert-card__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(7, 17, 38, 0.5);
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.alert-card__close:hover {
  border-color: var(--flame-orange);
  background: var(--flame-orange);
  color: #fff;
  transform: rotate(6deg);
}

.alert-card__title {
  margin: 0.85rem 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-primary);
}

.alert-card__text {
  max-width: 60ch;
  color: var(--text-dim);
}

.alert-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.home-steps {
  position: relative;
  padding: 4.5rem 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--deep-navy), var(--space-blue) 120%);
}

.home-steps::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -180px;
  width: 420px;
  max-width: 60vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--glass-tint), transparent 68%);
}

.steps-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: center;
  margin-top: 2.4rem;
}

.steps-visual img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  border: 1px solid var(--line-glow);
  border-radius: var(--radius-lg);
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.4rem) 100%, 0 100%);
}

.step-card {
  padding: 2rem 1.6rem;
  border: 1px solid rgba(138, 160, 192, 0.22);
  border-top: 3px solid var(--electric-green);
  border-radius: var(--radius);
  background: var(--midnight-blue);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.step-card:hover {
  border-color: var(--electric-green);
  background: rgba(18, 42, 78, 0.85);
  transform: translateY(-4px);
}

.step-card__num {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-headline);
  font-size: 3rem;
  font-style: italic;
  line-height: 1;
  opacity: 0.66;
  color: var(--electric-green);
}

.step-card h3 {
  margin: 0 0 0.5rem;
}

.step-card p {
  margin: 0;
  color: var(--text-dim);
}

.steps-arrow {
  color: var(--electric-green);
  font-size: 2.8rem;
  line-height: 1;
  text-align: center;
  transform: rotate(90deg);
}

@media (min-width: 900px) {
  .steps-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .steps-arrow {
    transform: none;
  }
}

.steps-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.steps-cta__note {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.home-docs {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  background: radial-gradient(circle at 90% 100%, rgba(0, 255, 156, 0.08), transparent 32%), var(--space-blue);
}

.doc-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--line-glow);
  border-radius: var(--radius-lg);
  background: var(--glass-tint);
}

.doc-card__icon img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  border: 1px solid var(--line-glow);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--deep-navy), var(--midnight-blue));
}

.doc-card__body P {
  max-width: 72ch;
  color: var(--text-dim);
}

.doc-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.2rem 0 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.doc-list li {
  padding-left: 1rem;
  border-left: 2px solid var(--electric-green);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.doc-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

@media (min-width: 760px) {
  .doc-card {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 640px) {
  .doc-list {
    grid-template-columns: 1fr;
  }
}

.docs-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
  color: var(--text-dim);
}

.docs-more a {
  color: var(--electric-green);
  text-decoration: none;
}

.docs-more a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation: none !important;
    transition: none !important;
  }
}
