.page-home {
  --home-space-y: clamp(56px, 9vw, 112px);
  background: var(--color-deep-space);
  color: var(--color-mist);
  overflow-x: hidden;
}

.page-home h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.55rem, 3.6vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--color-white);
  margin: 10px 0 14px;
}

.page-home a:focus-visible {
  outline: 2px solid var(--color-neon-green);
  outline-offset: 3px;
}

.page-home .section-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-silver);
  max-width: 560px;
}

.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.page-home .section-head .section-note {
  max-width: 360px;
  color: var(--color-silver);
  font-size: .95rem;
  line-height: 1.6;
}

.page-home .home-hero {
  position: relative;
  min-height: clamp(580px, 94vh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-deep-space);
}

.page-home .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
  filter: saturate(.72) contrast(1.06);
}

.page-home .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 27, 61, .74) 0%, rgba(11, 27, 61, .48) 48%, rgba(11, 27, 61, .94) 100%),
    repeating-linear-gradient(0deg, transparent 0 41px, rgba(198, 255, 0, .055) 41px 42px),
    repeating-linear-gradient(90deg, transparent 0 41px, rgba(198, 255, 0, .055) 41px 42px);
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 56px;
}

.page-home .hero-frame {
  position: relative;
  width: min(920px, 100%);
  padding: clamp(28px, 5vw, 54px) clamp(20px, 4vw, 52px);
  border: 1px solid rgba(198, 255, 0, .38);
  background: rgba(10, 14, 26, .55);
  backdrop-filter: blur(3px);
  text-align: center;
}

.page-home .hero-frame::before,
.page-home .hero-frame::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-flame-orange);
}

.page-home .hero-frame::before {
  top: -1px;
  left: -1px;
  border-width: 3px 0 0 3px;
}

.page-home .hero-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 3px 3px 0;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-flame-orange);
  margin-bottom: 18px;
}

.page-home .hero-kicker .slant-accent {
  display: inline-block;
  width: 30px;
  height: 7px;
  background: var(--color-flame-orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.page-home .hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-white);
  max-width: 780px;
  margin: 0 auto 14px;
}

.page-home .hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color-neon-green);
  letter-spacing: .06em;
  margin-bottom: 26px;
}

.page-home .hero-query {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 580px;
  margin: 0 auto;
  padding: 14px 18px;
  background: rgba(27, 58, 107, .72);
  border: 1px solid rgba(198, 255, 0, .5);
  transition: border-color .25s, box-shadow .25s;
}

.page-home .hero-query:focus-within,
.page-home .hero-query:hover {
  border-color: var(--color-flame-orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, .14);
}

.page-home .query-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--color-neon-green);
  flex-shrink: 0;
}

.page-home .query-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
}

.page-home .query-input::placeholder {
  color: rgba(245, 247, 250, .65);
}

.page-home .query-cursor {
  width: 2px;
  height: 22px;
  background: var(--color-neon-green);
  animation: home-cursor-blink 1s steps(2) infinite;
  flex-shrink: 0;
}

@keyframes home-cursor-blink {
  50% {
    opacity: 0;
  }
}

.page-home .hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.page-home .chip {
  display: inline-block;
  padding: 6px 13px;
  font-size: .88rem;
  color: var(--color-silver);
  border: 1px solid rgba(156, 163, 175, .4);
  cursor: default;
  transition: color .2s, border-color .2s, background .2s;
}

.page-home .chip:hover {
  color: var(--color-neon-green);
  border-color: var(--color-neon-green);
  background: rgba(198, 255, 0, .06);
}

.page-home .hero-footer-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(198, 255, 0, .2);
  background: rgba(10, 14, 26, .66);
  padding: 12px 0;
}

.page-home .strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--color-silver);
}

.page-home .strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-home .strip-key {
  color: var(--color-silver);
  opacity: .75;
}

.page-home .strip-value {
  color: var(--color-neon-green);
  font-weight: 700;
}

.page-home .quick-query-section {
  position: relative;
  padding: var(--home-space-y) 0;
  background: var(--color-deep-space);
}

.page-home .quick-query-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 5px;
  background: linear-gradient(90deg, var(--color-flame-orange) 0 120px, transparent 120px);
  clip-path: polygon(0 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
}

.page-home .quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

.page-home .quick-copy {
  min-width: 0;
}

.page-home .query-step-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.page-home .query-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(27, 58, 107, .3);
  border-left: 3px solid var(--color-neon-green);
}

