.page-home {
  --hp-hero-gap: clamp(2.5rem, 6vw, 5rem);
  --hp-section-gap: clamp(3rem, 7vw, 6rem);
  --hp-line: rgba(0, 230, 118, 0.28);
  --hp-line-strong: rgba(0, 230, 118, 0.65);
  --hp-bg-panel: rgba(0, 51, 46, 0.55);
  --hp-bg-card: rgba(0, 51, 46, 0.72);
  --hp-radius-lg: 22px;
}

.page-home .hp-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 0 3rem;
  background:
    radial-gradient(1000px 480px at 88% -8%, rgba(0, 230, 118, 0.16), transparent 62%),
    radial-gradient(760px 420px at -8% 112%, rgba(106, 44, 158, 0.32), transparent 58%),
    linear-gradient(135deg, #0A0F24 0%, #00332E 100%);
  border-bottom: 1px solid var(--hp-line);
}

.page-home .hp-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 24%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(0, 230, 118, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .hp-hero-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.page-home .hp-subscribe-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(204, 255, 0, 0.4);
  border-radius: var(--kiwi-radius-pill);
  background: rgba(204, 255, 0, 0.08);
  color: var(--kiwi-accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s var(--kiwi-ease), border-color 0.3s var(--kiwi-ease);
}

.page-home .hp-subscribe-pill:hover {
  background: rgba(204, 255, 0, 0.16);
  border-color: var(--kiwi-accent);
}

.page-home .hp-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kiwi-accent);
  box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.2);
}

.page-home .hp-hero-layout {
  display: grid;
  gap: var(--hp-hero-gap);
  position: relative;
  z-index: 1;
}

.page-home .hp-hero-kicker {
  font-size: 0.8rem;
  color: var(--kiwi-text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-home .hp-hero-title {
  font-family: var(--kiwi-font-title);
  font-weight: 900;
  font-size: clamp(2.1rem, 6.4vw, 4.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--kiwi-text);
  margin: 0 0 0.7em;
  max-width: 12em;
}

.page-home .hp-hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(232, 240, 242, 0.82);
  max-width: 56ch;
  margin-bottom: 1.6rem;
}

.page-home .hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.page-home .hp-hero-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--hp-line);
  max-width: 36rem;
}

.page-home .hp-hero-fact {
  padding-right: 0.6rem;
}

.page-home .hp-hero-fact dt {
  font-size: 0.78rem;
  color: var(--kiwi-text-dim);
  margin-bottom: 0.15rem;
}

.page-home .hp-hero-fact dd {
  margin: 0;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.1;
}

.page-home .hp-hero-fact dd small {
  font-family: var(--kiwi-font-body);
  font-size: 0.75rem;
  margin-left: 0.2rem;
  color: var(--kiwi-text-dim);
}

.page-home .hp-chapter-preview {
  padding: 1.6rem 1.4rem;
  background: var(--hp-bg-panel);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--kiwi-shadow-card);
  position: relative;
}

.page-home .hp-preview-note {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--kiwi-text-dim);
  margin-bottom: 1.1rem;
  display: block;
}

.page-home .hp-chapter-list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}

.page-home .hp-chapter-list li + li {
  border-top: 1px solid rgba(0, 230, 118, 0.12);
}

.page-home .hp-chapter-link {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.72rem 0.2rem;
  color: var(--kiwi-text);
  text-decoration: none;
  transition: color 0.3s var(--kiwi-ease), padding-left 0.3s var(--kiwi-ease);
  line-height: 1.4;
}

.page-home .hp-chapter-link:hover {
  color: var(--kiwi-primary);
  padding-left: 0.5rem;
}

.page-home .hp-chapter-num {
  font-family: var(--kiwi-font-data);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--kiwi-primary);
  min-width: 2em;
}

.page-home .hp-chapter-label {
  font-size: 0.94rem;
}

