/* Cambium — Living Intelligence for Organizations */

:root {
  --bg: #0A0B0D;
  --bg-elevated: #111216;
  --bg-card: #161820;
  --bg-card-hover: #1C1E28;
  --surface: #1E2030;

  --text: #E8E9ED;
  --text-muted: #8B8D98;
  --text-dim: #5C5E6A;

  --green: #4ADE80;
  --green-dim: rgba(74, 222, 128, 0.15);
  --green-glow: rgba(74, 222, 128, 0.3);
  --cyan: #22D3EE;
  --cyan-dim: rgba(34, 211, 238, 0.15);
  --amber: #FBBF24;
  --amber-dim: rgba(251, 191, 36, 0.15);
  --red: #F87171;
  --red-dim: rgba(248, 113, 113, 0.15);

  --gradient: linear-gradient(135deg, #4ADE80 0%, #22D3EE 50%, #818CF8 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(74,222,128,0.1) 0%, rgba(34,211,238,0.1) 100%);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.4rem; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.large-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.large-text.muted {
  color: var(--text-dim);
  font-style: italic;
}

.kicker {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-top: 1.5rem;
  line-height: 1.7;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #0A0B0D;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 222, 128, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.btn-large {
  padding: 1.1rem 2.8rem;
  font-size: 1.05rem;
}

/* ============================================
   NAV
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(10, 11, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.logo-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--green);
  position: relative;
}

.logo-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.4;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s;
}

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

.nav-cta {
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px;
  background: rgba(74, 222, 128, 0.1) !important;
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--green) !important;
  font-weight: 500 !important;
}

.nav-cta:hover {
  background: rgba(74, 222, 128, 0.2) !important;
}

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

.mobile-menu span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2.5rem 5rem;
  gap: 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(74, 222, 128, 0.15);
  top: -200px;
  left: -100px;
}

.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(34, 211, 238, 0.1);
  bottom: -150px;
  right: -100px;
}

.hero-glow-3 {
  width: 300px;
  height: 300px;
  background: rgba(129, 140, 248, 0.1);
  top: 30%;
  right: 20%;
}

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

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mycelium-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-stat-cards {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: rgba(22, 24, 32, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 320px;
  animation: float-in 0.6s ease-out both;
}

.stat-card-1 { animation-delay: 0.2s; }
.stat-card-2 { animation-delay: 0.5s; }
.stat-card-3 { animation-delay: 0.8s; }

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--cyan-dim);
  color: var(--cyan);
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-icon.pulse-green {
  background: var(--green-dim);
  color: var(--green);
}

.stat-icon.pulse-amber {
  background: var(--amber-dim);
  color: var(--amber);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: block;
}

.stat-value {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

/* ============================================
   PHILOSOPHY
   ============================================ */

.philosophy {
  padding: 8rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-text h2 {
  margin-bottom: 2rem;
}

.philosophy-text .large-text {
  margin-bottom: 1.25rem;
}

.compound-chart {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 1.5rem;
  position: relative;
}

.chart-line {
  position: relative;
  height: 120px;
  margin-bottom: 0.5rem;
}

.chart-line svg {
  width: 100%;
  height: 100%;
}

.chart-label {
  position: absolute;
  top: -1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chart-line-reset .chart-label {
  color: var(--text-dim);
}

.chart-line-compound .chart-label {
  color: var(--green);
}

.chart-line-reset {
  position: absolute;
  inset: 2.5rem 2rem;
  margin: 0;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
  padding: 8rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.mechanism-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.mechanism-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.4s ease;
}

.mechanism-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(74, 222, 128, 0.15);
  transform: translateY(-4px);
}

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

.mechanism-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Mechanism Visuals */
.mechanism-visual {
  height: 160px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Signal rings animation */
.signal-viz {
  position: relative;
  width: 140px;
  height: 140px;
}

.signal-core {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--cyan);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--cyan);
}

.signal-ring {
  position: absolute;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: signal-pulse 3s ease-out infinite;
}

.signal-ring-1 {
  width: 50px;
  height: 50px;
  animation-delay: 0s;
}

.signal-ring-2 {
  width: 90px;
  height: 90px;
  animation-delay: 0.8s;
}

.signal-ring-3 {
  width: 130px;
  height: 130px;
  animation-delay: 1.6s;
}

@keyframes signal-pulse {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Stigmergy markers */
.stigmergy-viz {
  position: relative;
  width: 200px;
  height: 140px;
}

.marker {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: marker-glow 2s ease-in-out infinite alternate;
}

.marker-1 { top: 20%; left: 20%; animation-delay: 0s; }
.marker-2 { top: 60%; left: 35%; animation-delay: 0.4s; }
.marker-3 { top: 30%; left: 60%; animation-delay: 0.8s; }
.marker-4 { top: 70%; left: 75%; animation-delay: 1.2s; }
.marker-5 { top: 40%; left: 45%; animation-delay: 0.6s; }

@keyframes marker-glow {
  0% { opacity: 0.3; box-shadow: 0 0 4px var(--green); transform: scale(0.8); }
  100% { opacity: 1; box-shadow: 0 0 16px var(--green); transform: scale(1.2); }
}

.trail {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: 0.3;
}

.trail-1 {
  width: 120px;
  top: 45%;
  left: 20%;
  transform: rotate(15deg);
}

.trail-2 {
  width: 80px;
  top: 65%;
  left: 40%;
  transform: rotate(-20deg);
}

/* Cascade visualization */
.cascade-viz {
  position: relative;
  width: 200px;
  height: 120px;
}

.cascade-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.cascade-trigger {
  background: var(--red);
  box-shadow: 0 0 16px var(--red);
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  animation: cascade-fire 2.5s ease-out infinite;
}

@keyframes cascade-fire {
  0%, 100% { box-shadow: 0 0 8px var(--red); }
  50% { box-shadow: 0 0 24px var(--red); }
}

.cascade-response-1 { background: var(--amber); top: 15%; left: 40%; }
.cascade-response-2 { background: var(--amber); top: 50%; left: 60%; transform: translateY(-50%); }
.cascade-response-3 { background: var(--amber); top: 75%; left: 80%; }

.cascade-path {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--amber));
  animation: cascade-flow 2.5s ease-out infinite;
}