.page-home .step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-flame-orange);
  min-width: 24px;
}

.page-home .query-demo {
  min-width: 0;
}

.page-home .query-demo-card {
  padding: 24px;
  background: rgba(27, 58, 107, .36);
  border: 1px solid rgba(198, 255, 0, .3);
}

.page-home .demo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  color: var(--color-silver);
  margin-bottom: 14px;
}

.page-home .demo-input-line {
  padding: 11px 14px;
  background: rgba(11, 27, 61, .78);
  border-bottom: 2px solid var(--color-flame-orange);
  font-family: var(--font-mono);
  color: var(--color-white);
}

.page-home .demo-result {
  margin-top: 16px;
}

.page-home .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(156, 163, 175, .16);
  font-size: .94rem;
}

.page-home .result-row strong {
  color: var(--color-white);
}

.page-home .demo-tip {
  margin-top: 14px;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--color-silver);
}

.page-home .v3-section {
  position: relative;
  padding: var(--home-space-y) 0;
  background: linear-gradient(145deg, var(--color-graphite), var(--color-vibrant-blue));
  border-top: 1px solid rgba(198, 255, 0, .16);
  border-bottom: 1px solid rgba(198, 255, 0, .16);
}

.page-home .v3-section::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  width: 56%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-neon-green), transparent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}

.page-home .v3-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}

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

.page-home .metric-block {
  padding: 26px 16px;
  text-align: center;
  background: rgba(11, 27, 61, .55);
  border: 1px solid rgba(156, 163, 175, .2);
}

.page-home .metric-block .num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--color-neon-green);
}

.page-home .metric-block .num em {
  font-style: normal;
  font-size: .45em;
  color: var(--color-flame-orange);
  margin-left: 3px;
}

.page-home .metric-block .label {
  display: block;
  margin-top: 10px;
  font-size: .84rem;
  color: var(--color-silver);
}

.page-home .v3-timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(198, 255, 0, .28);
}

.page-home .timeline-item {
  position: relative;
  padding: 14px 0 14px 20px;
}

.page-home .timeline-item + .timeline-item {
  border-top: 1px dashed rgba(156, 163, 175, .26);
}

.page-home .tl-dot {
  position: absolute;
  left: -25px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-vibrant-blue);
  border: 2px solid var(--color-neon-green);
  transition: background .2s, box-shadow .2s;
}

.page-home .timeline-item:hover .tl-dot {
  background: var(--color-neon-green);
  box-shadow: 0 0 0 5px rgba(198, 255, 0, .16);
}

.page-home .timeline-item.active .tl-dot {
  background: var(--color-flame-orange);
  border-color: var(--color-flame-orange);
  box-shadow: 0 0 0 5px rgba(255, 122, 0, .16);
}

.page-home .tl-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.page-home .tl-head strong {
  font-size: 1.15rem;
  color: var(--color-neon-green);
}

.page-home .tl-year {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--color-flame-orange);
}

.page-home .timeline-item p {
  margin: 6px 0 0;
  font-size: .94rem;
  color: var(--color-mist);
}

.page-home .v3-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.page-home .v3-features li {
  padding: 14px 16px;
  background: rgba(11, 27, 61, .6);
  border-left: 3px solid var(--color-flame-orange);
  font-size: .95rem;
  line-height: 1.55;
}

.page-home .league-section {
  padding: var(--home-space-y) 0;
  background: var(--color-deep-space);
}

.page-home .league-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-home .league-copy {
  min-width: 0;
}

.page-home .league-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
}

.page-home .league-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 0, .42);
}

.page-home .league-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.82);
  transition: transform .45s ease;
}

.page-home .league-card:hover .league-card-img {
  transform: scale(1.035);
}

.page-home .league-season {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: var(--color-flame-orange);
  color: var(--color-deep-space);
  font-weight: 800;
  font-size: .84rem;
  letter-spacing: .04em;
}

.page-home .database-section {
  position: relative;
  padding: var(--home-space-y) 0;
  background: var(--color-graphite);
  border-top: 1px solid rgba(198, 255, 0, .16);
  border-bottom: 1px solid rgba(198, 255, 0, .16);
}

.page-home .database-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(198, 255, 0, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 0, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  background-attachment: fixed;
  pointer-events: none;
}

.page-home .db-flex {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-home .db-visual {
  display: grid;
  gap: 12px;
}

.page-home .db-visual-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(198, 255, 0, .28);
}

