:root {
  --ink: #112a24;
  --ink-soft: #27433b;
  --paper: #f6f2e7;
  --panel: #fffdf7;
  --line: #d9cdb8;
  --green: #2f6c58;
  --green-soft: #e6f0eb;
  --blue-soft: #e9eef5;
  --amber-soft: #f6e9d0;
  --sand-soft: #f2eee3;
  --rose-soft: #f2e3e0;
  --shadow: 0 22px 56px rgba(17, 42, 36, 0.12);
  --shell: min(100% - 40px, 1180px);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(47, 108, 88, 0.09), transparent 32%),
    linear-gradient(180deg, #fbf7ec, var(--paper));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 88px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(17, 42, 36, 0.09);
  background: rgba(18, 49, 41, 0.94);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 100%;
  max-width: 230px;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
}

.nav-links a,
.header-action {
  color: #f8f3e6;
  font-weight: 700;
}

.header-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(248, 243, 230, 0.34);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  justify-self: end;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.hero,
.page-hero {
  padding: 46px 0 30px;
}

.hero {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 40px;
  align-items: center;
}

.hero-visual,
.page-hero-grid img,
.visual-panel,
.form-panel,
.trust-grid article,
.pillar-card,
.audience-card,
.deployment-card,
.doc-card,
.stack-row,
.compare-table table,
.trust-module,
.intro-grid,
.cta-band,
.ecosystem-band,
.not-found-shell,
.ops-header,
.token-panel,
.panel,
.metric {
  border: 1px solid rgba(17, 42, 36, 0.10);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
}

.hero-copy,
.page-hero-grid,
.section-grid,
.split-visual,
.form-layout,
.ecosystem-band,
.cta-band {
  display: grid;
  gap: 28px;
}

