/* ═══════════════════════════════════════════════════════
   ProceedGate — Unified Design System
   Dark SaaS theme · System fonts · Zero dependencies
   ═══════════════════════════════════════════════════════ */

/* ── 1. CSS Tokens ────────────────────────────────────── */
:root {
  /* Brand */
  --color-teal: #2dd4bf;
  --color-teal-dark: #14b8a6;
  --color-teal-light: #5eead4;
  --color-orange: #fb923c;
  --color-orange-dark: #f97316;

  /* Backgrounds */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-elevated: #0f172a;

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  /* Borders */
  --border-default: #334155;
  --border-subtle: rgba(255,255,255,0.08);
  --border-focus: #2dd4bf;

  /* Status */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --gradient-accent: linear-gradient(90deg, #2dd4bf 0%, #fb923c 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px -10px rgba(45,212,191,0.3);

  /* Spacing (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', Consolas, 'Courier New', monospace;

  /* Transitions */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── 2. Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(800px 500px at 10% -10%, rgba(45,212,191,0.12), transparent 60%),
    radial-gradient(800px 500px at 92% -5%, rgba(251,146,60,0.08), transparent 60%);
  background-attachment: fixed;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(45,212,191,0.22); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(45,212,191,0.3); border-radius: var(--radius-sm); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; padding: 0; margin: 0; }

/* ── 3. Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--text-primary); line-height: 1.2; }
h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 var(--space-4); color: var(--text-secondary); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
pre { margin: 0; }
pre code {
  display: block;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: #0b1020;
  border: 1px solid var(--border-subtle);
  color: #e5e7eb;
  overflow-x: auto;
  line-height: 1.7;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 4. Layout ────────────────────────────────────────── */
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: var(--space-8) 0; position: relative; }
.section::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

/* ── 5. Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--bg-primary);
}
.btn--primary:hover { background: var(--color-teal-dark); border-color: var(--color-teal-dark); box-shadow: 0 0 24px rgba(45,212,191,0.3); }

.btn--secondary {
  background: transparent;
  border-color: var(--color-teal);
  color: var(--color-teal);
}
.btn--secondary:hover { background: rgba(45,212,191,0.1); }

.btn--lg { padding: 16px 32px; font-size: 17px; border-radius: var(--radius-lg); }
.btn--sm { padding: 8px 16px; font-size: 13px; }

.btn__sub { display: block; font-size: 12px; font-weight: 400; opacity: 0.8; margin-top: 2px; }

/* ── 6. Navbar ────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(15,23,42,0.85);
  border-bottom: 1px solid var(--border-subtle);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 14px 0;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}
.navbar__mark {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--color-teal), rgba(45,212,191,0.65));
  box-shadow: 0 0 0 4px rgba(45,212,191,0.12);
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.navbar__links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.navbar__links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.navbar__sep { width: 1px; height: 20px; background: var(--border-default); margin: 0 4px; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.navbar__toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.navbar__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 7. Hero ──────────────────────────────────────────── */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-9) var(--space-4) var(--space-8);
  position: relative;
  overflow: hidden;
}
.hero::before { display: none; }
.hero__headline {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-5);
  max-width: 18ch;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
}
.hero__cta-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ── 8. Stats Bar ─────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-7);
  flex-wrap: wrap;
  padding: var(--space-6) 0;
}
.stat-item { text-align: center; }
.stat-item__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-teal);
  line-height: 1;
}
.stat-item__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ── 9. Feature Cards ─────────────────────────────────── */
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45,212,191,0.3);
}
.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(45,212,191,0.1);
  margin-bottom: var(--space-4);
}
.feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.feature-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Problem cards (orange left border) */
.problem-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--color-orange);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.problem-card h3 { margin-bottom: var(--space-2); font-size: 1.125rem; }
.problem-card p { margin: 0; color: var(--text-secondary); font-size: 0.9375rem; }

