.page-home {
  --glow-cyan: 0 0 24px rgba(0, 229, 255, .4);
  --glow-purple: 0 0 24px rgba(179, 136, 255, .3);
  background: var(--bg-deep);
  color: var(--fg);
}

/* ===== Hero Poster ===== */
.page-home .hero-poster {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-deep);
  padding: 4.5rem 1.25rem 6rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

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

.page-home .hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(115deg, rgba(10, 14, 23, .95) 22%, rgba(10, 14, 23, .68) 52%, rgba(10, 14, 23, .35) 100%);
}

.page-home .hero-speedlines {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: repeating-linear-gradient(-62deg, transparent 0 12px, rgba(0, 229, 255, .06) 12px 13px, transparent 13px 32px, rgba(179, 136, 255, .05) 32px 33px, transparent 33px 47px);
  animation: homeDash 24s linear infinite;
  pointer-events: none;
}

@keyframes homeDash {
  to { transform: translate3d(24px, 12px, 0); }
}

.page-home .hero-content {
  max-width: calc(var(--container) - 2rem);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.page-home .hero-leading {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  border-left: 3px solid var(--orange);
  padding-left: .75rem;
  margin: 0;
}

.page-home .hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 7.2rem);
  line-height: .95;
  letter-spacing: -.04em;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .12em;
}

.page-home .hero-title-glow {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(0, 229, 255, .35));
}

.page-home .hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(.9rem, 2vw, 1.25rem);
  letter-spacing: .3em;
  color: var(--silver);
  margin: 0;
  transform: rotate(-.8deg) translateX(.5rem);
}

.page-home .hero-desc {
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg);
  margin: 0;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .6rem;
}

.page-home .hero-btn-enter {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #0A0E17;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0, 229, 255, .28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}

.page-home .hero-btn-enter:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(179, 136, 255, .5);
  filter: saturate(1.2);
}

.page-home .hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border: 1px solid rgba(192, 196, 204, .55);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color .3s, background .3s, transform .3s;
}

.page-home .hero-btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, .08);
  transform: translateY(-2px);
}

.page-home .hero-meta-line {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

/* ===== Update Status ===== */
.page-home .update-section {
  background: var(--bg-deep);
  padding: 4rem 0 4.25rem;
}

.page-home .status-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.page-home .status-panel {
  background: linear-gradient(120deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  position: relative;
  overflow: hidden;
}

.page-home .status-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--track);
}

.page-home .status-line {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.05rem;
}

.page-home .status-text {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.page-home .status-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .4rem;
}

.page-home .status-link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: color .3s;
}

.page-home .status-link:hover {
  color: var(--fg);
}

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

.page-home .metric-box {
  background: var(--bg-panel);
  border: 1px solid rgba(192, 196, 204, .16);
  border-radius: 14px;
  padding: 1rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: border-color .3s;
}

.page-home .metric-box:hover {
  border-color: rgba(0, 229, 255, .4);
}

.page-home .metric-num {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .metric-label {
  color: var(--muted);
  font-size: .8rem;
}

/* ===== Archive Section ===== */
.page-home .archive-section {
  background: var(--bg-panel);
  padding: 4rem 0 4.25rem;
  position: relative;
  overflow: hidden;
}

.page-home .archive-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: -15%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(179, 136, 255, .08), transparent 70%);
  pointer-events: none;
}

.page-home .quarter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
  margin-top: 2rem;
}

.page-home .quarter-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-panel-2));
  border: 1px solid rgba(192, 196, 204, .16);
  border-radius: 14px;
  padding: 1.4rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  overflow: hidden;
}

.page-home .quarter-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 5rem;
  height: 5rem;
  background: radial-gradient(circle, rgba(0, 229, 255, .15), transparent 70%);
  pointer-events: none;
}

.page-home .quarter-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, .55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}

.page-home .quarter-card.q1 {
  border-color: rgba(0, 229, 255, .5);
  background: linear-gradient(135deg, rgba(0, 229, 255, .1), var(--bg-panel-2));
}

.page-home .quarter-card.q2 {
  transform: rotate(.25deg);
}

.page-home .quarter-card.q3 {
  transform: rotate(-.25deg);
}

.page-home .quarter-card.q2:hover,
.page-home .quarter-card.q3:hover {
  transform: rotate(0) translateY(-4px);
}

.page-home .quarter-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--orange);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  padding: .2rem .55rem;
  border-radius: 6px;
  letter-spacing: .06em;
}

.page-home .quarter-num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--muted);
}

.page-home .quarter-card h3 {
  font-size: 1.15rem;
  margin: 0;
  font-weight: 800;
  color: var(--fg);
}

.page-home .quarter-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 .4rem;
  font-size: .9rem;
}

