/**
 * Legacy full homepage — premium museum enhancements (W02).
 * /legacy-home — complements nadir-legacy-inline.css
 */

/* ─── V2 switch banner ─── */
.legacy-v2-banner {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text2);
  background: linear-gradient(90deg, rgba(219, 71, 34, 0.18), rgba(255, 177, 74, 0.1));
  border-bottom: 1px solid rgba(249, 115, 22, 0.35);
  backdrop-filter: blur(12px);
}

.legacy-v2-banner a {
  color: var(--accent-bright);
  font-weight: 600;
}

.legacy-v2-banner__cta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.45);
  text-decoration: none;
  color: var(--text) !important;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s;
}

.legacy-v2-banner__cta:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: var(--accent-bright);
}

.nadir-legacy-full .home-nav {
  top: 0;
}

/* ─── Museum mode: section depth ─── */
.nadir-legacy-full #hero {
  position: relative;
  isolation: isolate;
}

.nadir-legacy-full .hero-terminal {
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.15),
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}

.nadir-legacy-full .hero-terminal:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.35),
    0 32px 96px rgba(0, 0, 0, 0.6),
    0 0 48px rgba(249, 115, 22, 0.08);
}

.nadir-legacy-full .terminal-body {
  min-height: 220px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.nadir-legacy-full .terminal-line--ok { color: #86efac; }
.nadir-legacy-full .terminal-line--warn { color: #fde68a; }
.nadir-legacy-full .terminal-line--crit { color: #fca5a5; font-weight: 600; }
.nadir-legacy-full .terminal-line--sys { color: var(--text3); }

/* ─── Sticky section jump nav ─── */
.legacy-jump-nav {
  position: sticky;
  top: 64px;
  z-index: 900;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem 1rem;
  margin: 0 auto 1rem;
  max-width: 1240px;
  background: rgba(11, 12, 15, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.legacy-jump-nav a {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.legacy-jump-nav a:hover,
.legacy-jump-nav a.is-active {
  color: var(--text);
  background: rgba(249, 115, 22, 0.12);
}

/* ─── Proof band polish ─── */
.nadir-legacy-full .proof-band {
  position: relative;
  overflow: hidden;
}

.nadir-legacy-full .proof-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249, 115, 22, 0.06), transparent 65%);
  pointer-events: none;
}

.nadir-legacy-full .proof-stat {
  transition: transform 0.25s, border-color 0.25s;
}

.nadir-legacy-full .logo-pill {
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.nadir-legacy-full a.logo-pill:hover {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
  color: var(--text);
}

/* ─── API showcase panel glow ─── */
.nadir-legacy-full .api-response-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.nadir-legacy-full .api-endpoint-list button.active {
  border-color: var(--accent);
  background: rgba(249, 115, 22, 0.1);
}

/* ─── Architecture diagram ─── */
.nadir-legacy-full .arch-row {
  transition: background 0.2s;
}

.nadir-legacy-full .arch-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ─── Product tabs ─── */
.nadir-legacy-full .preview-tabs button.active {
  color: var(--accent-bright);
  border-bottom-color: var(--accent);
}

/* ─── Mega footer museum label ─── */
.nadir-legacy-full .home-mega-footer::before {
  content: "FULL PRODUCT MUSEUM · /legacy-home";
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text3);
  padding: 1rem 0 0;
  margin-bottom: -0.5rem;
}

/* ─── Scroll progress (enhanced) ─── */
.nadir-legacy-full .home-nav__progress {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

/* ─── Reveal animations ─── */
.nadir-legacy-full .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.nadir-legacy-full .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Correction agent hero badge ─── */
.legacy-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.legacy-hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok, #34c759);
  box-shadow: 0 0 8px var(--ok, #34c759);
}

/* ─── Museum quick-launch dock ─── */
.legacy-dock {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.legacy-dock__toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-magma, rgba(249, 115, 22, 0.45));
  background: rgba(11, 12, 15, 0.92);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--elev-shadow);
  backdrop-filter: blur(12px);
}

.legacy-dock__panel {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(11, 12, 15, 0.95);
  backdrop-filter: blur(16px);
  min-width: 200px;
}

.legacy-dock.is-open .legacy-dock__panel {
  display: flex;
}

.legacy-dock__panel a {
  font-size: 0.78rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--text2);
  text-decoration: none;
}

.legacy-dock__panel a:hover {
  background: rgba(249, 115, 22, 0.1);
  color: var(--text);
}

@media (max-width: 768px) {
  .legacy-jump-nav {
    display: none;
  }
  .legacy-dock {
    bottom: 0.75rem;
    right: 0.75rem;
  }
}
