/* ==========================================================================
   WT-LABS | Laboratorio di Ricerca sui Sistemi Complessi
   Theme: Quantum Obsidian & Scientific Luminescence (Refined Edition)
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-tertiary: #131a29;
  --bg-card: rgba(16, 24, 39, 0.78);
  --bg-card-hover: rgba(22, 33, 54, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.28);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.25);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
  --glow-blue: 0 0 25px rgba(59, 130, 246, 0.25);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Space Grotesk', var(--font-sans);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients & Noise Mesh */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -2;
}

.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  opacity: 0.022;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #38bdf8;
}

code, pre, .mono {
  font-family: var(--font-mono);
}

/* KaTeX Polish */
.katex {
  font-size: 1.08em !important;
  color: #e0f2fe;
}

.katex-display {
  margin: 1.25rem 0 !important;
  padding: 0.85rem 1.25rem;
  background: rgba(13, 20, 34, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-md);
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 920px;
}

/* Header & Clean Streamlined Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  padding: 0.55rem 0 0.5rem;
}

.header.scrolled {
  background: rgba(7, 9, 14, 0.96);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  padding: 0.4rem 0 0.4rem;
}

/* Two-Tier Centralized Container */
.header-container-two-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  max-width: 1140px;
  margin: 0 auto;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.header-side-left,
.header-side-right {
  display: flex;
  align-items: center;
  min-width: 190px;
}

.header-side-right {
  justify-content: flex-end;
  gap: 0.75rem;
}

.brand-centered {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin: 0 auto;
}

.brand-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 600;
}

.header-bottom-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.header-nav-dock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 3px 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.nav-links-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links-dock .nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.nav-links-dock .nav-link:hover,
.nav-links-dock .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-links-dock .nav-link.highlight-green {
  color: #34d399;
  font-weight: 600;
}

.nav-links-dock .nav-link.highlight-green:hover {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.btn-xs {
  font-size: 0.75rem;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.brand span.suffix {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-left: 2px;
  font-family: var(--font-mono);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.5rem 0.25rem;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.highlight-green {
  color: #34d399;
  font-weight: 600;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 6px 10px;
  font-size: 1.3rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0d9488);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #0f766e);
  box-shadow: 0 6px 25px rgba(6, 182, 212, 0.45);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-green-vibrant {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 4px 25px rgba(16, 185, 129, 0.4);
  font-weight: 700;
  border: 1px solid #34d399;
}

.btn-green-vibrant:hover {
  background: linear-gradient(135deg, #047857, #059669);
  box-shadow: 0 6px 30px rgba(52, 211, 153, 0.55);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan);
}

.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  color: #ffffff;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.78;
  pointer-events: all;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #cbd5e1;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.canvas-controls-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(15, 23, 42, 0.6);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.metric-value.cyan { color: var(--accent-cyan); }
.metric-value.emerald { color: var(--accent-emerald); }
.metric-value.violet { color: var(--accent-violet); }
.metric-value.amber { color: var(--accent-amber); }

.metric-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
}

.section-header.center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Glass Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.24);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(56, 189, 248, 0.2);
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 1rem;
}

/* ==========================================================================
   HOME SUBNAV STRIP (Aree Interne Spostate Sotto l'Hero - Struttura Ordinata)
   ========================================================================== */
.home-subnav {
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
  position: relative;
  z-index: 20;
}

.subnav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.subnav-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.subnav-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.subnav-grid {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subnav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.subnav-chip .chip-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 600;
}

.subnav-chip:hover {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.subnav-chip:hover .chip-num {
  color: var(--accent-cyan);
}

.subnav-chip.highlight-green {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  font-weight: 600;
}

.subnav-chip.highlight-green .chip-num {
  color: #10b981;
}

.subnav-chip.highlight-green:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: #34d399;
  color: #a7f3d0;
}

/* ==========================================================================
   UNLEASHING LIFE ACADEMY: Horizontal Vibrant Green Cut Section
   ========================================================================== */
.unleashing-cut {
  position: relative;
  background: linear-gradient(135deg, #022c22 0%, #064e3b 35%, #047857 75%, #059669 100%);
  border-top: 3px solid #10b981;
  border-bottom: 3px solid #10b981;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.35), inset 0 0 60px rgba(0, 0, 0, 0.55);
  padding: 90px 0;
  overflow: hidden;
  z-index: 10;
}

.unleashing-cut::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.22) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.unleashing-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.unleashing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #34d399;
  border-radius: var(--radius-full);
  color: #34d399;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
}

.unleashing-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.unleashing-title span.accent {
  color: #a7f3d0;
  text-shadow: 0 0 20px rgba(167, 243, 208, 0.4);
}

