.page-home {
  --home-font-data: 'Space Grotesk', 'Noto Sans SC', monospace;
  --home-grid-line: rgba(57, 255, 20, 0.045);
  --home-glow-soft: rgba(57, 255, 20, 0.1);
  position: relative;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  background: var(--background);
}

.page-home .home-hero {
  position: relative;
  padding: 40px 0 0;
  background:
    radial-gradient(900px 420px at 85% -5%, var(--glow), transparent 65%),
    linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
  border-bottom: 1px solid var(--border);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 65%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 65%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.35;
  pointer-events: none;
}

.page-home .breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
}

.page-home .hero-tagline {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--home-font-data);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.page-home .hero-tagline::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.page-home .hero-title {
  position: relative;
  z-index: 1;
  max-width: 14ch;
  font-size: clamp(2.1rem, 7.2vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-home .hero-lead {
  position: relative;
  z-index: 1;
  max-width: 60ch;
  margin-top: 22px;
  color: var(--text-muted);
  line-height: 1.85;
}

.page-home .hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.page-home .hero-index {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.page-home .hero-index-card {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

.page-home .hero-index-card::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}

.page-home .hero-index-card .stat-value-accent {
  font-family: var(--home-font-data);
  font-size: 1.6rem;
  white-space: nowrap;
}

.page-home .hero-index-card .stat-label {
  color: var(--text-muted);
}

.page-home .hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 48px;
}

.page-home .hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow:
    0 24px 80px -24px rgba(0, 0, 0, 0.65),
    0 0 60px var(--home-glow-soft);
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.12);
  animation: page-home-scan 4s var(--ease) infinite;
}

@keyframes page-home-scan {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.page-home .section {
  position: relative;
  padding: 72px 0;
}

.page-home .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.page-home .section-header {
  margin-bottom: 32px;
}

.page-home .section-index {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--home-font-data);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.page-home .section-title {
  margin-top: 0;
}

.page-home .section-lead {
  margin-top: 10px;
  max-width: 62ch;
  color: var(--text-muted);
  line-height: 1.7;
}

.page-home .dashboard-section {
  padding-top: 56px;
}

.page-home .dashboard-tabs {
  margin-top: 4px;
}

.page-home .dashboard-tabs .tab-list {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.page-home .dashboard-tabs .tab-button {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 12px 22px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .dashboard-tabs .tab-button:hover {
  color: var(--text-primary);
  background: var(--surface);
}

.page-home .dashboard-tabs .tab-button[aria-selected="true"] {
  border-color: var(--border);
  border-bottom-color: var(--surface);
  background: var(--surface);
  color: var(--accent);
}

.page-home .dashboard-tabs .tab-panel {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--surface);
  padding: 20px;
}

.page-home .standings-board,
.page-home .reports-board,
.page-home .favorites-board {
  display: grid;
  gap: 16px;
}

.page-home .board-wide,
.page-home .board-narrow,
.page-home .report-main,
.page-home .report-side,
.page-home .fav-main,
.page-home .fav-note {
  margin: 0;
}

.page-home .board-wide p,
.page-home .board-narrow p,
.page-home .report-main p,
.page-home .report-side p,
.page-home .fav-main p,
.page-home .fav-note p {
  color: var(--text-muted);
  line-height: 1.7;
}

.page-home .mini-bars {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 72px;
  margin-top: 20px;
}

.page-home .mini-bars span {
  flex: 1;
  height: var(--bar-height);
  min-height: 6px;
  background: linear-gradient(180deg, var(--accent), rgba(57, 255, 20, 0.25));
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}

.page-home .mini-bars span:first-child {
  opacity: 1;
  box-shadow: 0 0 16px var(--glow);
}

.page-home .report-timeline {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.page-home .timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.page-home .timeline-item span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.page-home .timeline-item strong {
  color: var(--accent);
  font-weight: 600;
}

.page-home .v3-section {
  border-block: 1px solid var(--border);
  background:
    linear-gradient(180deg, transparent, var(--home-glow-soft) 30%, var(--home-glow-soft) 70%, transparent),
    var(--background);
}

.page-home .v3-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .v3-stamp {
  display: inline-block;
  padding: 8px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 0 20px var(--glow);
}

.page-home .v3-copy p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-top: 0;
}

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

.page-home .v3-features li {
  position: relative;
  padding-left: 28px;
  color: var(--text-primary);
  line-height: 1.6;
}

.page-home .v3-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.page-home .v3-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 54px -20px rgba(0, 0, 0, 0.6);
}

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

.page-home .v3-metrics .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.page-home .v3-metrics .stat-label {
  display: block;
  font-size: 0.8125rem;
}

.page-home .v3-metrics .stat-value,
.page-home .v3-metrics .stat-value-accent {
  display: block;
  margin-top: 4px;
  font-family: var(--home-font-data);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.page-home .v3-metrics .stat-value-accent {
  color: var(--accent);
}

.page-home .veteran-section {
  background: var(--surface);
}

.page-home .veteran-layout {
  display: grid;
  gap: 16px;
}

.page-home .veteran-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.page-home .veteran-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
}

.page-home .veteran-card h3 {
  margin: 0 0 10px;
}

.page-home .veteran-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.page-home .veteran-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(18, 24, 38, 0.6);
}

