.page-home {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: clip;
}

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

.page-home .section {
  position: relative;
  padding: clamp(40px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}

.page-home .section:last-child {
  border-bottom: 0;
}

.page-home .section-title {
  margin-top: 10px;
  margin-bottom: 14px;
}

.page-home .lead {
  max-width: 60ch;
}

/* ---------- HERO ---------- */

.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 7vw, 88px) 0 clamp(40px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(45, 53, 49, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 53, 49, 0.55) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.4;
  pointer-events: none;
}

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

.page-home .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.32;
  filter: saturate(0.85) contrast(1.06);
}

.page-home .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(20, 58, 48, 0.55) 0%, transparent 62%),
    linear-gradient(180deg, rgba(11, 15, 14, 0.5) 0%, rgba(11, 15, 14, 0.88) 58%, var(--ink) 100%);
}

.page-home .hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(28px, 5vw, 52px);
}

.page-home .hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

.page-home .hero__kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.18);
  animation: home-pulse 2.4s ease-in-out infinite;
}

.page-home .hero__display {
  display: flex;
  align-items: flex-end;
}

.page-home .hero__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(88px, 24vw, 236px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--lime);
  opacity: 0.92;
}

@supports ((-webkit-text-stroke: 2px #000)) {
  .page-home .hero__num {
    color: transparent;
    -webkit-text-stroke: 2px var(--lime);
    opacity: 0.9;
  }
}

.page-home .hero__title {
  margin: 6px 0 0;
  max-width: 18ch;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 5.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .hero__text {
  margin: 16px 0 0;
  max-width: 54ch;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.78;
  color: var(--soft);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .hero__board {
  position: relative;
  padding: clamp(16px, 3vw, 24px);
  background: linear-gradient(158deg, rgba(20, 58, 48, 0.94) 0%, rgba(14, 42, 34, 0.94) 100%);
  border: 1px solid var(--line);
  border-left: 2px solid var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.page-home .board__head {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.page-home .board__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.page-home .board__item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  background: rgba(14, 42, 34, 0.92);
}

.page-home .board__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper);
}

.page-home .board__meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- ROUNDS ---------- */

.page-home .section--rounds {
  background: linear-gradient(180deg, var(--ink) 0%, var(--deep) 100%);
}

.page-home .rounds__grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-home .rounds__disclosure {
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .rounds__disclosure .disclosure__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.page-home .rounds__disclosure .disclosure__idx {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--lime);
  padding: 2px 7px;
  border-radius: 2px;
}

.page-home .rounds__trigger-label {
  flex: 1;
  font-weight: 500;
}

.page-home .rounds__disclosure .disclosure__sign {
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--lime);
}

.page-home .rounds__disclosure .disclosure__inner {
  padding: 6px 16px 16px;
}

.page-home .rounds__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .rounds__item {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .rounds__item:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.page-home .rounds__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--soft);
}

.page-home .rounds__figure {
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  background: var(--mesh);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
  overflow: hidden;
}

.page-home .rounds__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .rounds__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(11, 15, 14, 0.82);
  border-top: 1px solid var(--lime);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

/* ---------- STEPS ---------- */

.page-home .steps {
  list-style: none;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .step {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  background: var(--panel);
}

.page-home .step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 2px;
  background: var(--lime);
}

.page-home .step__idx {
  display: block;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1;
  color: var(--lime);
  letter-spacing: -0.02em;
}

.page-home .step__title {
  margin: 12px 0 8px;
  font-family: var(--font-head);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.page-home .step__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--soft);
}

/* ---------- LEAGUES ---------- */

.page-home .section--leagues {
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(20, 58, 48, 0.7) 0%, transparent 62%),
    var(--ink);
}

.page-home .filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: clamp(18px, 3vw, 26px) 0 clamp(20px, 3.4vw, 32px);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.page-home .filter {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--panel);
}

.page-home .filter.is-active {
  border-color: var(--lime);
  background: rgba(198, 255, 61, 0.1);
  color: var(--lime);
}

.page-home .league-grid {
  display: grid;
  gap: clamp(14px, 2.4vw, 20px);
}

.page-home .league-feature {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

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

.page-home .league-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 14, 0.15) 0%, rgba(11, 15, 14, 0.9) 78%);
}

.page-home .league-feature__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.page-home .league-feature__title {
  margin: 4px 0 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  color: var(--paper);
}

.page-home .league-feature__body p {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.72;
  color: var(--soft);
}

.page-home .league-card {
  display: grid;
  gap: 8px;
  padding: clamp(16px, 2.6vw, 22px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--mesh);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.page-home .league-card:hover {
  border-top-color: var(--lime);
  transform: translateY(-3px);
}

.page-home .league-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .league-status {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .league-card__name {
  margin: 4px 0 0;
  font-family: var(--font-head);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--paper);
}

.page-home .league-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--soft);
}

