/* =====================================================================
   Complybase — Global Design System
   ===================================================================== */

/* ── Custom Properties ── */
:root {
  --bg-dark:      #060f1e;
  --primary:      #0F4C81;
  --primary-mid:  #1e5a9e;
  --green:        #047857;
  --green-light:  #34d399;
  --amber:        #F59E0B;
  --text:         #0F172A;
  --muted:        #64748b;
  --border:       #EEF2F7;
  --white:        #ffffff;
  --grey-bg:      #f8fafc;
  --red:          #ef4444;
  --red-soft:     #f87171;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── Layout ── */
.cb-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Utility ── */
.cb-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 12px;
}
.cb-gradient-text {
  background: linear-gradient(135deg, #0F4C81 0%, #1e5a9e 50%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Buttons ── */
.cb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}
.cb-btn-cta {
  background: var(--green);
  color: var(--white);
}
.cb-btn-cta:hover {
  background: #036644;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(4,120,87,.35);
}
.cb-btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
}
.cb-btn-ghost:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.35);
}
.cb-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cb-btn-outline:hover {
  background: rgba(15,76,129,.05);
}
.cb-btn-sm {
  font-size: 13px;
  padding: 10px 20px;
}
.cb-btn-full { width: 100%; justify-content: center; }

/* ── NAV ── */
.cb-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
}
.cb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}
.cb-nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.cb-nav-logo-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.cb-nav-wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #0F4C81 0%, #1e5a9e 50%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cb-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.cb-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.cb-nav-links a:hover { color: var(--text); }
.cb-nav-cta { margin-left: 8px; }

/* ── HERO ── */
.cb-hero {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  padding: 88px 0 0;
}
/* subtle radial glow — like Linear */
.cb-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(4,120,87,.12) 0%, transparent 65%);
  pointer-events: none;
}
.cb-hero::after {
  content: '';
  position: absolute;
  top: 100px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15,76,129,.10) 0%, transparent 65%);
  pointer-events: none;
}
.cb-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px 88px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.cb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.22);
  color: var(--red-soft);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
  width: fit-content;
}
.cb-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: cb-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes cb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(0.85); }
}
.cb-hero-h1 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
}
.cb-hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.5);
  max-width: 460px;
  margin-bottom: 36px;
}
.cb-hero-trust {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.3);
}

/* ── Dashboard Mockup ── */
.cb-hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.cb-dash {
  background: #0c1d33;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 22px;
  width: 100%;
  max-width: 390px;
  box-shadow:
    0 40px 80px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.03),
    inset 0 1px 0 rgba(255,255,255,.04);
}
.cb-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.cb-dash-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cb-dash-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green-light);
  background: rgba(52,211,153,.08);
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(52,211,153,.18);
}
.cb-dash-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-light);
  animation: cb-pulse 1.8s ease-in-out infinite;
}
.cb-dash-amount {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 5px;
}
.cb-dash-amount-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.cb-dash-trend {
  font-size: 11px;
  font-weight: 700;
  color: var(--red-soft);
  background: rgba(239,68,68,.1);
  padding: 2px 7px;
  border-radius: 100px;
}
.cb-dash-meta {
  font-size: 11px;
  color: rgba(255,255,255,.28);
  margin-top: -12px;
  margin-bottom: 18px;
}
.cb-dash-section-title {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.25);
  margin-bottom: 10px;
}
.cb-dash-bar-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}
.cb-dash-bar-name {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  width: 62px;
  flex-shrink: 0;
}
.cb-dash-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 100px;
  overflow: hidden;
}
.cb-dash-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--primary-mid), var(--green));
}
.cb-dash-bar-pct {
  width: 28px;
  text-align: right;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  flex-shrink: 0;
}
.cb-dash-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.06);
  margin: 14px 0;
}
.cb-dash-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cb-dash-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-light);
  flex-shrink: 0;
  margin-top: 3px;
}
.cb-dash-status-main {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-light);
  line-height: 1.3;
}
.cb-dash-status-sub {
  font-size: 10px;
  color: rgba(255,255,255,.28);
  margin-top: 1px;
}
.cb-dash-footer-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.cb-dash-chip {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
  padding: 10px 12px;
}
.cb-dash-chip-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: rgba(255,255,255,.25);
  margin-bottom: 3px;
}
.cb-dash-chip-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
}

/* ── STATS BAR ── */
.cb-stats-bar {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,.06);
}
.cb-stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cb-stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
}
.cb-stat-item:last-child { border-right: none; }
.cb-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.cb-stat-desc {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  font-weight: 500;
}