.page-home .db-track {
  width: 100%;
  height: auto;
  max-width: 520px;
  display: block;
}

.page-home .db-track circle {
  transition: fill .2s, stroke .2s;
}

.page-home .db-track circle:hover {
  fill: var(--color-flame-orange);
  stroke: var(--color-flame-orange);
}

.page-home .db-copy {
  min-width: 0;
}

.page-home .db-round-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 12px;
}

.page-home .db-round-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4.2rem, 12vw, 6.8rem);
  line-height: .85;
  color: var(--color-neon-green);
}

.page-home .db-round-unit {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: var(--color-flame-orange);
}

.page-home .db-progress {
  height: 10px;
  max-width: 480px;
  margin: 22px 0 10px;
  background: rgba(156, 163, 175, .2);
}

.page-home .db-progress-bar {
  display: block;
  height: 100%;
  width: 92%;
  background: repeating-linear-gradient(90deg, var(--color-neon-green) 0 18px, rgba(198, 255, 0, .35) 18px 20px);
}

.page-home .db-progress-label {
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--color-silver);
}

.page-home .sync-section {
  padding: var(--home-space-y) 0;
  background: var(--color-deep-space);
}

.page-home .sync-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-home .sync-app {
  min-width: 0;
}

.page-home .sync-app img {
  display: block;
  width: min(320px, 76%);
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(198, 255, 0, .32);
  border-radius: 22px;
}

.page-home .sync-copy {
  min-width: 0;
}

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

.page-home .sync-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.6;
}

.page-home .sync-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 11px;
  height: 11px;
  background: var(--color-neon-green);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.page-home .sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .updates-section {
  padding: var(--home-space-y) 0;
  background: var(--color-vibrant-blue);
  border-top: 1px solid rgba(255, 122, 0, .34);
}

.page-home .updates-list {
  display: grid;
  gap: 14px;
}

.page-home .update-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(11, 27, 61, .58);
  border: 1px solid rgba(156, 163, 175, .2);
  color: var(--color-mist);
  text-decoration: none;
  transition: border-color .25s, transform .25s, background .25s;
}

.page-home .update-item:hover {
  border-color: var(--color-neon-green);
  background: rgba(11, 27, 61, .82);
  transform: translateX(6px);
}

.page-home .update-title {
  flex: 1;
  font-weight: 600;
}

.page-home .update-arrow {
  color: var(--color-neon-green);
  font-weight: 700;
  font-size: 1.1rem;
}

.page-home .stats-section {
  padding: var(--home-space-y) 0;
  background: var(--color-deep-space);
}

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

.page-home .stat-card {
  padding: 28px 14px;
  text-align: center;
  background: rgba(27, 58, 107, .4);
  border: 1px solid rgba(156, 163, 175, .22);
  cursor: default;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.page-home .stat-card:hover {
  border-color: var(--color-neon-green);
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .32);
}

.page-home .stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1;
  color: var(--color-neon-green);
}

.page-home .stat-card:hover .stat-num {
  animation: home-num-flicker .5s infinite alternate;
}

@keyframes home-num-flicker {
  from {
    text-shadow: 0 0 4px rgba(198, 255, 0, .4);
  }
  to {
    text-shadow: 0 0 20px rgba(198, 255, 0, .9);
  }
}

.page-home .stat-suffix {
  font-size: .62em;
  margin-left: 2px;
}

.page-home .stat-label {
  display: block;
  margin-top: 10px;
  font-size: .92rem;
  color: var(--color-silver);
  letter-spacing: .04em;
}

.page-home .stats-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.page-home .stats-footnote {
  margin-top: 32px;
  text-align: center;
  font-size: .9rem;
  color: var(--color-silver);
  letter-spacing: .08em;
}

.page-home .footnote-link {
  color: var(--color-neon-green);
  text-decoration: none;
  margin: 0 4px 0 8px;
}

.page-home .footnote-link:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .page-home .query-step-list {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 900px) {
  .page-home .quick-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px;
  }

  .page-home .v3-layout {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .9fr);
    gap: 44px;
    align-items: center;
  }

  .page-home .league-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }

  .page-home .db-flex {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 60px;
  }

  .page-home .sync-layout {
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 60px;
  }

  .page-home .db-round-num {
    font-size: clamp(5rem, 8vw, 7rem);
  }
}

@media (min-width: 1200px) {
  .page-home .hero-frame {
    padding: 56px 72px;
  }
}
