:root {
  --primary: #006A4E;
  --primary-light: #00815f;
  --primary-dim: rgba(0,106,78,0.12);
  --accent: #C9A84C;
  --accent-dim: rgba(201,168,76,0.12);
  --bg: #0A0C0F;
  --bg-2: #0F1214;
  --bg-3: #141820;
  --surface: #111418;
  --surface-2: #181D22;
  --text: #F0EEE9;
  --text-muted: #5C7068;
  --text-dim: #3D4F47;
  --border: rgba(0,106,78,0.2);
  --border-2: rgba(0,106,78,0.08);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,106,78,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,106,78,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,106,78,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 520px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.headline-accent { color: var(--accent); }
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-family: 'Manrope', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* API CARD */
.hero-card { position: relative; }
.api-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,106,78,0.1), 0 20px 40px rgba(0,0,0,0.4);
}
.api-card-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-2);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.api-label {
  background: var(--primary-dim);
  color: var(--primary-light);
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.api-endpoint {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.api-response { padding: 20px; }
.response-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.status-badge {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}
.status-badge.verified {
  background: rgba(0,106,78,0.2);
  color: #00C97A;
  border: 1px solid rgba(0,201,122,0.3);
}
.response-time {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Manrope', monospace;
}
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.score-label { font-size: 13px; color: var(--text-muted); }
.score-value { font-family: 'Manrope', sans-serif; font-weight: 800; }
.score-value.gold { color: var(--accent); font-size: 1.1rem; }
.score-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 3px;
}
.address-block {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}
.address-field {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-2);
}
.address-field:last-child { border-bottom: none; }
.field-key {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'Manrope', sans-serif;
  min-width: 90px;
}
.field-val {
  font-size: 12px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
}
.bb-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--primary-light);
  font-weight: 500;
}

/* SECTION HEADERS */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* COMPLIANCE SECTION */
.compliance-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.compliance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: left;
}
.comp-icon { margin-bottom: 16px; }
.comp-stat {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.comp-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* API SECTION */
.api-section {
  padding: 100px 0;
  background: var(--bg);
}
.api-demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.api-code-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.code-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.code-dots { display: flex; gap: 6px; }
.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-filename {
  font-family: 'Manrope', monospace;
  font-size: 12px;
  color: var(--text-muted);
}
.code-block {
  padding: 24px;
  font-family: 'Manrope', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  overflow-x: auto;
}
.code-key { color: var(--text-muted); }
.api-flow { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.flow-step { display: flex; gap: 20px; align-items: flex-start; }
.flow-num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 28px;
  padding-top: 2px;
}
.flow-text { display: flex; flex-direction: column; gap: 2px; }
.flow-text strong {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.flow-text span { font-size: 0.875rem; color: var(--text-muted); }
.flow-webhook {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  padding: 10px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
}

/* HOW IT WORKS */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
}
.process-num {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.process-visual { margin-bottom: 24px; display: flex; justify-content: center; }
.process-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.process-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.process-example { margin-top: auto; }
.example-tag {
  display: inline-block;
  font-family: 'Manrope', monospace;
  font-size: 11px;
  color: var(--primary-light);
  background: var(--primary-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
}

/* DIFFERENTIATORS */
.differentiators {
  padding: 100px 0;
  background: var(--bg);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.diff-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.diff-card h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.diff-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* THE CHALLENGE */
.the-challenge {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
}
.challenge-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.challenge-content .section-title { text-align: left; }
.challenge-examples { display: flex; flex-direction: column; gap: 12px; margin: 32px 0; }
.addr-problem {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}
.problem-label {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}
.problem-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: 'Manrope', monospace;
}
.challenge-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
/* Parse demo box */
.parse-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,106,78,0.08);
}
.parse-header {
  background: var(--primary-dim);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.05em;
}
.parse-input {
  padding: 14px 20px;
  font-family: 'Manrope', monospace;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-2);
  font-style: italic;
}
.parse-output { padding: 16px 20px; }
.parse-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-2);
}
.parse-field:last-child { border-bottom: none; }
.pf-key {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: var(--text-dim);
}
.pf-val {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}
.parse-confidence {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--accent-dim);
  border-top: 1px solid rgba(201,168,76,0.15);
}
.conf-label { font-size: 11px; color: var(--text-muted); font-family: 'Manrope', sans-serif; }
.conf-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.conf-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2px;
}
.conf-val {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

/* CLOSING */
.closing {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border-2);
}
.closing-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 28px;
}
.closing-headline {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.closing-accent { color: var(--accent); }
.closing-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.cta-note { font-size: 0.875rem; color: var(--text-muted); }

/* FOOTER */
.footer {
  padding: 60px 0 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 300px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-2);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-layout, .challenge-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { display: none; }
  .hero { min-height: auto; padding: 60px 0 40px; }
  .compliance-grid, .process-grid, .diff-grid { grid-template-columns: 1fr; }
  .api-demo-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-stats { gap: 20px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ONBOARD INTAKE FORM */
.onboard-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.onboard-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-2);
}
.onboard-field:last-of-type { border-bottom: none; }
.onboard-field input {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  outline: none;
  transition: border-color 0.2s;
}
.onboard-field input::placeholder { color: var(--text-dim); }
.onboard-field input:focus { border-color: var(--primary); }
.onboard-actions { margin-top: 20px; display: flex; justify-content: flex-end; }
.onboard-submit {
  font-family: 'Manrope', sans-serif;
  background: var(--primary);
  color: var(--text);
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.onboard-submit:hover { background: var(--primary-light); }
.onboard-home-link {
  color: var(--primary-light);
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
}
.onboard-home-link:hover { color: var(--accent); }
.onboard-error {
  max-width: 560px;
  margin: 0 auto 20px;
  background: rgba(255, 95, 87, 0.08);
  border: 1px solid rgba(255, 95, 87, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ff8a82;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}