.page-home {
  --home-rot: -1.6deg;
  --home-block-pad: clamp(3rem, 7vw, 5.5rem);
  --home-icon-size: 3rem;
  background: var(--primary);
  color: var(--text-on-dark);
  overflow-x: hidden;
}

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

.home-hero {
  position: relative;
  min-height: min(94vh, 40rem);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--primary);
  color: var(--text-on-dark);
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.home-hero__angle {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 17, 40, 0.96) 0%, rgba(10, 17, 40, 0.92) 46%, rgba(0, 255, 179, 0.86) 100%);
}

.home-hero__angle::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 34px, rgba(0, 255, 179, 0.12) 34px 35px), repeating-linear-gradient(0deg, transparent 0 34px, rgba(0, 255, 179, 0.08) 34px 35px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.6rem;
}

.home-hero__crumbs {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.5rem 0.85rem;
}

.page-home .breadcrumbs a {
  color: var(--accent);
}

.page-home .breadcrumbs [aria-current="page"] {
  color: var(--text-on-dark);
}

.home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.home-hero__kicker::before {
  content: "";
  width: 2rem;
  height: 3px;
  background: var(--gold);
}

.home-hero__copy h1 {
  margin: 0.8rem 0 1rem;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-on-dark);
}

.home-hero__lead {
  margin: 0;
  max-width: 42em;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.page-home .home-hero .btn--ghost {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.page-home .home-hero .btn--ghost:hover,
.page-home .home-hero .btn--ghost:focus {
  background: var(--accent);
  color: var(--primary);
}

.home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 30rem;
  margin: 1rem 0 0;
  border: 2px solid var(--accent);
  background: rgba(0, 255, 179, 0.25);
  box-shadow: var(--shadow-hard);
}

.home-hero__stat {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  background: rgba(13, 27, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  animation: homeRise 0.5s ease both;
}

.home-hero__stat:nth-child(2) {
  animation-delay: 0.08s;
}

.home-hero__stat:nth-child(3) {
  animation-delay: 0.16s;
}

.home-hero__stat:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes homeRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero__stat dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.home-hero__stat dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.home-data {
  background: var(--deep);
  color: var(--text-on-dark);
  padding: var(--home-block-pad) 0;
}

.home-data__topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.home-data h2,
.home-app__copy h2,
.home-video__head h2,
.home-enterprise h2,
.home-news__head h2 {
  margin: 0.8rem 0 1rem;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.home-data .lead,
.home-app__copy .lead,
.home-video .lead,
.home-enterprise .lead {
  max-width: 52rem;
  line-height: 1.75;
}

.home-data .lead {
  margin: 1.2rem 0 2.2rem;
  color: rgba(255, 255, 255, 0.78);
}

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

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

.home-stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 1.2rem;
  background: var(--secondary);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-accent);
  transform: rotate(var(--home-rot));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-stat-card:nth-child(2) {
  --home-rot: 1.2deg;
}

.home-stat-card:nth-child(3) {
  --home-rot: -0.7deg;
}

.home-stat-card:nth-child(4) {
  --home-rot: 1.4deg;
}

.home-stat-card:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: var(--shadow-hard);
}

.home-stat-card__index {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.home-stat-card__label {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-on-dark);
}

.home-stat-card__num {
  margin: 0.2rem 0 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.home-stat-card__num span {
  margin-left: 0.1em;
  font-size: 0.45em;
  color: var(--gold);
}

.home-stat-card__desc {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.home-data__visual {
  display: grid;
  gap: 0.8rem;
}

.home-data__media {
  margin: 0;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-hard);
}

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

.home-data__caption {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 3px solid var(--accent);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.home-league {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 2px solid rgba(0, 255, 179, 0.35);
}

.home-league__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-league__link {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 2px solid var(--secondary);
  background: var(--secondary);
  color: var(--text-on-dark);
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-league__link:hover,
.home-league__link:focus {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--primary);
}

.home-league__panels {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.home-league__panel {
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.home-league__panel p {
  margin: 0.7rem 0 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.home-app {
  background: var(--light);
  color: var(--text-main);
  padding: var(--home-block-pad) 0;
}

.home-app__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.home-app__topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.home-app__copy h2 {
  color: var(--text-main);
}

.home-app__copy .lead {
  color: var(--text-sub);
}

.home-app__list {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.home-app__list li {
  position: relative;
  padding-left: 2rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-main);
}

.home-app__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 3px solid var(--accent-deep);
  border-bottom: 3px solid var(--accent-deep);
  transform: rotate(-45deg);
}

.home-app__visual {
  position: relative;
  max-width: 260px;
  margin: 0 auto;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-hard);
  transform: rotate(1.4deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-app__visual:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 12px 12px 0 rgba(10, 17, 40, 0.2);
}

.home-app__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.home-video {
  background: var(--primary);
  color: var(--text-on-dark);
  padding: var(--home-block-pad) 0;
}

.home-video__head {
  display: grid;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.home-video__head h2 {
  margin-top: 0.8rem;
}

.home-video .lead {
  margin: 1.2rem 0 2.2rem;
  color: rgba(255, 255, 255, 0.78);
}

.home-video__rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.home-video__item {
  overflow: hidden;
  background: var(--secondary);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-hard);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-video__item:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.home-video__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: var(--deep);
}

.home-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.home-video__item:hover .home-video__thumb img {
  transform: scale(1.04);
}

.home-video__poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--accent);
  background: linear-gradient(135deg, var(--deep) 0%, var(--secondary) 100%);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.home-video__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 24px, rgba(0, 255, 179, 0.16) 24px 25px), repeating-linear-gradient(0deg, transparent 0 24px, rgba(0, 255, 179, 0.12) 24px 25px);
}

.home-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: var(--home-icon-size);
  height: var(--home-icon-size);
  margin: calc(var(--home-icon-size) / -2) 0 0 calc(var(--home-icon-size) / -2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 255, 179, 0.95);
  box-shadow: 0 0 0 6px rgba(0, 255, 179, 0.2);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.home-video__play::before {
  content: "";
  margin-left: 0.2rem;
  border-left: 1rem solid var(--primary);
  border-top: 0.62rem solid transparent;
  border-bottom: 0.62rem solid transparent;
}

.home-video__item:hover .home-video__play,
.home-video__item:focus-within .home-video__play {
  opacity: 1;
  transform: scale(1.05);
}

.home-video__meta {
  padding: 1.25rem;
}

.home-video__meta h3 {
  margin: 0.7rem 0 0.5rem;
  font-family: var(--font-head);
  font-size: 1.08rem;
  line-height: 1.45;
}

.home-video__meta p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.home-enterprise {
  background: var(--deep);
  color: var(--text-on-dark);
  padding: var(--home-block-pad) 0;
}

.home-enterprise__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.home-enterprise .lead {
  color: rgba(255, 255, 255, 0.82);
}

.home-enterprise__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 1.25rem;
  border: 2px solid var(--gold);
  background: var(--primary);
  box-shadow: var(--shadow-hard);
}

.home-enterprise__card {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.home-enterprise__card dt {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.home-enterprise__card dd {
  margin: 0.3rem 0 0;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--text-on-dark);
  font-variant-numeric: tabular-nums;
}

.home-enterprise__card dd span {
  font-size: 0.6em;
  color: var(--accent);
}

.home-news {
  background: var(--light);
  color: var(--text-main);
  padding: var(--home-block-pad) 0;
}

.home-news__head {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
}

.home-news__head h2 {
  color: var(--text-main);
  margin-top: 0.5rem;
}

.home-news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.home-news__item {
  padding: 1.4rem;
  background: var(--text-on-dark);
  border: 2px solid var(--secondary);
  box-shadow: 4px 4px 0 rgba(10, 17, 40, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-news__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hard);
}

.home-news__item h3 {
  margin: 0.8rem 0 0.6rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.5;
}

.home-news__item h3 a {
  color: var(--text-main);
  text-decoration: none;
}

.home-news__item h3 a:hover,
.home-news__item h3 a:focus {
  color: var(--accent-deep);
}

.home-news__item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-sub);
}

@media (min-width: 44rem) {
  .home-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-data__cards {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .home-app__grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-app__visual {
    max-width: 300px;
  }

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

  .home-enterprise__card {
    padding: 0.75rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
  }

  .home-enterprise__card:last-child {
    border-right: 0;
  }

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

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

  .home-hero__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }

  .home-hero__copy {
    flex: 1 1 58%;
  }

  .home-hero__stats {
    flex: 0 0 24rem;
    margin: 0;
  }

  .home-data__layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .home-league__panels {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-app__grid {
    grid-template-columns: 1fr 340px;
  }

  .home-video__head {
    grid-template-columns: 1fr auto;
  }

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

  .home-enterprise__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .home-news__head {
    grid-template-columns: 1fr auto;
  }

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