.page-home .hp-preview-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 230, 118, 0.25);
  color: var(--kiwi-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.page-home .hp-preview-app .kiwi-mono {
  color: var(--kiwi-text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.page-home .hp-overview {
  padding: var(--hp-section-gap) 0;
  background: var(--kiwi-bg);
}

.page-home .kiwi-section-header {
  margin-bottom: clamp(1.4rem, 4vw, 2.4rem);
}

.page-home .kiwi-section-index {
  display: block;
  font-family: var(--kiwi-font-data);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 230, 118, 0.72);
  margin-bottom: 0.6rem;
  letter-spacing: -0.04em;
}

.page-home .kiwi-section-title {
  font-family: var(--kiwi-font-title);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  color: var(--kiwi-text);
  margin: 0 0 0.5rem;
}

.page-home .kiwi-section-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--kiwi-text-dim);
  margin: 0;
  max-width: 60ch;
}

.page-home .hp-overview-layout {
  display: grid;
  gap: 2.2rem;
}

.page-home .hp-overview-copy p {
  margin: 0 0 1rem;
  line-height: 1.85;
  color: rgba(232, 240, 242, 0.85);
  max-width: 68ch;
}

.page-home .hp-overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hp-line);
}

.page-home .hp-overview-links a {
  color: var(--kiwi-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.page-home .hp-overview-links a:hover {
  color: var(--kiwi-accent);
  text-decoration: underline;
}

.page-home .hp-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.page-home .hp-metric {
  background: linear-gradient(160deg, rgba(0, 51, 46, 0.8), rgba(10, 15, 36, 0.92));
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--kiwi-radius);
  padding: 1.3rem 1.1rem;
  box-shadow: var(--kiwi-shadow-card);
  transition: border-color 0.3s var(--kiwi-ease), transform 0.3s var(--kiwi-ease);
}

.page-home .hp-metric:hover {
  border-color: var(--kiwi-primary);
}

.page-home .hp-metric-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--kiwi-text-dim);
  margin-bottom: 0.5rem;
}

.page-home .hp-metric-value {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.page-home .hp-metric-extra {
  display: block;
  font-size: 0.82rem;
  color: var(--kiwi-text-dim);
  transition: color 0.3s var(--kiwi-ease);
}

.page-home .hp-metric:hover .hp-metric-extra {
  color: var(--kiwi-text);
}

.page-home .hp-datalab {
  padding: var(--hp-section-gap) 0;
  background:
    linear-gradient(180deg, rgba(0, 51, 46, 0.32), rgba(10, 15, 36, 0.9)),
    var(--kiwi-bg);
  border-top: 1px solid var(--hp-line);
  border-bottom: 1px solid var(--hp-line);
}

.page-home .hp-datalab-header {
  max-width: 56rem;
}

.page-home .kiwi-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 2px solid rgba(0, 230, 118, 0.22);
  margin-bottom: 1.8rem;
}

.page-home .kiwi-tabs-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.85rem 1rem 0.95rem;
  color: var(--kiwi-text-dim);
  font-family: var(--kiwi-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s var(--kiwi-ease), border-color 0.3s var(--kiwi-ease);
}

.page-home .kiwi-tabs-tab:hover {
  color: var(--kiwi-text);
}

.page-home .kiwi-tabs-tab[aria-selected="true"] {
  color: var(--kiwi-primary);
  border-bottom-color: var(--kiwi-primary);
}

.page-home .hp-tab-mark {
  font-size: 0.8rem;
  color: var(--kiwi-accent);
}

.page-home .kiwi-tabs-panel {
  padding-top: 0.6rem;
}

.page-home .hp-panel-layout {
  display: grid;
  gap: 2rem;
}

.page-home .hp-panel-layout-reverse {
  align-items: center;
}

.page-home .hp-panel-title {
  font-family: var(--kiwi-font-title);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  line-height: 1.3;
  color: var(--kiwi-text);
  margin: 0 0 0.9rem;
}

