/* ============================================
   astral.michaelism.org — Style Sheet
   Energy Company meets Quantum Physics Lab
   Power Grid Control Center + Research Facility
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  --bg-color: #050510;
  --card-bg: #0a0a20;
  --primary-accent: #3b82f6;
  --secondary-accent: #2563eb;
  --gold: #d4a574;
  --cyan: #06b6d4;
  --text-color: #f0f0f5;
  --text-secondary: #94a3b8;
  --border: rgba(59, 130, 246, 0.15);
  --border-gold: rgba(212, 165, 116, 0.2);
  --glow-blue: rgba(59, 130, 246, 0.3);
  --glow-cyan: rgba(6, 182, 212, 0.3);
  --glow-gold: rgba(212, 165, 116, 0.2);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --noo-red: #ef4444;
  --noo-teal: #0ea5e9;
  --noo-purple: #a855f7;
  --noo-gold: #d4a574;
  --noo-green: #10b981;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* --- Particle Field Background (CSS only) --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(59, 130, 246, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 35%, rgba(6, 182, 212, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 60%, rgba(59, 130, 246, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 20%, rgba(212, 165, 116, 0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(6, 182, 212, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 45%, rgba(59, 130, 246, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 75%, rgba(59, 130, 246, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 10%, rgba(6, 182, 212, 0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 90%, rgba(212, 165, 116, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 5%, rgba(59, 130, 246, 0.3) 0%, transparent 100%);
  animation: particleDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.06) 1px, transparent 0);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* --- NOOSPHERIC CRT Scanline Overlay --- */
.noospheric-scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* --- NOOSPHERIC Scanning Header Line --- */
.mm-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-accent), var(--cyan), transparent);
  animation: noosphericScan 3s linear infinite;
}

@keyframes noosphericScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* --- NOOSPHERIC Window Glow (enhanced card lighting) --- */
.card,
.energy-card,
.stat-card,
.faq-item {
  box-shadow: 0 0 1px rgba(59, 130, 246, 0.15);
  transition: all 0.4s ease, box-shadow 0.4s ease;
}

.card:hover,
.energy-card:hover,
.stat-card:hover {
  box-shadow:
    0 8px 32px rgba(59, 130, 246, 0.15),
    0 0 60px rgba(6, 182, 212, 0.08),
    inset 0 0 30px rgba(59, 130, 246, 0.03);
}

/* --- NOOSPHERIC Multi-Color Card Accents (Kawaii-Cybermagicpunk) --- */
.card:nth-child(5n+1),
.energy-card:nth-child(5n+1),
.stat-card:nth-child(5n+1) {
  border-left: 3px solid var(--noo-red);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--noo-red), transparent) 1;
}
.card:nth-child(5n+1):hover,
.energy-card:nth-child(5n+1):hover,
.stat-card:nth-child(5n+1):hover {
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15), 0 0 60px rgba(239, 68, 68, 0.08);
}
.card:nth-child(5n+2),
.energy-card:nth-child(5n+2),
.stat-card:nth-child(5n+2) {
  border-left: 3px solid var(--noo-teal);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--noo-teal), transparent) 1;
}
.card:nth-child(5n+2):hover,
.energy-card:nth-child(5n+2):hover,
.stat-card:nth-child(5n+2):hover {
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.15), 0 0 60px rgba(14, 165, 233, 0.08);
}
.card:nth-child(5n+3),
.energy-card:nth-child(5n+3),
.stat-card:nth-child(5n+3) {
  border-left: 3px solid var(--noo-purple);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--noo-purple), transparent) 1;
}
.card:nth-child(5n+3):hover,
.energy-card:nth-child(5n+3):hover,
.stat-card:nth-child(5n+3):hover {
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15), 0 0 60px rgba(168, 85, 247, 0.08);
}
.card:nth-child(5n+4),
.energy-card:nth-child(5n+4),
.stat-card:nth-child(5n+4) {
  border-left: 3px solid var(--noo-gold);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--noo-gold), transparent) 1;
}
.card:nth-child(5n+4):hover,
.energy-card:nth-child(5n+4):hover,
.stat-card:nth-child(5n+4):hover {
  box-shadow: 0 8px 32px rgba(212, 165, 116, 0.15), 0 0 60px rgba(212, 165, 116, 0.08);
}
.card:nth-child(5n+5),
.energy-card:nth-child(5n+5),
.stat-card:nth-child(5n+5) {
  border-left: 3px solid var(--noo-green);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--noo-green), transparent) 1;
}
.card:nth-child(5n+5):hover,
.energy-card:nth-child(5n+5):hover,
.stat-card:nth-child(5n+5):hover {
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15), 0 0 60px rgba(16, 185, 129, 0.08);
}

