.page-home {
  --home-gap: clamp(72px, 10vw, 140px);
  --home-section-pad: clamp(64px, 8vw, 120px);
  scroll-behavior: smooth;
}

.page-home .home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72vh;
  overflow: hidden;
  padding: clamp(56px, 6vw, 96px) clamp(20px, 4vw, 56px);
  background: var(--bg-main);
}

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

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

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 68% 18%, rgba(255, 77, 0, .2), transparent 52%),
    radial-gradient(ellipse at 30% 76%, rgba(0, 163, 255, .12), transparent 55%),
    linear-gradient(180deg, rgba(10, 14, 26, .4) 0%, rgba(10, 14, 26, .92) 100%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  text-align: left;
}

.page-home .home-hero__eyebrow {
  font-family: var(--font-data);
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0;
}

.page-home .home-hero__title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0;
}

.page-home .home-hero__title-line {
  display: block;
  font-size: .42em;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .14em;
  margin-bottom: .12em;
}

.page-home .home-hero__lede {
  max-width: 480px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
}

.page-home .home-hero__index {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin-top: 8px;
}

.page-home .home-hero__index-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--pill);
  background: rgba(26, 35, 58, .55);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}

.page-home .home-hero__index-item:hover,
.page-home .home-hero__index-item:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 77, 0, .08);
  transform: translateX(-6px);
}

.page-home .home-hero__index-num {
  font-family: var(--font-data);
  font-size: .82rem;
  color: var(--accent);
}

.page-home .home-hero__index-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.page-home .home-hero__index-arrow {
  margin-left: auto;
  color: var(--data);
  font-size: 1.1rem;
  transition: transform .3s var(--ease);
}

.page-home .home-hero__index-item:hover .home-hero__index-arrow {
  transform: translateX(4px);
}

.page-home .home-hero__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-data);
  font-size: .8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 12px 20px;
  background: rgba(16, 24, 40, .6);
  margin-top: 12px;
}

.page-home .home-hero__trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, .6);
  animation: home-pulse 2s infinite;
}

.page-home .home-section {
  position: relative;
  padding: var(--home-section-pad) clamp(20px, 4vw, 56px);
  background: var(--bg-main);
}

.page-home .home-section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 44px;
  max-width: 720px;
}

.page-home .home-section__head--split {
  max-width: none;
}

.page-home .home-section__eyebrow {
  font-family: var(--font-data);
  font-size: .78rem;
  letter-spacing: .16em;
  color: var(--data);
  text-transform: uppercase;
  margin: 0;
}

.page-home .home-section__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0;
}

.page-home .home-section__lede {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
}

.page-home .home-match {
  background:
    linear-gradient(180deg, var(--bg-main) 0%, var(--bg-deep) 100%);
}

.page-home .home-match__refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0;
}

.page-home .home-match__refresh::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, .6);
  animation: home-pulse 2s infinite;
}

.page-home .home-match__grid {
  display: grid;
  gap: 18px;
}

.page-home .home-match__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.page-home .home-match__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.page-home .home-match__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.page-home .home-match__league {
  font-family: var(--font-data);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .home-match__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: var(--font-data);
  font-size: .74rem;
  color: var(--data);
  padding: 4px 10px;
  border-radius: var(--pill);
  background: rgba(0, 163, 255, .08);
}

.page-home .home-match__status--live {
  color: var(--live);
  background: rgba(57, 255, 20, .08);
}

.page-home .home-match__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--data);
}

.page-home .home-match__dot--live {
  background: var(--live);
  animation: home-pulse 2s infinite;
}

.page-home .home-match__board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
}

.page-home .home-match__team {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
}

.page-home .home-match__score {
  font-family: var(--font-data);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  text-align: center;
}

.page-home .home-match__note {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.page-home .home-match__foot {
  margin-top: 32px;
  text-align: right;
}

.page-home .home-v3 {
  background: var(--bg-main);
}

.page-home .home-v3__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .home-v3__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

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

.page-home .home-v3__content {
  display: flex;
  flex-direction: column;
}

.page-home .home-v3__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-v3__list-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(26, 35, 58, .55);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.page-home .home-v3__list-item:hover {
  border-color: var(--data);
  background: rgba(0, 163, 255, .05);
}

.page-home .home-v3__list-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: .78rem;
  color: var(--accent);
  background: rgba(255, 77, 0, .08);
  border-radius: var(--pill);
  margin-top: 2px;
}

.page-home .home-v3__list-item strong {
  font-weight: 700;
  color: var(--text);
  font-size: 1.0625rem;
}

.page-home .home-v3__list-item p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.6;
}

.page-home .home-v3__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.page-home .home-stats {
  background:
    linear-gradient(180deg, var(--bg-main) 0%, var(--bg-deep) 100%);
}

