.page-home {
  --home-line: rgba(0, 255, 146, 0.18);
  --home-red: #FF3D2E;
  --home-cyan: #00E5FF;
  --home-body: #B9C7D6;
  background: var(--c-deep);
  color: var(--c-white);
  overflow-x: hidden;
}

.page-home .home-hero {
  position: relative;
  min-height: max(720px, 94vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 78% 18%, rgba(13, 59, 92, 0.9) 0%, rgba(10, 30, 63, 0.96) 54%), var(--c-deep);
}

.page-home .hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.32;
  filter: saturate(1.15) brightness(0.9) contrast(1.05);
}

.page-home .hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(10, 30, 63, 0.96) 0%, rgba(10, 30, 63, 0.76) 44%, rgba(13, 59, 92, 0.4) 100%);
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 28px) clamp(16px, 4vw, 48px) 60px;
  display: grid;
  gap: 40px;
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .hero-context {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 18px;
}

.page-home .hero-context::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-green);
}

.page-home .hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .hero-title-mark {
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.page-home .hero-title-accent {
  color: var(--c-green);
  text-shadow: 0 0 32px rgba(0, 255, 146, 0.35);
}

.page-home .hero-lead {
  color: var(--home-body);
  font-size: 16px;
  line-height: 1.85;
  max-width: 620px;
  margin-bottom: 24px;
}

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

.page-home .hero-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 460px;
}

.page-home .hero-fact {
  border-left: 2px solid var(--c-green);
  padding-left: 12px;
}

.page-home .hero-fact-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-green);
  line-height: 1.1;
}

.page-home .hero-fact-label {
  display: block;
  font-size: 12px;
  color: var(--c-gray);
  margin-top: 4px;
}

.page-home .hero-toc {
  display: grid;
  gap: 10px;
  background: rgba(10, 30, 63, 0.6);
  border: 1px solid var(--home-line);
  padding: 18px;
  backdrop-filter: blur(8px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.page-home .hero-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.page-home .hero-toc-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-cyan);
  letter-spacing: 0.08em;
}

.page-home .chapter-card {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  border: 1px solid rgba(0, 229, 255, 0.14);
  background: linear-gradient(135deg, rgba(13, 59, 92, 0.72), rgba(10, 30, 63, 0.86));
  transition: border-color var(--motion), transform var(--motion), box-shadow var(--motion);
}

.page-home .chapter-card:hover {
  border-color: rgba(0, 255, 146, 0.55);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.page-home .chapter-card-index {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-cyan);
}

.page-home .chapter-card-title {
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-white);
}

.page-home .chapter-card-desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 12px;
  color: var(--c-gray);
  line-height: 1.5;
}

.page-home .chapter-card-link {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-green);
  white-space: nowrap;
}

.page-home .diag-stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(125deg, var(--c-green) 0 12px, transparent 12px 24px, var(--c-cyan) 24px 36px, transparent 36px 48px);
  opacity: 0.6;
  z-index: 3;
}

.page-home .home-shell {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 clamp(16px, 4vw, 48px) 60px;
}

.page-home .home-panel {
  position: relative;
  margin: max(24px, 4vw) 0 0;
  padding: clamp(22px, 4vw, 46px);
  background: linear-gradient(170deg, rgba(13, 59, 92, 0.5), rgba(10, 30, 63, 0.68));
  border: 1px solid var(--home-line);
  overflow: hidden;
}

.page-home .home-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(0, 255, 146, 0.035) 0 2px, transparent 2px 16px);
  animation: home-datastream 16s linear infinite;
  pointer-events: none;
}

.page-home .home-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  background: linear-gradient(45deg, transparent 0 50%, rgba(0, 255, 146, 0.24) 50%);
  pointer-events: none;
}

@keyframes home-datastream {
  to {
    background-position: 180px 0;
  }
}

.page-home .section-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

.page-home .section-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.01em;
}

.page-home .section-note {
  color: var(--home-body);
  font-size: 14px;
  line-height: 1.75;
  max-width: 760px;
}

.page-home .index-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-cyan);
  text-transform: uppercase;
}

.page-home .home-league-tags {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 146, 0.4) rgba(10, 30, 63, 0.6);
}

.page-home .tag-button {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-mist);
  background: rgba(10, 30, 63, 0.8);
  border: 1px solid rgba(123, 141, 160, 0.35);
  border-radius: 2px 10px 2px 2px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color var(--motion), color var(--motion), background var(--motion), box-shadow var(--motion);
}