.cascade-path-1 { width: 70px; top: 35%; left: 12%; transform: rotate(-25deg); animation-delay: 0.3s; }
.cascade-path-2 { width: 50px; top: 48%; left: 42%; transform: rotate(5deg); animation-delay: 0.6s; }
.cascade-path-3 { width: 60px; top: 62%; left: 58%; transform: rotate(15deg); animation-delay: 0.9s; }

@keyframes cascade-flow {
  0% { opacity: 0; }
  30% { opacity: 0.8; }
  100% { opacity: 0.2; }
}

/* Compost visualization */
.compost-viz {
  position: relative;
  width: 200px;
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}

.compost-layer {
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.compost-layer-1 {
  background: linear-gradient(90deg, rgba(74,222,128,0.2), rgba(74,222,128,0.05));
  color: var(--green);
  width: 100%;
}

.compost-layer-2 {
  background: linear-gradient(90deg, rgba(251,191,36,0.2), rgba(251,191,36,0.05));
  color: var(--amber);
  width: 90%;
}

.compost-layer-3 {
  background: linear-gradient(90deg, rgba(34,211,238,0.2), rgba(34,211,238,0.05));
  color: var(--cyan);
  width: 80%;
}

.compost-sprout {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--green);
  border-radius: 2px;
}

.compost-sprout::before,
.compost-sprout::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50% 0;
  background: var(--green);
  opacity: 0.6;
  top: 0;
}

.compost-sprout::before {
  transform: rotate(-45deg);
  left: -6px;
}

.compost-sprout::after {
  transform: rotate(45deg);
  right: -6px;
}

