:root {
  color-scheme: dark;
  --bg: #020617;
  --surface: rgba(9, 17, 34, 0.82);
  --surface-strong: rgba(9, 17, 34, 0.96);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --accent-3: #22c55e;
  --danger: #f87171;
  --amber: #fbbf24;
  --shadow-sm: 0 4px 24px rgba(2, 6, 23, 0.4);
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.5);
  --shadow-lg: 0 32px 96px rgba(2, 6, 23, 0.6);
  --radius: 24px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 189, 248, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(167, 139, 250, 0.14), transparent),
    #020617;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #00111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

.brand-mark-sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 12px;
}

.brand-name { font-size: 17px; font-weight: 700; }

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

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }
.nav-link-muted { color: var(--muted) !important; }
.nav-links a.btn-primary { color: #fff; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.42);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-full { width: 100%; }

/* ── COMMON ──────────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 52ch;
  margin: 0 auto;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

/* ── HERO ────────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 72px;
  min-width: 0;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-copy .eyebrow { margin-bottom: 18px; }

.hero-copy h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.14;
  margin-bottom: 22px;
  padding-bottom: 0.08em;
  overflow: visible;
  background: linear-gradient(135deg, #f1f5f9 40%, rgba(56, 189, 248, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy .lede {
  font-size: 18px;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.trial-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.trial-pill .check { color: var(--accent-3); font-weight: 700; }
.trial-pill .sep { opacity: 0.4; }

/* ── PIPELINE CARD ───────────────────────────────────────────────────────── */

.hero-visual {
  display: flex;
  justify-content: center;
}

.pipeline-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(7, 15, 32, 0.92);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.pipeline-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
}

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

.pipeline-title {
  margin-left: 6px;
  font-size: 12px;
  color: var(--muted);
  font-family: "Menlo", "Fira Code", monospace;
}

.pipe-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.pipe-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.pipe-upload  { background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.3); }
.pipe-ocr     { background: rgba(167, 139, 250, 0.14); border: 1px solid rgba(167, 139, 250, 0.3); }
.pipe-rule    { background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); }
.pipe-done    { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }

.pipe-content { flex: 1; min-width: 0; }

.pipe-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 3px;
}

.pipe-value {
  font-size: 13px;
  font-family: "Menlo", "Fira Code", monospace;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pipe-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.badge-blue   { background: rgba(56, 189, 248, 0.14); color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-purple { background: rgba(167, 139, 250, 0.14); color: var(--accent-2); border: 1px solid rgba(167, 139, 250, 0.3); }
.badge-amber  { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-green  { background: rgba(34, 197, 94, 0.12); color: var(--accent-3); border: 1px solid rgba(34, 197, 94, 0.3); }

.pipe-connector {
  margin: 0 18px 0 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
  position: relative;
}

.pipe-connector::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ── PAIN ────────────────────────────────────────────────────────────────── */

.pain {
  padding: 72px 0;
}

.pain .section-head { margin-bottom: 40px; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.pain-card {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.42);
}

.pain-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.pain-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pain-card p { color: var(--muted); margin-bottom: 0; line-height: 1.65; }

.pain-footer {
  text-align: center;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.06);
  color: #e2e8f0;
  font-size: 17px;
}

/* ── HOW IT WORKS ────────────────────────────────────────────────────────── */

.how {
  padding: 72px 0;
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.step-item {
  padding: 28px 20px 28px 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(167, 139, 250, 0.18));
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.step-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-item p { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 0; }

.step-arrow {
  display: flex;
  align-items: flex-start;
  padding-top: 38px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 22px;
  color: var(--border-strong);
}

/* ── FEATURES ────────────────────────────────────────────────────────────── */

.features {
  padding: 72px 0;
}

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

.feature-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(9, 17, 34, 0.7);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 0; }

/* ── PRICING ─────────────────────────────────────────────────────────────── */

.pricing {
  padding: 72px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  align-items: start;
}

.pricing-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(9, 17, 34, 0.7);
  position: relative;
}

.pricing-card-featured {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(9, 17, 34, 0.92);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18), var(--shadow);
  transform: scale(1.03);
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03111f;
  margin-bottom: 14px;
}

.plan-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}

.plan-price {
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--text);
}

.pricing-card-featured .plan-price {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-currency {
  font-size: 28px;
  font-weight: 700;
  vertical-align: super;
}

.plan-period {
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: normal;
}

.plan-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
  min-height: 48px;
}

.plan-features {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
}

.plan-feature-no { opacity: 0.45; }

.check-icon { color: var(--accent-3); font-weight: 700; flex-shrink: 0; }
.no-icon { color: var(--muted); flex-shrink: 0; }

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.pricing-note strong { color: var(--text); }

/* ── TRIAL CTA ───────────────────────────────────────────────────────────── */

.trial-cta {
  padding: 72px 0 20px;
}

.trial-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 52px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: var(--radius);
  background: rgba(9, 17, 34, 0.9);
  box-shadow: 0 0 80px rgba(56, 189, 248, 0.06);
}

.trial-cta-copy .eyebrow { margin-bottom: 16px; }

.trial-cta-copy h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.trial-cta-copy .lede {
  font-size: 16px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 24px;
}

.trial-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trial-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 600;
}

.signup-form {
  display: grid;
  gap: 12px;
}

.signup-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(2, 6, 23, 0.7);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.signup-form input:focus {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.signup-form input::placeholder { color: #4e6480; }

.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 0;
}

.form-note a { color: var(--accent); font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */

.footer {
  margin-top: 72px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.footer-links a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 52px 0 48px;
  }

  .hero-visual { justify-content: flex-start; }
  .pipeline-card { max-width: 100%; }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-arrow { display: none; }
  .step-item { padding: 0 0 24px; }

  .pain-grid { grid-template-columns: 1fr; }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card-featured { transform: none; }

  .trial-cta-inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 36px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .page { padding: 0 16px 60px; }
  .nav-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .brand-name { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links a.btn {
    padding: 8px 13px;
    font-size: 13px;
  }
  .hero-copy h1 {
    font-size: clamp(34px, 11vw, 44px);
    line-height: 1.14;
  }
  .hero-copy .lede {
    font-size: 17px;
    line-height: 1.7;
  }
  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .pipeline-card { border-radius: 16px; }
  .pipe-step {
    gap: 10px;
    padding: 14px 14px;
  }
  .pipe-badge { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .plan-price { font-size: 48px; }
  .section-head h2 { font-size: 28px; }
}
