/* ═══════════════════════════════════════════════════════════════
   LILA Lab — Research Control Room
   Aesthetic: Laboratory / Scientific Instrumentation / Data Monitor
   Palette: Deep Teal #0A1A1D, Cyan #00D4E0, Gold #E29578, Coral #E76F51
   Fonts: Space Grotesk (display), Inter (body), JetBrains Mono (data)
   ═══════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--charcoal);
  background: var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain texture overlay on body */
/* Smooth theme transitions */
body, body::before, .navbar, .hero, .section, .footer,
.glass, .stat-card, .finding-card, .chart-card, .pipeline-card, .blog-card,
.xeni-step, .cta-section {
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

a { color: #00D4E0; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #E29578; }
img { max-width: 100%; height: auto; }

/* ── CSS Variables ── */
:root {
  --cyan: #00D4E0;
  --cyan-dim: rgba(0, 212, 224, 0.15);
  --cyan-glow: rgba(0, 212, 224, 0.3);
  --teal: #006D77;
  --teal-dark: #004E55;
  --teal-deeper: #003A42;
  --gold: #E29578;
  --gold-dim: rgba(226, 149, 120, 0.2);
  --coral: #E76F51;
  --sand: #FFDDD2;
  --sand-light: #FFF5EE;
  --charcoal: #E8E6E3;
  --charcoal-light: #8899AA;
  --muted: #5A7A8A;
  --bg-deep: #071215;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(10, 26, 29, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 212, 224, 0.25);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 212, 224, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME — Warm Editorial Variant
   ═══════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --cyan: #006D77;
  --cyan-dim: rgba(0, 109, 119, 0.12);
  --cyan-glow: rgba(0, 109, 119, 0.2);
  --teal: #006D77;
  --teal-dark: #004E55;
  --teal-deeper: #003A42;
  --gold: #E29578;
  --gold-dim: rgba(226, 149, 120, 0.15);
  --coral: #E76F51;
  --sand: #FFDDD2;
  --sand-light: #FFF5EE;
  --charcoal: #2D3748;
  --charcoal-light: #4A5568;
  --muted: #718096;
  --bg-deep: #FFFBF5;
  --bg-surface: rgba(255, 255, 255, 0.7);
  --bg-surface-hover: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 251, 245, 0.9);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-cyan: rgba(0, 109, 119, 0.25);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(0, 109, 119, 0.1);
}

[data-theme="light"] body::before {
  opacity: 0.15;
}

[data-theme="light"] .section::before {
  background-image:
    linear-gradient(rgba(0, 109, 119, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 109, 119, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(0, 109, 119, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 109, 119, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .hero {
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--teal) 40%, #0A8A96 100%);
}

[data-theme="light"] .stat-card .stat-value.gold {
  color: var(--gold);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--charcoal-light);
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ── Section Layout ── */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── Measurement Grid Background ── */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 224, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 224, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

/* ── Glow Line Divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
  margin: 0;
  border: none;
}

/* ── Fade-in Scroll Animation ── */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-section.visible .stagger-1 { transition-delay: 0.1s; }
.fade-section.visible .stagger-2 { transition-delay: 0.2s; }
.fade-section.visible .stagger-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   GLASS COMPONENT MIXIN (reusable glass effect)
   ═══════════════════════════════════════════════════════════ */
.glass {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.glass:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-cyan);
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: var(--bg-glass);
  border-bottom-color: var(--border-cyan);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
}

.logo-sub {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal-light);
  text-decoration: none;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--charcoal);
  background: var(--bg-surface);
}

.nav-links a.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}

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

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

/* ── Theme Toggle ── */
.nav-actions {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  color: var(--charcoal-light);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.theme-toggle:hover {
  background: var(--bg-surface-hover);
  color: var(--cyan);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-glow);
}

.theme-toggle svg {
  position: absolute;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

.theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.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 — Control Room
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  background: var(--bg-deep);
  overflow: hidden;
}

/* Animated grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 224, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 224, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Radial glow in center */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 212, 224, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(0, 212, 224, 0.08);
  border: 1px solid rgba(0, 212, 224, 0.2);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-family: var(--font-mono);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--cyan); }
  50% { opacity: 0.4; box-shadow: 0 0 8px var(--cyan); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}

.hero-title .accent-cyan {
  background: linear-gradient(135deg, var(--cyan), #66E3FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--charcoal-light);
  margin: 0 auto 0.5rem;
  line-height: 1.5;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scan line effect on hero */
.hero-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 212, 224, 0.08);
  animation: scanline 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes scanline {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Terminal cursor blink */
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 2s 1s both;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-body);
  text-decoration: none;
}

