/* ==========================================================================
   LoanForge — "Clear to close, faster"
   An AI loan-origination platform. Trustworthy fintech, document/ledger world.
   Deep green + navy ink on warm ledger paper. Editorial serif headings.
   BuildspaceLabs
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  --paper: #F6F7F3;
  --surface: #FFFFFF;
  --ink: #0C2740;
  --slate: #5B6C7B;
  --slate-2: #93A1AC;
  --hair: #E6E9E0;
  --hair-strong: #D4D9CB;

  --green: #15803D;
  --green-hover: #166534;
  --green-deep: #14532d;
  --green-tint: #E7F3EC;
  --green-ring: rgba(21, 128, 61, 0.14);

  --amber: #B45309;
  --amber-tint: #FDF3E3;
  --blue: #1D4ED8;
  --blue-tint: #EAF0FF;
  --navy: #0C2740;

  --ink-soft: rgba(12, 39, 64, 0.06);
  --ink-soft-2: rgba(12, 39, 64, 0.10);

  --shadow-sm: 0 1px 2px rgba(12, 39, 64, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(12, 39, 64, 0.16), 0 2px 6px -3px rgba(12, 39, 64, 0.08);
  --shadow-lg: 0 40px 80px -32px rgba(12, 39, 64, 0.30), 0 12px 28px -12px rgba(12, 39, 64, 0.14);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----- Reset-ish ----- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 540; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: -0.02em; }

/* ----- Layout helpers ----- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.hero-grid > *, .shot-row > *, .drivers-grid > *, .contact-grid > *,
.steps > *, .features > *, .explain-inner > *, .viz-body > *, .kpi-inner > * { min-width: 0; }
.section { padding-block: clamp(64px, 9vw, 132px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--green); opacity: 0.6; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(29px, 4.5vw, 46px); margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--slate); font-size: clamp(16px, 1.4vw, 18px); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease), box-shadow 0.25s var(--ease), color 0.2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 1px 2px rgba(21,128,61,0.25), 0 10px 22px -12px rgba(21,128,61,0.55);
}
.btn-primary:hover { background: var(--green-hover); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(21,128,61,0.3), 0 18px 34px -14px rgba(21,128,61,0.6); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--hair-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--slate-2); transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 243, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--hair); }
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 560; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #1c9a4b, var(--green-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  flex: none;
}
.brand-mark svg { width: 19px; height: 19px; }
.nav-links { display: none; align-items: center; gap: 28px; margin-left: 22px; }
.nav-links a { font-family: var(--font-body); font-size: 14.5px; color: var(--slate); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.built-by {
  display: none; align-items: center; gap: 6px;
  font-size: 13px; color: var(--slate);
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--hair);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}
.built-by:hover { color: var(--ink); border-color: var(--hair-strong); }
.built-by svg { width: 12px; height: 12px; }
.built-by b { color: var(--ink); font-weight: 600; }
.nav-cta { display: none; }

@media (min-width: 820px) {
  .nav-links { display: flex; }
  .built-by { display: inline-flex; }
  .nav-cta { display: inline-flex; }
}

/* ==========================================================================
   Hero  — ledger-paper world
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 520px at 84% 6%, var(--green-tint), transparent 62%),
    radial-gradient(680px 420px at 4% 96%, rgba(180,83,9,0.06), transparent 60%);
}
/* ledger rule lines — the document motif */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to bottom, var(--ink-soft) 1px, transparent 1px);
  background-size: 100% 34px;
  -webkit-mask-image: radial-gradient(760px 560px at 72% 34%, #000 30%, transparent 80%);
  mask-image: radial-gradient(760px 560px at 72% 34%, #000 30%, transparent 80%);
  opacity: 0.6;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(40px, 6vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.02fr 0.98fr; } }

.hero-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--slate);
  background: var(--surface); border: 1px solid var(--hair);
  padding: 7px 13px 7px 11px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.pulse-dot { position: relative; width: 8px; height: 8px; }
