/* ============================================================
   DocuFlow Marketing Site — stylesheet
   Color theme matches the local UI (Pico CSS dark + docuflow.css)
   ============================================================ */

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #1c2333;
  --bg4:       #21262d;
  --border:    #30363d;
  --border2:   rgba(255,255,255,0.06);
  --text:      #e6edf3;
  --text2:     #c9d1d9;
  --muted:     #8b949e;
  --primary:   #6366f1;
  --primary-h: #4f46e5;
  --primary-l: rgba(99,102,241,0.12);
  --primary-b: rgba(99,102,241,0.25);
  --amber:     #f59e0b;
  --amber-l:   rgba(245,158,11,0.12);
  --green:     #22c55e;
  --green-l:   rgba(34,197,94,0.12);
  --purple:    #a78bfa;
  --red:       #ef4444;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --max-w:     1160px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding-left: 1.25em; }

code {
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg4);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--purple);
}

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--bg2);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65em 1.4em;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-h);
  border-color: var(--primary-h);
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.8em 2em;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* ── Section header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-l);
  padding: 0.2em 0.75em;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

#main-nav.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo:hover { text-decoration: none; color: var(--text); }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4em 0.75em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg4);
  text-decoration: none;
}

.nav-cta { flex-shrink: 0; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  padding: 0.3em 0.6em;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.ai-chip {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2em 0.65em;
  border-radius: 999px;
}

.hero-headline {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

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

.hero-sub {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.hero-kicker {
  font-size: 1rem;
  color: var(--text2);
  background: var(--bg3);
  border-left: 3px solid var(--amber);
  padding: 0.65rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-trust span::before { content: ''; }

.hero-image {
  position: relative;
}

.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  background: var(--bg2);
}

.hero-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* ============================================================
   STATS
   ============================================================ */
#stats {
  padding: 3rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.stat-unit {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   PROBLEM
   ============================================================ */
#problem {
  background: var(--bg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.problem-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.problem-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.problem-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.problem-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  padding: 0.2em 0.6em;
  border-radius: 999px;
  display: inline-block;
  margin-top: 0.75rem;
}

.problem-footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  color: var(--text2);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how-it-works {
  background: var(--bg2);
}

.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
}

.pipeline-steps::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--purple));
  opacity: 0.3;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border2);
  position: relative;
}

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

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.step-body { padding-top: 0.25rem; }

.step-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.18em 0.65em;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.step-tag-python  { background: rgba(59,130,246,0.15); color: #60a5fa; }
.step-tag-resolve { background: var(--amber-l); color: var(--amber); }
.step-tag-ai      { background: rgba(167,139,250,0.15); color: var(--purple); }

.step-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-body p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.step-result {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-l);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  display: inline-block;
}

.pipeline-extras {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}

.pipeline-extras h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.extra-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.extra-icon { font-size: 1.3rem; flex-shrink: 0; }

.extra-item div { display: flex; flex-direction: column; gap: 0.2rem; }

.extra-item strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.extra-item span {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   FEATURES
   ============================================================ */
#features { background: var(--bg); }

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

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.18s, transform 0.18s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-card-highlight {
  border-color: var(--primary-b);
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  grid-column: span 1;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   TIME SAVINGS
   ============================================================ */
#savings { background: var(--bg2); }

.savings-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.savings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.savings-table th {
  background: var(--bg3);
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.savings-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border2);
  vertical-align: middle;
}

.savings-table tr:last-child td { border-bottom: none; }

.savings-table tr:hover td { background: var(--bg3); }

.time-before { color: var(--muted); }

.time-after {
  color: var(--green);
  font-weight: 600;
}

.saving-badge {
  background: var(--green-l);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(34,197,94,0.25);
}

.saving-badge-gold {
  background: var(--amber-l);
  color: var(--amber);
  border-color: rgba(245,158,11,0.25);
}

.savings-summary {
  text-align: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
  color: var(--text2);
}

/* ============================================================
   WHO IT'S FOR
   ============================================================ */
#for-who { background: var(--bg); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.audience-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.18s;
}

.audience-card:hover { border-color: var(--primary); }

.audience-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }

.audience-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.audience-card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
}

.requirements-strip {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}

.requirements-strip h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

.req-item {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.88rem;
}

.req-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  white-space: nowrap;
  min-width: 48px;
}

.req-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border2);
}

/* ============================================================
   PRICING
   ============================================================ */
#pricing { background: var(--bg2); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 740px;
  margin: 0 auto 1.5rem;
}

.pricing-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.pricing-card-main {
  border-color: var(--primary-b);
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  box-shadow: 0 0 0 1px var(--primary-b), var(--shadow);
}

.pricing-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pricing-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.1rem;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text2);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border2);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-compare {
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

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

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
#compare { background: var(--bg); }

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 720px;
}

.compare-table th {
  background: var(--bg3);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.compare-table th.col-df {
  color: var(--primary);
  background: var(--primary-l);
}

.compare-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border2);
  color: var(--text2);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg3); }

.compare-table td.col-df {
  background: rgba(99,102,241,0.05);
  font-weight: 600;
  color: var(--text);
}

.check  { color: var(--green);  font-weight: 700; }
.cross  { color: var(--red);    }
.neutral { color: var(--muted); }

.compare-note {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   FAQ
   ============================================================ */
#faq { background: var(--bg2); }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}

.faq-q:hover { background: var(--bg4); }
.faq-q::-webkit-details-marker { display: none; }

.faq-chevron {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border2);
}

.faq-a p {
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.75;
  padding-top: 1rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--bg); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-text > p {
  color: var(--text2);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.contact-info { margin-bottom: 1.75rem; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  background: var(--primary-l);
  border: 1px solid var(--primary-b);
  border-radius: var(--radius);
  transition: background 0.15s;
}
.contact-email:hover {
  background: rgba(99,102,241,0.2);
  text-decoration: none;
}

.contact-email-icon { font-size: 1rem; }

.contact-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-point {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.cp-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 28px;
}

.contact-point div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-point strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-point span {
  font-size: 0.83rem;
  color: var(--muted);
}

/* Form */
.contact-form-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text2);
}

.req { color: var(--red); }

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-l);
}

.form-field select option {
  background: var(--bg3);
  color: var(--text);
}

.form-field textarea { resize: vertical; }

.form-privacy {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.25rem;
}

/* Success / error */
.form-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-l);
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.form-success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); margin-bottom: 1.25rem; }

.form-error-msg {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: #fca5a5;
  margin-bottom: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid  { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .req-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }

  /* Nav */
  .nav-inner { height: 56px; position: relative; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6em 0.75em; }
  .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image { order: -1; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child,
  .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  /* Grids → single column */
  .problem-grid  { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .extras-grid   { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 100%; }
  .req-grid      { grid-template-columns: repeat(2, 1fr); }

  /* Pipeline */
  .pipeline-step { grid-template-columns: 40px 1fr; }
  .pipeline-steps::before { left: 19px; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; }
  .footer-links { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
}
