@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #0a0a0f;
  --bg-surface: #12121a;
  --bg-card: #1a1a26;
  --fg-primary: #e8e6f0;
  --fg-muted: #8b89a0;
  --fg-dim: #5a586e;
  --accent: #7c3aed;
  --accent-glow: #a855f7;
  --accent-soft: rgba(124, 58, 237, 0.15);
  --hot: #f43f5e;
  --hot-glow: rgba(244, 63, 94, 0.3);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.2);
  --border: rgba(139, 137, 160, 0.12);
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--fg-primary);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  animation: drift 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--hot-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: drift 25s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.97); }
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-glow);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

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

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

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--hot) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ===== PIPELINE ===== */
.pipeline {
  padding: 6rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pipeline-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pipeline .section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent-glow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pipeline h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
  max-width: 650px;
}

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

.pipeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.pipeline-step:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

.pipeline-step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

/* ===== FEATURES ===== */
.features {
  padding: 6rem 2rem;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features .section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--hot);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.features h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
  max-width: 600px;
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: start;
  transition: border-color 0.3s;
}

.feature-row:hover {
  border-color: rgba(244, 63, 94, 0.3);
}

.feature-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-primary);
  padding-top: 0.1rem;
}

.feature-desc {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.closing h2 .highlight {
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--hot) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg-primary);
}

.footer-note {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .pipeline-grid {
    grid-template-columns: 1fr;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero {
    padding: 4rem 1.5rem 3rem;
  }
  .pipeline, .features {
    padding: 4rem 1.5rem;
  }
  .closing {
    padding: 5rem 1.5rem;
  }
}