.unleashing-desc {
  font-size: 1.12rem;
  color: #d1fae5;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.unleashing-stats-box {
  background: rgba(2, 44, 34, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.unleashing-kpi-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.unleashing-kpi-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.unleashing-kpi-item span.label {
  color: #a7f3d0;
}

.unleashing-kpi-item span.val {
  font-family: var(--font-display);
  font-weight: 800;
  color: #ffffff;
  font-size: 1.2rem;
}

/* Dual-Edge Comparison Box */
.dual-edge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.edge-box {
  background: rgba(13, 20, 34, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.edge-box.investing {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: inset 0 0 40px rgba(16, 185, 129, 0.05);
}

.edge-box.industry {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: inset 0 0 40px rgba(6, 182, 212, 0.05);
}

/* Industrial Commodity Terminal Cards */
.industrial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.industrial-card {
  background: rgba(13, 18, 29, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.industrial-card:hover {
  background: rgba(18, 26, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
}

.industrial-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* WT-Terminal Window */
.terminal-window {
  background: #060910;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.9), 0 0 1px 1px rgba(56, 189, 248, 0.2);
  overflow: hidden;
  margin-top: 2.5rem;
}

.terminal-topbar {
  background: rgba(10, 15, 26, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.terminal-title-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-mode-switcher {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
}

.mode-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.25));
  color: #ffffff;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.terminal-selector-bar {
  background: rgba(13, 18, 29, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
}

.term-select-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.term-select-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.term-select-btn.active {
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
}

.terminal-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
}

.terminal-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-box {
  background: rgba(13, 20, 34, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.stat-box-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.stat-box-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-box-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.terminal-chart-panel {
  background: #04060a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.terminal-chart-canvas {
  width: 100% !important;
  height: 290px !important;
}

.overlay-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.overlay-badge.bullish { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.overlay-badge.bearish { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.overlay-badge.neutral { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* Manifesto Section */
.manifesto-box {
  background: linear-gradient(135deg, rgba(13, 20, 34, 0.9) 0%, rgba(10, 15, 26, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--glow-cyan);
}

.manifesto-quote {
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1.75rem;
}

.manifesto-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.pillar-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 5 Pillars of Research Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.pillar-card.featured {
  grid-column: span 2;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.pillar-icon.cyan { color: var(--accent-cyan); border-color: rgba(6, 182, 212, 0.3); background: rgba(6, 182, 212, 0.08); }
.pillar-icon.emerald { color: var(--accent-emerald); border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.08); }
.pillar-icon.violet { color: var(--accent-violet); border-color: rgba(139, 92, 246, 0.3); background: rgba(139, 92, 246, 0.08); }
.pillar-icon.amber { color: var(--accent-amber); border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.08); }
.pillar-icon.blue { color: var(--accent-blue); border-color: rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.08); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

/* Software & Solutions Grid */
.software-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.software-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.software-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.software-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.software-features {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.software-features li {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.software-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-cyan);
}

/* Interactive Laboratory Widget */
.lab-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.8);
}

.lab-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.7);
  overflow-x: auto;
}

.lab-tab {
  padding: 1.1rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lab-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.lab-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
}

.lab-content {
  padding: 2.5rem;
}

.lab-panel {
  display: none;
}

.lab-panel.active {
  display: block;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: center;
}

.sim-controls {
  background: rgba(16, 24, 39, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.control-group {
  margin-bottom: 1.5rem;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.control-label span.val {
  color: var(--accent-cyan);
  font-weight: 600;
}

.sim-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: transform 0.1s;
}

.sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.sim-display {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.chart-canvas {
  width: 100% !important;
  height: 260px !important;
}

/* Research Papers Grid */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.paper-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.paper-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.paper-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.paper-abstract {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.paper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

/* Modal Reader for Papers */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 18, 29, 0.9);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: #ffffff;
}

.modal-body {
  padding: 2.5rem;
  overflow-y: auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.modal-body h1, .modal-body h2, .modal-body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.modal-body th, .modal-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.modal-body th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

.modal-body blockquote {
  border-left: 3px solid var(--accent-cyan);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(6, 182, 212, 0.06);
  font-style: italic;
}

/* Contact & Inquiries Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(13, 18, 29, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
  background: rgba(18, 26, 42, 0.95);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--glow-cyan);
  color: var(--text-main);
  z-index: 2000;
  display: none;
  align-items: center;
  gap: 0.75rem;
  animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.active {
  display: flex;
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.footer {
  background: #040609;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 340px;
}

.footer-title {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .industrial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .terminal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .manifesto-pillars, .pillars-grid, .software-grid, .hero-metrics, .dual-edge-grid, .unleashing-grid {
    grid-template-columns: 1fr;
  }
  .pillar-card.featured, .edge-box {
    grid-column: span 1;
  }
  .sim-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .header-side-left {
    display: none;
  }
  .header-side-right {
    min-width: auto;
  }
  .header-side-right .btn-xs {
    display: none;
  }
  .brand-centered {
    margin: 0;
  }
  .header-top-row {
    justify-content: space-between;
  }
  .header-bottom-row {
    display: none;
  }
  .header-bottom-row.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 14, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
  }
  .header-bottom-row.mobile-open .header-nav-dock {
    width: 100%;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    padding: 0;
  }
  .header-bottom-row.mobile-open .nav-links-dock {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    align-items: stretch;
  }
  .header-bottom-row.mobile-open .nav-links-dock .nav-link {
    text-align: center;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav-links, .header-actions .status-pill {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .manifesto-box {
    padding: 2rem;
  }
  .manifesto-pillars, .pillars-grid, .software-grid, .papers-grid, .hero-metrics, .industrial-grid, .dual-edge-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* Social & Ecosystem Strip */
.footer-social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.social-strip-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-pill svg {
  flex-shrink: 0;
}

.social-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.social-pill.youtube:hover {
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.social-pill.patreon:hover {
  border-color: #f97316;
  color: #fdba74;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}

.social-pill.whop:hover {
  border-color: #ff5722;
  color: #ff8a65;
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.25);
}

.social-pill.linkedin:hover {
  border-color: #0ea5e9;
  color: #7dd3fc;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
}

.social-pill.substack:hover {
  border-color: #f97316;
  color: #fdba74;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}

.social-pill.x-twitter:hover {
  border-color: #e2e8f0;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.social-pill.instagram:hover {
  border-color: #ec4899;
  color: #f472b6;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.25);
}
