.page-home,
.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home {
  --page-gold-line: 3px solid var(--gold);
  background: var(--navy);
  color: var(--off-white);
}

.page-home .hero-frame {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: var(--page-gold-line);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.page-home .hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.15) 0%, rgba(10, 31, 68, 0.82) 60%, var(--navy) 100%);
}

.page-home .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6rem var(--gutter) 1.6rem;
}

.page-home .breadcrumb {
  margin-bottom: 1.2rem;
}

.page-home .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--muted);
}

.page-home .breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.page-home .hero-kicker {
  margin: 0 0 0.8rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
}

.page-home .hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(56px, 11vw, 160px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.page-home .hero-lead {
  max-width: 640px;
  margin: 0 0 1.4rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--off-white);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.page-home .hero-stats {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  max-width: 680px;
}

.page-home .hero-stat {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  background: var(--steel);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.page-home .hero-stat-num {
  font-family: var(--font-data);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--neon);
}

.page-home .hero-stat-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.page-home .guide-panel {
  position: relative;
  z-index: 3;
  margin: 0 var(--gutter) 2.4rem;
  padding: 1rem;
  background: var(--cream);
  color: var(--brown-black);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-hard);
}

.page-home .guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.4rem;
}

.page-home .guide-code {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--red);
}

.page-home .guide-head h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-black);
}

.page-home .guide-status {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 0.75rem;
  color: var(--brown-black);
}

.page-home .status-pip {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.35rem;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon);
}

.page-home .guide-step {
  border-top: 1px solid rgba(43, 26, 16, 0.25);
}

.page-home .guide-step summary {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.7rem 0;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--brown-black);
}

.page-home .guide-step summary::-webkit-details-marker {
  display: none;
}

.page-home .guide-step summary::after {
  content: "+";
  font-family: var(--font-data);
  color: var(--red);
}

.page-home .guide-step[open] summary::after {
  content: "–";
}

.page-home .guide-step-body {
  padding: 0 0 0.8rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--brown-black);
}

.page-home .guide-step-body ol {
  margin: 0;
  padding-left: 1.1rem;
}

.page-home .guide-more {
  margin: 0.8rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(43, 26, 16, 0.25);
  font-size: 0.85rem;
  color: var(--brown-black);
}

.page-home .guide-more a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

.page-home .app-section,
.page-home .category-section,
.page-home .data-section,
.page-home .recap-section,
.page-home .watchlist-section {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-home .app-section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.page-home .app-layout {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--steel);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-hard);
}

.page-home .app-visual {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.page-home .app-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
}

.page-home .app-info h2 {
  margin: 0.7rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  color: var(--gold);
}

.page-home .app-text {
  margin: 0 0 1rem;
  color: var(--off-white);
  line-height: 1.7;
}

.page-home .app-info .btn {
  margin-top: 0.4rem;
}

.page-home .app-log {
  list-style: none;
  width: 100%;
  margin: 0 0 1.2rem;
  padding: 0;
  border-top: 1px dashed var(--navy);
}

.page-home .app-log li {
  display: flex;
  gap: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--navy);
  font-size: 0.9rem;
  color: var(--off-white);
}

.page-home .app-log li span {
  font-family: var(--font-data);
  color: var(--neon);
}

.page-home .category-section {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
  background: linear-gradient(135deg, transparent 49.5%, rgba(212, 175, 55, 0.12) 50%, transparent 50.5%);
}

.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.page-home .section-head h2,
.page-home .recap-head h2,
.page-home .data-console-head h2,
.page-home .watchlist-head h2 {
  margin: 0.3rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--gold);
}

.page-home .section-kicker {
  margin: 0 0 0.4rem;
}

.page-home .index-filter {
  width: 100%;
  max-width: 340px;
}

.page-home .index-search {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--navy);
  border: 1px solid var(--purple);
  color: var(--off-white);
  font-family: var(--font-data);
  font-size: 0.9rem;
}

.page-home .index-search::placeholder {
  color: var(--muted);
}

.page-home .index-search:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

.page-home .index-hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

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

.page-home .category-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 1rem 1rem 2.4rem;
  background: var(--navy);
  border: 1px solid var(--steel);
  color: var(--off-white);
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.page-home .category-cell:hover,
.page-home .category-cell:focus-visible {
  border-color: var(--gold);
  box-shadow: 5px 5px 0 rgba(212, 175, 55, 0.28);
  transform: translate(-2px, -2px);
}

