:root {
  --bg: #0a0a0f;
  --bg-subtle: #12121a;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.15);
  --green: #00d2a0;
  --red: #ff6b6b;
  --yellow: #ffd93d;
  --border: rgba(255,255,255,0.06);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

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

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow) 0%, transparent 70%),
    var(--bg);
}

.hero-inner {
  max-width: 800px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

/* TERMINAL */
.hero-visual { margin-top: 24px; }

.terminal {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.terminal-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 2;
}

.terminal-body .line { opacity: 0; animation: fadeIn 0.4s ease forwards; }
.terminal-body .fade-1 { animation-delay: 0.6s; }
.terminal-body .fade-2 { animation-delay: 1.2s; }
.terminal-body .fade-3 { animation-delay: 1.8s; }
.terminal-body .fade-4 { animation-delay: 2.4s; }
.terminal-body .fade-5 { animation-delay: 3.0s; }
.terminal-body .line:first-child { opacity: 1; animation: none; }

@keyframes fadeIn { to { opacity: 1; } }

.prompt { color: var(--accent-light); }
.cmd { color: var(--fg); }
.muted { color: var(--fg-muted); }
.success { color: var(--green); }

/* PROBLEM */
.problem {
  padding: 100px 24px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-inner {
  max-width: 900px;
  margin: 0 auto;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
  line-height: 1.2;
}

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

.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  transition: border-color 0.3s;
}

.problem-card:hover { border-color: rgba(255,255,255,0.12); }

.problem-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(108,92,231,0.08) 0%, var(--bg) 100%);
}

.problem-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}

.problem-card.highlight .problem-number { color: var(--accent-light); }

.problem-label {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* HOW IT WORKS */
.how {
  padding: 100px 24px;
}

.how-inner {
  max-width: 720px;
  margin: 0 auto;
}

.how h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.how-sub {
  text-align: center;
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin-bottom: 64px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

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

.step-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-light);
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 10px;
  flex-shrink: 0;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* NUMBERS / COMPARISON */
.numbers {
  padding: 100px 24px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.numbers-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.numbers-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.numbers-text p {
  color: var(--fg-muted);
  line-height: 1.7;
}

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

.comp-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.comp-col.vendly {
  border-color: var(--accent);
}

.comp-header {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.03em;
}

.comp-col.vendly .comp-header {
  background: rgba(108,92,231,0.1);
  color: var(--accent-light);
}

.comp-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
}

.comp-row:last-child { border-bottom: none; }

.comp-row .val { font-weight: 600; color: var(--fg); }
.comp-row .val.accent { color: var(--green); }

/* CLOSING */
.closing {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, var(--accent-glow) 0%, transparent 70%),
    var(--bg);
}

.closing-inner { max-width: 700px; margin: 0 auto; }

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

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

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

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .numbers-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .numbers-text { text-align: center; }
  .step {
    flex-direction: column;
    gap: 16px;
  }
  .comparison {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .comparison {
    grid-template-columns: 1fr;
  }
  .terminal-body { font-size: 0.75rem; padding: 14px; }
}