:root {
  --paper: #fbfaf6;
  --paper-warm: #f5f1e8;
  --ink: #111111;
  --ink-soft: #292622;
  --line: #151515;
  --line-soft: rgba(17, 17, 17, 0.18);
  --green: #003c2a;
  --green-deep: #00291d;
  --orange: #d74708;
  --gold: #c98722;
  --gold-bright: #e2aa43;
  --muted: #59544b;
  --white: #ffffff;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
  --container: 1480px;
  --panel-alpha: rgba(255, 255, 255, 0.9);
  --bg-panel: #ffffff;
  --bg-input: #ffffff;
  --text-primary: var(--ink);
  --text-secondary: #25231f;
  --text-muted: var(--muted);
  --ember: var(--orange);
  --ember-text: #a83c07;   /* ember as TEXT — #d74708 is 4.19:1 on paper, fails AA */
  --gold-text: #8a5a12;    /* gold as TEXT — gold-bright fails AA on paper */
  --success: var(--gold-bright);
  --ornament: var(--gold);
  --line-bright: var(--line);
  --inner-bg: var(--paper-warm);
}

[data-theme="light"] {
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

body::after {
  content: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: clamp(78px, 8vw, 122px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 48px);
  padding: 0 clamp(48px, 6vw, 88px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  height: 100%;
}

.brand-lockup {
  width: clamp(210px, 18vw, 306px);
  height: auto;
  object-fit: contain;
}

.brand-mark,
.brand-word,
.brand-word em {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 52px);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.72vw, 13px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--ember-text); }
.nav-cta {
  padding: clamp(14px, 1.4vw, 20px) clamp(22px, 2.2vw, 34px);
  color: var(--white);
  border: 1px solid var(--green-deep);
  background: var(--green);
  transition: background 160ms ease, transform 160ms ease;
}

.nav-cta:hover,
.button-primary:hover {
  color: var(--white);
  background: var(--green-deep);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 86px;
  padding: 6px 8px;
  color: var(--text-secondary);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--line-bright);
}

.theme-toggle-track {
  position: relative;
  width: 32px;
  height: 16px;
  background: var(--bg-input);
  border: 1px solid var(--line-bright);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: var(--ember);
  transition: transform 160ms ease;
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(16px);
}

.theme-toggle-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero,
.section {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  width: min(var(--container), calc(100% - clamp(110px, 11vw, 170px)));
  min-height: clamp(430px, 38vw, 590px);
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(540px, 1fr);
  gap: clamp(44px, 5.4vw, 86px);
  align-items: center;
  padding: clamp(44px, 5vw, 76px) 0 clamp(22px, 2.2vw, 34px);
  position: relative;
}

.hero-copy,
.workflow-panel {
  z-index: 2;
}

.mono-label {
  margin: 0 0 22px;
  color: var(--ember-text);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 16px);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}

h1 {
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(62px, 6.2vw, 116px);
  line-height: 0.9;
}

.hero-lede {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(48px, 4.8vw, 58px);
  padding: 14px clamp(22px, 2vw, 32px);
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.8vw, 13px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.button-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green-deep);
}

.button-secondary {
  color: var(--ink);
  border-color: transparent;
  background: transparent;
}

.button-secondary::after,
.button-primary::after {
  content: "›";
  margin-left: 18px;
  color: var(--orange);
  font-size: 18px;
  line-height: 0;
}

.button-primary::after {
  color: var(--white);
}

.hero-rule {
  display: block;
  width: 114px;
  height: 4px;
  margin-bottom: 30px;
  background: var(--orange);
  border-radius: 2px;
}

.workflow-panel {
  border: 1px solid rgba(17, 17, 17, 0.72);
  background: transparent;
  box-shadow: none;
  position: relative;
  overflow: visible;
  min-height: clamp(335px, 34vw, 488px);
}

.workflow-panel::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 0;
  border: 1px solid rgba(17, 17, 17, 0.58);
  pointer-events: none;
}

.workflow-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 50%, rgba(17, 17, 17, 0.32) 50% calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, transparent 0 50%, rgba(17, 17, 17, 0.22) 50% calc(50% + 1px), transparent calc(50% + 1px));
  opacity: 1;
}

.workflow-map {
  position: relative;
  min-height: clamp(335px, 34vw, 488px);
  padding: clamp(16px, 2vw, 26px);
  overflow: hidden;
}

