/* ── Monumental Milestones · theme.css ────────────────────────── */
/* Design system: Space Grotesk + Inter · Dark premium B2B SaaS  */

:root {
  --bg:        #080b14;
  --surface:   #0e1220;
  --card:      #131929;
  --border:    #1c2338;
  --fg:        #e8eaf4;
  --fg-muted:  #6b7494;
  --accent:    #7c6fff;
  --accent-glow: rgba(124, 111, 255, 0.35);
  --accent-2:  #ff6b9d;
  --white:     #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Navbar ───────────────────────────────────────────────────── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 64px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  z-index: 100;
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon {
  color: var(--accent);
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 64px 100px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124,111,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124,111,255,0.12);
  border: 1px solid rgba(124,111,255,0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--fg);
}

.headline-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 80px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  color: var(--fg-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--fg); border-color: var(--fg-muted); }

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  width: fit-content;
  margin: 0 auto;
}

.metric { padding: 0 56px; text-align: center; }

.metric:first-child { padding-left: 0; }
.metric:last-child  { padding-right: 0; }

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--fg) 0%, var(--fg-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

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

/* ── Problem ───────────────────────────────────────────────────── */
.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 96px 64px;
  border-top: 1px solid var(--border);
  align-items: center;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.problem-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--fg);
}

.problem-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.problem-body strong { color: var(--fg); font-weight: 600; }

.problem-right { display: flex; align-items: center; justify-content: center; }

.comparison {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
}

.compare-old, .compare-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.compare-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.compare-icon {
  font-size: 36px;
  color: var(--fg-muted);
}

.compare-new .compare-icon { color: var(--accent); }

.compare-old p, .compare-new p {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 400;
}

.compare-arrow {
  font-size: 24px;
  color: var(--accent);
}

/* ── How it works ──────────────────────────────────────────────── */
.how-it-works {
  padding: 96px 64px;
  border-top: 1px solid var(--border);
}

.section-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 64px;
  color: var(--fg);
}

.steps { display: flex; flex-direction: column; max-width: 760px; }

.step {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step:last-child { border-bottom: none; }

.step::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 72px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.step:last-child::before { display: none; }

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  min-width: 36px;
  padding-top: 4px;
  background: var(--bg);
}

.step-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}

.step-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 16px;
}

.step-integrations {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.integration-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(124,111,255,0.1);
  border: 1px solid rgba(124,111,255,0.2);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ── Features ──────────────────────────────────────────────────── */
.features {
  padding: 96px 64px;
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--card);
  padding: 40px 32px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--surface); }

.feature-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}

.feature-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── CTA ───────────────────────────────────────────────────────── */
.cta {
  position: relative;
  padding: 120px 64px;
  border-top: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124,111,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(255,107,157,0.1);
  border: 1px solid rgba(255,107,157,0.2);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.cta-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--fg);
}

.cta-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}

.signup-form { width: 100%; }

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.form-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  padding: 14px 18px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder { color: var(--fg-muted); }
.form-input:focus { border-color: var(--accent); }

.btn-submit {
  background: var(--accent);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-submit:hover { opacity: 0.85; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-note {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 300;
}

.cta-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: rgba(124,111,255,0.2);
  border: 1px solid rgba(124,111,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
}

.cta-success p {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  padding: 48px 64px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-sub {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 300;
}

.footer-legal {
  margin-left: auto;
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 300;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar { padding: 20px 28px; }
  .hero { padding: 80px 28px 64px; }
  .problem { grid-template-columns: 1fr; gap: 40px; padding: 60px 28px; }
  .how-it-works { padding: 60px 28px; }
  .features { padding: 60px 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta { padding: 80px 28px; }
  .footer { padding: 36px 28px; }
  .form-row { flex-direction: column; }
  .hero-metrics { flex-direction: column; gap: 24px; }
  .metric-divider { display: none; }
  .metric { padding: 0; }
  .comparison { flex-direction: column; }
  .compare-arrow { transform: rotate(90deg); }
  .nav-links a:not(.nav-cta) { display: none; }
}