/* ══════════════════════════════════════════════════════════════
   NOVAPUNK — css/manifesto-redesign.css
   Liquid Glass redesign · manifesto.html ONLY
   Loaded after main.css. Do NOT load on any other page.
══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── Design tokens ── */
:root {
  --mf-bg:      #030208;
  --mf-violet:  #a855f7;
  --mf-cyan:    #22d3ee;
  --mf-emerald: #34d399;
  --mf-indigo:  #818cf8;
  --mf-text:    #f0eeff;
  --mf-dim:     rgba(240,238,255,0.58);
}

body {
  background: var(--mf-bg) !important;
  color: var(--mf-text) !important;
}


/* ══════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════ */
@keyframes mf-iridescent {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes mf-border-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

@keyframes mf-label-cycle {
  0%   { color: #a855f7; text-shadow: 0 0 12px rgba(168,85,247,1), 0 0 24px rgba(168,85,247,0.5); }
  25%  { color: #22d3ee; text-shadow: 0 0 12px rgba(34,211,238,1), 0 0 24px rgba(34,211,238,0.5); }
  50%  { color: #34d399; text-shadow: 0 0 12px rgba(52,211,153,1), 0 0 24px rgba(52,211,153,0.5); }
  75%  { color: #818cf8; text-shadow: 0 0 12px rgba(129,140,248,1), 0 0 24px rgba(129,140,248,0.5); }
  100% { color: #a855f7; text-shadow: 0 0 12px rgba(168,85,247,1), 0 0 24px rgba(168,85,247,0.5); }
}

/* Scroll-reveal for section dividers and h4 headings */
@media (prefers-reduced-motion: no-preference) {
  .mf-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .mf-reveal.mf-revealed {
    opacity: 1;
    transform: none;
  }
}


/* ══════════════════════════════════════
   NAV — deep frosted glass
══════════════════════════════════════ */
.site-nav {
  background: rgba(3,2,8,0.55) !important;
  backdrop-filter: blur(40px) saturate(250%) brightness(1.15) !important;
  -webkit-backdrop-filter: blur(40px) saturate(250%) brightness(1.15) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  overflow: visible;
}

.site-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(168,85,247,1) 15%,
    rgba(34,211,238,1) 50%,
    rgba(52,211,153,0.8) 80%,
    transparent 100%
  );
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .site-nav::after { animation: mf-border-pulse 2.5s ease-in-out infinite; }
}

.site-nav.scrolled {
  background: rgba(3,2,8,0.92) !important;
  backdrop-filter: blur(48px) saturate(280%) !important;
  -webkit-backdrop-filter: blur(48px) saturate(280%) !important;
}

.nav-logo {
  background: linear-gradient(135deg,
    #a855f7 0%, #22d3ee 30%, #34d399 60%, #818cf8 100%) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 8px rgba(168,85,247,0.5));
}
@media (prefers-reduced-motion: no-preference) {
  .nav-logo { animation: mf-iridescent 4s ease infinite; }
}

.nav-links a {
  color: rgba(240,238,255,0.6) !important;
  transition: color 0.2s, text-shadow 0.2s, background 0.2s !important;
}
.nav-links a:hover {
  color: var(--mf-text) !important;
  text-shadow: 0 0 16px rgba(168,85,247,0.8) !important;
  background: rgba(168,85,247,0.1) !important;
}
.nav-links a.active {
  color: var(--mf-text) !important;
  background: rgba(168,85,247,0.14) !important;
  text-shadow: 0 0 12px rgba(168,85,247,0.5) !important;
}

.nav-cta {
  background: linear-gradient(135deg, #a855f7, #22d3ee) !important;
  border: none !important;
  box-shadow: 0 0 24px rgba(168,85,247,0.5),
              0 0 48px rgba(168,85,247,0.2),
              inset 0 1px 0 rgba(255,255,255,0.2) !important;
  color: #fff !important;
  transition: box-shadow 0.3s, transform 0.3s !important;
}
.nav-cta:hover {
  box-shadow: 0 0 40px rgba(168,85,247,0.8),
              0 0 80px rgba(168,85,247,0.3),
              0 0 20px rgba(34,211,238,0.4) !important;
  transform: translateY(-2px) !important;
  opacity: 1 !important;
}


/* ══════════════════════════════════════
   PRICE BAR
══════════════════════════════════════ */
.price-bar {
  background: rgba(3,2,8,0.92) !important;
  border-bottom: 1px solid rgba(168,85,247,0.2) !important;
  box-shadow: 0 1px 20px rgba(168,85,247,0.1) !important;
}
.price-coin {
  color: #a855f7 !important;
  text-shadow: 0 0 8px rgba(168,85,247,0.6);
}
.price-item:hover .price-coin {
  text-shadow: 0 0 14px rgba(168,85,247,1), 0 0 28px rgba(168,85,247,0.5);
}
.price-dot {
  background: radial-gradient(circle, #22d3ee, #a855f7) !important;
  box-shadow: 0 0 8px rgba(34,211,238,0.9), 0 0 16px rgba(168,85,247,0.5) !important;
}
.price-dot.live {
  background: radial-gradient(circle, #34d399, #22d3ee) !important;
  box-shadow: 0 0 8px rgba(52,211,153,1), 0 0 16px rgba(52,211,153,0.5) !important;
}
.price-change.up   { color: #34d399 !important; text-shadow: 0 0 8px rgba(52,211,153,0.7); }
.price-change.down { color: #f87171 !important; text-shadow: 0 0 8px rgba(248,113,113,0.7); }
.price-change.flat { color: rgba(240,238,255,0.32) !important; }
.price-item { border-right-color: rgba(168,85,247,0.12) !important; }


/* ══════════════════════════════════════
   PAGE HERO
══════════════════════════════════════ */
.page-hero {
  background: var(--mf-bg) !important;
  border-bottom: 1px solid rgba(168,85,247,0.2) !important;
  box-shadow: 0 1px 40px rgba(168,85,247,0.08) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Replace pink gradient mesh with violet/cyan */
.page-hero::before {
  background:
    radial-gradient(ellipse 70% 80% at 20% 120%, rgba(168,85,247,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%,  rgba(34,211,238,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 0%,   rgba(129,140,248,0.15) 0%, transparent 60%) !important;
}

.page-hero h1 {
  font-family: 'Syne', var(--mono) !important;
  color: var(--mf-text) !important;
  text-shadow: none !important;
}

/* "Novapunk" span inside h1 */
.page-hero h1 .grad-text {
  background: linear-gradient(135deg,
    #f0abfc 0%, #a855f7 20%, #22d3ee 45%, #34d399 70%, #818cf8 100%) !important;
  background-size: 400% 400% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 20px rgba(168,85,247,0.5)) !important;
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero h1 .grad-text { animation: mf-iridescent 6s ease infinite; }
}

.page-hero p {
  color: rgba(240,238,255,0.62) !important;
}

/* section-tag "// manifesto.md" */
.page-hero .section-tag {
  color: #22d3ee !important;
  text-shadow: 0 0 16px rgba(34,211,238,0.7), 0 0 32px rgba(34,211,238,0.3) !important;
  font-family: 'IBM Plex Mono', var(--mono) !important;
}

/* Badges in page hero */
.badge {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
.badge-agorism {
  color: #f9a8d4 !important;
  border-color: rgba(244,114,182,0.55) !important;
  background: rgba(244,114,182,0.1) !important;
  box-shadow: 0 0 10px rgba(244,114,182,0.2) !important;
}
.badge-cypherpunk {
  color: #67e8f9 !important;
  border-color: rgba(34,211,238,0.55) !important;
  background: rgba(34,211,238,0.08) !important;
  box-shadow: 0 0 10px rgba(34,211,238,0.2) !important;
}
.badge-lunarpunk {
  color: #d8b4fe !important;
  border-color: rgba(168,85,247,0.55) !important;
  background: rgba(168,85,247,0.1) !important;
  box-shadow: 0 0 10px rgba(168,85,247,0.2) !important;
}
.badge-solarpunk {
  color: #6ee7b7 !important;
  border-color: rgba(52,211,153,0.55) !important;
  background: rgba(52,211,153,0.08) !important;
  box-shadow: 0 0 10px rgba(52,211,153,0.2) !important;
}


/* ══════════════════════════════════════
   MANIFESTO LAYOUT & TOC
══════════════════════════════════════ */
.container[style*="padding-top:4rem"] {
  background: transparent !important;
}

/* TOC sidebar — frosted glass panel */
.manifesto-toc {
  background: linear-gradient(
    145deg,
    rgba(168,85,247,0.1) 0%,
    rgba(3,2,8,0.6) 60%,
    rgba(34,211,238,0.05) 100%
  ) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(168,85,247,0.22) !important;
  border-radius: 14px !important;
  padding: 1.5rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 8px 40px rgba(0,0,0,0.5),
    0 0 60px rgba(168,85,247,0.07) !important;
}

.toc-head {
  color: #22d3ee !important;
  text-shadow: 0 0 12px rgba(34,211,238,0.6), 0 0 24px rgba(34,211,238,0.25) !important;
  font-family: 'IBM Plex Mono', var(--mono) !important;
}

.toc-list a {
  color: rgba(240,238,255,0.48) !important;
  border-left-color: transparent !important;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s !important;
  font-family: 'IBM Plex Mono', var(--mono) !important;
}
.toc-list a:hover {
  color: rgba(240,238,255,0.88) !important;
  border-left-color: rgba(168,85,247,0.6) !important;
  text-shadow: 0 0 10px rgba(168,85,247,0.4) !important;
}
.toc-list a.active {
  color: #a855f7 !important;
  border-left-color: #a855f7 !important;
  text-shadow: 0 0 12px rgba(168,85,247,0.7) !important;
}

/* Read-time note under TOC */
.manifesto-toc > div[style*="border-top"] {
  border-top-color: rgba(168,85,247,0.18) !important;
  color: rgba(240,238,255,0.3) !important;
}


/* ══════════════════════════════════════
   MANIFESTO ARTICLE BODY
══════════════════════════════════════ */
.manifesto-body {
  color: var(--mf-dim) !important;
}

.manifesto-body p {
  color: rgba(240,238,255,0.62) !important;
  line-height: 1.9 !important;
}

.manifesto-body p strong {
  color: var(--mf-text) !important;
  text-shadow: 0 0 12px rgba(168,85,247,0.2) !important;
}

.manifesto-body em { color: rgba(240,238,255,0.78) !important; }

/* h4 subheadings — IBM Plex Mono, iridescent */
.manifesto-body h4 {
  font-family: 'IBM Plex Mono', var(--mono) !important;
  color: #22d3ee !important;
  text-shadow: 0 0 14px rgba(34,211,238,0.55), 0 0 28px rgba(34,211,238,0.2) !important;
  letter-spacing: 0.12em !important;
}


/* ══════════════════════════════════════
   SECTION DIVIDERS
══════════════════════════════════════ */
.manifesto-section-divider {
  margin: 3.5rem 0 2rem !important;
}

/* Divider lines — iridescent gradient */
.manifesto-section-divider::before,
.manifesto-section-divider::after {
  background: linear-gradient(90deg,
    transparent,
    rgba(168,85,247,0.5),
    rgba(34,211,238,0.5),
    transparent
  ) !important;
  height: 1px !important;
}

/* Annotation spans — glow using inline color via currentColor */
.manifesto-section-divider span {
  font-family: 'IBM Plex Mono', var(--mono) !important;
  letter-spacing: 0.22em !important;
  text-shadow: 0 0 12px currentColor, 0 0 24px currentColor !important;
  filter: brightness(1.3) !important;
}

/* .grad-text spans inside dividers (Synthesis + Praxis) */
.manifesto-section-divider .grad-text {
  background: linear-gradient(135deg,
    #a855f7 0%, #22d3ee 33%, #34d399 66%, #818cf8 100%) !important;
  background-size: 400% 400% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 10px rgba(168,85,247,0.5)) !important;
  text-shadow: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  .manifesto-section-divider .grad-text { animation: mf-iridescent 5s ease infinite; }
}


/* ══════════════════════════════════════
   BLOCKQUOTES — glass panels
══════════════════════════════════════ */
.manifesto-body blockquote {
  background: linear-gradient(
    135deg,
    rgba(168,85,247,0.12) 0%,
    rgba(3,2,8,0.6) 60%,
    rgba(34,211,238,0.05) 100%
  ) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-left: 3px solid rgba(168,85,247,0.8) !important;
  border-radius: 0 12px 12px 0 !important;
  box-shadow:
    -4px 0 24px rgba(168,85,247,0.2),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 4px 24px rgba(0,0,0,0.4) !important;
}

.manifesto-body blockquote p {
  color: rgba(240,238,255,0.85) !important;
  font-style: italic !important;
}

.manifesto-body blockquote cite {
  color: #a855f7 !important;
  text-shadow: 0 0 10px rgba(168,85,247,0.5) !important;
  font-family: 'IBM Plex Mono', var(--mono) !important;
}

/* Cypherpunk blockquote — cyan accent */
#cypherpunk blockquote {
  border-left-color: rgba(34,211,238,0.8) !important;
  box-shadow:
    -4px 0 24px rgba(34,211,238,0.2),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 4px 24px rgba(0,0,0,0.4) !important;
}
#cypherpunk blockquote cite { color: #22d3ee !important; text-shadow: 0 0 10px rgba(34,211,238,0.5) !important; }

/* Lunarpunk blockquote — indigo accent */
#lunarpunk blockquote {
  border-left-color: rgba(129,140,248,0.8) !important;
  box-shadow:
    -4px 0 24px rgba(129,140,248,0.2),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 4px 24px rgba(0,0,0,0.4) !important;
}
#lunarpunk blockquote cite { color: #818cf8 !important; text-shadow: 0 0 10px rgba(129,140,248,0.5) !important; }

/* Solarpunk blockquote — emerald accent */
#solarpunk blockquote {
  border-left-color: rgba(52,211,153,0.8) !important;
  box-shadow:
    -4px 0 24px rgba(52,211,153,0.18),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 4px 24px rgba(0,0,0,0.4) !important;
}
#solarpunk blockquote cite { color: #34d399 !important; text-shadow: 0 0 10px rgba(52,211,153,0.5) !important; }

/* Praxis final blockquote — iridescent gradient border */
#praxis blockquote {
  border-left-color: transparent !important;
  border-image: linear-gradient(180deg, #a855f7, #22d3ee, #34d399) 1 !important;
}


/* ══════════════════════════════════════
   SYNTHESIS GRID — glass cards
══════════════════════════════════════ */
.synthesis-grid {
  background: rgba(168,85,247,0.06) !important;
  border: 1px solid rgba(168,85,247,0.2) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 8px 40px rgba(0,0,0,0.5),
    0 0 60px rgba(168,85,247,0.06) !important;
}

/* Synthesis grid item label headers */
.synthesis-grid > div > div:first-child {
  text-shadow: 0 0 10px currentColor !important;
}

/* Synthesis grid item bodies */
.synthesis-grid p {
  color: rgba(240,238,255,0.58) !important;
}


/* ══════════════════════════════════════
   TYPOGRAPHY — shared
══════════════════════════════════════ */
.section-tag {
  color: #22d3ee !important;
  text-shadow: 0 0 16px rgba(34,211,238,0.7), 0 0 32px rgba(34,211,238,0.3) !important;
  font-family: 'IBM Plex Mono', var(--mono) !important;
}

.grad-text {
  background: linear-gradient(135deg,
    #a855f7 0%, #22d3ee 33%, #34d399 66%, #818cf8 100%) !important;
  background-size: 400% 400% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 10px rgba(168,85,247,0.4)) !important;
}
@media (prefers-reduced-motion: no-preference) {
  .grad-text { animation: mf-iridescent 5s ease infinite; }
}


/* ══════════════════════════════════════
   FOOTER — glass treatment
══════════════════════════════════════ */
.site-footer {
  background: rgba(3,2,8,0.98) !important;
  border-top: 1px solid rgba(168,85,247,0.25) !important;
  box-shadow: 0 -1px 40px rgba(168,85,247,0.1) !important;
}

.footer-brand-name {
  background: linear-gradient(135deg, #a855f7, #22d3ee) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 10px rgba(168,85,247,0.4)) !important;
}
.footer-brand-desc { color: rgba(240,238,255,0.38) !important; }

.footer-col-title {
  color: #22d3ee !important;
  text-shadow: 0 0 12px rgba(34,211,238,0.6), 0 0 24px rgba(34,211,238,0.2) !important;
  font-family: 'IBM Plex Mono', var(--mono) !important;
}

.footer-links a {
  color: rgba(240,238,255,0.4) !important;
  transition: color 0.2s, text-shadow 0.2s !important;
}
.footer-links a:hover {
  color: rgba(240,238,255,0.9) !important;
  text-shadow: 0 0 14px rgba(168,85,247,0.6) !important;
}

.footer-motto {
  font-style: italic !important;
  color: rgba(240,238,255,0.28) !important;
  text-shadow: 0 0 20px rgba(168,85,247,0.15) !important;
  font-family: 'IBM Plex Mono', var(--mono) !important;
}
.footer-copy       { color: rgba(240,238,255,0.25) !important; }
.footer-copy a     { color: rgba(240,238,255,0.35) !important; }
.footer-copy a:hover {
  color: rgba(240,238,255,0.7) !important;
  text-shadow: 0 0 10px rgba(168,85,247,0.4) !important;
}
.footer-bottom { border-top-color: rgba(168,85,247,0.12) !important; }