.page-home .hp-panel-copy p {
  line-height: 1.8;
  color: rgba(232, 240, 242, 0.82);
  margin-bottom: 1.1rem;
  max-width: 60ch;
}

.page-home .hp-feature-list {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.page-home .hp-feature-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  color: var(--kiwi-text-dim);
  font-size: 0.92rem;
  line-height: 1.65;
}

.page-home .hp-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 8px;
  background: var(--kiwi-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.14);
}

.page-home .hp-inline-btn {
  margin-top: 0.4rem;
}

.page-home .hp-panel-figure,
.page-home .hp-recent-figure,
.page-home .hp-subscribe-figure {
  margin: 0;
  padding: 0.8rem;
  background: rgba(0, 51, 46, 0.5);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--kiwi-shadow-card);
}

.page-home .hp-panel-figure img,
.page-home .hp-recent-figure img,
.page-home .hp-subscribe-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--kiwi-radius) - 4px);
  object-fit: cover;
  background: var(--kiwi-bg);
}

.page-home .hp-panel-figure figcaption,
.page-home .hp-recent-figure figcaption,
.page-home .hp-subscribe-figure figcaption {
  padding: 0.65rem 0.3rem 0.2rem;
  font-size: 0.8rem;
  color: var(--kiwi-text-dim);
  text-align: center;
}

.page-home .hp-direct {
  padding: var(--hp-section-gap) 0;
  background: var(--kiwi-bg);
}

.page-home .hp-direct-grid {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.page-home .hp-step-card {
  background: linear-gradient(150deg, var(--hp-bg-card), rgba(10, 15, 36, 0.92));
  border: 1px solid rgba(0, 230, 118, 0.22);
  border-radius: var(--kiwi-radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--kiwi-shadow-card);
  transition: border-color 0.3s var(--kiwi-ease), transform 0.3s var(--kiwi-ease);
}

.page-home .hp-step-card:hover {
  border-color: rgba(0, 230, 118, 0.55);
}

.page-home .hp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid var(--hp-line);
  color: var(--kiwi-primary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.page-home .hp-step-title {
  font-family: var(--kiwi-font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--kiwi-text);
  margin: 0 0 0.5rem;
}

.page-home .hp-step-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--kiwi-text-dim);
  margin: 0;
}

.page-home .hp-direct-note {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(232, 240, 242, 0.8);
  border-left: 3px solid var(--kiwi-accent);
  padding: 0.5rem 0 0.5rem 1rem;
  max-width: 64ch;
}

.page-home .hp-recent {
  padding: var(--hp-section-gap) 0;
  background:
    radial-gradient(700px 360px at 90% 20%, rgba(106, 44, 158, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(0, 51, 46, 0.4), rgba(10, 15, 36, 0.96)),
    var(--kiwi-bg);
  border-top: 1px solid var(--hp-line);
}

.page-home .hp-recent-layout {
  display: grid;
  gap: 2rem;
}

.page-home .hp-recent-board {
  background: rgba(10, 15, 36, 0.65);
  border: 1px solid rgba(0, 230, 118, 0.18);
  border-radius: var(--hp-radius-lg);
  padding: 0.8rem;
}

.page-home .hp-recent-list {
  display: grid;
  gap: 0.5rem;
}

.page-home .hp-match-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.8rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  background: rgba(0, 51, 46, 0.42);
  border-left: 3px solid transparent;
  border-radius: 10px;
  transition: background 0.3s var(--kiwi-ease), border-color 0.3s var(--kiwi-ease);
}

.page-home .hp-match-row:hover {
  background: rgba(0, 51, 46, 0.82);
  border-left-color: var(--kiwi-primary);
}

.page-home .hp-match-date {
  font-size: 0.8rem;
  color: var(--kiwi-text-dim);
}

.page-home .hp-match-teams {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--kiwi-text);
  font-size: 0.92rem;
}

.page-home .hp-match-teams b {
  font-weight: 600;
}

