.page-home {
  --home-grid-line: rgba(240, 244, 248, 0.12);
  --home-card-border-dark: rgba(240, 244, 248, 0.16);
  --home-muted-light: rgba(240, 244, 248, 0.62);
  --home-muted-dark: rgba(26, 32, 44, 0.65);
}

.page-home .container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.page-home .hero-cover {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(255, 107, 53, 0.16) 0%, transparent 58%),
    linear-gradient(145deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 72%);
  color: var(--color-text-light);
  padding: 22px 0 28px;
}

.page-home .hero-cover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--color-accent) 0 10px, transparent 10px 22px);
  opacity: 0.35;
  pointer-events: none;
}

.page-home .hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-home .hero-speed-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.page-home .heritage-silhouette {
  position: absolute;
  right: 0;
  bottom: 5%;
  width: 140px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

.page-home .hero-topline {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-home .hero-topline .breadcrumb-link,
.page-home .hero-topline .breadcrumb-current {
  color: var(--home-muted-light);
}

.page-home .hero-topline .breadcrumb-current {
  color: var(--color-text-light);
}

.page-home .hero-top-meta {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.page-home .hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.page-home .hero-main h1 {
  margin: 14px 0 18px;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
}

.page-home .hero-main h1 span {
  color: var(--color-accent-2);
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent-2);
  text-transform: uppercase;
}

.page-home .hero-kicker-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.page-home .hero-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--home-muted-light);
  max-width: 42em;
}

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

.page-home .hero-actions .btn-outline {
  border-color: rgba(240, 244, 248, 0.55);
  color: var(--color-text-light);
}

.page-home .hero-side {
  display: grid;
  gap: 16px;
}

.page-home .hero-index {
  background: rgba(17, 34, 64, 0.72);
  border: 2px solid var(--home-card-border-dark);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 8px 8px 0 rgba(4, 10, 22, 0.35);
}

.page-home .hero-index-label {
  margin: 0 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  text-transform: uppercase;
}

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

.page-home .hero-index-list li + li {
  border-top: 1px solid rgba(240, 244, 248, 0.12);
}

.page-home .hero-index-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 4px;
  color: var(--color-text-light);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .hero-index-list a:hover {
  color: var(--color-accent-2);
}

.page-home .hero-index-list .mono {
  color: var(--color-accent);
  font-size: 0.8rem;
}

.page-home .hero-img-frame {
  border-color: var(--home-card-border-dark);
  border-width: 3px;
}

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

.page-home .hero-coord {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(240, 244, 248, 0.12);
  font-size: 0.76rem;
  color: var(--color-text-muted);
  text-align: right;
}

.page-home .feature-overview {
  background: var(--color-bg-light);
  color: var(--color-text);
  padding-top: 44px;
  padding-bottom: 48px;
  border-bottom: 4px solid var(--color-bg-primary);
}

.page-home .section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.page-home .section-index {
  font-family: var(--font-data);
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  background: transparent;
  border-radius: 6px;
  padding: 5px 7px;
  white-space: nowrap;
}

.page-home .section-head h2 {
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.2;
}

.page-home .section-head .section-sub {
  margin: 0;
  font-size: 0.94rem;
  color: var(--home-muted-dark);
}

.page-home .feature-grid {
  display: grid;
  gap: 20px;
}

.page-home .feature-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--color-bg-primary);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 0 rgba(10, 25, 47, 0.2);
}

.page-home .feature-card-num {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(10, 25, 47, 0.08);
  z-index: 2;
  pointer-events: none;
}

.page-home .feature-card-img {
  margin: 10px 10px 0;
}

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

.page-home .feature-card-body {
  padding: 16px 18px 20px;
  flex: 1;
}

.page-home .feature-card h3 {
  margin: 10px 0 6px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.page-home .feature-card p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(26, 32, 44, 0.78);
}

.page-home .feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-home .feature-list li {
  padding: 0 0 0 20px;
  font-size: 0.86rem;
  line-height: 1.4;
  position: relative;
  color: var(--color-text);
}