.page-home .category-id {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--purple);
}

.page-home .category-name {
  margin-top: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--off-white);
}

.page-home .category-league {
  margin-top: auto;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--muted);
}

.page-home .category-cycle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--gold);
}

.page-home .category-arrow {
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--ease), transform var(--ease);
}

.page-home .category-cell:hover .category-arrow,
.page-home .category-cell:focus-visible .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

.page-home .data-section {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.page-home .data-console {
  background: linear-gradient(120deg, var(--navy) 0%, var(--steel) 100%);
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-hard);
}

.page-home .data-console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 2px solid var(--gold);
}

.page-home .data-console-head h2 {
  margin-top: 0;
  font-size: clamp(22px, 2.6vw, 34px);
}

.page-home .data-status {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--muted);
}

.page-home .data-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.page-home .data-stats {
  padding: 1.4rem;
}

.page-home .data-stats > p {
  margin: 0 0 1.2rem;
  color: var(--off-white);
  line-height: 1.7;
}

.page-home .stat-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin: 0 0 1.4rem;
  padding: 0;
}

.page-home .stat-cell {
  padding: 0.9rem;
  background: var(--navy);
  border-left: 3px solid var(--purple);
}

.page-home .stat-cell strong {
  display: block;
  font-family: var(--font-data);
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--gold);
}

.page-home .stat-cell span {
  font-size: 0.82rem;
  color: var(--muted);
}

.page-home .data-note {
  margin: 0 0 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--steel);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .data-note a {
  color: var(--neon);
  font-weight: 700;
}

.page-home .data-heat {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.page-home .recap-section {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.page-home .recap-head {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.page-home .recap-head p {
  max-width: 620px;
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-home .rhythm-box {
  max-width: 340px;
  padding: 1rem 0.9rem 0.8rem;
  background: var(--steel);
  border: 1px solid var(--purple);
}

.page-home .rhythm-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--muted);
}

.page-home .rhythm-track {
  height: 8px;
  margin-top: 0.5rem;
  background: var(--navy);
  border: 1px solid var(--navy);
}

.page-home .rhythm-fill {
  display: block;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--neon));
}

.page-home .rhythm-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.page-home .recap-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--brown-black);
  border: 2px solid var(--purple);
  box-shadow: var(--shadow-hard);
}

.page-home .recap-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .recap-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

.page-home .recap-card h3 {
  margin: 0.8rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--brown-black);
}

.page-home .recap-card-body p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--brown-black);
}

.page-home .recap-card-body a {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--red);
  text-decoration: underline;
}

.page-home .watchlist-section {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.page-home .watchlist-head p {
  max-width: 640px;
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-home .watchlist-scroll {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.4rem 0.4rem 1.2rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) var(--steel);
}

.page-home .watchlist-card {
  flex: 0 0 250px;
  padding: 1rem;
  background: var(--navy);
  border: 1px solid var(--purple);
  color: var(--off-white);
  scroll-snap-align: start;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.page-home .watchlist-card:hover {
  border-color: var(--gold);
  box-shadow: 4px 4px 0 rgba(212, 175, 55, 0.3);
}

.page-home .template-id {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--neon);
}

.page-home .watchlist-card h3 {
  margin: 0.5rem 0 0.4rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold);
}

.page-home .watchlist-card p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-home .watchlist-note {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem var(--gutter);
  background: var(--steel);
  border-top: 2px solid var(--gold);
}

.page-home .trust-strip p {
  max-width: 760px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .trust-strip a {
  color: var(--neon);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
}

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

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

@media (min-width: 800px) {
  .page-home .app-layout {
    grid-template-columns: 360px 1fr;
  }

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

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

@media (min-width: 980px) {
  .page-home .hero-frame {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 var(--gutter);
  }

  .page-home .hero-content {
    width: calc(100% - 400px);
    max-width: 820px;
    padding: 7rem 0 3rem;
  }

  .page-home .guide-panel {
    flex: 0 0 340px;
    margin: 0 0 3rem;
  }

  .page-home .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-home .index-filter {
    max-width: 300px;
  }
}

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

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

  .page-home .recap-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