.page-home .hp-match-score {
  font-size: 1.1rem;
  font-weight: 700;
}

.page-home .hp-match-meta {
  font-size: 0.75rem;
  color: var(--kiwi-text-dim);
  grid-column: 1 / -1;
}

.page-home .hp-match-link {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--kiwi-primary);
  text-decoration: none;
  font-weight: 600;
}

.page-home .hp-match-link:hover {
  color: var(--kiwi-accent);
  text-decoration: underline;
}

.page-home .hp-match-extra {
  display: block;
  font-size: 0.75rem;
  color: var(--kiwi-text-dim);
}

.page-home .hp-recent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 1rem 0.3rem 0.3rem;
}

.page-home .hp-subscribe {
  padding: var(--hp-section-gap) 0;
  background: var(--kiwi-bg);
  border-top: 1px solid rgba(106, 44, 158, 0.35);
}

.page-home .hp-subscribe-layout {
  display: grid;
  gap: 2rem;
}

.page-home .hp-subscribe-copy p {
  line-height: 1.8;
  color: rgba(232, 240, 242, 0.85);
  margin-bottom: 1rem;
  max-width: 62ch;
}

.page-home .hp-steps-list {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  counter-reset: hp-steps;
}

.page-home .hp-steps-list li {
  counter-increment: hp-steps;
  position: relative;
  padding: 0.6rem 0 0.6rem 2.2rem;
  color: var(--kiwi-text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  border-bottom: 1px dashed rgba(0, 230, 118, 0.14);
}

.page-home .hp-steps-list li::before {
  content: counter(hp-steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.65rem;
  font-family: var(--kiwi-font-data);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--kiwi-accent);
}

.page-home .hp-subscribe-detail {
  margin-top: 1.2rem;
  border: 1px solid rgba(0, 230, 118, 0.22);
  border-radius: var(--kiwi-radius);
  background: rgba(0, 51, 46, 0.4);
}

.page-home .hp-subscribe-detail summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--kiwi-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-home .hp-subscribe-detail summary::after {
  content: "+";
  font-family: var(--kiwi-font-data);
  font-size: 1.1rem;
  color: var(--kiwi-primary);
  transition: transform 0.3s var(--kiwi-ease);
}

.page-home .hp-subscribe-detail[open] summary::after {
  transform: rotate(45deg);
}

.page-home .hp-subscribe-detail-body {
  padding: 0.2rem 1.1rem 1.1rem;
}

.page-home .hp-subscribe-detail-body p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--kiwi-text-dim);
  margin: 0.6rem 0;
}

.page-home .hp-subscribe-detail-body .kiwi-btn {
  margin-top: 0.4rem;
}

@media (hover: hover) {
  .page-home .hp-match-extra {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s var(--kiwi-ease), max-height 0.3s var(--kiwi-ease);
  }

  .page-home .hp-match-row:hover .hp-match-extra {
    opacity: 1;
    max-height: 2.2em;
  }
}

@media (min-width: 640px) {
  .page-home .hp-hero-facts {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .page-home .hp-match-row {
    grid-template-columns: 110px 1fr 170px;
  }

  .page-home .hp-match-meta {
    grid-column: auto;
  }

  .page-home .hp-match-link {
    justify-self: end;
  }
}

@media (min-width: 960px) {
  .page-home .hp-hero {
    padding: 3rem 0 4.5rem;
  }

  .page-home .hp-hero-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
  }

  .page-home .hp-chapter-preview {
    margin-top: 1.8rem;
    padding: 1.8rem 1.6rem;
  }

  .page-home .hp-overview-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
  }

  .page-home .hp-panel-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
  }

  .page-home .hp-panel-layout-reverse .hp-panel-copy {
    order: 2;
  }

  .page-home .hp-panel-layout-reverse .hp-panel-figure {
    order: 1;
  }

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

  .page-home .hp-recent-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
  }

  .page-home .hp-subscribe-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
  }
}

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