@keyframes particleDrift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-8px, -6px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate(4px, 3px) scale(0.98);
    opacity: 0.7;
  }
}

/* Ensure all content sits above particle field */
body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #60a5fa;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

ul, ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, rgba(10, 10, 32, 0.6) 0%, transparent 100%);
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--primary-accent);
}

.text-gold {
  color: var(--gold);
}

.text-cyan {
  color: var(--cyan);
}

.mono {
  font-family: var(--font-mono);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PAGE NAVIGATION (sub-page links)
   ============================================ */
.astral-page-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 5%;
  background: rgba(5, 5, 16, 0.95);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  position: relative;
  overflow: hidden;
}
.astral-page-nav a {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.astral-page-nav a:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(6, 182, 212, 0.4);
}
.astral-page-nav a.page-active {
  color: #fff;
  opacity: 1;
}
.astral-page-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan, #06b6d4), transparent);
  animation: nav-scan 4s linear infinite;
}
@keyframes nav-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@media (max-width: 600px) {
  .astral-page-nav {
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
  }
}

/* --- Shared Navigation --- */
.mm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.mm-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.mm-logo {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  white-space: nowrap;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-color);
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mm-logo img {
  flex-shrink: 0;
  height: 32px;
  width: auto;
}

.mm-logo:hover {
  color: var(--gold);
}

.mm-links {
  display: flex;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.mm-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.mm-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-accent);
  transition: width 0.3s ease;
}

.mm-links a:hover,
.mm-links a.active,
.mm-links a[aria-current="page"] {
  color: var(--text-color);
}

.mm-links a:hover::after,
.mm-links a.active::after,
.mm-links a[aria-current="page"]::after {
  width: 100%;
}

.mm-links a.active::after {
  background: var(--cyan);
}

.mm-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  min-width: 44px;
  min-height: 44px;
}

.mm-menu-toggle:hover {
  border-color: var(--primary-accent);
}

/* --- Sub-Navigation (Astral Pages) --- */
.sub-nav {
  background: rgba(10, 10, 32, 0.6);
  border-bottom: 1px solid var(--border);
}

.sub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.sub-nav-inner::-webkit-scrollbar {
  display: none;
}

.sub-nav-inner a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.75rem 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.sub-nav-inner a:hover,
.sub-nav-inner a.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.1) 1px, transparent 0);
  background-size: 48px 48px;
  animation: gridPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -15%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, rgba(6, 182, 212, 0.03) 40%, transparent 70%);
  pointer-events: none;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .glow-text {
  background: linear-gradient(135deg, var(--primary-accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--cyan);
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-accent);
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  background: var(--secondary-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  transform: translateY(-2px);
}

.btn-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-cyan:hover {
  background: rgba(6, 182, 212, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-accent), var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  border-color: var(--glow-blue);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1), 0 0 60px rgba(6, 182, 212, 0.05);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
  transition: gap 0.3s ease;
}

.card:hover .card-link {
  gap: 0.6rem;
}

/* --- Energy Node Card (special variant) --- */
.energy-card {
  background: linear-gradient(135deg, rgba(10, 10, 32, 0.9), rgba(5, 5, 16, 0.95));
  border-color: rgba(6, 182, 212, 0.15);
  text-align: center;
  padding: 2.5rem 2rem;
}

