:root {
  --ink: #27273e;
  --ink-900: #171727;
  --ink-700: #444463;
  --flame: #e74325;
  --ember: #f85a36;
  --flame-50: #fff4f1;
  --flame-100: #ffe6df;
  --mist: #f5f5fa;
  --text: #34344f;
  --muted: #6d6d93;
  --line: #e4e4ef;
  --green: #12805c;
  --green-bg: #e7f6ef;
  --amber: #a35b00;
  --amber-bg: #fff3dc;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(23, 23, 39, .05), 0 14px 36px -14px rgba(23, 23, 39, .22);
  --head: "Montserrat", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--flame); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.12; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--flame); }
.section { padding: 96px 0; }
.section.mist { background: var(--mist); }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.3vw, 2.5rem); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 10px; font: 600 1rem var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--flame); color: #fff; box-shadow: 0 8px 18px -8px rgba(231, 67, 37, .7); }
.btn-primary:hover { background: #c1371d; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.header .logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--flame); }

/* Hero */
.hero { background: var(--mist); padding: 72px 0 104px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -180px; top: -220px; width: 680px; height: 680px; background: radial-gradient(closest-side, rgba(248, 90, 54, .14), transparent); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); margin: 16px 0 20px; }
.hero h1 span { color: var(--flame); display: block; }
.hero .tag { font-family: var(--head); font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 33em; margin-top: 10px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stage-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: .86rem; color: var(--muted); }
.stage-line span { display: inline-flex; align-items: center; gap: 7px; }
.stage-line span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--flame); }

/* Pipeline mockup */
.mock { position: relative; display: grid; gap: 12px; }
.demo-tag { position: absolute; top: -30px; right: 0; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; }
.card-row { display: flex; align-items: center; gap: 14px; }
.card .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ic.doc { background: var(--mist); color: var(--ink); }
.ic.draft { background: var(--flame-50); color: var(--flame); }
.ic.proof { background: var(--green-bg); color: var(--green); }
.card b { display: block; color: var(--ink); font-size: .93rem; }
.card small { color: var(--muted); font-size: .8rem; }
.card .step { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pill { margin-left: auto; font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pill.wait { background: var(--amber-bg); color: var(--amber); }
.pill.ok { background: var(--green-bg); color: var(--green); }
.card.focus { border-color: var(--flame-100); margin-left: 28px; }
.approve { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); }
.approve .who { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.approve .go { margin-left: auto; background: var(--flame); color: #fff; font-weight: 600; padding: 7px 12px; border-radius: 8px; }
.card.proofcard { margin-left: 56px; }
.ledger { margin-top: 12px; display: grid; gap: 6px; font-size: .8rem; }
.ledger div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 7px 10px; border-radius: 8px; background: var(--mist); }
.ledger span:nth-child(2) { color: var(--muted); }
.ledger .ok { color: var(--green); font-weight: 700; }
.ledger .pend { color: var(--amber); font-weight: 700; }
.export { display: flex; gap: 6px; margin-top: 12px; }
.export span { font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); }
.connector { position: absolute; left: 20px; top: 40px; bottom: 60px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 10px); z-index: -1; }

/* Pain */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.pain q { display: block; font-family: var(--head); font-weight: 600; font-size: 1.12rem; color: var(--ink); line-height: 1.35; quotes: "\201C" "\201D"; }
.pain p { color: var(--muted); margin-top: 10px; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.flow > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.flow > div::before { counter-increment: s; content: "0" counter(s); font-family: var(--head); font-weight: 700; font-size: .85rem; color: var(--flame); display: block; margin-bottom: 14px; }
.flow > div.gate { background: var(--ink); border-color: var(--ink); }
.flow > div.gate h3 { color: #fff; }
.flow > div.gate p { color: #c9c9de; }
.flow > div.gate::after { content: "Required"; position: absolute; top: 22px; right: 20px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--flame); color: #fff; padding: 3px 8px; border-radius: 999px; }
.flow h3 { font-size: 1.08rem; margin-bottom: 8px; }
.flow p { color: var(--muted); font-size: .95rem; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.trust div { background: #fff; padding: 20px 24px; display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.trust b { color: var(--ink); }
.trust svg { flex: none; color: var(--flame); margin-top: 2px; }

/* Fit */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.panel.dark { background: var(--ink); border-color: var(--ink); color: #c9c9de; }
.panel.dark h3 { color: #fff; }
.panel h3 { font-size: 1.25rem; margin-bottom: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: var(--flame-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23e74325' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.panel.dark .checks li::before { background-color: rgba(255, 255, 255, .1); }
.checks b { color: var(--ink); }
.panel.dark .checks b { color: #fff; }
.panel .meta { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }
.not { margin-top: 20px; padding: 18px 22px; border-radius: 14px; background: #fff; border: 1px dashed var(--line); font-size: .93rem; color: var(--muted); }
.not b { color: var(--ink); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--flame); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* CTA + form */
.cta { background: var(--ink); color: #c9c9de; border-radius: 26px; padding: 56px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 440px; height: 440px; left: -160px; bottom: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(248, 90, 54, .35), transparent); pointer-events: none; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.1vw, 2.4rem); margin: 10px 0 14px; }
.cta .eyebrow { color: var(--ember); }
.cta .alt { margin-top: 24px; }
.form { background: #fff; border-radius: 18px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 13px; font: 500 .95rem var(--font); border: 1px solid var(--line); border-radius: 9px; background: var(--mist); color: var(--ink); resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ember); outline-offset: 0; border-color: transparent; background: #fff; }
.form .consent { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); font-weight: 400; }
.form .consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--flame); }
.form .btn { width: 100%; }
.feedback { font-size: .9rem; min-height: 1.2em; }
.feedback.ok { color: var(--green); font-weight: 600; }
.feedback.err { color: #b42318; }

/* Footer */
.footer { padding: 48px 0 40px; font-size: .88rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer img { height: 30px; width: auto; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--flame); }
.footer .bottom { width: 100%; border-top: 1px solid var(--line); padding-top: 20px; font-size: .8rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .hero .wrap, .cta, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .mock { max-width: 540px; margin-top: 30px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .grid-3, .trust { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 72px 0; }
  .header .logo img { height: 30px; }
  .hero .ctas .btn { width: 100%; }
  .flow { grid-template-columns: 1fr; }
  .card.focus { margin-left: 0; }
  .card.proofcard { margin-left: 0; }
  .connector { display: none; }
  .card .pill { display: none; }
  .approve { font-size: .78rem; }
  .approve .go { white-space: nowrap; }
  .demo-tag { position: static; }
  .cta { padding: 32px 20px; border-radius: 22px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .panel, .pain { padding: 24px; }
}
