:root {
  --bg: #0a0a0f;
  --bg-raised: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-dim: #8888a0;
  --fg-muted: #55556a;
  --accent: #7c5cff;
  --accent-glow: rgba(124, 92, 255, 0.3);
  --accent-2: #00e5a0;
  --gradient: linear-gradient(135deg, #7c5cff, #00e5a0);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  max-width: 800px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-bottom: 32px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  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, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-dim);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
  margin: 0 auto;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* ---- PIPELINE ---- */
.pipeline {
  padding: 100px 24px;
  background: var(--bg);
}

.pipeline-content {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 48px;
}

.pipeline-flow {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pipe-step {
  flex: 1;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.pipe-step:hover {
  border-color: rgba(124, 92, 255, 0.3);
}

.pipe-icon {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.pipe-step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pipe-step p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

.pipe-arrow {
  display: flex;
  align-items: center;
  padding-top: 48px;
  color: var(--fg-muted);
  flex-shrink: 0;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 24px;
  background: var(--bg-raised);
}

.features-content {
  max-width: 1000px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.feature-card:hover {
  border-color: rgba(124, 92, 255, 0.25);
}

.feature-highlight {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08), rgba(0, 229, 160, 0.05));
  border-color: rgba(124, 92, 255, 0.15);
}

.feature-number {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.feature-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 24px;
  text-align: center;
  background: var(--bg);
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.closing-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.closing-mono {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

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

/* ---- FOOTER ---- */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

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

.footer-brand {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .hero { padding: 80px 20px 60px; min-height: auto; }
  .hero h1 { font-size: 2.4rem; }
  .hero-stats { flex-direction: column; gap: 16px; width: 100%; }
  .stat-divider { width: 60px; height: 1px; }

  .pipeline-flow {
    flex-direction: column;
    gap: 12px;
  }
  .pipe-arrow {
    padding-top: 0;
    transform: rotate(90deg);
    align-self: center;
  }

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

  .closing h2 { font-size: 1.6rem; }
  .footer-content { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .pipe-step { padding: 20px 18px; }
  .feature-card { padding: 24px 20px; }
}