/* ============================================
   SYSTEMS DEEP DIVE
   ============================================ */

.systems {
  padding: 8rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.systems-showcase {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.system-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.system-row-reverse {
  direction: rtl;
}

.system-row-reverse > * {
  direction: ltr;
}

.system-number {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.system-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.system-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.system-info p:not(.system-subtitle) {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.system-specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.spec-label {
  color: var(--text-dim);
  min-width: 120px;
  font-weight: 500;
}

.spec-value {
  color: var(--text-muted);
}

/* System visuals */
.system-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* Nervous system viz */
.nervous-system-viz {
  position: relative;
  width: 280px;
  height: 280px;
}

.nerve-center {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--cyan);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
  z-index: 2;
}

.nerve-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0.6;
}

.nerve-end-1 { top: 10%; left: 25%; }
.nerve-end-2 { top: 15%; right: 20%; }
.nerve-end-3 { bottom: 20%; left: 15%; }
.nerve-end-4 { bottom: 10%; right: 25%; }

.nerve-connection {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.2;
  top: 50%;
  left: 50%;
  transform-origin: left center;
}

.nc-1 { width: 100px; transform: translate(0, -50%) rotate(-55deg); }
.nc-2 { width: 110px; transform: translate(0, -50%) rotate(-20deg); }
.nc-3 { width: 120px; transform: translate(0, -50%) rotate(200deg); }
.nc-4 { width: 100px; transform: translate(0, -50%) rotate(160deg); }

.nerve-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
  animation: nerve-travel 2s ease-in-out infinite;
}

.nerve-pulse-1 { top: 30%; left: 35%; animation-delay: 0s; }
.nerve-pulse-2 { top: 40%; right: 35%; animation-delay: 0.7s; }
.nerve-pulse-3 { bottom: 35%; left: 30%; animation-delay: 1.4s; }

@keyframes nerve-travel {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Health viz */
.health-viz {
  position: relative;
  width: 240px;
  height: 240px;
}

.health-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid;
}

.health-ring-outer {
  width: 220px;
  height: 220px;
  border-color: rgba(74, 222, 128, 0.15);
}

.health-ring-mid {
  width: 170px;
  height: 170px;
  border-color: rgba(74, 222, 128, 0.25);
}

.health-ring-inner {
  width: 120px;
  height: 120px;
  border-color: rgba(74, 222, 128, 0.4);
}

.health-score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
}

.health-metric {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  text-align: center;
  font-size: 0.75rem;
}

.health-metric span {
  display: block;
  font-weight: 600;
  color: var(--green);
}

.health-metric small {
  color: var(--text-dim);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hm-1 { top: 5%; left: 0; }
.hm-2 { top: 5%; right: 0; }
.hm-3 { bottom: 5%; left: 0; }
.hm-4 { bottom: 5%; right: 0; }

/* Immune viz */
.immune-viz {
  width: 100%;
  max-width: 320px;
}

.trust-bar {
  height: 8px;
  background: var(--surface);
  border-radius: 4px;
  position: relative;
  margin-bottom: 2rem;
  overflow: visible;
}

.trust-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--amber), var(--green));
  width: var(--trust);
}

.trust-marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 16px;
  background: var(--text-dim);
}

.trust-quarantine {
  left: 20%;
}

.trust-decomm {
  left: 0%;
}

.immune-agents {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.immune-agent {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.04);
}

.ia-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ia-healthy .ia-dot { background: var(--green); }
.ia-warn .ia-dot { background: var(--amber); }
.ia-quarantine .ia-dot { background: var(--red); }

/* Governance viz */
.governance-viz {
  width: 100%;
  max-width: 340px;
}