.page-home .veteran-cta p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.page-home .pricing-section {
  background:
    radial-gradient(700px 260px at 10% 20%, var(--home-glow-soft), transparent 60%),
    var(--background);
}

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

.page-home .pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.page-home .pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px -20px var(--glow);
}

.page-home .pricing-card--hot {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.1), var(--surface) 55%);
}

.page-home .pricing-level {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-family: var(--home-font-data);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

.page-home .pricing-card h3 {
  margin: 6px 0 0;
}

.page-home .pricing-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.page-home .pricing-figure {
  margin: 28px 0 0;
}

.page-home .pricing-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.page-home .pricing-more {
  display: flex;
  margin-top: 24px;
}

.page-home .lineup-section {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.page-home .lineup-layout {
  display: grid;
  gap: 16px;
}

.page-home .lineup-step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  overflow: hidden;
}

.page-home .lineup-step h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
}

.page-home .lineup-step p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.page-home .step-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--home-font-data);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(57, 255, 20, 0.55);
  opacity: 0.6;
  user-select: none;
  pointer-events: none;
}

.page-home .outro-section {
  padding: 64px 0;
  background:
    radial-gradient(640px 300px at 50% 0%, var(--home-glow-soft), transparent 70%),
    var(--background);
}

.page-home .outro-visual {
  margin: 0;
}

.page-home .outro-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.page-home .outro-trust {
  max-width: 60ch;
  margin: 24px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.page-home .outro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-visual::after {
    animation: none;
    opacity: 0.7;
  }
}

@media (min-width: 768px) {
  .page-home .home-hero {
    padding-top: 64px;
  }

  .page-home .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
    align-items: end;
  }

  .page-home .hero-index {
    margin-top: 0;
    gap: 14px;
  }

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

  .page-home .hero-index-card .stat-value-accent {
    font-size: 2rem;
  }

  .page-home .dashboard-section {
    padding-top: 64px;
  }

  .page-home .dashboard-tabs .tab-panel {
    padding: 28px;
  }

  .page-home .standings-board {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "wide wide"
      "narrow-1 narrow-2";
  }

  .page-home .board-wide {
    grid-area: wide;
  }

  .page-home .board-narrow:nth-child(2) {
    grid-area: narrow-1;
  }

  .page-home .board-narrow:nth-child(3) {
    grid-area: narrow-2;
  }

  .page-home .reports-board {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .page-home .favorites-board {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .page-home .v3-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
  }

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

  .page-home .veteran-layout {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .veteran-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .page-home .pricing-card {
    padding: 30px;
  }

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

.page-home {
  --bar-height: var(--header-height);
}
