.page-home {
  --home-ruler-width: 30px;
  --home-section-gap: clamp(3.5rem, 7vw, 6rem);
}

.page-home .home-crumb {
  padding-top: calc(var(--header-h) + 1rem);
  padding-bottom: 0;
}

.page-home .home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 2.5rem 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 58% 78% at 84% 16%, rgba(255, 108, 44, 0.14), transparent 62%),
    linear-gradient(132deg, var(--night-deep) 0%, var(--night-mid) 68%, var(--night-deep) 100%);
}

.page-home .home-hero__flow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 46px);
  animation: home-flow-move 32s linear infinite;
}

@keyframes home-flow-move {
  from { background-position: 0 0; }
  to { background-position: 92px -46px; }
}

.page-home .home-hero__speed {
  display: none;
  position: absolute;
  top: 0;
  right: clamp(0.75rem, 4vw, 3rem);
  bottom: 0;
  width: 54px;
  z-index: -1;
  overflow: hidden;
}

.page-home .home-hero__speed i {
  position: absolute;
  display: block;
  width: 2px;
  height: 24%;
  background: linear-gradient(to bottom, transparent, var(--orange), transparent);
  opacity: 0.5;
  animation: home-speed-fall 3.6s ease-in-out infinite;
}

.page-home .home-hero__speed i:nth-child(1) { left: 4px; animation-delay: 0s; }
.page-home .home-hero__speed i:nth-child(2) { left: 15px; animation-delay: 0.8s; }
.page-home .home-hero__speed i:nth-child(3) { left: 26px; animation-delay: 1.4s; }
.page-home .home-hero__speed i:nth-child(4) { left: 37px; animation-delay: 0.4s; }
.page-home .home-hero__speed i:nth-child(5) { left: 48px; animation-delay: 2s; }

@keyframes home-speed-fall {
  0% { top: -30%; opacity: 0; }
  18% { opacity: 0.65; }
  70% { opacity: 0.12; }
  100% { top: 115%; opacity: 0; }
}

.page-home .home-hero__ruler {
  display: none;
  position: absolute;
  left: -6px;
  top: 28px;
  bottom: 28px;
  width: var(--home-ruler-width);
  transform: skewY(7deg);
  z-index: 0;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 108, 44, 0.9) 0 2px, transparent 2px 9px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  opacity: 0.85;
}

.page-home .home-hero__ruler::after {
  content: "0 10 20 30 40 50";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  color: var(--text-sub);
  white-space: nowrap;
}

.page-home .home-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.page-home .home-hero__content {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange-mid);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.page-home .home-hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.page-home .home-hero__content h1 {
  font-family: var(--font-headings);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin: 0 0 1.5rem;
}

.page-home .home-hero__accent {
  color: var(--orange);
}

.page-home .home-hero__lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-sub);
  max-width: 38rem;
  margin: 0 0 2rem;
}

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

.page-home .home-hero__actions .btn {
  width: 100%;
  justify-content: center;
}

.page-home .home-hero__media {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  transform: rotate(1.6deg);
}

.page-home .home-hero__media::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  width: 64px;
  height: 64px;
  border-top: 3px solid var(--orange);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius) 0 0 0;
  opacity: 0.85;
  pointer-events: none;
}

.page-home .home-hero__media::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 48px;
  height: 48px;
  border-right: 3px solid var(--data-green);
  border-bottom: 3px solid var(--data-green);
  border-radius: 0 0 var(--radius) 0;
  opacity: 0.85;
  pointer-events: none;
}

.page-home .home-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.page-home .home-hero__hint {
  display: none;
  position: absolute;
  left: calc(var(--container-pad) + var(--home-ruler-width) + 0.75rem);
  bottom: 1.5rem;
  gap: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  z-index: 1;
}

@media (min-width: 640px) {
  .page-home .home-hero__ruler {
    display: block;
  }

  .page-home .home-hero__speed {
    display: block;
  }

  .page-home .home-hero__actions .btn {
    width: auto;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__inner {
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding-left: calc(var(--home-ruler-width) + 0.5rem);
  }

  .page-home .home-hero__media {
    transform: rotate(2.2deg) translateY(0.75rem);
  }

  .page-home .home-hero__hint {
    display: flex;
  }
}

.page-home .home-live {
  position: relative;
  padding: calc(var(--home-section-gap) * 0.85) 0 var(--home-section-gap);
  background: linear-gradient(180deg, var(--night-deep) 0%, var(--night-mid) 100%);
}

.page-home .home-live::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 108, 44, 0.7), rgba(0, 212, 160, 0.5), transparent);
}

.page-home .home-section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-mid);
  margin: 0 0 0.7rem;
}

.page-home .home-live__head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-home .home-live__head h2,
.page-home .home-features__head h2,
.page-home .home-stats__head h2,
.page-home .home-cn__intro h2 {
  font-family: var(--font-headings);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.16;
  color: var(--text-main);
  margin: 0;
}

