:root {
  --bg: #0a0e0c;
  --surface: #0f1612;
  --surface-2: #141c18;
  --border: rgba(0, 245, 196, 0.1);
  --accent: #00f5c4;
  --accent-dim: rgba(0, 245, 196, 0.12);
  --accent-glow: rgba(0, 245, 196, 0.25);
  --text: #d4e8df;
  --text-muted: #7a9488;
  --text-dim: #4a6458;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: rgba(10, 14, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ─── HERO ─── */
.hero {
  padding: 120px 2rem 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 245, 196, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 180, 100, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 420px;
}

/* ─── HERO VISUAL ─── */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.network-diagram {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}

.connection-lines {
  position: absolute;
  inset: 0;
}

.connections-svg {
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.node-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.node-tl { top: 0; left: 0; }
.node-tr { top: 0; right: 0; }
.node-bl { bottom: 0; left: 0; }
.node-br { bottom: 0; right: 0; }

.node-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.node-inner::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.2;
  animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.15); opacity: 0.05; }
}

.node-inner.small {
  width: 38px;
  height: 38px;
}

.node-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.pulse-ring-1 {
  width: 80px;
  height: 80px;
  animation: ringExpand 4s ease-out infinite;
}

.pulse-ring-2 {
  width: 80px;
  height: 80px;
  animation: ringExpand 4s ease-out infinite 1.3s;
}

.pulse-ring-3 {
  width: 80px;
  height: 80px;
  animation: ringExpand 4s ease-out infinite 2.6s;
}

@keyframes ringExpand {
  0% { width: 80px; height: 80px; opacity: 0.25; }
  100% { width: 260px; height: 260px; opacity: 0; }
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.stat {
  flex: 1;
  padding: 1rem 1.25rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.stat-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── SECTION SHARED ─── */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* ─── SPORE ENGINE ─── */
.spore-engine {
  padding: 80px 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.capability-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.capability-card {
  background: var(--surface);
  padding: 2rem 2.25rem;
  transition: background 0.3s ease;
}

.capability-card:hover {
  background: var(--surface-2);
}

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 245, 196, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.cap-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.cap-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.spore-quote {
  max-width: 1200px;
  margin: 3rem auto 0;
  text-align: center;
}

.spore-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── ROOT SYSTEM ─── */
.root-system {
  padding: 80px 2rem;
  background: var(--bg);
}

.root-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.root-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.root-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.root-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.root-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.root-step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  padding-top: 0.15rem;
  flex-shrink: 0;
  width: 28px;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── ROOT VISUAL ─── */
.root-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.growth-meter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}

.meter-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.meter-track {
  position: relative;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  margin-bottom: 1rem;
}

.meter-fill {
  height: 100%;
  width: 57%;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(0, 245, 196, 0.4) 100%);
  border-radius: 2px;
  position: relative;
}

.meter-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 245, 196, 0.5);
}

.meter-nodes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.meter-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.meter-node.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 245, 196, 0.4);
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}

.sample-posts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sample-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.sample-post-glow {
  border-color: rgba(0, 245, 196, 0.2);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(0, 245, 196, 0.03) 100%);
}

.post-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.post-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* ─── GROWTH CYCLE ─── */
.growth-cycle {
  padding: 80px 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cycle-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.loop-diagram {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.loop-step {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  text-align: center;
  padding: 0 1rem;
}

.loop-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.loop-step h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.loop-step p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.loop-arrow {
  flex-shrink: 0;
}

.loop-callout {
  max-width: 1200px;
  margin: 3rem auto 0;
}

.callout-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 245, 196, 0.15);
  border-radius: 10px;
  padding: 1.25rem 1.75rem;
}

.callout-icon {
  flex-shrink: 0;
}

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

/* ─── CLOSING ─── */
.closing {
  padding: 100px 2rem;
  background: var(--bg);
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 245, 196, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 3rem;
}

.closing-contrast {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.contrast-item {
  flex: 1;
}

.contrast-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.contrast-tag.old {
  background: rgba(255, 100, 80, 0.1);
  color: #ff8870;
  border: 1px solid rgba(255, 100, 80, 0.2);
}

.contrast-tag.new {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 245, 196, 0.2);
}

.contrast-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contrast-divider {
  flex-shrink: 0;
}

/* ─── FOOTER ─── */
.site-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .root-inner { grid-template-columns: 1fr; gap: 3rem; }
  .capability-grid { grid-template-columns: 1fr; }
  .loop-diagram { flex-wrap: wrap; }
  .loop-arrow { display: none; }
  .closing-contrast { flex-direction: column; gap: 1.5rem; }
  .contrast-divider { transform: rotate(90deg); }
}

@media (max-width: 600px) {
  .hero { padding: 100px 1.25rem 60px; }
  .spore-engine, .root-system, .growth-cycle, .closing { padding: 60px 1.25rem; }
  .site-header { padding: 0 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}