.pulse-dot span { position: absolute; inset: 0; border-radius: 50%; background: var(--green); }
.pulse-dot span:last-child { animation: pulse-ring 2.4s var(--ease) infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

.hero h1 { font-size: clamp(39px, 6.2vw, 66px); line-height: 1.03; margin-top: 22px; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--green); position: relative; white-space: nowrap; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.09em;
  background: linear-gradient(90deg, var(--green), rgba(21,128,61,0.15));
  border-radius: 2px;
}
.hero-sub { margin-top: 24px; max-width: 512px; font-size: clamp(16px, 1.55vw, 19px); color: var(--slate); line-height: 1.62; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 13.5px; color: var(--slate); }
.hero-trust .item { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* ----- Signature hero visual: loan file — scan + extract + clear-to-close ----- */
.hero-visual { position: relative; }
.viz-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  overflow: hidden;
}
.viz-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 92% -10%, var(--green-tint), transparent 70%);
  pointer-events: none;
}
.viz-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; position: relative; }
.viz-topbar .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.viz-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--green); }
.viz-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.viz-body { display: grid; grid-template-columns: 0.82fr 1fr; gap: 16px; position: relative; }

/* Document being scanned */
.doc {
  position: relative; aspect-ratio: 3 / 4;
  background: #fff; border: 1px solid var(--hair-strong); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.doc svg { width: 100%; height: 100%; display: block; }
.doc .scan {
  position: absolute; left: 0; right: 0; top: 0; height: 44px;
  background: linear-gradient(180deg, transparent, rgba(21,128,61,0.16), transparent);
  border-top: 1px solid rgba(21,128,61,0.5);
  animation: scan 3.6s var(--ease) infinite;
}
@keyframes scan { 0% { transform: translateY(-44px); } 60%, 100% { transform: translateY(360px); } }
.doc-tag {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--font-mono); font-size: 10px; color: var(--green);
  background: var(--green-tint); border: 1px solid var(--green-ring);
  padding: 3px 8px; border-radius: 999px;
}

/* Extract panel */
.extract { display: flex; flex-direction: column; gap: 10px; }
.ex-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--hair); border-radius: 10px;
  padding: 9px 11px;
}
.ex-row .ex-l { min-width: 0; flex: 1; }
.ex-row .ex-l .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-2); }
.ex-row .ex-l .v { font-size: 13.5px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-row .cf { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; color: var(--green); flex: none; }
.ex-row .cf svg { width: 13px; height: 13px; }
.ctc {
  margin-top: 4px; background: linear-gradient(150deg, #0e3a25, var(--green-deep));
  border-radius: 12px; padding: 14px 15px; color: #fff; position: relative; overflow: hidden;
}
.ctc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 12px; opacity: 0.5;
}
.ctc .ctc-top { display: flex; align-items: baseline; justify-content: space-between; position: relative; }
.ctc .ctc-top .lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.66); }
.ctc .ctc-top .pct { font-family: var(--font-mono); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.ctc .meter { margin-top: 10px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.16); overflow: hidden; position: relative; }
.ctc .meter i { display: block; height: 100%; width: 88%; border-radius: 999px; background: linear-gradient(90deg, #34d399, #86efac); animation: meterGrow 1.5s var(--ease) both; }
@keyframes meterGrow { from { width: 0; } to { width: 88%; } }
.ctc .ctc-foot { margin-top: 9px; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.7); display: flex; justify-content: space-between; }

.viz-legend { display: flex; gap: 16px; margin-top: 18px; position: relative; flex-wrap: wrap; }
.viz-legend .lg { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--slate); }
.viz-legend .sw { width: 9px; height: 9px; border-radius: 50%; }
.sw.h { background: var(--green); }
.sw.r { background: var(--amber); }
.sw.c { background: var(--slate-2); }