.node {
  position: absolute;
  z-index: 4;
  width: clamp(188px, 18vw, 260px);
  min-height: clamp(62px, 6vw, 80px);
  display: grid;
  grid-template-columns: clamp(40px, 4.2vw, 52px) 1fr;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  padding: clamp(12px, 1.2vw, 16px) clamp(15px, 1.7vw, 24px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 12px 22px rgba(17, 17, 17, 0.06);
}

.node-icon,
.module-card span,
.trust-grid span,
.pricing-grid span {
  color: var(--ember-text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.node h2,
.node p {
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.node h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(10px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.node-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(38px, 4vw, 54px);
  height: clamp(38px, 4vw, 54px);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #fff;
  border: 1px solid rgba(99, 58, 4, 0.2);
}

.node-icon svg,
.benefit-icon svg {
  width: 68%;
  height: 68%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.node-icon svg {
  color: #fff;
}

.node-review {
  top: 21.5%;
  right: 4%;
}

.node-vendor { top: 21.5%; left: 4%; }
.node-learn { left: 4%; bottom: 17.5%; }
.node-audit { right: 4%; bottom: 17.5%; }
.node-proof {
  left: 50%;
  bottom: 1.5%;
  width: clamp(170px, 17vw, 238px);
  transform: translateX(-50%);
  border-color: var(--line);
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: clamp(132px, 14.5vw, 204px);
  height: clamp(132px, 14.5vw, 204px);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow:
    0 0 0 clamp(8px, 0.8vw, 12px) #fff,
    0 0 0 clamp(10px, 1vw, 15px) var(--line),
    0 0 0 clamp(18px, 1.8vw, 28px) #fff,
    0 0 0 clamp(19px, 1.9vw, 30px) var(--line);
}

.hub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.connector {
  position: absolute;
  z-index: 2;
  height: clamp(7px, 0.82vw, 12px);
  background: var(--gold);
  transform-origin: left center;
}

.c1 { top: 36%; left: 30%; width: 20%; background: linear-gradient(90deg, var(--gold), var(--green), var(--orange)); }
.c2 { top: 36%; right: 30%; width: 20%; background: linear-gradient(90deg, var(--orange), var(--green), var(--gold)); }
.c3 { left: 30%; bottom: 30%; width: 20%; background: var(--green); }
.c4 { right: 30%; bottom: 30%; width: 20%; background: var(--green); }
.c5 { left: 50%; bottom: 13.5%; width: 12%; transform: translateX(-50%) rotate(90deg); background: var(--gold); }

.diagram-line {
  position: absolute;
  z-index: 1;
  background: var(--line);
  opacity: 0.38;
}

.h-top { display: none; }
.h-mid { top: 50%; left: -8%; right: -8%; height: 1px; }
.h-low { display: none; }
.v-left { display: none; }
.v-mid-a { top: 0; bottom: 0; left: 48.5%; width: 1px; }
.v-mid-b { top: 0; bottom: 0; left: 51.5%; width: 1px; }
.v-right { display: none; }

.benefit-rail {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 clamp(80px, 7vw, 145px);
  background: var(--green);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(226, 170, 67, 0.36), inset 0 -1px 0 rgba(226, 170, 67, 0.28);
}

.benefit-rail article {
  display: grid;
  grid-template-columns: clamp(48px, 4.5vw, 70px) 1fr;
  gap: clamp(16px, 1.7vw, 26px);
  align-items: center;
  min-height: clamp(116px, 10vw, 154px);
  padding: clamp(22px, 2vw, 34px) clamp(18px, 3vw, 56px);
  background: transparent;
  border-right: 1px solid rgba(226, 170, 67, 0.6);
}

.benefit-rail article:last-child { border-right: 0; }

.benefit-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(48px, 4.5vw, 66px);
  height: clamp(48px, 4.5vw, 66px);
  color: var(--gold-bright);
  border: 0;
  font-family: var(--font-mono);
  font-size: 11px;
}

.benefit-rail h2 {
  font-family: var(--font-mono);
  color: #fff;
  font-size: clamp(10px, 0.85vw, 13px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.benefit-rail p {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.4;
}

.benefit-icon svg {
  width: 84%;
  height: 84%;
  stroke-width: 2.2;
}

.brand-line {
  width: min(var(--container), calc(100% - 40px));
  margin: 22px auto 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 15px);
  letter-spacing: 0.34em;
  text-align: center;
  text-transform: uppercase;
  position: relative;
}

.brand-line::before,
.brand-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(28vw, 410px);
  height: 1px;
  background: var(--line);
}

.brand-line::before { right: calc(50% + 280px); }
.brand-line::after { left: calc(50% + 280px); }

.ornament {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
}

.ornament-top-left {
  left: 0;
  top: clamp(120px, 13vw, 138px);
  width: 126px;
  height: 126px;
  background:
    linear-gradient(var(--green), var(--green)) 0 0 / 48px 18px no-repeat;
}

.ornament-top-left::before {
  display: none;
}

.ornament-top-left::after {
  display: none;
}

.ornament-top-right {
  right: 0;
  top: 0;
  width: 96px;
  height: 150px;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 122px / 76px 18px no-repeat;
}

.ornament-top-right::before {
  display: none;
}

.ornament-top-right::after {
  display: none;
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 920px;
}

.section-heading h2,
.learn-copy h2,
.buyer-card h2,
.pricing h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.section-heading p:not(.mono-label),
.learn-copy p,
.buyer-card p {
  color: var(--text-secondary);
  font-size: 17px;
}

.problem-grid,
.buyers,
.learn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.problem-stack,
.buyer-card,
.learn-card,
.trust-grid article,
.module-card,
.pricing,
.contact-form {
  background: rgba(17, 17, 20, 0.92);
  background: var(--panel-alpha);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ornament) 22%, transparent);
}

.problem-stack,
.buyer-card,
.learn-card {
  padding: 28px;
}

.problem-stack h3 {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.problem-stack ul,
.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.problem-stack li,
.check-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  color: var(--text-secondary);
  border-top: 1px solid var(--line);
}

.problem-stack li span,
.check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  flex: 0 0 auto;
  background: var(--ember);
}

.after li span,
.check-list li::before {
  background: var(--ornament);
}

.model-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.rail-item {
  min-height: 140px;
  padding: 22px;
  background: var(--bg-panel);
  border-top: 2px solid var(--ornament);
}

.rail-item span {
  color: var(--ember-text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rail-item strong {
  display: block;
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.25;
}

.module-grid,
.trust-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.module-card,
.trust-grid article {
  padding: 24px;
}

.module-card h3,
.trust-grid h3 {
  margin: 14px 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.module-card p,
.trust-grid p {
  margin: 0;
  color: var(--text-secondary);
}

.learn {
  align-items: center;
}

.learn-card {
  border-top-color: var(--ember);
}

.learn-card h3 {
  margin: 8px 0 14px;
  font-size: 27px;
}

.quiz {
  margin-top: 22px;
  padding: 16px;
  background: #0d1012;
  background: var(--inner-bg);
  border: 1px solid var(--line);
}

.answer {
  margin-top: 10px;
  padding: 10px;
  color: var(--gold-text);
  border: 1px solid color-mix(in srgb, var(--success) 40%, transparent);
}

.answer.muted {
  color: var(--text-muted);
  border-color: var(--line);
}

.pricing {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 28px;
  padding: 30px;
}

.pricing-grid div {
  padding: 18px;
  background: #0d1012;
  background: var(--inner-bg);
  border: 1px solid var(--line);
}

.pricing-grid strong {
  display: block;
  margin-top: 12px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 26px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.full { grid-column: 1 / -1; }

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  font: inherit;
}

textarea { resize: vertical; }

@media (max-width: 980px) {
  .site-header {
    height: auto;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    padding: 18px 24px;
  }

  .brand {
    height: auto;
    padding-right: 0;
    border-right: 0;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    padding-bottom: 0;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .nav-cta {
    padding: 12px 18px;
  }

  .hero {
    width: min(var(--container), calc(100% - 48px));
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
  }

  .hero-copy {
    max-width: 720px;
  }

  .workflow-panel {
    width: min(100%, 720px);
    justify-self: center;
  }

  .theme-toggle {
    position: absolute;
    top: 16px;
    right: 18px;
  }

  .problem-grid,
  .buyers,
  .learn,
  .pricing {
    grid-template-columns: 1fr;
  }

  .model-rail,
  .module-grid,
  .trust-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  body::after {
    content: none;
  }

  .hero {
    grid-template-columns: 1fr;
    width: min(100% - 34px, var(--container));
    padding-top: 40px;
  }

  .workflow-map {
    min-height: auto;
    display: grid;
    gap: 12px;
  }

  .workflow-panel {
    min-height: auto;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
  }

  .workflow-panel::after {
    inset: 12px;
  }

  .node {
    position: static;
    width: auto;
    transform: none;
    min-height: 70px;
  }

  .connector,
  .diagram-line,
  .hub {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    width: min(100% - 68px, var(--container));
  }

  .benefit-rail,
  .model-rail,
  .module-grid,
  .trust-grid,
  .pricing-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .brand-lockup {
    width: min(270px, 82vw);
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: center;
    gap: 12px;
  }

  .nav-cta {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(240px, 100%);
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .mono-label {
    letter-spacing: 0.22em;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .benefit-rail {
    padding: 0 18px;
  }

  .benefit-rail article {
    border-right: 0;
    border-bottom: 1px solid rgba(226, 170, 67, 0.48);
  }

  .benefit-rail article:last-child {
    border-bottom: 0;
  }

  .brand-line {
    width: min(100% - 34px, var(--container));
    line-height: 1.7;
  }

  .brand-line::before,
  .brand-line::after {
    display: none;
  }
}

/* Thanks / confirmation section (Web3Forms redirect target, S8b productionization). */
.section.thanks { text-align: center; }
.section.thanks .section-heading { margin-left: auto; margin-right: auto; }
.thanks-lede {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--text-secondary);
  line-height: 1.7;
}