.page-home .home-live__stream {
  height: 3px;
  margin: 1.75rem 0 2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.page-home .home-live__stream-bar {
  display: block;
  height: 100%;
  width: 34%;
  background: linear-gradient(90deg, var(--orange), var(--data-green));
  border-radius: 99px;
  animation: home-stream-slide 2.6s ease-in-out infinite;
}

@keyframes home-stream-slide {
  0% { transform: translateX(-110%); }
  55%, 100% { transform: translateX(320%); }
}

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

.page-home .home-live__board {
  background: var(--glass-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-home .home-scoreboard__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.page-home .home-scoreboard__league {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text-sub);
}

.page-home .home-scoreboard__main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.page-home .home-scoreboard__side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  min-width: 0;
}

.page-home .home-scoreboard__team {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
  white-space: nowrap;
}

.page-home .home-scoreboard__score {
  font-family: var(--font-headings);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
  color: var(--orange);
  animation: home-score-pop 600ms cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

.page-home .home-scoreboard__main .home-scoreboard__side:last-child .home-scoreboard__score {
  animation-delay: 140ms;
}

@keyframes home-score-pop {
  from { transform: scale(0.55); opacity: 0.3; }
  to { transform: scale(1); opacity: 1; }
}

.page-home .home-scoreboard__colon {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  color: var(--text-sub);
}

.page-home .home-scoreboard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-sub);
}

.page-home .home-live__feed {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.page-home .home-live__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.page-home .home-live__tag {
  flex: 1;
  color: var(--text-main);
  min-width: 0;
}

.page-home .home-live__time {
  font-size: 0.76rem;
  color: var(--text-sub);
  white-space: nowrap;
}

.page-home .home-live__media {
  margin: 0;
  position: relative;
  transform: translateY(0.5rem);
}

.page-home .home-live__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.page-home .home-live__media figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-sub);
  padding-left: 1rem;
  border-left: 3px solid var(--data-green);
}

@media (min-width: 960px) {
  .page-home .home-live__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

.page-home .home-features {
  padding: var(--home-section-gap) 0;
  background:
    radial-gradient(ellipse 46% 60% at 18% 62%, rgba(255, 108, 44, 0.07), transparent 68%),
    var(--night-deep);
}

.page-home .home-features__head {
  margin-bottom: 2.25rem;
}

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

.page-home .home-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(160deg, rgba(16, 42, 76, 0.92), rgba(10, 26, 47, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.page-home .home-feature-card:hover,
.page-home .home-feature-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 108, 44, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.page-home .home-feature-card__num {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  font-family: var(--font-headings);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.page-home .home-feature-card h3 {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  color: var(--text-main);
  margin: 0 0 0.85rem;
  padding-right: 2.5rem;
}

.page-home .home-feature-card p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-sub);
  margin: 0 0 1.25rem;
  flex: 1;
}

.page-home .home-feature-card__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 0 0 1.25rem;
}

.page-home .home-features__grid .btn {
  align-self: flex-start;
}

.page-home .home-features__foot-note {
  margin-top: 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--text-sub);
  border-left: 3px solid var(--orange);
  padding-left: 1rem;
}

@media (min-width: 980px) {
  .page-home .home-features__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .page-home .home-feature-card:nth-child(2) {
    margin-top: 2.75rem;
  }

  .page-home .home-feature-card:nth-child(3) {
    margin-top: 5.5rem;
  }

  .page-home .home-features__foot-note {
    margin-left: calc(33.333% + 0.75rem);
  }
}

.page-home .home-stats {
  position: relative;
  padding: var(--home-section-gap) 0;
  border-top: 1px solid rgba(255, 108, 44, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: var(--night-mid);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
}

.page-home .home-stats__head {
  margin-bottom: 2.25rem;
}

.page-home .home-stats__intro {
  font-family: var(--font-body);
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 1rem 0 0;
  max-width: 42rem;
}

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

.page-home .home-stats__item {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 1.4rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
}

.page-home .home-stats__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent 72%);
  opacity: 0.9;
}

.page-home .home-stats__item dt {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-sub);
  margin-bottom: 0.6rem;
}

.page-home .home-stats__item dd {
  font-family: var(--font-headings);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--text-main);
  margin: 0;
}

.page-home .home-stats__item:nth-child(2) dd {
  color: var(--orange);
}

.page-home .home-stats__trust {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--text-sub);
}

.page-home .home-stats__more {
  margin: 1rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--text-sub);
}

.page-home .home-stats__more a {
  color: var(--orange-mid);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 108, 44, 0.4);
  transition: color var(--transition), border-color var(--transition);
}

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

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

.page-home .home-cn {
  padding: var(--home-section-gap) 0;
  background:
    radial-gradient(ellipse 46% 66% at 84% 24%, rgba(255, 108, 44, 0.09), transparent 66%),
    var(--night-deep);
}

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

.page-home .home-cn__intro h2 {
  margin-bottom: 1rem;
}

.page-home .home-cn__intro > p:not(.home-section-eyebrow) {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0 0 1.5rem;
}

.page-home .home-cn__intro p.home-cn__note {
  margin: 1.5rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-sub);
  border-left: 3px solid var(--data-green);
  padding-left: 0.9rem;
}

.page-home .home-cn .accordion {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--glass-white);
  overflow: hidden;
}

.page-home .home-cn .accordion__item + .accordion__item {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (min-width: 960px) {
  .page-home .home-cn__layout {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
  }
}

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