.page-home {
  --home-section-gap: clamp(3rem, 7vw, 6.5rem);
  overflow-x: clip;
  background: var(--color-surface);
}

.page-home .container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.page-home .home-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  margin-bottom: 1rem;
}

.page-home .home-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--speed) ease;
}

.page-home .home-breadcrumb a:hover {
  color: var(--color-green);
}

.page-home .home-breadcrumb .breadcrumb__sep {
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Hero ===== */
.page-home .home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 900px);
  background: var(--color-navy);
  color: var(--color-white);
  padding: 5.5rem 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-home .home-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .home-hero__frame {
  position: relative;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: rgba(10, 31, 68, 0.54);
  backdrop-filter: blur(8px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
}

.page-home .home-hero__frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 40px;
  border-top: 3px solid var(--color-green);
  border-left: 3px solid var(--color-green);
  border-radius: var(--radius-md) 0 0 0;
  pointer-events: none;
  z-index: 1;
}

.page-home .home-hero__frame > * {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-home .home-hero__badge {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--color-navy);
  background: var(--color-green);
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.page-home .home-hero__notice {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.page-home .home-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: 1.06;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.page-home .home-hero__lead {
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 1.6rem;
}

.page-home .home-hero__lead em {
  font-style: normal;
  color: var(--color-green);
  background: rgba(57, 255, 20, 0.12);
  padding: 0.05em 0.3em;
  border-radius: 4px;
}

.page-home .home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.page-home .home-hero__stats .metric-frame {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem;
  background: rgba(11, 42, 91, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.page-home .home-hero__stats .metric-frame__label {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  line-height: 1.4;
  order: 2;
}

.page-home .home-hero__stats .metric-frame__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
  color: var(--color-green);
  font-weight: 900;
  order: 1;
}

.page-home .home-hero__stats .metric-frame__unit {
  font-size: 0.55em;
  margin-left: 0.12em;
  color: rgba(255, 255, 255, 0.52);
}

/* ===== Ticker ===== */
.page-home .home-ticker {
  background: var(--color-navy-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.72rem 0;
  overflow: hidden;
  color: var(--color-white);
}

.page-home .home-ticker__track {
  display: flex;
  width: max-content;
  animation: home-ticker-scroll 28s linear infinite;
}

.page-home .home-ticker__group {
  display: flex;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.page-home .home-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-home .home-ticker__item::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 10px var(--color-green);
}

@keyframes home-ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ===== Section header ===== */
.page-home .home-section-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-home .home-section-head--center {
  justify-content: center;
  text-align: center;
}

.page-home .home-section-head--alt .chapter-no {
  color: var(--color-orange);
}

.page-home .home-section-head .chapter-no {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.75;
  font-weight: 900;
  color: var(--color-green);
  opacity: 0.38;
  flex: none;
  min-width: 1.6em;
}

.page-home .home-section-head--center .chapter-no {
  order: -1;
  flex-basis: 100%;
  text-align: center;
}

.page-home .home-section-head__text {
  flex: 1;
}

.page-home .home-section-head .eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gray);
  margin: 0 0 0.5rem;
}

.page-home .home-section-head--center .eyebrow {
  text-align: center;
}

.page-home .home-section-head .section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.55rem;
  color: var(--color-text);
}

.page-home .section--dark .home-section-head .section-title {
  color: var(--color-white);
}

.page-home .section--dark .home-section-head .eyebrow {
  color: rgba(255, 255, 255, 0.56);
}

.page-home .home-section-head__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-gray);
}

.page-home .section--dark .home-section-head__desc {
  color: rgba(255, 255, 255, 0.68);
}

/* ===== Focus matches ===== */
.page-home .home-focus {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.page-home .home-focus__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-home .home-match {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.page-home .home-match:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  border-color: var(--color-orange);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.page-home .home-match--live {
  border-top-color: var(--color-green);
  border-top-width: 3px;
}

.page-home .home-match__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.page-home .home-match__league {
  color: var(--color-gray);
  font-weight: 600;
}

.page-home .home-match__status {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: var(--color-text);
  font-weight: 600;
  background: var(--color-surface);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.75rem;
}

.page-home .home-match__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  animation: home-pulse 1.2s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(57, 255, 20, 0);
  }
}

.page-home .home-match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.45rem;
  min-height: 88px;
}

.page-home .home-match__team {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  line-height: 1.2;
  color: var(--color-text);
}

.page-home .home-match__score {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  color: var(--color-navy);
  text-align: center;
  min-width: 3.2rem;
  padding: 0.35rem 0.55rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}

.page-home .home-match__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-gray);
  border-top: 1px dashed var(--color-border);
  padding-top: 0.6rem;
}

/* ===== Schedule ===== */
.page-home .home-schedule {
  padding-block: var(--home-section-gap);
}

.page-home .home-schedule__body {
  position: relative;
}

.page-home .home-schedule__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.page-home .home-schedule__filter {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.page-home .home-schedule__filter:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.page-home .home-schedule__panel {
  display: grid;
  gap: 1.2rem;
  align-items: start;
}

.page-home .home-schedule__thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.page-home .home-schedule__thumb img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-home .home-schedule__tables {
  display: grid;
  gap: 1.6rem;
}

.page-home .home-schedule__table-block {
  scroll-margin-top: 7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 0.9rem 1.1rem;
  background: var(--color-white);
  transition: outline 0.25s ease;
}

.page-home .home-schedule__table-block:target {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
}

.page-home .home-schedule__table-block--notice {
  border-top-color: var(--color-orange);
  border-top-width: 3px;
}

.page-home .home-schedule__table-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  margin: 0 0 0.6rem;
  color: var(--color-text);
}

