:root {
  --ink: #17221e;
  --forest: #102c28;
  --forest-2: #173c35;
  --ivory: #f5f0e7;
  --paper: #fffdf8;
  --copper: #a85431;
  --copper-dark: #75331d;
  --sage: #c9d8cb;
  --green: #2c7656;
  --red: #a13b32;
  --line: rgba(23, 34, 30, 0.18);
  --shadow: 0 24px 80px rgba(17, 38, 32, 0.14);
  --sans: "DM Sans", sans-serif;
  --serif: "Fraunces", serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; color: white; background: var(--forest); }
.skip-link:focus { top: 16px; }

.site-header {
  width: min(1380px, calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(168, 84, 49, .35); border-radius: 12px;
  color: var(--copper-dark); background: #ead9c6;
  font-family: var(--serif); font-size: 28px; font-weight: 700;
}
.brand strong { display: block; letter-spacing: .28em; font-size: 15px; line-height: 1; }
.brand small { display: block; margin-top: 7px; color: #65716c; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
nav a { text-decoration: none; }
nav a:not(.nav-cta):hover { color: var(--copper-dark); }
.nav-cta { padding: 11px 18px; color: white; background: var(--forest); border-radius: 999px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 750px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
  align-items: center;
  gap: 7vw;
  padding: 100px max(48px, calc((100vw - 1380px) / 2));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-color: var(--ivory);
  background-image: linear-gradient(rgba(16,44,40,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(16,44,40,.045) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -170px; top: -230px;
  width: 760px; height: 760px; border: 1px solid rgba(168,84,49,.2); border-radius: 50%;
  box-shadow: 0 0 0 84px rgba(245,240,231,.86), 0 0 0 85px rgba(168,84,49,.1);
}
.eyebrow { margin: 0 0 22px; color: var(--copper-dark); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow.light { color: #f0b08d; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
h1 { max-width: 820px; margin: 0; font-size: clamp(56px, 6vw, 92px); }
h1 em { color: var(--copper); font-weight: 600; }
.hero-lead { max-width: 720px; margin: 32px 0 0; color: #46534e; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; }
.hero-actions { display: flex; gap: 13px; margin-top: 38px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border: 1px solid transparent; border-radius: 4px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #e4a37c; outline-offset: 3px; }
.button-primary { color: white; background: var(--copper); box-shadow: 0 12px 26px rgba(117,51,29,.2); }
.button-primary:hover { background: var(--copper-dark); }
.button-secondary { color: var(--forest); border-color: var(--forest); background: rgba(255,253,248,.5); }
.hero-note { margin-top: 16px; color: #6f7773; font-size: 13px; }

.proof-window { position: relative; overflow: hidden; color: #eaf2ed; background: #0d211e; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; box-shadow: var(--shadow); transform: rotate(1.1deg); }
.window-bar { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 17px; color: #9ab0a7; background: #071613; border-bottom: 1px solid rgba(255,255,255,.1); }
.window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #93513c; }
.window-bar span:nth-child(2) { background: #b59a51; }
.window-bar span:nth-child(3) { background: #4e8269; }
.window-bar code { margin-left: auto; font-family: var(--mono); font-size: 11px; }
.proof-body { padding: clamp(28px, 4vw, 52px); }
.proof-status { display: flex; align-items: center; gap: 12px; color: #8be0af; font-size: 13px; letter-spacing: .13em; }
.status-dot, .result-badge span { width: 10px; height: 10px; border-radius: 50%; background: #5fd291; box-shadow: 0 0 0 5px rgba(95,210,145,.12); }
.mono-label { margin: 30px 0 8px; color: #839991; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.hash { font-family: var(--mono); font-size: clamp(20px, 2.2vw, 31px); color: white; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 38px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.proof-grid div { min-height: 96px; padding: 18px; background: #102a26; }
.proof-grid small { display: block; color: #84a097; font-size: 10px; letter-spacing: .15em; }
.proof-grid strong { display: block; margin-top: 8px; font-size: 14px; }
.proof-foot { padding: 14px 22px; color: #aebbb6; background: #071613; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.trust-strip { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; color: var(--ivory); background: var(--forest); border-block: 1px solid #31534c; }
.trust-strip span { padding: 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.16); font-family: var(--mono); font-size: 12px; letter-spacing: .05em; }
.trust-strip span:last-child { border-right: 0; }

.section { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 124px 0; }
.section-heading { max-width: 950px; }
.section-heading.compact { max-width: 780px; }
h2 { margin: 0; font-size: clamp(44px, 5vw, 70px); }
.section-heading > p:last-child { max-width: 780px; margin-top: 24px; color: #53605b; font-size: 19px; }
.evidence-bridge { display: grid; grid-template-columns: .55fr 1.45fr; gap: 8vw; align-items: start; border-bottom: 1px solid var(--line); }
.bridge-label { position: sticky; top: 32px; padding-left: 22px; border-left: 3px solid var(--copper); }
.bridge-label .eyebrow { margin-bottom: 16px; }
.bridge-label code { color: #6a4a3c; font-family: var(--mono); font-size: 13px; }
.bridge-copy h2 { max-width: 820px; font-size: clamp(42px, 4.4vw, 64px); }
.bridge-copy > p { max-width: 880px; margin: 28px 0 0; color: #4f5c57; font-size: 19px; }
.bridge-boundary { padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); }
.bridge-boundary strong { color: var(--copper-dark); }
.problem-section .section-heading > p:last-child { max-width: 900px; }
.problem-section { border-bottom: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 70px; background: var(--line); border: 1px solid var(--line); }
.problem-grid article { min-height: 310px; padding: 38px; background: var(--paper); }
.index { font-family: var(--mono); color: var(--copper); font-size: 12px; }
h3 { margin: 22px 0 12px; font-size: 24px; line-height: 1.2; }
.problem-grid p { color: #596560; }

.flow-section { padding-bottom: 140px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; margin-top: 66px; }
.flow-step { min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; background: var(--paper); border: 1px solid var(--line); }
.flow-step span { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: auto; color: white; background: var(--copper); border-radius: 50%; font-family: var(--mono); font-size: 12px; }
.flow-step strong { font-size: 18px; }
.flow-step small { color: #6a746f; }
.flow i { align-self: center; color: var(--copper); font-style: normal; font-size: 22px; }

.trial-section { width: 100%; display: grid; grid-template-columns: 1fr 1.05fr; gap: 8vw; align-items: center; padding-inline: max(48px, calc((100vw - 1280px) / 2)); color: #eff7f2; background: var(--forest); }
.trial-copy h2 { max-width: 620px; }
.trial-copy > p:not(.eyebrow) { max-width: 630px; color: #c1d0c8; font-size: 18px; }
.trial-copy ul { margin: 30px 0 0; padding: 0; list-style: none; }
.trial-copy li { padding: 10px 0 10px 26px; position: relative; color: #dce7e1; }
.trial-copy li::before { content: "✓"; position: absolute; left: 0; color: #78c999; }
.trial-console { overflow: hidden; background: var(--paper); color: var(--ink); border: 1px solid #416058; box-shadow: 16px 16px 0 #091e1a; }
.console-head { display: flex; justify-content: space-between; padding: 14px 18px; color: #c8d8d0; background: #081b18; font-family: var(--mono); font-size: 11px; letter-spacing: .09em; }
.live-dot { color: #78d49d; }
.console-content { padding: clamp(24px, 4vw, 42px); }
.file-row { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); background: #f5f1e9; }
.file-icon { width: 46px; height: 46px; display: grid; place-items: center; color: white; background: var(--forest); font-family: var(--mono); font-size: 12px; }
.file-row strong, .file-row small { display: block; }
.file-row small { color: #6d7772; }
.button-seal { width: 100%; margin-top: 20px; color: white; background: var(--copper); }
.button-seal:disabled, .button-contact:disabled { opacity: .58; cursor: wait; transform: none; }
.console-status { min-height: 26px; margin: 14px 0 0; color: #68716d; font-size: 13px; }
.console-status.error, .form-status.error { color: var(--red); }
.seal-result { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.result-badge { display: flex; align-items: center; gap: 10px; color: var(--green); font-family: var(--mono); font-size: 12px; font-weight: 500; }
.seal-result dl { margin: 20px 0; }
.seal-result dl div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 15px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.seal-result dt { color: #66716c; font-size: 12px; text-transform: uppercase; }
.seal-result dd { min-width: 0; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.seal-result code { font-family: var(--mono); font-size: 12px; }
.result-links { display: flex; flex-wrap: wrap; gap: 18px; }
.result-links a { color: var(--copper-dark); font-size: 13px; font-weight: 700; }

.install-section { text-align: center; }
.install-section .section-heading { margin: 0 auto; }
.code-card { max-width: 930px; margin: 60px auto 0; overflow: hidden; text-align: left; color: #dceae3; background: #0d211e; box-shadow: var(--shadow); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.12); color: #9bb0a8; font-family: var(--mono); font-size: 12px; }
.code-head button { color: #e9f1ed; background: transparent; border: 0; cursor: pointer; }
pre { margin: 0; padding: 34px; overflow-x: auto; }
pre code { font-family: var(--mono); font-size: 14px; line-height: 1.8; }
.install-notes { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: 30px; color: #53605b; font-size: 14px; }
.distribution-note { max-width: 760px; margin: 20px auto 0; color: #65706c; font-size: 14px; line-height: 1.65; }
.commercial-model { max-width: 930px; display: grid; grid-template-columns: 210px 1fr; gap: 28px; margin: 42px auto 0; padding: 24px 28px; text-align: left; color: #e6efe9; background: var(--forest); }
.commercial-model strong { color: #f1b18d; font-family: var(--serif); font-size: 24px; }
.commercial-model span { color: #c7d4cd; }

.boundary-section { width: 100%; display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; padding-inline: max(48px, calc((100vw - 1280px) / 2)); background: #e8dfd1; border-block: 1px solid rgba(117,51,29,.18); }
.boundary-intro > p:last-child { color: #59635e; }
.boundary-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.boundary-columns h3 { margin-top: 0; }
.boundary-columns ul { padding-left: 20px; color: #52605a; }
.boundary-columns li { margin: 9px 0; }

.contact-section { width: 100%; display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; padding-inline: max(48px, calc((100vw - 1280px) / 2)); color: white; background: #161c19; }
.contact-copy p:not(.eyebrow) { color: #b9c3be; }
.contact-copy > a { color: #efad87; font-weight: 700; }
form { padding: 38px; color: var(--ink); background: var(--paper); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 700; }
label span { color: #78817d; font-weight: 400; }
input, textarea { width: 100%; margin-top: 7px; padding: 13px 14px; color: var(--ink); background: white; border: 1px solid #b9bdb9; border-radius: 0; }
textarea { resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 auto; }
.button-contact { width: 100%; color: white; background: var(--copper); }
.form-status { min-height: 24px; margin: 12px 0 0; font-size: 13px; }
.form-status.success { color: var(--green); }
.form-status.warning { color: var(--copper-dark); }

.faq-section { max-width: 980px; }
.faq-section details { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-section summary { cursor: pointer; font-size: 20px; font-weight: 700; }
.faq-section details p { max-width: 800px; color: #56635d; }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; padding: 42px max(48px, calc((100vw - 1380px) / 2)); color: #c2cec8; background: #081512; border-top: 1px solid #2d4942; }
.footer-brand { color: white; }
footer p { max-width: 600px; margin: 0; font-size: 12px; }
footer > div:last-child { display: flex; gap: 22px; font-size: 13px; }

.reveal { animation: reveal-up .75s both; }
.proof-window.reveal { animation-delay: .14s; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { animation: none; } .button { transition: none; } }

@media (max-width: 980px) {
  .site-header { min-height: 74px; }
  nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 76px; }
  .proof-window { max-width: 700px; transform: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-grid article { min-height: auto; }
  .evidence-bridge { grid-template-columns: 1fr; gap: 44px; }
  .bridge-label { position: static; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow i { display: none; }
  .trial-section, .boundary-section, .contact-section { grid-template-columns: 1fr; }
  .trial-console { max-width: 720px; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header, .section { width: min(100% - 30px, 1280px); }
  .site-header nav { gap: 0; }
  .nav-cta { padding: 9px 13px; font-size: 12px; }
  .brand small { display: none; }
  .hero { padding: 62px 15px 70px; }
  .hero-actions { flex-direction: column; }
  .proof-body { padding: 24px 18px; }
  .proof-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip span { border-bottom: 1px solid rgba(255,255,255,.16); }
  .section { padding: 84px 0; }
  h1 { font-size: clamp(48px, 15vw, 68px); }
  h2 { font-size: clamp(38px, 12vw, 54px); }
  .problem-grid { margin-top: 42px; }
  .bridge-copy > p { font-size: 17px; }
  .flow { grid-template-columns: 1fr; margin-top: 42px; }
  .trial-section, .boundary-section, .contact-section { padding: 84px 15px; }
  .boundary-columns { grid-template-columns: 1fr; gap: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .commercial-model { grid-template-columns: 1fr; gap: 10px; }
  form { padding: 24px 18px; }
  pre { padding: 22px 16px; }
  pre code { font-size: 11px; }
  .install-notes { align-items: flex-start; flex-direction: column; gap: 10px; }
  footer { padding: 42px 15px; }
  footer > div:last-child { flex-wrap: wrap; }
}