.gov-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.gov-node {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

.gov-gate {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gov-gate-icon {
  width: 20px;
  height: 20px;
  color: var(--amber);
}

.gov-gate-icon svg {
  width: 100%;
  height: 100%;
}

.gov-arrow {
  width: 2px;
  height: 20px;
  background: rgba(255,255,255,0.15);
}

.gov-branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.gov-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gov-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

.gov-badge-green {
  background: var(--green-dim);
  color: var(--green);
}

.gov-badge-amber {
  background: var(--amber-dim);
  color: var(--amber);
}

.gov-arrow-sm {
  width: 2px;
  height: 12px;
  background: rgba(255,255,255,0.1);
}

/* Lifecycle viz */
.lifecycle-viz {
  position: relative;
  width: 260px;
  height: 260px;
}

.lifecycle-ring {
  position: relative;
  width: 100%;
  height: 100%;
}

.lifecycle-stage {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ls-1 {
  top: 0; left: 50%; transform: translateX(-50%);
  background: var(--green-dim); color: var(--green);
}
.ls-2 {
  top: 22%; right: 0;
  background: var(--cyan-dim); color: var(--cyan);
}
.ls-3 {
  bottom: 22%; right: 0;
  background: var(--cyan-dim); color: var(--cyan);
}
.ls-4 {
  bottom: 0; left: 50%; transform: translateX(-50%);
  background: var(--amber-dim); color: var(--amber);
}
.ls-5 {
  bottom: 22%; left: 0;
  background: var(--cyan-dim); color: var(--cyan);
}
.ls-6 {
  top: 22%; left: 0;
  background: var(--green-dim); color: var(--green);
}

/* Orchestration viz */
.orchestration-viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 300px;
}

.orch-node {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.orch-start {
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--green);
}

.orch-deliver {
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--green);
}

.orch-edge {
  width: 2px;
  height: 16px;
  background: rgba(255,255,255,0.1);
}

.orch-parallel {
  display: flex;
  gap: 2rem;
}

.orch-fork, .orch-join {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.orch-task-a, .orch-task-b {
  border-color: rgba(34, 211, 238, 0.2);
}

/* Recovery viz */
.recovery-viz {
  width: 100%;
  max-width: 350px;
}

.timeline {
  position: relative;
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.timeline-line {
  position: absolute;
  top: 2.6rem;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
}

.checkpoint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.cp-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg-elevated);
}

.cp-emergency .cp-dot {
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.checkpoint span {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recovery-arrow {
  position: absolute;
  bottom: 0.5rem;
  right: 15%;
  width: 25%;
  height: 2px;
  background: var(--green);
}

.recovery-arrow::after {
  content: 'Resume';
  position: absolute;
  bottom: 8px;
  right: 0;
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 500;
}

/* ============================================
   WHY CAMBIUM
   ============================================ */

.why {
  padding: 8rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all 0.4s ease;
}

.why-card:hover {
  border-color: rgba(74, 222, 128, 0.15);
  transform: translateY(-3px);
}

.why-card-large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.why-icon {
  width: 48px;
  height: 48px;
  color: var(--green);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

.why-card-large .why-icon {
  margin-bottom: 0;
}

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

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   USE CASES
   ============================================ */

.use-cases {
  padding: 8rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.usecase-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.usecase-card:hover {
  border-color: rgba(74, 222, 128, 0.15);
  transform: translateY(-3px);
}

.usecase-number {
  font-family: var(--font);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

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

.usecase-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.usecase-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  background: var(--green-dim);
  color: var(--green);
}

/* ============================================
   GIFT ECONOMY
   ============================================ */

.gift-economy {
  padding: 8rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.gift-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.gift-showcase {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}

.gift-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gift-event {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.04);
  animation: gift-slide-in 0.5s ease-out both;
}

.ge-1 { animation-delay: 0.1s; }
.ge-2 { animation-delay: 0.3s; }
.ge-3 { animation-delay: 0.5s; }
.ge-4 { animation-delay: 0.7s; }
.ge-5 { animation-delay: 0.9s; }

@keyframes gift-slide-in {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.gift-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: gift-glow 2s ease-in-out infinite alternate;
}

.gp-help {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.gp-resource {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.gp-gratitude {
  background: #C084FC;
  box-shadow: 0 0 8px #C084FC;
}

@keyframes gift-glow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.gift-detail {
  flex: 1;
  min-width: 0;
}

.gift-type {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.gift-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-intensity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.intensity-bar {
  width: 50px;
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.intensity-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--intensity);
  background: var(--gradient);
  border-radius: 2px;
}

.gift-intensity span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  font-family: var(--font);
}

.gift-explanation {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gift-mechanic {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.gm-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gm-icon svg {
  width: 22px;
  height: 22px;
}

.gm-detect {
  background: var(--green-dim);
  color: var(--green);
}

.gm-measure {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.gm-compound {
  background: var(--amber-dim);
  color: var(--amber);
}

.gift-mechanic h4 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.gift-mechanic p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   WORKFLOW SIMULATION
   ============================================ */

.workflow-sim {
  padding: 8rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(255,255,255,0.04);
}

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

.section-sub-center {
  margin-left: auto;
  margin-right: auto;
}

.sim-container {
  position: relative;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

#workflow-3d {
  grid-row: 1 / 3;
  width: 100%;
  height: 550px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
}

.sim-controls {
  display: flex;
  gap: 0.75rem;
  align-self: start;
}

.sim-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.sim-btn svg {
  width: 16px;
  height: 16px;
}

.sim-play {
  background: var(--gradient);
  color: var(--bg);
}

.sim-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 222, 128, 0.25);
}

.sim-play.running {
  background: var(--amber-dim);
  color: var(--amber);
}

.sim-reset {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}

.sim-reset:hover {
  background: var(--bg-card-hover);
}

.sim-log {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
  max-height: 460px;
}

.sim-log-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.sim-log-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: log-blink 2s ease-in-out infinite;
}

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

.sim-log-entries {
  padding: 0.5rem;
  overflow-y: auto;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sim-log-entry {
  font-size: 0.75rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  line-height: 1.5;
  color: var(--text-muted);
  animation: log-in 0.3s ease-out;
}

@keyframes log-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-log-idle {
  color: var(--text-dim);
  font-style: italic;
  font-family: var(--font);
}

.sim-log-signal {
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
}

.sim-log-agent {
  background: rgba(74, 222, 128, 0.08);
  color: var(--green);
}

.sim-log-gate {
  background: rgba(251, 191, 36, 0.08);
  color: var(--amber);
}

.sim-log-immune {
  background: rgba(248, 113, 113, 0.08);
  color: var(--red);
}

.sim-log-compost {
  background: rgba(192, 132, 252, 0.08);
  color: #C084FC;
}

/* ============================================
   CTA
   ============================================ */

.cta {
  padding: 8rem 0;
  text-align: center;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.06);
  filter: blur(120px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.cta .btn {
  margin-top: 1.5rem;
}


/* ============================================
   FOOTER (unicorn-footer web component)
   ============================================ */

unicorn-footer {
  --ul-footer-color: var(--text-dim);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 1.5rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    padding: 7rem 2rem 4rem;
    min-height: auto;
  }

  .hero-visual {
    min-height: 300px;
    width: 100%;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .system-row,
  .system-row-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .system-visual {
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu { display: flex; }

  .mechanism-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card-large { grid-column: span 1; grid-template-columns: 1fr; }
  .usecase-cards { grid-template-columns: 1fr; }
  .gift-grid { grid-template-columns: 1fr; }

  .sim-container {
    grid-template-columns: 1fr;
  }

  #workflow-3d {
    height: 400px;
  }

  .sim-log {
    max-height: 300px;
  }

  .hero-stat-cards {
    min-width: auto;
  }

  .stat-card {
    min-width: auto;
  }

}

/* ============================================
   ANIMATIONS (scroll-triggered via JS)
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0;
  animation: particle-drift 8s linear infinite;
}

@keyframes particle-drift {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  10% {
    opacity: 0.6;
    transform: translateY(-20px) scale(1);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) scale(0.5);
  }
}