.eyebrow,
.section-kicker,
.kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
dt,
strong {
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
ul,
ol,
dl {
  margin-top: 0;
}

h1 {
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.97;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
  margin-bottom: 14px;
}

h3 {
  font-size: 24px;
  line-height: 1.08;
  margin-bottom: 10px;
}

p,
li,
td,
th,
dd,
dt,
textarea,
input,
select {
  font-size: 18px;
  line-height: 1.55;
}

.hero-lede,
.wide-copy,
.intro-copy p,
.section-heading p {
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 850;
}

.btn.primary {
  color: #fff;
  background: var(--ink);
}

.btn.secondary {
  color: var(--ink);
  border: 1px solid rgba(17, 42, 36, 0.16);
  background: transparent;
}

.btn.full {
  width: 100%;
}

.text-link {
  color: var(--green);
  font-weight: 850;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-proof div {
  padding: 14px 16px;
  border: 1px solid rgba(17, 42, 36, 0.10);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.72);
}

.hero-proof dt {
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-proof dd {
  margin: 0;
  color: var(--ink-soft);
}

.trust-strip {
  padding: 14px 0 12px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-grid article,
.pillar-card,
.audience-card,
.deployment-card,
.doc-card,
.stack-row {
  padding: 20px;
}

.trust-grid span,
.pillar-card span,
.deployment-card span,
.doc-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  padding: 28px 0;
}

.section-alt {
  background: rgba(255, 251, 241, 0.6);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-grid,
.page-hero-grid,
.split-visual,
.form-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.intro-grid,
.cta-band,
.ecosystem-band {
  padding: 24px;
}

.pillar-grid,
.audience-grid,
.deployment-grid,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.deployment-card.large {
  min-height: 220px;
}

.structured-list,
.stack-list {
  padding: 0;
  list-style: none;
  margin: 0;
}

.structured-list li {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.boundary-mini {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.boundary-mini div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 42, 36, 0.10);
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
}

.stack-row span {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--ink);
  background: var(--green-soft);
  font-size: 20px;
  font-weight: 900;
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(17, 42, 36, 0.10);
}

.compare-table th {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-section {
  padding-bottom: 42px;
}

.form-copy,
.form-panel {
  padding: 26px;
}

.form-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.trust-module {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.trust-module p {
  color: var(--ink-soft);
}

.turnstile-slot {
  min-height: 74px;
  margin: 6px 0 16px;
}

.turnstile-slot:not(:empty) {
  display: flex;
  align-items: center;
}

.form-note,
.panel-note,
.footer-copy,
.not-found-shell p {
  color: var(--ink-soft);
}

.section-accent {
  background: linear-gradient(180deg, rgba(47, 108, 88, 0.05), rgba(201, 141, 55, 0.06));
}

.cta-band,
.ecosystem-band {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.ecosystem-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ecosystem-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(17, 42, 36, 0.12);
  border-radius: 999px;
  background: #fff;
  font-weight: 750;
}

.site-footer {
  padding: 24px 0 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 18px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 10px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.footer-mark {
  width: 54px;
  margin-bottom: 12px;
}

.not-found-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.not-found-shell {
  width: min(100% - 40px, 660px);
  padding: 34px;
}

/* Admin */
.ops-shell {
  width: min(100% - 36px, 1280px);
  margin: 0 auto;
  padding: 28px 0 44px;
}

.ops-header,
.token-panel,
.panel,
.metric {
  border-radius: 14px;
}

.ops-header {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px;
}

.ops-brand img {
  width: 100%;
}

.ops-actions,
.token-form,
.template-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.token-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.9fr);
  gap: 24px;
  align-items: end;
  margin-top: 18px;
  padding: 20px;
}

.token-form {
  justify-content: end;
}

.token-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.status-line {
  min-height: 24px;
  margin: 18px 0;
  font-weight: 850;
  color: var(--ink-soft);
}

.status-line[data-tone="error"] {
  color: #b55446;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.metric {
  min-height: 104px;
  padding: 18px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr) minmax(300px, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 20px;
}

.panel-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 950;
}

.badge.amber {
  color: #7b5314;
  background: #fff0ca;
}

.detail-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  margin: 0;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  font-weight: 850;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
}

.pipeline-card,
.empty-state {
  border: 1px solid rgba(17, 42, 36, 0.12);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.pipeline-card {
  min-height: 118px;
}

.pipeline-card span {
  font-size: 13px;
  font-weight: 950;
}

.pipeline-card strong {
  display: block;
  margin: 8px 0;
  font-size: 32px;
}

.pipeline-card em {
  color: var(--ink-soft);
  font-size: 13px;
  font-style: normal;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.waitlist-panel table td,
.waitlist-panel table th {
  border-bottom: 1px solid rgba(17, 42, 36, 0.10);
  padding: 14px 12px;
  vertical-align: top;
}

.waitlist-panel table th {
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.waitlist-panel select,
.waitlist-panel input {
  min-width: 130px;
  min-height: 40px;
  font-size: 14px;
}

.priority-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
}

.priority-high {
  color: #8b5812;
  background: #fff0ca;
}

.priority-next {
  color: #275c8a;
  background: #e9eef5;
}

.priority-watch,
.priority-routine {
  color: var(--green);
  background: var(--green-soft);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #eef2ef;
  font-size: 15px;
}

@media (max-width: 1080px) {
  .hero,
  .section-grid,
  .page-hero-grid,
  .split-visual,
  .form-layout,
  .cta-band,
  .ecosystem-band,
  .ops-header,
  .token-panel,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof,
  .trust-grid,
  .pillar-grid,
  .audience-grid,
  .deployment-grid,
  .doc-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
  }

  .nav-links.is-open,
  body.nav-open .nav-links {
    display: flex;
  }

  .header-action {
    justify-self: start;
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .hero-proof,
  .trust-grid,
  .pillar-grid,
  .audience-grid,
  .deployment-grid,
  .doc-grid,
  .footer-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  p,
  li,
  td,
  th,
  dd,
  dt,
  textarea,
  input,
  select {
    font-size: 17px;
  }

  .stack-row {
    grid-template-columns: 1fr;
  }

  .boundary-mini div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