/* ── 10. Steps / Timeline ─────────────────────────────── */
.steps {
  display: flex;
  gap: var(--space-6);
  position: relative;
  padding: var(--space-5) 0;
}
.steps::before {
  content: '';
  position: absolute;
  top: calc(var(--space-5) + 24px);
  left: 24px; right: 24px;
  height: 2px;
  background: var(--border-default);
  z-index: 0;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step__number {
  width: 48px; height: 48px;
  background: var(--bg-secondary);
  border: 2px solid var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-teal);
  margin: 0 auto var(--space-4);
}
.step__title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}
.step__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 22ch;
  margin: 0 auto;
}

/* ── 11. Pricing ──────────────────────────────────────── */
.pricing-header { text-align: center; margin-bottom: var(--space-6); }

.pricing-toggle {
  display: inline-flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  margin-top: var(--space-4);
}
.pricing-toggle__btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pricing-toggle__btn.active { background: var(--color-teal); color: var(--bg-primary); }

.pricing-toggle__badge {
  display: inline-block;
  background: rgba(34,197,94,0.15);
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.pricing-card--featured {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-glow);
  transform: scale(1.04);
  z-index: 1;
}
.pricing-card--featured:hover { transform: scale(1.06); }

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-teal);
  color: var(--bg-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-card__name { font-size: 1.25rem; font-weight: 700; margin-bottom: var(--space-1); }
.pricing-card__desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--space-4); }
.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.pricing-card__price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.pricing-card__features { flex-grow: 1; margin-bottom: var(--space-5); }
.pricing-card__features li {
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.pricing-card__features li::before {
  content: '✓';
  color: var(--color-teal);
  font-weight: 700;
  flex-shrink: 0;
}

.enterprise-note {
  text-align: center;
  margin-top: var(--space-5);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.enterprise-note a { color: var(--color-teal); font-weight: 600; }
.enterprise-note a:hover { text-decoration: underline; }

/* ── 12. Integration / Code Block ─────────────────────── */
.integration-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-7);
  align-items: center;
}
.code-block {
  background: #0a0f1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.code-block__header {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
}
.code-block__tab { color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.code-block__tab.active { color: var(--color-teal); background: rgba(45,212,191,0.1); }
.code-block__body { padding: var(--space-4) var(--space-5); overflow-x: auto; }
.code-block__body code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #e5e7eb;
  background: none;
  border: none;
  padding: 0;
}
.code-block__body .kw { color: #c084fc; }
.code-block__body .fn { color: #60a5fa; }
.code-block__body .str { color: #86efac; }
.code-block__body .cm { color: #525252; }
.code-block__body .num { color: #fbbf24; }

.check-list li {
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.check-list li::before { content: '✓'; color: var(--color-teal); font-weight: 700; }

/* ── 13. Testimonials ─────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }

.testimonial {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.testimonial__quote {
  font-size: 1.0625rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-5);
}
.testimonial__quote::before { content: '"'; color: var(--color-teal); font-size: 1.5rem; font-weight: 800; }
.testimonial__author { display: flex; align-items: center; gap: var(--space-3); }
.testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  flex-shrink: 0;
}
.testimonial__name { font-weight: 600; font-size: 0.9375rem; }
.testimonial__role { color: var(--text-muted); font-size: 0.8125rem; }

/* ── 14. FAQ Accordion ────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border-default); }
.faq-item summary {
  width: 100%;
  padding: var(--space-5) 0;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--color-teal);
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__answer {
  padding-bottom: var(--space-5);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ── 15. CTA Banner ───────────────────────────────────── */
.cta-banner {
  background: var(--gradient-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  margin: var(--space-6) 0;
}
.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--bg-primary);
  margin-bottom: var(--space-3);
}
.cta-banner__sub {
  color: rgba(15,23,42,0.75);
  font-size: 1.0625rem;
  margin-bottom: var(--space-6);
}
.cta-banner .btn {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--bg-primary);
}
.cta-banner .btn:hover { background: var(--bg-secondary); }
.cta-banner__note {
  margin-top: var(--space-3);
  color: rgba(15,23,42,0.6);
  font-size: 0.875rem;
}

/* ── 16. Footer ───────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  padding: var(--space-8) 0 var(--space-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}
.footer__brand-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: var(--space-3);
  line-height: 1.6;
}
.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.footer__col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: var(--space-1) 0;
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--color-teal); }
.footer__bottom {
  border-top: 1px solid var(--border-default);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.footer__social { display: flex; gap: var(--space-4); }
.footer__social a { color: var(--text-muted); transition: color 0.15s; }
.footer__social a:hover { color: var(--color-teal); }

/* ── 17. Use Case Cards ───────────────────────────────── */
.use-case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.use-case-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.use-case-card:hover {
  border-color: rgba(45,212,191,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.use-case-card__icon { font-size: 2rem; }
.use-case-card h3 { font-size: 1.25rem; }
.use-case-card p { color: var(--text-secondary); margin: 0; }
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag--popular { background: rgba(45,212,191,0.15); color: var(--color-teal); }
.tag--new { background: rgba(59,130,246,0.15); color: var(--info); }

/* ── 18. Terminal / Demo Block ────────────────────────── */
.terminal {
  background: #0a0e17;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
}
.terminal__header { color: var(--error); font-weight: 600; margin-bottom: var(--space-3); }
.terminal pre { color: var(--text-muted); }
.terminal .t-success { color: var(--success); font-weight: 600; }
.terminal .t-error { color: var(--error); }

/* ── 19. Section title helper ─────────────────────────── */
.section__title { text-align: center; margin-bottom: var(--space-3); }
.section__sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto var(--space-7);
}

/* ── 20. Tool / Integration Grid ──────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
}
.tool-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  transition: border-color 0.2s;
}
.tool-card:hover { border-color: var(--color-teal); }
.tool-card__icon { font-size: 2rem; margin-bottom: var(--space-2); }
.tool-card__name { font-weight: 600; font-size: 0.9375rem; }
.tool-card__pain { font-size: 0.75rem; color: var(--error); margin-top: 4px; }

/* ── 21. Comparison Table ─────────────────────────────── */
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th,
.comparison-table td { padding: var(--space-4); text-align: left; border-bottom: 1px solid var(--border-default); }
.comparison-table th { color: var(--text-muted); font-weight: 600; font-size: 0.875rem; }
.comparison-table td { color: var(--text-primary); }
.comparison-table .check-yes { color: var(--success); font-weight: 600; }
.comparison-table .check-no { color: var(--text-muted); }

/* ── 22. Horror Story (scraping page) ─────────────────── */
.horror-story {
  background: #1c1917;
  border-left: 4px solid var(--error);
  padding: var(--space-5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.horror-story__quote { font-size: 1.125rem; font-style: italic; color: #fca5a5; }
.horror-story__source { margin-top: var(--space-3); font-size: 0.875rem; color: var(--text-muted); }

/* ── 23. Savings Box ──────────────────────────────────── */
.savings-box {
  background: linear-gradient(135deg, #065f46, #047857);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
}
.savings-box__amount { font-size: 3rem; font-weight: 800; color: var(--success); text-shadow: 0 0 40px rgba(16,185,129,0.5); }
.savings-box__label { font-size: 1rem; color: #d1fae5; margin-top: var(--space-2); }

/* ── 24. Skip link ────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -999px; top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: rgba(0,0,0,0.55);
  color: var(--text-primary);
  z-index: 200;
}
.skip-link:focus { left: 12px; }

/* ── 25. Badges / Pills ───────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Utility helpers ──────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ── 26. Input styling ────────────────────────────────── */
input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:hover, select:hover { border-color: rgba(255,255,255,0.2); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.15);
}
input::placeholder { color: var(--text-muted); }
label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }

/* ── 27. Scroll animations ────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── 28. Status dot ───────────────────────────────────── */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── 29. Why This Exists ──────────────────────────────── */
.why-exists {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-7) 0;
}
.why-exists__line {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  line-height: 1.3;
}
.why-exists__line--accent {
  color: var(--color-orange);
}
.why-exists__sep {
  width: 60px;
  height: 2px;
  background: var(--border-default);
  margin: var(--space-6) auto;
}
.why-exists__contrast {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.why-exists__solution {
  font-size: 1.25rem;
  color: var(--color-teal);
  font-weight: 600;
  margin: 0;
}
.why-exists__solution strong {
  color: var(--color-teal-light);
}

/* ── 30. Built For Cards ──────────────────────────────── */
.built-for-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.built-for-card:hover {
  border-color: rgba(45,212,191,0.3);
  transform: translateY(-2px);
}
.built-for-card--featured {
  border-color: var(--color-teal);
  box-shadow: 0 0 20px -8px rgba(45,212,191,0.2);
}
.built-for-card__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}
.built-for-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.built-for-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ── 31. LOG_ONLY Badge ───────────────────────────────── */
.log-only-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.3);
  color: var(--color-teal);
}

/* ── 31b. Section Nudge (mini CTA) ────────────────────── */
.section-nudge {
  text-align: center;
  margin-top: var(--space-6);
}
.section-nudge a {
  display: inline-block;
  color: var(--color-teal);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(45,212,191,0.06);
  border: 1px solid rgba(45,212,191,0.15);
  transition: all 0.2s var(--ease);
}
.section-nudge a:hover {
  background: rgba(45,212,191,0.12);
  border-color: rgba(45,212,191,0.3);
  transform: translateY(-1px);
}

/* ── 31c. Live Output Grid ────────────────────────────── */
.live-output-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  max-width: 900px;
  margin: 0 auto;
}
.live-output-grid .terminal {
  font-size: 0.8125rem;
}

/* ── 31d. Built For Featured ──────────────────────────── */
.built-for-featured {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  background: var(--bg-secondary);
  border: 2px solid var(--color-teal);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 0 30px -10px rgba(45,212,191,0.2);
}
.built-for-featured__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.built-for-featured h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.built-for-featured p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ── 32. What It Is NOT / Design Principles ───────────── */
.not-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.not-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
}
.not-item--no {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
}
.not-item--yes {
  background: rgba(45,212,191,0.06);
  border: 1px solid rgba(45,212,191,0.15);
}
.not-item__x {
  color: var(--error);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.not-item__check {
  color: var(--color-teal);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

/* ── 33. Early Access ─────────────────────────────────── */
.early-access {
  text-align: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
}
.early-access__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(251,146,60,0.1);
  border: 1px solid rgba(251,146,60,0.3);
  color: var(--color-orange);
  margin-bottom: var(--space-5);
}
.early-access__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-6);
}
.early-access__perks {
  display: flex;
  justify-content: center;
  gap: var(--space-7);
  flex-wrap: wrap;
}
.early-access__perk {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.early-access__perk span:first-child {
  font-size: 1.25rem;
}
.early-access__perk p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.early-access__ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

/* ── 34. Section Alternating Background ───────────────── */
.section--alt {
  background: var(--bg-secondary);
}
.section--alt::before {
  display: none;
}

/* ── 35. Section Category Label ───────────────────────── */
.section__label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-teal);
  margin-bottom: var(--space-3);
}

/* ── 36. Hero Proof Bar ───────────────────────────────── */
.hero__proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-6);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.hero__proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero__proof-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.hero__proof-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.hero__proof-sep {
  width: 1px;
  height: 32px;
  background: var(--border-default);
  flex-shrink: 0;
}