.page-home .quarter-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--cyan);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  transition: color .3s;
  margin-top: auto;
}

.page-home .quarter-cta::after {
  content: "→";
  transition: transform .3s;
}

.page-home .quarter-cta:hover {
  color: var(--purple);
}

.page-home .quarter-cta:hover::after {
  transform: translateX(4px);
}

.page-home .archive-footnote {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-deep);
  border: 1px solid rgba(192, 196, 204, .14);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.page-home .archive-footnote img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 109, 0, .3);
  flex-shrink: 0;
}

.page-home .footnote-text {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.page-home .archive-footnote .btn-ghost {
  flex-shrink: 0;
}

/* ===== Tools & Search ===== */
.page-home .tools-section {
  background: var(--bg-deep);
  padding: 4rem 0 4.25rem;
}

.page-home .tools-panels {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.page-home .tool-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(192, 196, 204, .16);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .35s, box-shadow .35s;
}

.page-home .tool-panel:hover {
  border-color: rgba(179, 136, 255, .5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.page-home .tool-panel img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid rgba(192, 196, 204, .12);
}

.page-home .tool-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.page-home .tool-info h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fg);
}

.page-home .tool-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-home .tool-link {
  margin-top: .4rem;
  font-weight: 800;
  font-size: .95rem;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  text-decoration: none;
  transition: filter .3s, opacity .3s;
}

.page-home .tool-link:hover {
  filter: brightness(1.3);
  opacity: .9;
}

.page-home .search-panel {
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-panel-2));
  border: 1px solid rgba(0, 229, 255, .25);
  border-radius: 18px;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  box-shadow: inset 0 0 44px rgba(0, 229, 255, .04);
}

.page-home .search-panel h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fg);
}

.page-home .search-panel > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-home .quick-search {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg-deep);
  border: 1px solid rgba(192, 196, 204, .35);
  border-radius: 12px;
  padding: .7rem 1rem;
  transition: border-color .3s, box-shadow .3s;
}

.page-home .quick-search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .18);
}

.page-home .quick-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
}

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

.page-home .quick-search-glyph {
  color: var(--cyan);
  font-size: 1.1rem;
  line-height: 1;
}

.page-home .quick-search-key {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .8rem;
}

.page-home .search-hint {
  color: var(--muted);
  font-size: .8rem;
  margin: 0;
}

/* ===== Feedback ===== */
.page-home .feedback-section {
  background: var(--bg-panel);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-home .feedback-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--orange));
  pointer-events: none;
}

.page-home .feedback-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.page-home .feedback-image {
  background: var(--bg-deep);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(192, 196, 204, .14);
}

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

.page-home .feedback-path {
  background: var(--bg-deep);
  border: 1px solid rgba(192, 196, 204, .14);
  border-radius: 18px;
  padding: 1.5rem;
}

.page-home .feedback-path h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--fg);
}

.page-home .feedback-path ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.page-home .feedback-path a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color .3s;
}

.page-home .feedback-path a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.page-home .feedback-folds {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.page-home .fold-panel {
  background: var(--bg-deep);
  border: 1px solid rgba(192, 196, 204, .16);
  border-radius: 12px;
  padding: .4rem .9rem;
  transition: border-color .3s;
}

.page-home .fold-panel[open] {
  border-color: rgba(0, 229, 255, .4);
}

.page-home .fold-panel summary {
  cursor: pointer;
  font-weight: 700;
  padding: .7rem .4rem;
  color: var(--fg);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-home .fold-panel summary::-webkit-details-marker {
  display: none;
}

.page-home .fold-panel summary::after {
  content: "+";
  font-size: 1.2rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  transition: transform .3s;
}

.page-home .fold-panel[open] summary::after {
  transform: rotate(45deg);
}

.page-home .fold-panel p {
  margin: 0 0 .8rem .4rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== Media Queries ===== */
@media (min-width: 768px) {
  .page-home .hero-poster {
    padding: 6rem 2.5rem 7rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0 100%);
  }

  .page-home .hero-title {
    font-size: clamp(4.5rem, 10vw, 8rem);
  }

  .page-home .status-layout {
    grid-template-columns: 3fr 2fr;
    align-items: stretch;
  }

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

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

  .page-home .tools-panels {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .feedback-grid {
    grid-template-columns: 3fr 2fr;
  }

  .page-home .archive-footnote {
    flex-wrap: nowrap;
  }

  .page-home .tool-panel img {
    height: 210px;
  }
}

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

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

  .page-home .tool-panel img {
    height: 224px;
  }

  .page-home .hero-desc {
    font-size: 1.1rem;
  }

  .page-home .hero-meta-line {
    gap: 3rem;
  }
}
