/* ============================================================
   BankLens Marketing Site — site.css
   Design system + component styles
   ============================================================ */

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

:root {
  --primary:      #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light:#EFF6FF;
  --navy:         #0F172A;
  --navy-mid:     #1E293B;
  --surface:      #F8FAFC;
  --card:         #FFFFFF;
  --text:         #1E293B;
  --muted:        #64748B;
  --border:       #E2E8F0;
  --green:        #10B981;
  --red:          #EF4444;
  --amber:        #F59E0B;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.05);
  --nav-h:        64px;
  --max-w:        1200px;
  --surface-warm: #FAFAF9;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography ─── */
h1 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.7; }

.text-muted   { color: var(--muted); }
.text-white   { color: #fff; }
.text-center  { text-align: center; }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.font-mono    { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn:active { transform: scale(0.97); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 50px; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ─── Navbar ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-mid);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.2s;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}
.nav-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.08); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-signin {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.15s;
}
.nav-signin:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

.nav-cta {
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--primary-dark); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-drawer {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}
.nav-mobile-drawer.open { display: flex; }
.nav-mobile-drawer a {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-mobile-drawer a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-mobile-drawer .mobile-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 240px; }
.footer-col h5 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.8125rem;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a {
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
  font-size: 1.1rem;
}
.footer-social a:hover { color: rgba(255,255,255,0.9); }

/* ─── Section helpers ─── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-hero {
  background: var(--navy);
  color: #fff;
  padding: 80px 0 96px;
}
.section-light { background: var(--surface); }
.section-white { background: var(--card); }
.section-navy  { background: var(--navy); color: #fff; }
.section-blue  { background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%); color: #fff; }

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-label-white { color: rgba(255,255,255,0.6); }

.section-heading { margin-bottom: 16px; }
.section-subheading { font-size: 1.125rem; color: var(--muted); max-width: 580px; }
.section-subheading-white { color: rgba(255,255,255,0.65); }

.section-intro { max-width: 640px; margin: 0 auto 56px; }

/* ─── Hero Section ─── */
.hero {
  background: var(--navy);
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% -10%, rgba(37,99,235,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.18);
  color: #93C5FD;
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero-sub {
  font-size: 1.125rem;
  color: #94A3B8;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* (Mock browser styles removed — no longer used) */

/* ─── Trust Bar ─── */
.trust-bar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

/* ─── How It Works ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.step {
  text-align: center;
  position: relative;
}
.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -28px;
  top: 30px;
  font-size: 1.5rem;
  color: var(--border);
}
.step-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.9375rem; color: var(--muted); }

/* (Feature Grid, Stats, Use Cases removed — no longer used) */

/* ─── Pricing Cards ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pricing-pack { font-size: 0.875rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price span { font-size: 1.25rem; font-weight: 500; }
.pricing-per { font-size: 0.875rem; color: var(--muted); margin-bottom: 24px; }
.pricing-credits {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.pricing-features {
  flex: 1;
  margin: 20px 0;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 6px 0;
}
.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-cta { margin-top: auto; }

/* (FAQ Accordion removed — no longer used) */

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.75); font-size: 1.125rem; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-group { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ─── Page Hero (slim) ─── */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p  { font-size: 1.125rem; color: #94A3B8; max-width: 600px; margin: 0 auto; }

/* ─── Pipeline Diagram ─── */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 32px 0;
  margin-top: 48px;
}
.pipeline-step {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 90px;
}
.pipeline-box {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s;
}
.pipeline-box:hover { border-color: var(--primary); color: var(--primary); }
.pipeline-step-num {
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pipeline-arrow {
  color: var(--border);
  font-size: 1.2rem;
  margin: 0 -2px;
  flex-shrink: 0;
  margin-top: -16px;
}

/* ─── Feature Deep-dive (alternating) ─── */
.feature-deepdive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.feature-deepdive:last-of-type { border-bottom: none; }
.feature-deepdive.reverse { direction: rtl; }
.feature-deepdive.reverse > * { direction: ltr; }

.feature-deepdive-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.8;
}
.code-hl  { color: var(--primary); }
.code-grn { color: var(--green); }
.code-red { color: var(--red); }
.code-amb { color: var(--amber); }

/* (Bank Cards removed — no longer used) */

/* ─── Docs Layout ─── */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  padding: 64px 0;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.docs-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.docs-sidebar-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.docs-sidebar-nav a:hover { color: var(--primary); background: var(--primary-light); }
.docs-sidebar-nav a.active { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); }

.docs-content { min-width: 0; }
.docs-section { margin-bottom: 56px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.docs-section h2 { border-bottom: 2px solid var(--border); padding-bottom: 12px; margin-bottom: 24px; }
.docs-section h3 { margin: 24px 0 12px; }
.docs-section p  { color: var(--muted); margin-bottom: 16px; font-size: 0.9375rem; }

/* ─── Code blocks ─── */
pre, code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}
.code-block {
  background: var(--navy);
  color: #E2E8F0;
  border-radius: var(--radius);
  padding: 24px;
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 16px 0;
}
.code-block .cm { color: #64748B; }
.code-block .kw { color: #93C5FD; }
.code-block .st { color: #86EFAC; }
.code-block .nm { color: #FCA5A5; }
.code-block .nb { color: #FDE68A; }

code.inline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.875em;
  color: var(--primary);
}

/* ─── Tables ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  background: var(--surface);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.data-table td:first-child { font-weight: 600; color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }

/* (Contact Form styles removed — no longer used) */

/* ─── Toast Notification ─── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* (About page styles removed — no longer used) */

/* ─── Utilities ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 16px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.note {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 0.9375rem;
  color: var(--text);
  margin: 16px 0;
}

/* ─── Comparison Table ─── */
.compare-wrap { overflow-x: auto; margin-top: 48px; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}
.compare-table th:first-child { text-align: left; }
.compare-table th.highlight { background: var(--primary); }
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--text); }
.compare-table td.highlight { background: rgba(37,99,235,0.04); }
.check-y { color: var(--green); font-size: 1rem; }
.check-n { color: var(--border); font-size: 1rem; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .hero { min-height: auto; padding: 60px 0 48px; }

  .steps          { grid-template-columns: 1fr; }
  .step::after    { display: none; }
  .pricing-grid   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .container  { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}

/* ─── Scroll animation ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