.page-home .home-schedule__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.page-home .home-schedule__table th {
  font-weight: 700;
  text-align: left;
  color: var(--color-gray);
  padding: 0.45rem 0.35rem;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.page-home .home-schedule__table td {
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  white-space: nowrap;
}

.page-home .home-schedule__table tr:last-child td {
  border-bottom: 0;
}

.page-home .home-schedule__table td:first-child {
  font-weight: 600;
}

/* ===== Basket ===== */
.page-home .home-basket {
  position: relative;
  padding-block: var(--home-section-gap);
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.05) 0%, rgba(10, 31, 68, 0) 42%),
    var(--color-navy);
}

.page-home .home-basket__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .home-basket__content {
  display: grid;
  gap: 1.25rem;
}

.page-home .home-basket__leagues {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.page-home .home-basket__league {
  background: rgba(11, 42, 91, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.page-home .home-basket__league:hover {
  transform: translateX(4px);
  border-color: var(--color-orange);
}

.page-home .home-basket__league-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-white);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.page-home .home-basket__league-name::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--color-green);
  border-radius: 2px;
  transform: rotate(45deg);
}

.page-home .home-basket__league-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.6rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-home .home-basket__league-stats b {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-green);
  margin-left: 0.2rem;
}

.page-home .home-basket__footnote {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  border-left: 3px solid var(--color-orange);
  padding-left: 0.8rem;
}

.page-home .home-basket__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home .home-basket__media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== Legacy ===== */
.page-home .home-legacy {
  padding-block: var(--home-section-gap);
}

.page-home .home-legacy__steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-home .home-legacy__step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .home-legacy__step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}

.page-home .home-legacy__step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
  color: var(--color-orange);
  background: rgba(255, 107, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
}

.page-home .home-legacy__step-text h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.page-home .home-legacy__step-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-gray);
}

.page-home .home-legacy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ===== Stats ===== */
.page-home .home-stats {
  position: relative;
  padding-block: var(--home-section-gap);
  background:
    radial-gradient(circle at 80% 20%, rgba(57, 255, 20, 0.08), transparent 40%),
    var(--color-navy);
}

.page-home .home-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

.page-home .home-stats__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  background: rgba(11, 42, 91, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow: hidden;
}

.page-home .home-stats__item::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(57, 255, 20, 0.3);
  transform: rotate(45deg);
  border-radius: 8px;
}

.page-home .home-stats__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 1;
  font-weight: 900;
  color: var(--color-green);
}

.page-home .home-stats__unit {
  font-size: 0.5em;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 0.1em;
}

.page-home .home-stats__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.03em;
}

.page-home .home-stats__trust {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  background: rgba(11, 42, 91, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}

.page-home .home-stats__trust-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home .home-stats__trust-img img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-home .home-stats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-home .home-stats__list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.page-home .home-stats__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-orange);
  transform: rotate(45deg);
}

/* ===== Outro ===== */
.page-home .home-outro {
  padding-block: var(--home-section-gap);
  background:
    linear-gradient(120deg, rgba(10, 31, 68, 0.04), transparent 40%),
    var(--color-white);
}

.page-home .home-outro__inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}

.page-home .home-outro .chapter-no {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.8;
  color: var(--color-orange);
  opacity: 0.3;
}

.page-home .home-outro__text .section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 0.6rem;
  color: var(--color-text);
}

.page-home .home-outro__text p {
  margin: 0;
  color: var(--color-gray);
  line-height: 1.7;
  max-width: 38rem;
}

.page-home .home-outro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ===== Media Queries ===== */
@media (min-width: 640px) {
  .page-home .home-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .page-home .home-schedule__table-block {
    padding-inline: 1.4rem;
  }

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

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

@media (min-width: 900px) {
  .page-home .home-hero {
    min-height: 100vh;
  }

  .page-home .home-hero__frame {
    padding: 3rem;
  }

  .page-home .home-hero__cta {
    margin-bottom: 2.6rem;
  }

  .page-home .home-section-head {
    gap: 1.75rem;
    margin-bottom: 2.5rem;
  }

  .page-home .home-focus__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  .page-home .home-schedule__panel {
    grid-template-columns: minmax(260px, 0.7fr) 2.4fr;
    gap: 1.8rem;
  }

  .page-home .home-schedule__thumb {
    position: sticky;
    top: 7rem;
  }

  .page-home .home-basket__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.6rem;
  }

  .page-home .home-basket__media img {
    height: 100%;
    max-height: 520px;
    object-fit: cover;
  }

  .page-home .home-legacy__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .page-home .home-legacy__step {
    grid-template-columns: 1fr;
    min-height: 190px;
  }

  .page-home .home-legacy__step-num {
    max-width: 3.2rem;
  }

  .page-home .home-stats__trust {
    grid-template-columns: minmax(280px, 0.9fr) 1.5fr;
    gap: 2rem;
    padding: 1.6rem;
  }

  .page-home .home-stats__list {
    gap: 1rem;
  }

  .page-home .home-outro__inner {
    align-items: center;
    text-align: center;
  }

  .page-home .home-outro__actions {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }

  .page-home .home-ticker__group {
    flex-wrap: wrap;
    white-space: normal;
  }

  .page-home .home-match__status i {
    animation: none;
  }

  .page-home .home-match,
  .page-home .home-basket__league,
  .page-home .home-legacy__step,
  .page-home .home-schedule__filter,
  .page-home .home-hero__stats .metric-frame {
    transition: none;
  }
}