.page-home .tag-button:hover {
  border-color: var(--c-green);
  color: var(--c-green);
}

.page-home .tag-button.is-active {
  background: rgba(0, 255, 146, 0.14);
  border-color: var(--c-green);
  color: var(--c-green);
  box-shadow: 0 0 16px rgba(0, 255, 146, 0.12);
}

.page-home .match-trend-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(13, 59, 92, 0.86), rgba(10, 30, 63, 0.92));
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 20px;
  margin-bottom: 20px;
}

.page-home .match-trend-copy p {
  color: var(--home-body);
  font-size: 14px;
  line-height: 1.75;
  margin-top: 8px;
}

.page-home .trend-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
  filter: saturate(1.1);
}

.page-home .match-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.page-home .match-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "league time" "teams odds" "meta meta";
  gap: 6px 14px;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, rgba(13, 59, 92, 0.68), rgba(10, 30, 63, 0.82));
  border: 1px solid rgba(123, 141, 160, 0.2);
  border-left: 3px solid var(--c-green);
  border-radius: 0 2px 2px 0;
  transition: border-color var(--motion), transform var(--motion), box-shadow var(--motion);
}

.page-home .match-card:hover {
  border-color: rgba(0, 255, 146, 0.45);
  border-left-color: var(--c-green);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.page-home .match-league {
  grid-area: league;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-gray);
}

.page-home .match-league::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--c-cyan);
}

.page-home .match-time {
  grid-area: time;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-cyan);
}

.page-home .match-teams {
  grid-area: teams;
}

.page-home .match-team {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.55;
}

.page-home .match-team + .match-team {
  font-weight: 500;
  color: var(--c-mist);
}

.page-home .match-odds {
  grid-area: odds;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-green);
}

.page-home .match-odds small {
  font-size: 10px;
  color: var(--c-gray);
  margin-right: 4px;
}

.page-home .match-odds span {
  line-height: 1.4;
}

.page-home .match-meta {
  grid-area: meta;
  font-size: 12px;
  color: var(--c-gray);
  border-top: 1px dashed rgba(123, 141, 160, 0.2);
  padding-top: 8px;
  margin-top: 4px;
}

.page-home .panel-footnote {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--c-gray);
  margin-top: 16px;
  line-height: 1.7;
}

.page-home .odds-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.page-home .odds-card {
  position: relative;
  padding: 18px;
  background: rgba(10, 30, 63, 0.76);
  border: 1px solid rgba(123, 141, 160, 0.2);
  border-top: 2px solid var(--c-green);
  border-radius: 0 0 2px 2px;
}

.page-home .odds-card--alert {
  border-top-color: var(--c-red);
}

.page-home .odds-card--alert::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(45deg, transparent 0 50%, rgba(255, 61, 46, 0.65) 50%);
}

.page-home .odds-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-home .odds-league {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-gray);
}

.page-home .odds-live {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--c-green);
  border: 1px solid rgba(0, 255, 146, 0.45);
  padding: 2px 7px;
  border-radius: 2px;
}

.page-home .odds-card--alert .odds-live {
  color: var(--c-red);
  border-color: rgba(255, 61, 46, 0.5);
}

.page-home .odds-vs {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 14px;
  line-height: 1.5;
}

.page-home .odds-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.page-home .odds-current {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--c-green);
  line-height: 1;
  text-shadow: 0 0 18px rgba(0, 255, 146, 0.28);
}

.page-home .odds-delta {
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-home .odds-delta--up {
  color: var(--c-green);
}

.page-home .odds-delta--down {
  color: var(--c-red);
}

.page-home .odds-vmh {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-gray);
}

.page-home .trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  margin-top: 12px;
}

.page-home .trend-bars i {
  flex: 1;
  background: linear-gradient(180deg, rgba(0, 255, 146, 0.66), rgba(0, 229, 255, 0.06));
  border-radius: 2px 2px 0 0;
}

.page-home .odds-history {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-gray);
  border-top: 1px dashed rgba(123, 141, 160, 0.25);
  margin-top: 12px;
  padding-top: 8px;
  opacity: 0.72;
  transition: opacity var(--motion), transform var(--motion);
}

.page-home .odds-card:hover .odds-history {
  opacity: 1;
  transform: translateY(-2px);
}