/* ── 37. Pain Cards ───────────────────────────────────── */
.pain-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(251,146,60,0.3);
}
.pain-card__icon {
  font-size: 2.25rem;
  margin-bottom: var(--space-4);
}
.pain-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.pain-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}
.pain-card__cost {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-orange);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

/* ── 38. AI Cards (compact grid-4) ────────────────────── */
.ai-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.ai-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45,212,191,0.3);
}
.ai-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-3);
}
.ai-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.ai-card__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── 39. Audience Cards ───────────────────────────────── */
.audience-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.audience-card:hover {
  border-color: rgba(45,212,191,0.3);
  transform: translateY(-2px);
}
.audience-card--featured {
  border-color: var(--color-teal);
  box-shadow: 0 0 20px -8px rgba(45,212,191,0.2);
}
.audience-card__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}
.audience-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.audience-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.audience-card__link {
  display: inline-block;
  color: var(--color-teal);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: var(--space-2);
  transition: color 0.15s;
}
.audience-card__link:hover {
  color: var(--color-teal-light);
}

/* ── 40. Terminal Variants ────────────────────────────── */
.terminal--danger {
  border-color: rgba(239,68,68,0.4);
}
.terminal--success {
  border-color: rgba(34,197,94,0.4);
}
.terminal--try {
  border-color: rgba(45,212,191,0.3);
  max-width: 600px;
  margin: 0 auto;
}

