:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --surface: #ffffff;
  --surface-strong: #eaf2ee;
  --ink: #10261f;
  --ink-soft: #3f544c;
  --muted: #66766f;
  --line: #d7e2dc;
  --brand: #174f3e;
  --brand-strong: #0b3b2e;
  --brand-soft: #dcebe4;
  --accent: #b9e769;
  --accent-soft: #eaf9cf;
  --danger: #9f2d2d;
  --danger-soft: #fff0f0;
  --success: #17643e;
  --success-soft: #e9f7ef;
  --shadow: 0 18px 50px rgba(16, 38, 31, 0.09);
  --shadow-small: 0 8px 24px rgba(16, 38, 31, 0.08);
  --radius: 1.25rem;
  --radius-small: 0.75rem;
  --max-width: 74rem;
  --measure: 46rem;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1713;
  --bg-soft: #10261f;
  --surface: #142d25;
  --surface-strong: #1b3b31;
  --ink: #f4f8f6;
  --ink-soft: #cfddd7;
  --muted: #adbbb5;
  --line: #315247;
  --brand: #b9e769;
  --brand-strong: #d9f99d;
  --brand-soft: #1b3b31;
  --accent: #d9f99d;
  --accent-soft: #253f23;
  --danger: #ffb4b4;
  --danger-soft: #431d1d;
  --success: #a7efc6;
  --success-soft: #173c29;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1713;
    --bg-soft: #10261f;
    --surface: #142d25;
    --surface-strong: #1b3b31;
    --ink: #f4f8f6;
    --ink-soft: #cfddd7;
    --muted: #adbbb5;
    --line: #315247;
    --brand: #b9e769;
    --brand-strong: #d9f99d;
    --brand-soft: #1b3b31;
    --accent: #d9f99d;
    --accent-soft: #253f23;
    --danger: #ffb4b4;
    --danger-soft: #431d1d;
    --success: #a7efc6;
    --success-soft: #173c29;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --shadow-small: 0 8px 24px rgba(0, 0, 0, 0.28);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
.button {
  min-height: 2.75rem;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
}

h2 {
  max-width: 24ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.measure {
  max-width: var(--measure);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: var(--brand-strong);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.header-row {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.72rem;
  background: var(--brand-strong);
  color: var(--accent);
  font-size: 0.92rem;
  place-items: center;
}

.desktop-nav,
.header-actions {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a,
.nav-disclosure-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.78rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.nav-links a:hover,
.nav-disclosure-button:hover,
.nav-links a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--ink);
}

.nav-disclosure {
  position: relative;
}

.nav-disclosure-button svg {
  transition: transform 160ms ease;
}

.nav-disclosure-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-disclosure-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  display: grid;
  width: 21rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.nav-disclosure-panel[hidden] {
  display: none;
}

.nav-disclosure-panel a {
  display: block;
  padding: 0.7rem 0.75rem;
}

.nav-disclosure-panel small {
  display: block;
  color: var(--muted);
  font-weight: 450;
}

.icon-button {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}

.icon-button:hover {
  border-color: var(--brand);
  background: var(--bg-soft);
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-dialog {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: rgba(5, 18, 14, 0.58);
}

.mobile-dialog[hidden] {
  display: none;
}

.mobile-panel {
  width: min(100%, 28rem);
  height: 100%;
  margin-left: auto;
  padding: 1rem;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
}

.mobile-nav a {
  padding: 0.8rem;
  border-radius: 0.6rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.mobile-nav a:hover {
  background: var(--bg-soft);
}

.mobile-nav-label {
  margin: 1rem 0 0.25rem;
  padding-inline: 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--brand-strong);
  border-radius: 0.68rem;
  background: var(--brand-strong);
  color: #fff;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

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

.button.secondary:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.button.small {
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  content: "";
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 11vw, 8.75rem) 0 clamp(4rem, 9vw, 7rem);
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: -14rem;
  right: -14rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 68%);
  content: "";
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.hero-lede {
  max-width: 42rem;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.microcopy {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.ecosystem-map {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-node {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--bg-soft);
}

.map-node strong,
.map-node span {
  display: block;
}

.map-node span {
  color: var(--muted);
  font-size: 0.82rem;
}

.map-node.primary {
  border-color: var(--brand);
  background: var(--brand-strong);
  color: #fff;
}

.map-node.primary strong,
.map-node.primary span {
  color: inherit;
}

.section {
  padding: clamp(4.25rem, 8vw, 7rem) 0;
}

.section.alt {
  background: var(--bg-soft);
}

.section-header {
  display: grid;
  max-width: 52rem;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header.center h2 {
  margin-inline: auto;
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-kicker,
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status.live::before,
.status.active::before,
.status.developing::before {
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: currentcolor;
  content: "";
}

.status.developing {
  background: var(--accent-soft);
}

.numbered-card {
  counter-increment: step;
}

.numbered-card::before {
  display: block;
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  content: "0" counter(step);
}

.numbered-grid {
  counter-reset: step;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 750;
}

.link-arrow::after {
  content: "→";
}

.trust-bar {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-block: 1px solid var(--line);
  color: var(--ink-soft);
  text-align: center;
}

.trust-bar strong {
  display: block;
  color: var(--ink);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.prose h3 {
  margin-top: 2rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.callout {
  padding: 1.25rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--accent-soft);
}

.cta-band {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) + 0.25rem);
  background: var(--brand-strong);
  color: #fff;
}

.cta-band h2,
.cta-band p {
  color: inherit;
}

.cta-band .button {
  border-color: var(--accent);
  background: var(--accent);
  color: #10261f;
}

.cta-band .button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #fff;
}

.faq-list {
  display: grid;
  max-width: 52rem;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.faq-list summary {
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.faq-list details p {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field,
fieldset {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

label,
legend {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.required {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--bg);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}

[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.2em;
  margin: 0;
  color: var(--danger);
  font-size: 0.84rem;
}

.field-help,
.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.choice-grid {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 550;
}

.choice input {
  flex: 0 0 auto;
  width: 1.15rem;
  min-height: 1.15rem;
  margin-top: 0.25rem;
}

.form-success,
.form-error {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
}

.form-success.show,
.form-error.show {
  display: block;
}

.form-success {
  background: var(--success-soft);
  color: var(--success);
}

.form-error {
  background: var(--danger-soft);
  color: var(--danger);
}

[hidden] {
  display: none !important;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  max-width: 25rem;
}

.footer-brand p,
.footer-meta {
  color: var(--muted);
}

.footer-links {
  display: grid;
  gap: 1.5rem;
}

.footer-links h2 {
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.4rem;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 40rem) {
  .form-grid,
  .grid-2,
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 58rem) {
  .desktop-nav,
  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-actions {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 0.72fr) minmax(28rem, 1.28fr);
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: minmax(15rem, 1fr) minmax(28rem, 1.4fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .mobile-dialog,
  .theme-toggle,
  .site-footer,
  .button {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  a {
    color: #000;
  }
}
