.page-home {
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
}

.page-home .home-hero {
  position: relative;
  padding: calc(var(--header-h) + 32px) 0 72px;
}

.page-home .hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-home .hero-copy {
  position: relative;
  z-index: 2;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-left: 3px solid var(--color-neon);
  background: var(--color-bg-alt);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-blue);
  text-transform: uppercase;
}

.page-home .hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-neon);
}

.page-home .hero-title {
  margin: 24px 0 18px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2rem, 5.4vw, 3.7rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.page-home .hero-title-grad {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero-lead {
  max-width: 600px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--color-muted);
  margin-bottom: 30px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.page-home .hero-steps {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.page-home .hero-step {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(15, 20, 33, 0.65);
  border: 1px solid rgba(230, 232, 239, 0.08);
  padding: 12px 16px;
  font-size: 0.95rem;
}

.page-home .step-num {
  font-family: var(--font-data);
  color: var(--color-orange);
  font-weight: 700;
}

.page-home .hero-viz {
  position: relative;
  min-height: 340px;
  border: 1px solid rgba(57, 255, 20, 0.18);
  border-radius: 16px;
  overflow: hidden;
}

.page-home .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.page-home .hero-viz-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.page-home .hero-viz::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.12), rgba(10, 14, 26, 0.85));
  pointer-events: none;
}

.page-home .home-dot {
  opacity: 0.85;
}

.page-home .home-dot-a {
  animation: homeDotDashA 5s var(--ease-out) infinite;
}

.page-home .home-dot-b {
  animation: homeDotDashB 6s var(--ease-out) infinite;
}

@keyframes homeDotDashA {
  0% {
    transform: translate(0, 0);
    opacity: 0.2;
  }
  12% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate(280px, 40px);
    opacity: 0;
  }
}

@keyframes homeDotDashB {
  0% {
    transform: translate(0, 0);
    opacity: 0.2;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translate(-260px, 60px);
    opacity: 0;
  }
}

.page-home .live-ticker-wrap {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  border-bottom: 1px solid rgba(57, 255, 20, 0.15);
}

.page-home .live-ticker-wrap .live-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
}

.page-home .live-ticker-wrap .ticker-bar {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .league-highlight {
  padding: 88px 0;
  position: relative;
}

.page-home .league-highlight::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 26%;
  height: 60%;
  background: repeating-linear-gradient(115deg, rgba(0, 240, 255, 0.05) 0 2px, transparent 2px 10px);
  z-index: 0;
}

.page-home .section-head {
  margin-bottom: 36px;
}

.page-home .league-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.page-home .league-card {
  position: relative;
  padding: 26px 22px 22px;
  background: linear-gradient(160deg, rgba(15, 20, 33, 0.9), rgba(10, 14, 26, 0.72));
  border: 1px solid rgba(230, 232, 239, 0.09);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.page-home .league-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 40px;
  height: 2px;
  background: var(--gradient-neon);
  opacity: 0.8;
}

.page-home .league-card:hover {
  transform: translateY(-7px);
  border-color: rgba(57, 255, 20, 0.38);
}

.page-home .league-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-home .league-idx {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--color-blue);
}

.page-home .league-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.45rem;
}

.page-home .league-count {
  font-family: var(--font-data);
  font-size: 11px;
  background: rgba(57, 255, 20, 0.1);
  color: var(--color-neon);
  border: 1px solid rgba(57, 255, 20, 0.25);
  padding: 3px 8px;
}

.page-home .match-time {
  font-family: var(--font-data);
  color: var(--color-orange);
  font-size: 13px;
  font-weight: 700;
}

.page-home .match-status {
  display: inline-block;
  font-size: 11px;
  color: var(--color-blue);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.22);
  padding: 3px 6px;
  margin-top: 8px;
}

.page-home .match-teams {
  margin-top: 6px;
  font-weight: 600;
  line-height: 1.45;
}

.page-home .extra-match {
  border-top: 1px dashed rgba(230, 232, 239, 0.12);
  margin-top: 16px;
  padding-top: 14px;
}

@media (hover: hover) {
  .page-home .extra-match {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition: max-height 0.4s var(--ease-out), opacity 0.3s, transform 0.3s;
  }

  .page-home .league-card:hover .extra-match,
  .page-home .league-card:focus-within .extra-match {
    max-height: 220px;
    opacity: 1;
    transform: none;
  }
}

.page-home .intel-section {
  padding: 88px 0;
  background-color: var(--color-bg-alt);
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 12px);
  border-top: 1px solid rgba(0, 240, 255, 0.12);
  border-bottom: 1px solid rgba(57, 255, 20, 0.12);
  position: relative;
  overflow: hidden;
}

.page-home .intel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.page-home .intel-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(230, 232, 239, 0.12);
}

.page-home .intel-index {
  font-family: var(--font-data);
  color: var(--color-neon);
  font-weight: 800;
  width: 30px;
  flex: none;
}

.page-home .intel-text h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
  color: var(--color-text);
  font-family: var(--font-title);
  font-weight: 700;
}

.page-home .intel-text p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.page-home .intel-highlight {
  background: linear-gradient(150deg, rgba(57, 255, 20, 0.08), rgba(0, 240, 255, 0.06));
  border: 1px solid rgba(57, 255, 20, 0.25);
  padding: 32px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.page-home .intel-highlight > p {
  margin: 0 0 16px;
  color: var(--color-muted);
  line-height: 1.75;
}

.page-home .intel-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .intel-link-row {
  margin-top: 20px;
}

.page-home .intel-link-row a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .db-section {
  padding: 88px 0;
}

.page-home .db-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.page-home .db-sample {
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(15, 20, 33, 0.7);
  padding: 8px;
}

.page-home .db-fixture-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 14px 16px;
  border-left: 2px solid var(--color-blue);
  margin-bottom: 8px;
  background: rgba(10, 14, 26, 0.55);
}

.page-home .db-teams {
  font-weight: 700;
}

.page-home .db-season {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--color-muted);
  margin-left: 8px;
}

.page-home .db-record {
  font-family: var(--font-data);
  color: var(--color-neon);
  font-size: 14px;
}

.page-home .db-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(255, 106, 0, 0.08);
  border-left: 3px solid var(--color-orange);
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.page-home .db-visual {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(57, 255, 20, 0.15);
}

.page-home .db-visual > img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-home .db-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.page-home .db-summary a {
  color: var(--color-blue);
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.95rem;
}

.page-home .cta-section {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  text-align: center;
  background: var(--color-bg);
}

.page-home .cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-home .cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.55), rgba(10, 14, 26, 0.9));
}

.page-home .cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.page-home .cta-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.page-home .cta-desc {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 auto 8px;
}

.page-home .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

.page-home kbd {
  font-family: var(--font-data);
  background: var(--color-bg-alt);
  border: 1px solid rgba(230, 232, 239, 0.2);
  border-bottom-width: 2px;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--color-blue);
}

@media (min-width: 768px) {
  .page-home .hero-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .page-home .hero-viz {
    min-height: 400px;
  }

  .page-home .hero-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .league-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .intel-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .page-home .db-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (min-width: 1080px) {
  .page-home .league-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .page-home .home-dot-a,
  .page-home .home-dot-b {
    animation: none !important;
    display: none;
  }
}