.btn-primary {
  background: var(--cyan);
  color: #071215;
  border-color: var(--cyan);
  font-weight: 700;
}
.btn-primary:hover {
  background: #00E8F5;
  border-color: #00E8F5;
  color: #071215;
  box-shadow: 0 0 30px rgba(0, 212, 224, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 224, 0.06);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-surface);
  color: var(--charcoal-light);
  border-color: var(--border-glass);
}
.btn-ghost:hover {
  background: var(--bg-surface-hover);
  color: var(--cyan);
  border-color: var(--border-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}
.btn-link:hover { gap: 0.7rem; color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   STATS — Terminal Data Monitors
   ═══════════════════════════════════════════════════════════ */
.stats-section {
  padding: var(--space-3xl) 0;
  margin-top: -40px;
  background: var(--bg-deep);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '▸';
  color: var(--cyan);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

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

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.stat-value.gold {
  color: var(--gold);
}

.stat-label {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.15rem;
  font-size: 0.9rem;
}

.stat-sublabel {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   XENI FRAMEWORK — Pipeline Flow
   ═══════════════════════════════════════════════════════════ */
.xeni-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0D2025 100%);
}

.xeni-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin: 2rem 0 3rem;
}

.xeni-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.xeni-step:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.xeni-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 212, 224, 0.1);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  border: 1px solid rgba(0, 212, 224, 0.2);
}

.xeni-step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.xeni-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.xeni-step p {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  line-height: 1.5;
}

.xeni-step p strong { color: var(--cyan); }

.xeni-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  margin-top: 2.5rem;
  color: var(--cyan-dim);
}

.xeni-connector svg {
  width: 28px;
  height: 28px;
}

/* ═══════════════════════════════════════════════════════════
   FINDINGS — Research Results
   ═══════════════════════════════════════════════════════════ */
.findings-section {
  background: #0D2025;
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.finding-card {
  padding: 2rem;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition);
}

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

.finding-card.featured {
  grid-column: span 2;
  border-color: rgba(226, 149, 120, 0.3);
  background: rgba(226, 149, 120, 0.04);
}

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

.finding-badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  background: rgba(0, 212, 224, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 224, 0.15);
}

.finding-card.featured .finding-badge {
  background: rgba(226, 149, 120, 0.12);
  color: var(--gold);
  border-color: rgba(226, 149, 120, 0.2);
}

.finding-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.finding-card p {
  color: var(--charcoal-light);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.finding-metrics {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.finding-link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

.finding-link:hover {
  gap: 0.6rem;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   CHARTS — Data Visualization
   ═══════════════════════════════════════════════════════════ */
.charts-section {
  background: var(--bg-deep);
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 1.25rem;
}

.chart-card {
  padding: 1.75rem;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.chart-card:hover {
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-glow);
}

.chart-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}

.chart-description {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.chart-card canvas {
  max-height: 280px;
}

/* ═══════════════════════════════════════════════════════════
   PIPELINE STATUS
   ═══════════════════════════════════════════════════════════ */
.pipeline-section {
  background: #0D2025;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.pipeline-card {
  padding: 1.75rem;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.pipeline-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.pipeline-card.active {
  border-color: rgba(0, 212, 224, 0.3);
  background: rgba(0, 212, 224, 0.04);
}

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

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pipeline-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
}

.pipeline-status {
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: rgba(0, 212, 224, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 224, 0.2);
}

.status-planned {
  background: rgba(90, 122, 107, 0.12);
  color: #7A9A8A;
  border: 1px solid rgba(90, 122, 107, 0.2);
}

.pipeline-language {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.15rem;
}

.pipeline-speakers {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.pipeline-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s infinite;
}

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

.progress-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.pipeline-features {
  list-style: none;
}

.pipeline-features li {
  padding: 0.35rem 0;
  color: var(--charcoal-light);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pipeline-features li:last-child {
  border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════
   BLOG — Research Updates
   ═══════════════════════════════════════════════════════════ */
.blog-section {
  background: var(--bg-deep);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.blog-card {
  padding: 1.75rem;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

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

.blog-card.featured {
  grid-column: span 2;
  border-left: 3px solid var(--gold);
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.blog-card p {
  color: var(--charcoal-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-author {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-readmore {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.blog-readmore:hover {
  color: var(--gold);
}

.blog-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════ */
.cta-section {
  background: #0D2025;
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 400px at 30% 50%, rgba(0, 212, 224, 0.04) 0%, transparent 70%),
    radial-gradient(circle 300px at 70% 50%, rgba(226, 149, 120, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  color: var(--charcoal);
  position: relative;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--charcoal-light);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.cta-section .btn-outline {
  border-color: var(--border-glass);
  color: var(--charcoal-light);
}

.cta-section .btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-deep);
  color: var(--muted);
  padding: 3rem 1.5rem 1.5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
}

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

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-style: italic;
  opacity: 0.7;
  font-size: 0.85rem;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  color: var(--charcoal-light);
  text-decoration: none;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .xeni-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .xeni-connector {
    transform: rotate(90deg);
    padding: 0;
    margin: 0 auto;
    width: 28px;
  }

  .finding-card.featured {
    grid-column: span 1;
  }

  .blog-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: stretch;
    border-left: 1px solid var(--border-glass);
  }

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

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 90vh;
    padding: 5rem 1.5rem 3rem;
  }

  .section {
    padding: 3rem 1rem;
  }

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

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

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

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .footer-links {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    text-align: center;
  }

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

  .stat-value {
    font-size: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   UTILITY: Pulse glow ring (for data display)
   ═══════════════════════════════════════════════════════════ */
.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid var(--cyan-dim);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.04); opacity: 0; }
}

/* ── Data Stream (animated horizontal line) ── */
.data-stream {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
}

.data-stream::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: streamMove 3s linear infinite;
}

@keyframes streamMove {
  0% { left: -50%; }
  100% { left: 150%; }
}
