:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --fg-dim: #55556a;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.15);
  --accent-glow: rgba(0, 255, 136, 0.3);
  --border: #1e1e2a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* ========== HERO ========== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 8% 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.hero-grid {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -1.5px;
}

.hero h1 br + br { display: none; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

/* Hero visual - animated pipe */
.hero-visual {
  position: relative;
  width: 300px;
  height: 400px;
  flex-shrink: 0;
}

.pipe-animation {
  position: relative;
  width: 100%;
  height: 100%;
}

.pipe-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 50%, transparent 100%);
  transform: translateX(-50%);
}

.pipe-node {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--accent-glow);
}

.pipe-node.n1 { top: 15%; animation: pulse-node 2s ease-in-out infinite; }
.pipe-node.n2 { top: 45%; animation: pulse-node 2s ease-in-out 0.5s infinite; }
.pipe-node.n3 { top: 75%; animation: pulse-node 2s ease-in-out 1s infinite; }

.pipe-pulse {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 30px;
  background: var(--accent);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: flow-down 2.5s linear infinite;
  opacity: 0.8;
}

@keyframes pulse-node {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.5); opacity: 1; }
}

@keyframes flow-down {
  0% { top: -30px; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* ========== FLOW ========== */
.flow {
  padding: 100px 8%;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 60px;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
}

.flow-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.step-icon {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.step-content p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 8px 17px;
  width: 36px;
}

.connector-line {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.connector-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-dim);
  margin-top: 4px;
  margin-bottom: 4px;
}

/* ========== FEATURES ========== */
.features {
  padding: 100px 8%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  transition: border-color 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
}

.feature-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 255, 136, 0.04) 100%);
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========== MODEL ========== */
.model {
  padding: 100px 8%;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.model-inner {
  max-width: 700px;
}

.model-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.model h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.model-desc {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 600px;
}

.model-equation {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.eq-part {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 12px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
}

.eq-part.result {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.eq-op {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--fg-dim);
}

/* ========== CLOSING ========== */
.closing {
  padding: 120px 8%;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 40px 8%;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.3px;
}

.footer-links span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 60px 6% 40px;
    min-height: auto;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .flow { padding: 60px 6%; }

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

  .features { padding: 60px 6%; }
  .model { padding: 60px 6%; }

  .model-equation {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .closing { padding: 80px 6%; }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}