/* ═══════════════════════════════════════════════════════════════
   MailForge Public CSS — Light Theme, Bootstrap-compatible
   ═══════════════════════════════════════════════════════════════ */

:root {
  --primary:    #4f46e5;
  --primary-d:  #3730a3;
  --primary-l:  #e0e7ff;
  --accent:     #f59e0b;
  --text:       #0f172a;
  --text-sub:   #1e293b;
  --muted:      #475569;
  --muted-l:    #64748b;
  --border:     #e2e8f0;
  --border-l:   #f1f5f9;
  --card-bg:    #ffffff;
  --section-bg: #f8fafc;
  --radius:     20px;
  --ease:       cubic-bezier(0.16,1,0.3,1);
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ── Navbar ───────────────────────────────────────────── */
.pub-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 64px; display: flex; align-items: center;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(180%);
  transition: box-shadow .3s;
}
.pub-nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  box-shadow: 0 3px 12px rgba(79,70,229,.35);
}
.nav-logo-text {
  font-size: 19px; font-weight: 800; color: var(--text);
  letter-spacing: -.4px; white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; flex: 1; justify-content: center;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color .2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-ghost {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: white;
  transition: all .2s; white-space: nowrap;
}
.btn-ghost:hover { color: var(--text); border-color: #94a3b8; background: #f8fafc; }
.btn-glow {
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 9px 20px; border-radius: 8px; border: none;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 3px 14px rgba(79,70,229,.3);
  transition: all .25s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-glow:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 5px 22px rgba(79,70,229,.45); }
.nav-hamburger {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px; cursor: pointer;
  color: var(--text); font-size: 18px;
}

/* Mobile drawer */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 899;
  background: #ffffff; border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 16px; font-weight: 500; padding: 13px 0;
  border-bottom: 1px solid var(--border-l);
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .mobile-cta { display: flex; gap: 10px; margin-top: 16px; flex-direction: column; }
.mobile-menu .btn-glow { justify-content: center; padding: 13px; }
.mobile-menu .btn-ghost { text-align: center; }

/* ── Utility Buttons ──────────────────────────────────── */
.btn-primary-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
  font-size: 16px; font-weight: 700; padding: 14px 32px; border-radius: 12px;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 18px rgba(79,70,229,.3);
  transition: all .25s var(--ease);
}
.btn-primary-lg:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(79,70,229,.45); }
.btn-secondary-lg {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text);
  font-size: 16px; font-weight: 600; padding: 14px 32px; border-radius: 12px;
  border: 1px solid var(--border); text-decoration: none; background: #fff;
  transition: all .2s;
}
.btn-secondary-lg:hover { color: var(--text); background: #f8fafc; border-color: #94a3b8; }

/* ── Section common ───────────────────────────────────── */
.pub-section { position: relative; width: 100%; overflow: hidden; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 96px 24px; }
.section-inner-sm { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }

.pub-section.stack {
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  position: relative;
}

/* Light section backgrounds */
.bg-hero  { background: linear-gradient(170deg, #eef2ff 0%, #f8fafc 60%, #fff 100%); }
.bg-dark1 { background: #f8fafc; }
.bg-dark2 { background: #ffffff; }
.bg-dark3 { background: #f0fdf4; }
.bg-dark4 { background: #f8fafc; }
.bg-dark5 { background: #fafaf9; }
.bg-dark6 { background: #f1f5f9; }
.bg-dark7 { background: #ffffff; }
.bg-cta   { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #2563eb 100%); }
.bg-footer { background: #0f172a; }

/* ── Eyebrow / Headings ───────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.section-h {
  font-size: clamp(28px, 4vw, 48px); font-weight: 900;
  letter-spacing: -1px; line-height: 1.1; color: var(--text); margin-bottom: 16px;
}
.section-h .hl { color: var(--primary); }
.section-h .hl-amber { color: #d97706; }
.section-p { font-size: clamp(15px, 1.7vw, 17px); color: var(--muted); line-height: 1.75; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Hero ─────────────────────────────────────────────── */
.hero-inner { padding: 140px 24px 96px; max-width: 1200px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-l); border: 1px solid rgba(79,70,229,.25);
  color: var(--primary); padding: 7px 16px; border-radius: 40px;
  font-size: 13px; font-weight: 600; margin-bottom: 28px;
}
.hero-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.6)} }
.hero-title {
  font-size: clamp(38px, 5.5vw, 72px); font-weight: 900; line-height: 1.05;
  letter-spacing: -2px; color: var(--text); margin-bottom: 24px;
}
.hero-title .grad {
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #2563eb);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); line-height: 1.75; max-width: 540px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 48px; }
.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.trust-item i { color: #16a34a; font-size: 15px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; overflow: visible; }

/* Mockup */
.mockup-wrap { position: relative; overflow: visible; padding-top: 24px; padding-bottom: 24px; }
.mockup-card {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 20px; padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.06);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.mock-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.mock-bar span { width: 12px; height: 12px; border-radius: 50%; }
.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.mock-stat { background: var(--section-bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: center; }
.mock-stat .v { font-size: 19px; font-weight: 800; color: var(--text); }
.mock-stat .l { font-size: 10px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }
.mock-chart { display: flex; align-items: flex-end; gap: 5px; height: 68px; margin-bottom: 12px; padding: 4px; background: var(--section-bg); border-radius: 8px; }
.mock-chart span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, #4f46e5, #7c3aed); opacity: .8; }
.mock-row { background: var(--section-bg); border-radius: 8px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; border: 1px solid var(--border-l); }
.mock-row:last-child { margin-bottom: 0; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mock-txt { flex: 1; font-size: 12px; color: var(--muted); }
.mock-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 12px; }
.mock-ai-row {
  background: #eef2ff; border: 1px solid rgba(79,70,229,.2);
  border-radius: 10px; padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
}
.mock-ai-icon { color: var(--primary); font-size: 16px; }
.mock-ai-text { font-size: 12px; color: var(--primary); }

/* Floating badges */
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  animation: floatY 5s ease-in-out infinite;
  white-space: nowrap;
}
.fb-top { top: 0px; right: 0px; animation-delay: .8s; }
.fb-bot { bottom: -16px; left: 16px; animation-delay: 2.2s; }
.fb-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.fb-val { font-size: 16px; font-weight: 800; color: var(--text); }
.fb-lbl { font-size: 11px; color: var(--muted); }

/* Brand bar */
.brand-bar {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
  background: var(--section-bg);
}
.brand-bar .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.brand-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; }

/* ── Feature cards grid ───────────────────────────────── */
.feat-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin-top: 56px;
}
.feat-card {
  background: #ffffff; padding: 28px 24px;
  transition: background .2s, transform .2s;
}
.feat-card:hover { background: #f8fafc; }
.feat-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: transform .3s;
}
.feat-card:hover .feat-icon { transform: scale(1.12) rotate(-5deg); }
.feat-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feat-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── Steps grid ───────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin-top: 56px;
}
.step-box { background: #ffffff; padding: 32px 28px; position: relative; }
.step-box:hover { background: #f8fafc; }
.step-num { font-size: 52px; font-weight: 900; color: rgba(79,70,229,.12); font-family: monospace; position: absolute; top: 20px; right: 20px; line-height: 1; }
.step-icon { font-size: 28px; margin-bottom: 16px; }
.step-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── AI section ───────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.ai-list { list-style: none; padding: 0; margin-top: 28px; }
.ai-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text);
}
.ai-list li:last-child { border-bottom: none; }
.ai-list li i { color: var(--primary); font-size: 16px; margin-top: 2px; flex-shrink: 0; }

/* AI terminal — keep dark for code contrast */
.ai-terminal { background: #1e293b; border: 1px solid #334155; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.ai-term-bar { background: #0f172a; padding: 12px 16px; border-bottom: 1px solid #334155; display: flex; align-items: center; gap: 6px; }
.ai-term-bar span { width: 12px; height: 12px; border-radius: 50%; }
.ai-term-bar .title-r { margin-left: auto; font-size: 11px; color: #64748b; font-family: monospace; }
.ai-term-body { padding: 24px; }
.ai-prompt { color: #64748b; font-size: 12px; font-family: monospace; margin-bottom: 14px; }
.ai-brief { background: rgba(79,70,229,.15); border: 1px solid rgba(79,70,229,.3); border-radius: 10px; padding: 14px; margin-bottom: 18px; }
.ai-brief .lbl { font-size: 10px; color: #a5b4fc; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.ai-brief .txt { font-size: 13px; color: #94a3b8; font-style: italic; }
.ai-dots { display: flex; align-items: center; gap: 8px; color: #a5b4fc; font-size: 13px; margin-bottom: 18px; }
.ai-dots span { width: 6px; height: 6px; border-radius: 50%; background: #a5b4fc; display: inline-block; animation: dotBounce 1.4s infinite ease-in-out both; }
.ai-dots span:nth-child(1){animation-delay:-.32s} .ai-dots span:nth-child(2){animation-delay:-.16s}
@keyframes dotBounce{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}
.ai-output { border-top: 1px solid #334155; padding-top: 16px; }
.ai-subj { font-size: 14px; color: #f1f5f9; font-weight: 600; margin-bottom: 6px; }
.ai-prev { font-size: 12px; color: #94a3b8; margin-bottom: 12px; }
.ai-body { font-size: 13px; color: #cbd5e1; line-height: 1.65; margin-bottom: 16px; }
.ai-cta-pill { display: inline-block; background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff; padding: 8px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
.ai-score { font-size: 11px; color: #64748b; margin-top: 12px; border-top: 1px solid #334155; padding-top: 10px; }

/* ── API section ──────────────────────────────────────── */
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ep-list { display: flex; flex-direction: column; gap: 10px; }
.ep-item {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  transition: all .2s; cursor: default;
}
.ep-item:hover { border-color: rgba(79,70,229,.4); background: #f5f3ff; }
.ep-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.method-tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 5px; font-family: monospace; }
.m-get  { background: #dcfce7; color: #166534; }
.m-post { background: #dbeafe; color: #1e40af; }
.m-put  { background: #fef9c3; color: #854d0e; }
.m-del  { background: #fee2e2; color: #991b1b; }
.ep-path { font-family: monospace; font-size: 13px; color: var(--text); font-weight: 600; }
.ep-desc { font-size: 12px; color: var(--muted); }

/* Code panel — stays dark for readability */
.code-panel { background: #1e293b; border: 1px solid #334155; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.code-panel-bar { background: #0f172a; padding: 11px 16px; border-bottom: 1px solid #334155; display: flex; align-items: center; justify-content: space-between; }
.cpb-dots { display: flex; gap: 6px; }
.cpb-dots span { width: 12px; height: 12px; border-radius: 50%; }
.cpb-lang { font-size: 11px; color: #64748b; font-family: monospace; }
.code-body { padding: 20px; overflow-x: auto; }
.code-body pre { font-size: 12px; line-height: 1.9; color: #e2e8f0; font-family: 'Fira Code', monospace; white-space: pre; margin: 0; }
.c-kw  { color: #c084fc; }
.c-str { color: #86efac; }
.c-key { color: #7dd3fc; }
.c-num { color: #fbbf24; }
.c-com { color: #64748b; font-style: italic; }

/* ── Stats / Social proof ─────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-bottom: 64px; }
.stat-box { text-align: center; }
.stat-num { font-size: clamp(32px, 3.5vw, 48px); font-weight: 900; color: var(--text); letter-spacing: -1px; }
.stat-num .pl { color: var(--primary); }
.stat-lbl { font-size: 14px; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* ── Pricing ──────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 56px; }
.price-card {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 22px;
  display: flex; flex-direction: column; position: relative;
  transition: transform .3s, box-shadow .3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.price-card.featured {
  background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: rgba(79,70,229,.4);
  box-shadow: 0 8px 32px rgba(79,70,229,.12);
}
.price-popular-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 14px; border-radius: 20px;
  letter-spacing: .5px; white-space: nowrap;
}
.price-tier { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 12px; }
.price-amount { font-size: 40px; font-weight: 900; color: var(--text); letter-spacing: -1px; line-height: 1; }
.price-period { font-size: 14px; color: var(--muted); font-weight: 400; }
.price-desc { font-size: 13px; color: var(--muted); margin: 12px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.price-features { flex: 1; list-style: none; padding: 0; margin-bottom: 24px; }
.price-features li { font-size: 13px; color: var(--text); padding: 7px 0; display: flex; align-items: flex-start; gap: 10px; }
.price-features li i { color: #16a34a; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.btn-price { display: block; width: 100%; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; text-decoration: none; text-align: center; transition: all .2s; }
.btn-price-outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-price-outline:hover { background: #f8fafc; border-color: #94a3b8; color: var(--text); }
.btn-price-solid { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,.25); }
.btn-price-solid:hover { color: #fff; box-shadow: 0 6px 22px rgba(79,70,229,.4); }
.rzp-note { display: flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 13px; color: var(--muted); }
.rzp-note i { color: var(--primary); }

/* ── Demo box ─────────────────────────────────────────── */
.demo-box { background: #ffffff; border: 1px solid var(--border); border-radius: 20px; padding: 40px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.demo-creds { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 24px 0; }
.cred-box { background: var(--section-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.cred-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; font-weight: 600; }
.cred-val { font-family: monospace; font-size: 13px; color: var(--text); font-weight: 600; word-break: break-all; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.faq-item { background: #ffffff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: box-shadow .2s; }
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.faq-q {
  padding: 20px 24px; font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  user-select: none; transition: background .2s;
}
.faq-q:hover { background: var(--section-bg); }
.faq-q i { font-size: 18px; color: var(--muted); flex-shrink: 0; margin-top: 2px; transition: transform .3s, color .2s; }
.faq-q.open i { transform: rotate(45deg); color: var(--primary); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; font-size: 14px; color: var(--muted); line-height: 1.75; transition: max-height .4s var(--ease), padding .3s; }
.faq-a.open { max-height: 400px; padding: 0 24px 22px; }

/* ── CTA section ──────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #2563eb 100%);
  border-radius: 28px; padding: 80px 60px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(79,70,229,.3);
}
.cta-box::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,.06); filter: blur(60px); pointer-events: none;
}
.cta-title { font-size: clamp(28px, 3.5vw, 46px); font-weight: 900; color: #fff; letter-spacing: -1px; margin-bottom: 16px; }
.cta-sub { font-size: 18px; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-box .btn-secondary-lg { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); }
.cta-box .btn-secondary-lg:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); color: #fff; }
.cta-box .btn-primary-lg { background: #fff; color: var(--primary); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.cta-box .btn-primary-lg:hover { background: #f5f3ff; color: var(--primary); }

/* ── Footer ───────────────────────────────────────────── */
.pub-footer { background: #0f172a; padding: 64px 0 0; border-top: 1px solid #1e293b; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 16px; }
.footer-logo .nav-logo-text { color: #f1f5f9; }
.footer-about { font-size: 14px; color: #64748b; line-height: 1.75; max-width: 280px; margin-bottom: 16px; }
.footer-powered { font-size: 13px; color: #64748b; }
.footer-powered a { color: #818cf8; text-decoration: none; font-weight: 600; }
.footer-powered a:hover { color: #a5b4fc; }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #475569; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: #64748b; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #e2e8f0; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy  { font-size: 13px; color: #475569; }
.footer-right { font-size: 13px; color: #475569; }
.footer-right a { color: #818cf8; text-decoration: none; font-weight: 600; }
.footer-right a:hover { color: #a5b4fc; }

/* ── Inbound section ──────────────────────────────────── */
.hl-amber { color: #d97706; }
.btn-primary-lg.amber {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 4px 18px rgba(245,158,11,.3);
}
.btn-primary-lg.amber:hover { box-shadow: 0 8px 28px rgba(245,158,11,.45); }

/* ── Fade-in ──────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fade-up.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .34s; }

/* ── Spacing utilities ────────────────────────────────── */
.mt-8  { margin-top: 8px; }  .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.mb-8  { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-56 { margin-bottom: 56px; }
.mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet ≤ 1024px */
@media(max-width:1024px){
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .mockup-wrap { max-width: 520px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .api-grid { grid-template-columns: 1fr; gap: 40px; }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: repeat(2,1fr); }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .faq-wrap { grid-template-columns: 1fr; }
  .demo-creds { grid-template-columns: repeat(2,1fr); }
}

/* Mobile ≤ 768px */
@media(max-width:768px){
  .nav-links { display: none; }
  .nav-hamburger { display: flex; align-items: center; }
  .section-inner { padding: 72px 20px; }
  .section-inner-sm { padding: 48px 20px; }
  .hero-inner { padding: 96px 20px 64px; }
  .hero-title { letter-spacing: -1.5px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary-lg,
  .hero-actions .btn-secondary-lg { width: 100%; justify-content: center; }
  .hero-trust { gap: 14px; }
  .feat-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; gap: 20px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-about { max-width: 100%; }
  .cta-box { padding: 48px 24px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-primary-lg,
  .cta-actions .btn-secondary-lg { width: 100%; justify-content: center; }
  .brand-bar { gap: 20px; padding: 16px; }
  .float-badge { display: none; }
  .demo-creds { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .pub-section.stack { border-radius: 20px 20px 0 0; margin-top: -20px; }
}

/* Small mobile ≤ 480px */
@media(max-width:480px){
  .section-inner { padding: 56px 16px; }
  .hero-inner { padding: 88px 16px 56px; }
  .hero-title { font-size: clamp(32px, 9vw, 48px); }
  .section-h { font-size: clamp(24px, 7vw, 36px); }
  .stat-num { font-size: 32px; }
  .btn-primary-lg, .btn-secondary-lg { padding: 12px 20px; font-size: 15px; }
  .cta-box { padding: 36px 18px; border-radius: 20px; }
  .cta-title { font-size: clamp(24px, 7vw, 36px); }
  .cta-sub { font-size: 15px; }
  .feat-card { padding: 20px 18px; }
  .step-box { padding: 24px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .demo-box { padding: 24px 16px; }
  .price-card { padding: 24px 18px; }
}

/* Anchor offset for fixed nav */
:target { scroll-margin-top: 80px; }

/* Focus accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Print */
@media print {
  .pub-nav, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