/* ==========================================================================
   KPI band
   ========================================================================== */
.kpi-band { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.kpi-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 30px; opacity: 0.5;
}
.kpi-inner { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
@media (min-width: 760px) { .kpi-inner { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 30px); border-top: 1px solid rgba(255,255,255,0.10); border-left: 1px solid rgba(255,255,255,0.10); }
.kpi:nth-child(1), .kpi:nth-child(2) { border-top: none; }
@media (min-width: 760px) { .kpi { border-top: none; } .kpi:first-child { border-left: none; } }
.kpi .num { font-family: var(--font-mono); font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.kpi .num .unit { color: #6EE7B7; font-size: 0.55em; margin-left: 2px; }
.kpi .lbl { margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,0.62); letter-spacing: 0.01em; }
.kpi .tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-family: var(--font-mono); font-size: 11px; }
.kpi .tag.save { color: #6EE7B7; }
.kpi .tag.fast { color: #7DD3FC; }

/* ==========================================================================
   Drivers — "where loans get stuck"
   ========================================================================== */
.drivers-grid { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .drivers-grid { grid-template-columns: 0.9fr 1.1fr; } }

.driver-list { display: flex; flex-direction: column; gap: 14px; }
.driver {
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.driver:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--hair-strong); }
.driver-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.driver-name { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 15.5px; }
.driver-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); flex: none; }
.driver-ic svg { width: 18px; height: 18px; }
.driver-weight { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.driver-bar { margin-top: 14px; height: 7px; border-radius: 999px; background: var(--ink-soft); overflow: hidden; }
.driver-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green), #34D399); transition: width 1.1s var(--ease); }
.driver.d2 .driver-ic { background: var(--amber-tint); color: var(--amber); }
.driver.d2 .driver-bar i { background: linear-gradient(90deg, var(--amber), #F5A742); }
.driver.d3 .driver-ic { background: var(--blue-tint); color: var(--blue); }
.driver.d3 .driver-bar i { background: linear-gradient(90deg, var(--blue), #60A5FA); }
.driver.d4 .driver-ic { background: #F2ECFE; color: #6d28d9; }
.driver.d4 .driver-bar i { background: linear-gradient(90deg, #6d28d9, #A78BFA); }
.driver-desc { margin-top: 10px; font-size: 13.5px; color: var(--slate); }

.drivers-note {
  align-self: stretch;
  background: linear-gradient(180deg, var(--surface), #FBFCF8);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.drivers-note h3 { font-size: 23px; }
.drivers-note p { margin-top: 14px; color: var(--slate); font-size: 15.5px; }
.attrib-ring { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.ring-wrap { position: relative; width: 132px; height: 132px; flex: none; }
.ring-wrap svg { transform: rotate(-90deg); width: 132px; height: 132px; }
.ring-track { fill: none; stroke: var(--hair); stroke-width: 11; }
.ring-fill { fill: none; stroke: var(--green); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray 1.4s var(--ease); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label .score { font-family: var(--font-mono); font-size: 28px; font-weight: 500; color: var(--ink); line-height: 1; }
.ring-label .of { font-family: var(--font-mono); font-size: 11px; color: var(--slate); margin-top: 2px; }
.ring-legend { display: flex; flex-direction: column; gap: 10px; }
.ring-legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--slate); }
.ring-legend .k { font-family: var(--font-mono); color: var(--ink); font-size: 13px; margin-left: auto; }
.ring-legend .d { width: 9px; height: 9px; border-radius: 3px; flex: none; }

/* ==========================================================================
   Steps: extract -> verify -> close
   ========================================================================== */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--hair);
  border-radius: var(--radius-lg); padding: 30px 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-n { font-family: var(--font-mono); font-size: 12px; color: var(--green); letter-spacing: 0.1em; }
.step-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin: 16px 0 20px; background: var(--green-tint); color: var(--green); }
.step-ic svg { width: 24px; height: 24px; }
.step h3 { font-size: 21px; }
.step p { margin-top: 12px; color: var(--slate); font-size: 14.5px; }
@media (min-width: 800px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 52px; right: -12px; width: 24px; height: 1px;
    background: var(--hair-strong); z-index: 2;
  }
}

/* ==========================================================================
   Product tour (screenshots)
   ========================================================================== */
.tour { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
.shot-row { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .shot-row { grid-template-columns: 1fr 1.25fr; }
  .shot-row.reverse { grid-template-columns: 1.25fr 1fr; }
  .shot-row.reverse .shot-copy { order: 2; }
}
.shot-copy .eyebrow { margin-bottom: 14px; }
.shot-copy h3 { font-size: clamp(24px, 3vw, 33px); }
.shot-copy p { margin-top: 16px; color: var(--slate); font-size: 16px; }
.shot-copy .shot-feats { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.shot-feats li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.shot-feats svg { width: 19px; height: 19px; color: var(--green); flex: none; margin-top: 1px; }

.browser {
  border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #FBFCF8; border-bottom: 1px solid var(--hair); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--hair-strong); }
.browser-url {
  margin-left: 8px; flex: 1; max-width: 340px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--slate);
  background: var(--paper); border: 1px solid var(--hair); border-radius: 7px;
  padding: 5px 12px; display: inline-flex; align-items: center; gap: 7px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser-url svg { width: 11px; height: 11px; color: var(--green); flex: none; }
.browser img { width: 100%; display: block; }
.shot-cap { margin-top: 14px; font-size: 13px; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.shot-cap svg { width: 14px; height: 14px; color: var(--slate-2); flex: none; }

/* ==========================================================================
   Feature grid
   ========================================================================== */
.features { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); padding: 30px 28px; transition: background 0.3s; }
.feature:hover { background: #FBFCF8; }
.feature-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); margin-bottom: 18px; }
.feature-ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; }
.feature p { margin-top: 10px; color: var(--slate); font-size: 14.5px; }

/* ==========================================================================
   Explainable / auditable band
   ========================================================================== */
.explain { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.explain-inner { display: grid; gap: clamp(32px, 5vw, 60px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .explain-inner { grid-template-columns: 1fr 0.85fr; } }
.explain .eyebrow { color: #6EE7B7; }
.explain .eyebrow::before { background: #6EE7B7; }
.explain h2 { font-size: clamp(28px, 4vw, 43px); margin-top: 16px; }
.explain p { margin-top: 18px; color: rgba(255,255,255,0.68); font-size: 17px; max-width: 520px; }
.explain-points { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.explain-points li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,0.85); }
.explain-points svg { width: 20px; height: 20px; color: #6EE7B7; flex: none; margin-top: 1px; }

.explain-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(8px); }
.explain-card .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.explain-card .head .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.explain-card .head .s { font-family: var(--font-mono); font-size: 22px; color: #6EE7B7; }
.explain-card .row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.09); gap: 10px; }
.explain-card .row:last-child { border-bottom: none; }
.explain-card .row .name { font-size: 13.5px; color: rgba(255,255,255,0.9); display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.explain-card .row .name .dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.explain-card .row .src { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.55); white-space: nowrap; }
.explain-card .row .wt { font-family: var(--font-mono); font-size: 13px; color: #fff; white-space: nowrap; }

/* ==========================================================================
   Tech chips
   ========================================================================== */
.tech { text-align: center; }
.tech .section-head { margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.chip {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hair);
  padding: 9px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--green); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #0a3021 0%, #0e5236 46%, var(--green) 100%);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(40px, 6vw, 76px);
  color: #fff;
  box-shadow: 0 40px 90px -40px rgba(14,82,54,0.7);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100% 30px;
  -webkit-mask-image: radial-gradient(600px 400px at 85% 20%, #000, transparent 75%);
  mask-image: radial-gradient(600px 400px at 85% 20%, #000, transparent 75%);
}
.cta-card .inner { position: relative; z-index: 1; max-width: 660px; }
.cta-card h2 { font-size: clamp(28px, 4.4vw, 46px); }
.cta-card p { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,0.82); }
.cta-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.cta-card .btn-primary { background: #fff; color: var(--green-hover); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.4); }
.cta-card .btn-primary:hover { background: #F0FDF4; }
.cta-card .btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); color: #fff; box-shadow: none; }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--hair); background: var(--surface); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-block: clamp(48px, 6vw, 72px); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--slate); font-size: 14.5px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate-2); font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--slate); font-size: 14.5px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--hair); padding-block: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.credit { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; color: var(--slate); }
.bs-lockup {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 500; color: var(--ink);
  padding: 6px 12px; border: 1px solid var(--hair); border-radius: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.bs-lockup:hover { border-color: var(--green); transform: translateY(-1px); }
.bs-lockup .bs { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; }
.credit .tag { color: var(--slate); }
.footer-note { font-size: 13px; color: var(--slate-2); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.page-hero { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(20px, 3vw, 32px); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 56px); max-width: 13ch; }
.page-hero p { margin-top: 20px; color: var(--slate); font-size: clamp(16px, 1.5vw, 19px); max-width: 560px; }

.contact-grid { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: 1fr; align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr 0.85fr; } }

.form-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field label .req { color: var(--green); }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hair-strong); border-radius: 11px;
  padding: 13px 15px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--surface); box-shadow: 0 0 0 4px var(--green-ring); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-card .btn-primary { width: 100%; margin-top: 4px; }
.form-reassure { margin-top: 16px; font-size: 13px; color: var(--slate); display: flex; align-items: center; gap: 8px; justify-content: center; text-align: center; }
.form-reassure svg { width: 14px; height: 14px; color: var(--green); flex: none; }

.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.aside-card h3 { font-size: 18px; margin-bottom: 6px; }
.aside-card p { color: var(--slate); font-size: 14px; }
.aside-card a.link { color: var(--green); font-weight: 600; word-break: break-word; }
.aside-card a.link:hover { color: var(--green-hover); text-decoration: underline; }
.aside-contact { display: flex; align-items: center; gap: 13px; margin-top: 14px; }
.aside-contact .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); flex: none; }
.aside-contact .ic svg { width: 19px; height: 19px; }
.aside-contact .meta .k { font-size: 12px; color: var(--slate); }
.aside-contact .meta .v { font-size: 14.5px; font-weight: 600; }
.aside-facts { display: flex; flex-direction: column; gap: 14px; }
.aside-facts li { display: flex; gap: 11px; font-size: 14px; color: var(--slate); align-items: flex-start; }
.aside-facts svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 1px; }

/* ==========================================================================
   Thank-you page
   ========================================================================== */
.thanks { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: clamp(64px, 10vw, 120px); }
.thanks-inner { max-width: 520px; }
.success-badge { width: 84px; height: 84px; margin: 0 auto 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green); border: 1px solid rgba(21,128,61,0.2); position: relative; }
.success-badge::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--green-ring); animation: pulse-ring 2.8s var(--ease) infinite; }
.success-badge svg { width: 40px; height: 40px; }
.thanks h1 { font-size: clamp(30px, 4.6vw, 46px); }
.thanks p { margin-top: 18px; color: var(--slate); font-size: clamp(16px, 1.6vw, 18px); }
.thanks-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.thanks-email { margin-top: 24px; font-size: 14px; color: var(--slate); }
.thanks-email a { color: var(--green); font-weight: 600; }
.thanks-email a:hover { text-decoration: underline; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .doc .scan, .pulse-dot span:last-child, .success-badge::after, .viz-live .dot, .ctc .meter i { animation: none !important; }
  .ctc .meter i { width: 88% !important; }
}
