/* ===========================
   CBAM API — Landing Page CSS
   White / Green B2B Theme
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #14532d;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;

  --gray-950: #030712;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  --font: 'Inter', -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}
.btn-primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,163,74,.3);
}
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-600);
}
.btn-outline:hover {
  background: var(--green-50);
  transform: translateY(-1px);
}
.btn-white {
  background: var(--white);
  color: var(--green-900);
  border-color: var(--white);
}
.btn-white:hover { background: var(--green-50); transform: translateY(-1px); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-mark { font-size: 22px; color: var(--green-600); line-height: 1; }
.logo-text { font-size: 18px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.03em; }
.logo-accent { color: var(--green-600); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600, #4b5563);
  transition: color .15s;
}
.nav-links a:hover { color: var(--green-700); }

/* ── HERO ── */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(160deg, #f0fdf4 0%, #ffffff 50%, #f9fafb 100%);
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-700);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--gray-950);
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-actions .btn { padding: 13px 26px; font-size: 15px; }
.hero-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

/* ── TRUST BAR ── */
.trust-bar {
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
  padding: 28px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 40px;
}
.trust-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--green-600);
  letter-spacing: -0.03em;
}
.trust-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200, #e5e7eb);
}

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section-alt { background: var(--gray-50); }
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--gray-950);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 56px;
  max-width: 560px;
}

/* ── PROBLEM GRID ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.problem-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.problem-icon { font-size: 28px; margin-bottom: 16px; }
.problem-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--gray-900); }
.problem-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.arrow-down { text-align: center; font-size: 32px; color: var(--green-500); padding: 32px 0 24px; }
.solution-box {
  background: var(--green-50);
  border: 1.5px solid var(--green-100);
  border-radius: var(--radius);
  padding: 36px 40px;
  text-align: center;
}
.solution-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: 12px;
}
.solution-text {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 500;
}

/* ── STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: start;
  gap: 16px;
}
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--green-400, #4ade80);
  margin-top: 60px;
}
.step { padding: 32px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--gray-100); }
.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-600);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--gray-900); }
.step p { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 16px; }
.code-snippet {
  background: var(--gray-950);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 12px;
}
.code-snippet pre {
  color: #86efac;
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── DEMO ── */
.demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
  align-items: start;
}
.demo-form-panel, .demo-result-panel {
  background: var(--white);
  border: 1.5px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.demo-panel-title { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 28px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 7px;
}
.form-group input[type="text"],
.form-group input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.form-group input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.form-hint { display: block; font-size: 12px; color: var(--gray-500); margin-top: 5px; }

/* Toggle */
.toggle-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--gray-300);
  border-radius: 100px;
  cursor: pointer;
  transition: .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: .2s;
}
.toggle input:checked + .toggle-slider { background: var(--green-600); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-label { font-size: 13px; color: var(--gray-700); font-weight: 500; }

/* Result panel */
.result-placeholder { text-align: center; padding: 48px 24px; color: var(--gray-400, #9ca3af); }
.placeholder-icon { font-size: 40px; margin-bottom: 14px; }
.result-placeholder p { font-size: 14px; line-height: 1.6; }
.hidden { display: none; }

.result-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.status-full {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.status-deminimis {
  background: var(--green-100);
  color: var(--green-900);
  border: 1px solid #bbf7d0;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.result-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.result-card-wide { grid-column: 1 / -1; }
.result-highlight {
  background: var(--green-50);
  border-color: var(--green-100);
}
.result-label { font-size: 11px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.result-value { font-size: 22px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.03em; }
.result-value-lg { font-size: 28px; }
.result-deduction { color: var(--green-700); }
.result-highlight .result-value { color: var(--green-700); }
.result-unit { font-size: 12px; color: var(--gray-400, #9ca3af); }

.result-risk {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}
.risk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.risk-row:last-child { border-bottom: none; }
.risk-label { font-size: 13px; font-weight: 500; color: var(--gray-700); }
.risk-value { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.risk-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--green-100);
  color: var(--green-900);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.result-note {
  font-size: 11px;
  color: var(--gray-400, #9ca3af);
  line-height: 1.6;
  padding-top: 4px;
}
.price-note {
  font-size: 12px;
  color: var(--green-600);
  font-weight: 500;
  background: var(--green-50);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 4px;
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ── USE CASES ── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.usecase {
  padding: 28px;
  border-left: 3px solid var(--green-500);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}
.usecase-icon { font-size: 28px; margin-bottom: 14px; }
.usecase h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.usecase p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.pricing-card-featured {
  border-color: var(--green-600);
  box-shadow: 0 0 0 1px var(--green-600), var(--shadow-md);
  transform: scale(1.02);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-600);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 100px;
}
.pricing-tier { font-size: 14px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.pricing-price { font-size: 42px; font-weight: 800; color: var(--gray-950); letter-spacing: -0.04em; margin-bottom: 28px; }
.pricing-price span { font-size: 16px; color: var(--gray-500); font-weight: 500; }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 14px; color: var(--gray-700); }
.pricing-features li:last-child { color: var(--gray-400, #9ca3af); }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  padding: 96px 0;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: white; letter-spacing: -0.03em; margin-bottom: 14px; }
.cta-inner p { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 40px; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 0; }
.cta-inner h2, .cta-inner p { margin: 0 0 12px; }
.cta-inner p { margin-bottom: 36px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-section .btn { padding: 13px 28px; font-size: 15px; }
.cta-section .btn + .btn { margin-top: 0; }
.cta-section .btn-white, .cta-section .btn-outline-white { margin: 0 6px; }

/* ── FOOTER ── */
.footer {
  background: var(--gray-950);
  padding: 48px 0;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer .logo-text { color: var(--white); }
.footer-note { font-size: 12px; color: rgba(255,255,255,.35); max-width: 620px; line-height: 1.65; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.25); }
.footer-copy a { color: var(--green-500); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-arrow { margin-top: 0; transform: rotate(90deg); }
  .demo-wrapper { grid-template-columns: 1fr; }
  .trust-inner { gap: 24px; }
  .trust-divider { display: none; }
  .trust-item { padding: 8px 24px; }
  .pricing-card-featured { transform: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .result-grid { grid-template-columns: 1fr; }
}