/* ── SECTIONS ── */
.cb-section {
  padding: 96px 0;
}
.cb-section-header {
  text-align: center;
  margin-bottom: 56px;
}
.cb-section-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.8px;
  color: var(--text);
  line-height: 1.2;
}
.cb-section-sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── HOW IT WORKS ── */
.cb-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}
.cb-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.cb-step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.cb-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(4,120,87,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cb-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.cb-step-desc {
  font-size: 14px;
  line-height: 1.7;
}
.cb-step-detail {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cb-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(15,76,129,.07);
  color: var(--primary);
}

/* ── FEATURES ── */
.cb-features-bg { background: var(--grey-bg); }
.cb-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}
.cb-feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.cb-feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.cb-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(4,120,87,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cb-feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.cb-feature-desc {
  font-size: 13px;
  line-height: 1.65;
}
.cb-feature-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 12px;
  background: rgba(52,211,153,.12);
  color: var(--green);
}

/* ── PRICING ANCHOR ── */
.cb-pa {
  background: var(--bg-dark);
  padding: 80px 0;
}
.cb-pa-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.cb-pa-headline {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.8px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.cb-pa-headline em {
  color: var(--green-light);
  font-style: normal;
}
.cb-pa-sub {
  font-size: 15px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
}
.cb-pa-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.cb-pa-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 5px;
}
.cb-pa-stat-desc {
  font-size: 12px;
  color: rgba(255,255,255,.38);
  font-weight: 500;
}

/* ── PRICING CARDS ── */
.cb-pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.cb-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  transition: color .15s;
}
.cb-toggle-label.active { color: var(--text); }
.cb-toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--primary);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.cb-toggle-switch.monthly { background: #CBD5E1; }
.cb-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: left .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.cb-toggle-switch.monthly .cb-toggle-knob { left: 23px; }
.cb-save-tag {
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 100px;
  letter-spacing: .03em;
}
.cb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1060px;
  margin: 48px auto 0;
  padding: 0 48px;
}
.cb-pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow .2s;
}
.cb-pricing-card:hover {
  box-shadow: var(--shadow);
}
.cb-pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 16px 48px rgba(15,76,129,.12);
}
.cb-popular-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.cb-plan-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: 16px;
}
.cb-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin-bottom: 2px;
}
.cb-plan-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.cb-plan-amount {
  font-size: 44px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1;
}
.cb-plan-period {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 2px;
}
.cb-plan-vs {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 20px;
  min-height: 18px;
}
.cb-plan-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.cb-plan-cta-wrap {
  margin-bottom: 22px;
}
.cb-plan-features li {
  font-size: 13px;
  color: var(--text);
  padding: 5px 0 5px 22px;
  position: relative;
  line-height: 1.55;
}
.cb-plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}
.cb-plan-features li.na {
  color: #94a3b8;
}
.cb-plan-features li.na::before {
  content: '—';
  color: #cbd5e1;
  font-weight: 400;
}

/* ── FINAL CTA ── */
.cb-final-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cb-final-cta::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(4,120,87,.18) 0%, transparent 70%);
  pointer-events: none;
}
.cb-final-cta-inner { position: relative; z-index: 1; }
.cb-final-cta h2 {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 32px;
}
.cb-final-trust {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  font-weight: 500;
}

/* ── FOOTER ── */
.cb-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 36px 0 0;
}
.cb-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
}
.cb-footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cb-footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.cb-footer-wordmark {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
}
.cb-footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.cb-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.3);
  transition: color .15s;
}
.cb-footer-links a:hover { color: rgba(255,255,255,.7); }
.cb-footer-source {
  border-top: 1px solid rgba(255,255,255,.05);
  text-align: center;
  padding: 14px 48px;
  font-size: 11px;
  color: rgba(255,255,255,.18);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cb-container, .cb-nav-inner, .cb-hero-inner,
  .cb-stats-inner, .cb-steps, .cb-features-grid,
  .cb-pa-inner, .cb-pricing-grid, .cb-footer-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {
  .cb-hero-h1   { font-size: 36px; letter-spacing: -1px; }
  .cb-section-header h2 { font-size: 26px; }

  /* nav — hide links */
  .cb-nav-links { display: none; }

  /* hero */
  .cb-hero { padding-top: 48px; }
  .cb-hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-bottom: 48px;
  }
  .cb-hero-visual { display: none; }

  /* stats */
  .cb-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .cb-stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 24px 16px;
  }
  .cb-stat-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,.07); }
  .cb-stat-item:nth-last-child(-n+2) { border-bottom: none; }

  /* grids */
  .cb-steps         { grid-template-columns: 1fr; }
  .cb-features-grid { grid-template-columns: 1fr; }
  .cb-pricing-grid  { grid-template-columns: 1fr; }
  .cb-pa-inner      { grid-template-columns: 1fr; gap: 40px; }
  .cb-pa-stats      { grid-template-columns: 1fr 1fr; }

  /* section padding */
  .cb-section { padding: 64px 0; }
  .cb-pa      { padding: 60px 0; }

  /* footer */
  .cb-footer-inner { flex-direction: column; align-items: flex-start; }
}