.energy-card:hover {
  border-color: var(--glow-cyan);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.12), 0 0 80px rgba(6, 182, 212, 0.05);
}

.energy-card .node-glow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.3);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--cyan);
  animation: nodeGlow 3s ease-in-out infinite;
}

@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.2); }
  50% { box-shadow: 0 0 25px rgba(6, 182, 212, 0.4), 0 0 50px rgba(6, 182, 212, 0.1); }
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
}

.section-header.text-center p {
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 4px;
}

/* --- Page Header (sub-pages) --- */
.page-header {
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.06) 1px, transparent 0);
  background-size: 48px 48px;
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

/* --- Page Hero Images --- */
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}
.hero-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-gallery img.active {
  opacity: 0.15;
}
.hero-img-container {
  margin: 2rem auto 0;
  width: 100%;
  max-width: 1200px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.hero-img-container img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-gallery-visible {
  position: relative;
}
.hero-gallery-visible img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-gallery-visible img.active {
  position: relative;
  opacity: 1;
}

/* --- Data Table (Measurement/Conversion) --- */
.data-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.data-table thead {
  background: rgba(6, 182, 212, 0.06);
}

.data-table th,
.data-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

.data-table td {
  color: var(--text-secondary);
}

.data-table td .unit-value {
  color: var(--text-color);
  font-weight: 600;
}

.data-table td .unit-name {
  color: var(--cyan);
  font-weight: 500;
}

.data-table tbody tr {
  transition: background 0.3s ease;
}

.data-table tbody tr:hover {
  background: rgba(6, 182, 212, 0.04);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Energy Flow Diagram (CSS Grid) --- */
.energy-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: center;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.flow-node {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.flow-node-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
  border: 2px solid rgba(59, 130, 246, 0.3);
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-accent);
  animation: nodeGlow 4s ease-in-out infinite;
}

.flow-node-circle.cyan {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05));
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}

.flow-node-circle.gold {
  background: radial-gradient(circle, rgba(212, 165, 116, 0.2), rgba(212, 165, 116, 0.05));
  border-color: rgba(212, 165, 116, 0.3);
  color: var(--gold);
}

.flow-node-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(59, 130, 246, 0.3);
  font-size: 1.2rem;
  padding: 0 0.25rem;
}

/* --- Distribution Diagram (CSS Grid) --- */
.distribution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.dist-node {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}

.dist-node:hover {
  border-color: var(--glow-blue);
  transform: translateY(-3px);
}

.dist-node-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.03));
  border: 1px solid var(--border);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-accent);
}

.dist-node h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dist-node p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- Tradition Comparison Grid --- */
.tradition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.tradition-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tradition-item:hover {
  border-color: var(--glow-gold);
  transform: translateY(-2px);
}

.tradition-item .tradition-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.tradition-item .tradition-origin {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.open {
  border-color: rgba(6, 182, 212, 0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
  min-height: 44px;
}

.faq-question:hover {
  color: var(--cyan);
}

.faq-question .faq-toggle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-question .faq-toggle {
  transform: rotate(45deg);
  color: var(--cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* --- Research Agenda List --- */
.research-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.research-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.research-item:hover {
  border-color: var(--glow-blue);
  transform: translateX(4px);
}

.research-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.3);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
}

.research-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.research-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Pathway Cards (Supply page) --- */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.pathway-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pathway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-accent), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pathway-card:hover {
  border-color: var(--glow-blue);
  transform: translateY(-4px);
}

.pathway-card:hover::before {
  opacity: 1;
}

.pathway-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
}

.pathway-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pathway-card li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 1.25rem;
  position: relative;
}

.pathway-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

/* --- Content Prose --- */
.prose {
  max-width: 800px;
}

.prose p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text-color);
  font-weight: 600;
}

.prose h3 {
  font-size: 1.35rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.prose h4 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  position: relative;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

/* --- Inline Data Callout --- */
.data-callout {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.data-callout strong {
  color: var(--cyan);
}

/* --- Highlight Box --- */
.highlight-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(6, 182, 212, 0.06));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}