/* ── 41. Impact Bar (social proof numbers) ────────────── */
.impact-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding: var(--space-5) var(--space-6);
}
.impact-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.impact-bar__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-teal);
  line-height: 1;
}
.impact-bar__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.impact-bar__sep {
  width: 1px;
  height: 40px;
  background: var(--border-default);
  flex-shrink: 0;
}
.impact-bar__note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: var(--space-3) 0 0;
  font-style: italic;
}

/* ── 42. Industry Trust ───────────────────────────────── */
.industry-trust {
  text-align: center;
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}
.industry-trust__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.industry-trust__items {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.industry-trust__items span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
}

/* ── 43. Try It Context Line ──────────────────────────── */
.try-it__context {
  text-align: center;
  margin-top: var(--space-4);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.try-it__context span {
  color: var(--color-teal);
  font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--featured { transform: scale(1.02); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .integration-split { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar__toggle { display: flex; }
  .navbar__links {
    position: fixed;
    top: 58px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(15,23,42,0.98);
    backdrop-filter: blur(12px);
    padding: var(--space-5);
    gap: var(--space-2);
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 99;
  }
  .navbar__links.open { transform: translateY(0); opacity: 1; }
  .navbar__links a { padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); font-size: 15px; }
  .navbar__sep { display: none; }

  .hero { min-height: auto; padding: var(--space-7) var(--space-4); }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }

  .steps { flex-direction: column; gap: var(--space-5); }
  .steps::before { display: none; }
  .step { text-align: left; display: flex; gap: var(--space-4); align-items: flex-start; }
  .step__number { margin: 0; flex-shrink: 0; }
  .step__desc { max-width: none; margin: 0; }

  .testimonial-grid { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: var(--space-5); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .footer__brand-col { grid-column: 1 / -1; }

  .not-grid { grid-template-columns: 1fr; }
  .early-access__perks { flex-direction: column; align-items: center; gap: var(--space-4); }
  .early-access__ctas { flex-direction: column; align-items: center; }
  .why-exists { padding: var(--space-5) 0; }
  .live-output-grid { grid-template-columns: 1fr; }
  .built-for-featured { flex-direction: column; text-align: center; }
  .hero__proof { flex-direction: column; gap: var(--space-4); padding: var(--space-4); }
  .hero__proof-sep { width: 60px; height: 1px; }
  .audience-card { flex-direction: column; text-align: center; align-items: center; }
  .impact-bar { flex-direction: column; gap: var(--space-4); }
  .impact-bar__sep { width: 60px; height: 1px; }
  .industry-trust__items { gap: var(--space-2); }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .section { padding: var(--space-7) 0; }
  .hero__cta-group { flex-direction: column; width: 100%; }
  .hero__cta-group .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}