.page-home .feature-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 800;
}

.page-home .feature-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background:
    linear-gradient(120deg, rgba(10, 25, 47, 0.04), rgba(255, 107, 53, 0.08)),
    repeating-linear-gradient(-45deg, rgba(10, 25, 47, 0.03) 0 8px, transparent 8px 16px);
  margin: 10px 10px 0;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.page-home .feature-svg {
  width: 84px;
  height: 84px;
  overflow: visible;
}

.page-home .mini-table {
  margin-top: 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.82rem;
}

.page-home .mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 4px;
  padding: 6px 10px;
}

.page-home .mini-row + .mini-row {
  border-top: 1px solid var(--color-border);
}

.page-home .mini-head {
  background: var(--color-bg-primary);
  color: var(--color-text-light);
  font-weight: 600;
}

.page-home .mini-row span:first-child {
  font-family: var(--font-data);
}

.page-home .feature-more {
  margin-top: 24px;
  text-align: center;
}

.page-home .feature-more a {
  font-weight: 600;
  color: var(--color-bg-primary);
  text-decoration-color: var(--color-accent);
  text-underline-offset: 4px;
}

.page-home .data-capability {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 60%, rgba(255, 107, 53, 0.1) 0%, transparent 55%),
    var(--color-bg-primary);
  color: var(--color-text-light);
  padding-top: 44px;
  padding-bottom: 56px;
}

.page-home .data-capability::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--color-accent) 0 10px, transparent 10px 22px);
  opacity: 0.28;
  pointer-events: none;
}

.page-home .data-capability .section-sub,
.page-home .get-app .section-sub {
  color: var(--home-muted-light);
}

.page-home .data-capability .section-head h2,
.page-home .get-app .section-head h2 {
  color: var(--color-text-light);
}

.page-home .capability-layout {
  display: grid;
  gap: 32px;
}

.page-home .capability-main {
  display: grid;
  gap: 22px;
}

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

.page-home .stat-item {
  background: rgba(17, 34, 64, 0.72);
  border: 1px solid var(--home-card-border-dark);
  border-radius: 10px;
  padding: 12px 14px;
}

.page-home .stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-accent-2);
}

.page-home .stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--home-muted-light);
}

.page-home .capability-chart-frame {
  border-color: var(--home-card-border-dark);
  border-width: 3px;
}

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

.page-home .capability-chart-caption {
  margin: 12px 0 0;
  font-size: 0.84rem;
  color: var(--home-muted-light);
  text-align: center;
}

.page-home .capability-note {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--color-accent);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--home-muted-light);
}

.page-home .capability-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .capability-side-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-text-light);
}

.page-home .capability-side-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--home-muted-light);
}

.page-home .league-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .league-nav .btn {
  padding: 7px 14px;
  font-size: 0.84rem;
  border-radius: 8px;
  border-color: rgba(240, 244, 248, 0.5);
  color: var(--color-text-light);
}

.page-home .league-nav .btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-2);
}

.page-home .league-cards {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.page-home .league-card {
  background: rgba(17, 34, 64, 0.7);
  border: 2px solid var(--home-card-border-dark);
  border-radius: 12px;
  padding: 14px 16px 12px;
  scroll-margin-top: 20px;
  cursor: default;
}

.page-home .league-card h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--color-text-light);
}

.page-home .league-card .league-meta {
  margin: 2px 0;
  font-size: 0.84rem;
  color: var(--color-accent-2);
}

.page-home .league-expand {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--home-muted-light);
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.page-home .league-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (hover: hover) {
  .page-home .league-card:hover .league-expand,
  .page-home .league-card:focus .league-expand,
  .page-home .league-card:focus-within .league-expand {
    max-height: 200px;
    opacity: 1;
    margin-top: 8px;
  }
}

@media (hover: none) {
  .page-home .league-expand {
    max-height: none;
    opacity: 1;
    margin-top: 8px;
  }
}