.page-home .timeline-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.page-home .timeline-list {
  list-style: none;
  position: relative;
  padding-left: 26px;
}

.page-home .timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-green), var(--c-cyan), var(--c-red));
}

.page-home .timeline-match {
  position: relative;
  margin-bottom: 30px;
}

.page-home .timeline-match::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 20px;
  width: 10px;
  height: 10px;
  background: var(--c-green);
  box-shadow: 0 0 14px rgba(0, 255, 146, 0.65);
}

.page-home .timeline-match:last-child {
  margin-bottom: 0;
}

.page-home .timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.page-home .timeline-round {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
}

.page-home .timeline-result {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-white);
  background: rgba(0, 255, 146, 0.1);
  border: 1px solid var(--home-line);
  padding: 4px 10px;
  border-radius: 2px;
}

.page-home .timeline-team {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 6px;
}

.page-home .timeline-events {
  list-style: none;
}

.page-home .timeline-event {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14px;
  color: var(--home-body);
  line-height: 1.7;
  transition: color var(--motion), transform var(--motion);
}

.page-home .timeline-event:hover {
  color: var(--c-white);
  transform: translateX(3px);
}

.page-home .timeline-event::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
}

.page-home .event-time {
  font-family: var(--font-mono);
  color: var(--c-green);
  margin-right: 8px;
  font-size: 13px;
}

.page-home .event-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  white-space: nowrap;
}

.page-home .event-tag--goal {
  background: rgba(0, 255, 146, 0.14);
  color: var(--c-green);
}

.page-home .event-tag--sub {
  background: rgba(0, 229, 255, 0.12);
  color: var(--c-cyan);
}

.page-home .event-tag--card {
  background: rgba(255, 61, 46, 0.16);
  color: var(--c-red);
}

.page-home .timeline-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.page-home .timeline-figure {
  margin: 0;
}

.page-home .timeline-figure img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.page-home .timeline-figure figcaption {
  font-size: 12px;
  color: var(--c-gray);
  line-height: 1.7;
  margin-top: 10px;
  text-align: center;
}

.page-home .download-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-home .download-copy-text {
  color: var(--home-body);
  line-height: 1.85;
  font-size: 15px;
  margin-top: 12px;
}

.page-home .download-features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.page-home .download-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--c-mist);
  font-size: 14px;
  line-height: 1.6;
}

.page-home .download-feature::before {
  content: "↗";
  flex: 0 0 auto;
  color: var(--c-green);
  font-family: var(--font-mono);
  font-weight: 700;
}

.page-home .download-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.page-home .download-version {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-gray);
}

.page-home .download-visual {
  text-align: center;
}

.page-home .download-visual img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 4px;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.4));
}

.page-home .download-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  border-top: 1px solid var(--home-line);
  padding-top: 22px;
}

.page-home .download-stat {
  text-align: center;
}

.page-home .download-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-green);
  line-height: 1.2;
}

.page-home .download-stat-label {
  display: block;
  font-size: 12px;
  color: var(--c-gray);
  margin-top: 4px;
}

.page-home .home-outro {
  position: relative;
  z-index: 1;
  padding: 32px 0 12px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--home-body);
}

.page-home .home-outro a {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.3);
  padding-bottom: 2px;
  transition: color var(--motion), border-color var(--motion);
}

.page-home .home-outro a:hover {
  color: var(--c-green);
  border-color: var(--c-green);
}

.page-home .outro-trust {
  margin-top: 16px;
  font-size: 13px;
  color: var(--c-gray);
  border-left: 2px solid var(--c-green);
  padding-left: 14px;
}

@media (min-width: 600px) {
  .page-home .match-trend-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .trend-img {
    width: 240px;
  }

  .page-home .home-league-tags {
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (min-width: 860px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: center;
    gap: 64px;
    padding-block: calc(var(--header-h) + 72px) 96px;
  }

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

  .page-home .match-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-home .timeline-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .page-home .timeline-side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .page-home .download-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 44px;
  }

  .page-home .download-visual img {
    max-width: 480px;
  }

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

@media (min-width: 1200px) {
  .page-home .odds-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-panel--league,
  .page-home .home-panel--timeline {
    margin-left: 28px;
    margin-right: 28px;
  }

  .page-home .home-panel--odds,
  .page-home .home-panel--download {
    margin-left: -8px;
    margin-right: -8px;
  }
}