.page-home .home-stats__layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .home-stats__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  order: -1;
}

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

.page-home .home-stats__panel {
  display: flex;
  flex-direction: column;
}

.page-home .home-stats__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.page-home .home-stats__tab {
  font-family: var(--font-data);
  font-size: .78rem;
  padding: 10px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: rgba(16, 24, 40, .5);
  color: var(--text-muted);
  letter-spacing: .04em;
}

.page-home .home-stats__tab--active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(255, 77, 0, .12);
}

.page-home .home-stats__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.page-home .home-stats__card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.page-home .home-stats__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.page-home .home-stats__label {
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 0;
}

.page-home .home-stats__value {
  position: relative;
  display: inline-block;
  padding-right: 10px;
  font-family: var(--font-data);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin: 8px 0 4px;
  line-height: 1;
}

.page-home .home-stats__value::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.page-home .home-stats__unit {
  font-size: .9rem;
  color: var(--data);
  margin-left: 2px;
  font-weight: 400;
}

.page-home .home-stats__meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.page-home .home-stats__note {
  margin-top: 20px;
  font-family: var(--font-data);
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-home .home-version {
  position: relative;
  overflow: hidden;
}

.page-home .home-version__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .16;
}

.page-home .home-version__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-main) 0%, rgba(10, 14, 26, .72) 60%, var(--bg-main) 100%);
}

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

.page-home .home-version > .container {
  position: relative;
  z-index: 1;
}

.page-home .home-version__timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 40px 0 48px;
}

.page-home .home-version__node {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(26, 35, 58, .6);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.page-home .home-version__node--current {
  border-color: var(--data);
  background: rgba(0, 163, 255, .08);
}

.page-home .home-version__ver {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--data);
}

.page-home .home-version__node--current .home-version__ver {
  color: var(--text);
}

.page-home .home-version__node--current .home-version__ver::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, .6);
  animation: home-pulse 2s infinite;
}

.page-home .home-version__label {
  font-size: .875rem;
  color: var(--text-muted);
}

.page-home .home-version__doc {
  margin-top: 48px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.page-home .home-version__doc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text);
}

.page-home .home-version__doc-ratio {
  font-family: var(--font-data);
  color: var(--data);
  font-size: .9rem;
}

.page-home .home-version__track {
  height: 10px;
  border-radius: var(--pill);
  background: rgba(16, 24, 40, .9);
  border: 1px solid var(--border);
  overflow: hidden;
}

.page-home .home-version__fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--data), var(--accent));
}

.page-home .home-version__doc-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .875rem;
  color: var(--text-muted);
}

.page-home .home-support {
  background: var(--bg-main);
}

.page-home .home-support__grid {
  display: grid;
  gap: 18px;
}

.page-home .home-support__panel {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}

.page-home .home-support__panel:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.page-home .home-support__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(57, 255, 20, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.page-home .home-support__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, .6);
  animation: home-pulse 2s infinite;
}

.page-home .home-support__pulse--blue {
  background: var(--data);
  box-shadow: 0 0 0 0 rgba(0, 163, 255, .5);
  animation: home-pulse-blue 2s infinite;
}

.page-home .home-support__panel-title {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.page-home .home-support__panel-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
}

.page-home .home-support__panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: .84rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.page-home .home-support__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(57, 255, 20, .6);
}

.page-home .home-support__status-dot--blue {
  background: var(--data);
  box-shadow: 0 0 8px rgba(0, 163, 255, .6);
}

.page-home .home-support__contact {
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-home .home-support__contact a {
  color: var(--data);
  text-decoration-color: rgba(0, 163, 255, .4);
  text-underline-offset: 4px;
}

@keyframes home-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, .55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(57, 255, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
  }
}

@keyframes home-pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 163, 255, .5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(0, 163, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 163, 255, 0);
  }
}

@media (min-width: 640px) {
  .page-home .home-match__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .page-home .home-hero__inner {
    align-items: flex-end;
    text-align: right;
  }

  .page-home .home-hero__lede {
    margin-left: auto;
  }

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

  .page-home .home-hero__trust {
    margin-left: auto;
  }

  .page-home .home-section__head--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-home .home-v3__grid {
    grid-template-columns: 5fr 6fr;
    gap: 64px;
  }

  .page-home .home-stats__layout {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }

  .page-home .home-stats__media {
    order: 0;
  }

  .page-home .home-version__timeline {
    flex-direction: row;
    gap: 20px;
  }

  .page-home .home-support__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1060px) {
  .page-home .home-match__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .page-home .home-stats__cards {
    grid-template-columns: 1fr;
  }

  .page-home .home-version__doc {
    padding: 20px;
  }

  .page-home .home-support__panel {
    padding: 24px;
  }
}

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