.page-home .recent-updates {
  background: var(--color-bg-light);
  color: var(--color-text);
  padding-top: 44px;
  padding-bottom: 52px;
}

.page-home .update-list {
  display: grid;
  gap: 16px;
}

.page-home .update-item {
  background: #fff;
  border: 2px solid var(--color-bg-primary);
  border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: 4px 4px 0 rgba(10, 25, 47, 0.12);
  position: relative;
}

.page-home .update-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  width: 44px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 0 0 4px 4px;
}

.page-home .update-item h3 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.page-home .update-item p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(26, 32, 44, 0.72);
}

.page-home .update-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-bg-primary);
  text-decoration-color: var(--color-accent);
  text-underline-offset: 4px;
}

.page-home .update-more {
  margin-top: 26px;
  text-align: center;
}

.page-home .get-app {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 107, 53, 0.16), transparent 55%),
    linear-gradient(135deg, var(--color-bg-primary) 0%, #132B4A 100%);
  color: var(--color-text-light);
  padding-top: 44px;
  padding-bottom: 56px;
}

.page-home .app-layout {
  display: grid;
  gap: 32px;
}

.page-home .app-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.page-home .app-phone {
  max-width: 280px;
  width: 100%;
  background: linear-gradient(160deg, #1D2A3A, #112240);
  border: 3px solid var(--color-text-light);
  border-radius: 40px;
  padding: 14px 10px 18px;
  box-shadow: 10px 10px 0 rgba(255, 107, 53, 0.35);
}

.page-home .app-phone-notch {
  width: 110px;
  height: 24px;
  background: var(--color-bg-deep);
  border-radius: 0 0 16px 16px;
  margin: -8px auto 10px;
}

.page-home .app-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.page-home .app-content .section-head {
  margin-bottom: 18px;
}

.page-home .app-lead {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--home-muted-light);
}

.page-home .app-lead strong {
  color: var(--color-text-light);
}

.page-home .app-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .app-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(17, 34, 64, 0.48);
  border: 1px solid var(--home-card-border-dark);
  border-radius: 12px;
  padding: 14px;
}

.page-home .step-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  padding-top: 2px;
}

.page-home .step-body h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  color: var(--color-text-light);
}

.page-home .step-body p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--home-muted-light);
}

.page-home .app-scan {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(17, 34, 64, 0.5);
  border: 2px dashed var(--color-accent);
  border-radius: 12px;
  padding: 12px 14px;
}

.page-home .app-scan-qr svg {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.page-home .app-scan-text {
  display: grid;
  gap: 4px;
}

.page-home .app-scan-text strong {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

.page-home .app-scan-text span {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--home-muted-light);
}

.page-home .app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-home .app-actions .btn-outline {
  border-color: rgba(240, 244, 248, 0.55);
  color: var(--color-text-light);
}

@media (max-width: 639px) {
  .page-home .hero-top-meta {
    display: none;
  }

  .page-home .heritage-silhouette {
    width: 110px;
    opacity: 0.3;
  }
}

@media (min-width: 768px) {
  .page-home .stat-board {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .update-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 900px) {
  .page-home .app-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 44px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-cover {
    padding-top: 26px;
  }

  .page-home .hero-layout {
    grid-template-columns: 7fr 5fr;
    gap: 44px;
    align-items: start;
  }

  .page-home .hero-main h1 {
    font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  }

  .page-home .hero-lead {
    font-size: 1.06rem;
  }

  .page-home .hero-index {
    padding: 20px 20px 18px;
  }

  .page-home .heritage-silhouette {
    width: 210px;
    bottom: 6%;
  }

  .page-home .feature-overview {
    padding-top: 56px;
    padding-bottom: 60px;
  }

  .page-home .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .page-home .data-capability {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .page-home .capability-layout {
    grid-template-columns: 3fr 2fr;
    gap: 44px;
  }

  .page-home .capability-main {
    gap: 24px;
  }

  .page-home .section-head {
    margin-bottom: 28px;
  }

  .page-home .get-app {
    padding-top: 56px;
    padding-bottom: 64px;
  }
}
