/* ============================================
   TIKKUN OLAM — Sovereign Enterprise Theme
   Void Black + Sovereign Gold + Sacred Geometry
   ============================================ */

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

:root {
  /* Core palette */
  --void: #0a0a0a;
  --void-deep: #050505;
  --void-mid: #0d0d0d;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --bg-elevated: #1c1c1c;

  /* Gold system */
  --gold: #d4a017;
  --gold-light: #e8b828;
  --gold-bright: #f0c440;
  --gold-dim: #a07810;
  --gold-glow: rgba(212, 160, 23, 0.15);
  --gold-glow-strong: rgba(212, 160, 23, 0.3);
  --gold-gradient: linear-gradient(135deg, #a07810 0%, #d4a017 50%, #e8b828 100%);
  --gold-gradient-bright: linear-gradient(135deg, #d4a017 0%, #f0c440 50%, #d4a017 100%);

  /* Text */
  --text-primary: #e8e8e8;
  --text-secondary: #999999;
  --text-muted: #666666;
  --text-faint: #444444;

  /* Borders */
  --border-subtle: #222222;
  --border-mid: #2a2a2a;
  --border-gold: rgba(212, 160, 23, 0.3);
  --border-gold-bright: rgba(212, 160, 23, 0.5);

  /* Layout */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 40px rgba(212, 160, 23, 0.1);
  --shadow-gold-strong: 0 0 60px rgba(212, 160, 23, 0.2);

  /* Fonts */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Sacred geometry */
  --fol-size: 400px;
  --fol-stroke: rgba(212, 160, 23, 0.08);
  --fol-stroke-active: rgba(212, 160, 23, 0.15);
}

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

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

img, svg {
  max-width: 100%;
  display: block;
}

/* --- Container & Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-tight {
  padding: 80px 0;
  position: relative;
}

/* --- Typography --- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.15;
}

.section-title .gold {
  color: var(--gold);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Lead paragraph for narrative pages */
.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 32px;
}

/* Narrative prose */
.prose {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 720px;
}

.prose p {
  margin-bottom: 24px;
}

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

.prose em {
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-subtle);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-brand .mark {
  color: var(--gold);
  font-size: 1.5rem;
}

.nav-brand:hover {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  letter-spacing: 0.3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--void) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition) !important;
  letter-spacing: 0.5px;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--void) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-mark {
  font-size: 3.5rem;
  margin-bottom: 24px;
  display: block;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-title .gold {
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s both;
}

/* Page hero (smaller, for subpages) */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero-mark {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.page-hero-title .gold {
  color: var(--gold);
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-family: var(--font-mono);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb .sep {
  color: var(--text-faint);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gold);
  color: var(--void);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--void);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.3);
}

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

.btn-secondary:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

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

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

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

.card-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* --- Stat / Metric --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.stat {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.stat:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-mono);
  margin-bottom: 8px;
  display: block;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: var(--font-mono);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--border-subtle), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.4);
  border: 3px solid var(--void);
}

.timeline-date {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Feature List --- */
.feature-list {
  list-style: none;
  margin: 24px 0;
}

.feature-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '🜛';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--gold);
  font-size: 0.85rem;
}

.feature-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Layer list (for Coordinament) --- */
.layer-list {
  list-style: none;
  counter-reset: layer;
  margin: 32px 0;
}

.layer-list li {
  counter-increment: layer;
  padding: 24px 0 24px 56px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.layer-list li:last-child {
  border-bottom: none;
}

.layer-list li::before {
  content: counter(layer, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.6;
}

.layer-list li strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.layer-list li span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Callout / Highlight --- */
.callout {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.05), transparent);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}

.callout-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

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

/* --- Quote Block --- */
.quote {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-primary);
  text-align: center;
  max-width: 700px;
  margin: 48px auto;
  line-height: 1.6;
  position: relative;
  padding: 24px 0;
}

.quote::before, .quote::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

.quote::before { margin-bottom: 20px; }
.quote::after { margin-top: 20px; }

.quote-author {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 16px;
  display: block;
}

/* --- Section Divider with Flower of Life --- */
.divider-fol {
  text-align: center;
  padding: 40px 0;
}

.divider-fol svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

/* --- Table --- */
.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
}

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

tr:hover td {
  color: var(--text-primary);
}

/* --- Tag pills --- */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  border: 1px solid rgba(212, 160, 23, 0.15);
}

/* --- CTA Section --- */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* --- Two column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.two-col-narrow {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

/* --- Image / Figure --- */
.figure {
  margin: 40px 0;
  text-align: center;
}

.figure img, .figure svg {
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.figure-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-family: var(--font-mono);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  background: var(--void-deep);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .mark {
  color: var(--gold);
  font-size: 1.5rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.footer-mark {
  color: var(--gold);
  font-size: 1.5rem;
}

/* --- Flower of Life Background (subtle watermark) --- */
.fol-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  overflow: hidden;
}

.fol-bg svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
}

/* --- Flower of Life Hero Visual (prominent animated) --- */
.fol-hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(320px, 60vw, 720px);
  height: clamp(320px, 60vw, 720px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
}

.fol-hero svg {
  width: 100%;
  height: 100%;
  animation: folRotate 120s linear infinite;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.15));
}

.fol-hero .fol-pulse {
  animation: folPulse 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes folRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes folPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@media (max-width: 768px) {
  .fol-hero {
    width: clamp(280px, 80vw, 400px);
    height: clamp(280px, 80vw, 400px);
    opacity: 0.12;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* --- Page Transition --- */
.page-next {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
}

.page-next-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.page-next-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-next-title a {
  color: var(--text-primary);
  transition: color var(--transition);
}

.page-next-title a:hover {
  color: var(--gold);
}

.page-next-arrow {
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: 8px;
  display: block;
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col, .two-col-narrow {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

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

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .grid-2, .grid-3, .grid-4, .grid-auto {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-dot {
    left: -30px;
  }
}

@media (max-width: 480px) {
  .container, .container-narrow, .container-wide {
    padding: 0 16px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

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

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

  .card {
    padding: 24px;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dim);
}

::selection {
  background: var(--gold-glow-strong);
  color: var(--text-primary);
}