.highlight-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.highlight-box p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* --- Cross-Link Cards --- */
.crosslink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.crosslink {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  min-height: 44px;
}

.crosslink:hover {
  border-color: var(--glow-blue);
  transform: translateY(-2px);
  color: var(--text-color);
}

.crosslink-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.crosslink-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.crosslink-text span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Investment Box --- */
.invest-box {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.06), rgba(59, 130, 246, 0.06));
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 2.5rem;
  margin: 3rem 0;
}

.invest-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--gold);
}

.invest-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.invest-box .big-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-accent);
  display: block;
  margin: 1rem 0;
}

/* --- Shared Footer --- */
.mm-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.mm-footer-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.mm-footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

.mm-footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.mm-footer-col a:hover {
  color: var(--primary-accent);
}

.mm-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.mm-footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

/* Dropdown Navigation */
.mm-dropdown {
  position: relative;
  display: inline-block;
}
.mm-dropdown-toggle {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.mm-dropdown-toggle:hover,
.mm-dropdown.active .mm-dropdown-toggle {
  opacity: 1;
}
.mm-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 26, 0.98);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 160px;
  z-index: 1001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mm-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}
.mm-dropdown:hover .mm-dropdown-menu,
.mm-dropdown.open .mm-dropdown-menu {
  display: flex;
  flex-direction: column;
}
.mm-dropdown-menu a {
  padding: 0.5rem 1.2rem;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s, background 0.3s;
}
.mm-dropdown-menu a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}
.mm-ecosystem-link {
  opacity: 0.6;
  font-size: 0.85em;
}
.mm-ecosystem-link:hover {
  opacity: 1;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .energy-flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .energy-flow .flow-connector:nth-child(6),
  .energy-flow .flow-node:nth-child(n+8) {
    display: none;
  }

  .pathway-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mm-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 16, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .mm-links.open {
    display: flex;
  }

  .mm-menu-toggle {
    display: block;
  }

  .mm-dropdown {
    width: 100%;
  }
  .mm-dropdown-toggle {
    display: none;
  }
  .mm-dropdown-menu {
    display: flex !important;
    flex-direction: column;
    position: static;
    transform: none;
    background: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    min-width: auto;
  }
  .mm-dropdown-menu a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 5rem 0 3rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p.hero-subtitle {
    font-size: 1.05rem;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .page-header {
    padding: 4rem 0 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .energy-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-connector {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }

  .distribution-grid {
    grid-template-columns: 1fr;
  }

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

  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .mm-footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sub-nav-inner {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .stats-bar .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .card {
    padding: 1.5rem;
  }

  .energy-card {
    padding: 1.75rem 1.5rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-group {
    flex-direction: column;
  }

  .tradition-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 1rem;
  }

  .faq-question {
    font-size: 0.92rem;
    padding: 1rem 1.25rem;
  }

  .faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.88rem;
  }

  .research-item {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  body::after {
    display: none;
  }

  .mm-header,
  .sub-nav,
  .mm-footer,
  .mm-menu-toggle,
  .hero::before,
  .hero::after,
  .btn-group,
  .cta-section,
  .hero-badge {
    display: none !important;
  }

  .card, .energy-card, .faq-item, .research-item, .pathway-card, .dist-node, .tradition-item {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: none;
    color: #000;
    break-inside: avoid;
  }

  .card p, .research-item p, .pathway-card li, .faq-answer-inner, .dist-node p, .prose p {
    color: #333;
  }

  .stat-value, .text-accent, .data-table td .unit-value {
    color: #2563eb;
  }

  .text-gold, .tradition-item .tradition-name, .invest-box h3 {
    color: #b8860b;
  }

  .text-cyan, .section-label, .data-table th, .data-table td .unit-name {
    color: #0891b2;
  }

  a {
    color: #2563eb;
    text-decoration: underline;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero h1 .glow-text {
    -webkit-text-fill-color: #2563eb;
    background: none;
  }

  .data-table {
    font-size: 0.85rem;
  }

  .faq-answer {
    max-height: none !important;
  }
}
