@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.15);
  --accent-soft: #a29bfe;
  --success: #00cec9;
  --warning: #fdcb6e;
  --danger: #ff6b6b;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-soft);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

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

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

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

.hero .lede {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--fg-muted);
  max-width: 580px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

/* ===== WORKFLOW ===== */
.workflow {
  padding: 80px 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.workflow .section-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-soft);
  margin-bottom: 16px;
}

.workflow h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.workflow .subtitle {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 56px;
}

.flow-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.flow-card {
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
}

.flow-card.before {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.04), var(--bg-card));
}

.flow-card.after {
  background: linear-gradient(135deg, var(--accent-glow), var(--bg-card));
  border-color: rgba(108, 92, 231, 0.2);
}

.flow-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flow-card.before h3 { color: var(--danger); }
.flow-card.after h3 { color: var(--success); }

.flow-steps {
  list-style: none;
  position: relative;
}

.flow-steps li {
  position: relative;
  padding-left: 28px;
  padding-bottom: 16px;
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.flow-steps li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.flow-card.before .flow-steps li::before {
  background: rgba(255, 107, 107, 0.4);
}

.flow-card.after .flow-steps li::before {
  background: rgba(0, 206, 201, 0.5);
}

.flow-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 20px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--border);
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.features .section-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-soft);
  margin-bottom: 16px;
}

.features h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 56px;
}

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

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

.feature-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  background: var(--accent-glow);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== METRICS ===== */
.metrics {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-soft), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  color: var(--fg-muted);
  font-size: 14px;
}

/* ===== CLOSING ===== */
.closing {
  padding: 120px 24px;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 700px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.closing p {
  color: var(--fg-muted);
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 14px;
}

footer a {
  color: var(--accent-soft);
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .flow-comparison { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 70vh; padding: 100px 20px 60px; }
  .flow-card { padding: 28px 24px; }
  .feature-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
}