.page-home .league-card__foot {
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--lime);
}

/* ---------- STATS ---------- */

.page-home .section--stats {
  background: var(--deep);
}

.page-home .stats__split {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.page-home .stat-list {
  list-style: none;
  display: grid;
  gap: 1px;
  margin: clamp(20px, 3vw, 30px) 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .stat-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 16px;
  background: var(--panel);
}

.page-home .stat-item .stat-number {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1;
  color: var(--lime);
  letter-spacing: -0.03em;
}

.page-home .stat-item .stat-label {
  font-size: 13px;
  color: var(--soft);
}

.page-home .stats__note {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .stats__figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.page-home .stats__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .stats__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(11, 15, 14, 0.84);
  border-top: 1px solid var(--orange);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

/* ---------- LINEUP ---------- */

.page-home .section--lineup {
  background: linear-gradient(115deg, var(--mesh) 0%, var(--deep) 46%, var(--ink) 100%);
  border-top: 1px solid var(--line);
}

.page-home .lineup {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  align-items: center;
}

.page-home .lineup__stamp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}

.page-home .lineup__clock {
  font-family: var(--font-mono);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.page-home .lineup__body h2 {
  margin: 0 0 10px;
}

.page-home .lineup__body p {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--soft);
}

.page-home .lineup__action {
  justify-self: start;
}

/* ---------- CTA ---------- */

.page-home .section--cta {
  background:
    radial-gradient(80% 70% at 88% 100%, rgba(20, 58, 48, 0.6) 0%, transparent 60%),
    var(--ink);
}

.page-home .cta-grid {
  display: grid;
  gap: 1px;
  margin-top: clamp(22px, 3.6vw, 36px);
  background: var(--line);
  border: 1px solid var(--line);
}

.page-home .cta-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--panel);
  text-decoration: none;
  color: var(--paper);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-home .cta-card:hover,
.page-home .cta-card:focus-visible {
  background: var(--mesh);
  box-shadow: inset 3px 0 0 var(--lime);
}

.page-home .cta-card__idx {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .cta-card__title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
}

.page-home .cta-card__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--soft);
}

.page-home .cta-card__arrow {
  position: absolute;
  right: clamp(18px, 3vw, 26px);
  bottom: clamp(18px, 3vw, 26px);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--lime);
  transition: transform 0.25s var(--ease);
}

.page-home .cta-card:hover .cta-card__arrow,
.page-home .cta-card:focus-visible .cta-card__arrow {
  transform: translateX(5px);
}

.page-home .trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: clamp(22px, 3.4vw, 32px) 0 0;
  padding: 0;
}

.page-home .trust-item {
  position: relative;
  padding-left: 14px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--lime);
}

.page-home .cta-more {
  margin: clamp(20px, 3vw, 28px) 0 0;
}

/* ---------- MOTION ---------- */

@media (prefers-reduced-motion: no-preference) {
  .page-home [data-reveal].is-visible {
    animation: home-rise 0.6s var(--ease) both;
  }

  .page-home .hero__board {
    animation: home-slide 0.7s var(--ease) both;
  }
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-slide {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes home-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 106, 26, 0.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__kicker .dot {
    animation: none;
  }
  .page-home .league-card,
  .page-home .cta-card,
  .page-home .cta-card__arrow {
    transition: none;
  }
}

/* ---------- RESPONSIVE ---------- */

@media (min-width: 620px) {
  .page-home .league-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .league-feature {
    grid-column: span 2;
  }

  .page-home .stat-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .stat-item {
    flex-direction: column;
    gap: 6px;
  }
}

@media (min-width: 860px) {
  .page-home .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .lineup {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(20px, 3vw, 40px);
  }

  .page-home .lineup__action {
    justify-self: end;
  }

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

  .page-home .stats__split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .page-home .hero {
    padding-top: clamp(56px, 7vw, 96px);
  }

  .page-home .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr);
    align-items: end;
    gap: clamp(32px, 4vw, 56px);
  }

  .page-home .hero__board {
    margin-bottom: 6px;
  }

  .page-home .rounds__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }

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

  .page-home .league-feature {
    grid-column: span 2;
    min-height: 300px;
  }

  .page-home .league-card:nth-child(3) {
    margin-top: 18px;
  }

  .page-home .league-card:nth-child(5) {
    margin-top: -18px;
  }
}

@media (min-width: 1200px) {
  .page-home .hero__text {
    max-width: 50ch;
  }

  .page-home .step {
    padding: 34px 30px;
  }
}
