:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-elevated: #0d1013;
  --bg-panel: #111519;
  --bg-panel-soft: rgba(17, 21, 25, 0.72);
  --ink: #f3efe6;
  --ink-soft: #d2cdc3;
  --muted: #98938a;
  --line: rgba(243, 239, 230, 0.11);
  --line-strong: rgba(243, 239, 230, 0.2);
  --brand: #183f3d;
  --brand-bright: #245d59;
  --teal-tint: #9ee7df;
  --signal: #2fbf71;
  --signal-dim: rgba(47, 191, 113, 0.14);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1000px 620px at 88% -8%, rgba(24, 63, 61, 0.52), transparent 60%),
    radial-gradient(640px 460px at 8% 18%, rgba(24, 63, 61, 0.2), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--teal-tint);
  background: rgba(158, 231, 223, 0.08);
  border: 1px solid rgba(158, 231, 223, 0.16);
  padding: 0.1em 0.42em;
  border-radius: 5px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 8, 10, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 30px;
  padding: 4px 6px;
  border-radius: 9px;
  background: var(--brand);
  border: 1px solid rgba(158, 231, 223, 0.25);
}

.brand-mark-sm {
  width: 38px;
  height: 26px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.brand-name {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.45rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn-lg {
  min-height: 2.95rem;
  padding: 0 1.35rem;
  font-size: 0.94rem;
}

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

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(243, 239, 230, 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  background: rgba(243, 239, 230, 0.1);
  border-color: rgba(243, 239, 230, 0.34);
}

.btn-ghost {
  color: var(--ink-soft);
}

.btn-ghost:hover {
  color: var(--ink);
  background: rgba(243, 239, 230, 0.06);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal-tint);
  outline-offset: 2px;
}

/* HERO */
.hero {
  padding: clamp(2.8rem, 6vh, 4.75rem) 0 clamp(2.8rem, 6vh, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(158, 231, 223, 0.22);
  background: rgba(24, 63, 61, 0.32);
  color: var(--teal-tint);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.2);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3.25rem, 5.8vw, 5.15rem);
  line-height: 0.96;
}

h1 em {
  font-style: italic;
  color: var(--teal-tint);
}

.hero-lead {
  margin: 0 0 2.1rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* HERO ARCHITECTURE DIAGRAM CARD */
.arch-card {
  background: linear-gradient(180deg, rgba(17, 23, 27, 0.92), rgba(10, 13, 16, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.arch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 0.25rem 0.8rem;
}

.arch-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* CORE GUARANTEES (01-04 GRID) */
.invariants {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 16, 19, 0.62);
  padding: clamp(2.5rem, 5vh, 3.75rem) 0;
}

.invariants-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.invariant-item {
  background: var(--bg-panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.invariant-item.invariant-featured {
  border-color: rgba(158, 231, 223, 0.28);
  background: linear-gradient(180deg, rgba(24, 63, 61, 0.22), rgba(17, 21, 25, 0.86));
}

.invariant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--signal);
  letter-spacing: 0.12em;
}

.inv-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.invariant-item h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.invariant-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.58;
}

.gov-bullets {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.gov-bullets li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.91rem;
  color: var(--ink-soft);
  line-height: 1.52;
}

.gov-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.gov-bullets strong {
  color: var(--ink);
  font-weight: 600;
}

/* SECTIONS */
.section {
  padding: clamp(4rem, 8vh, 6.25rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(17, 21, 25, 0.55), rgba(11, 14, 17, 0.35));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.75rem;
}

.kicker {
  margin: 0 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}

.section-head h2,
.governance-copy h2,
.cta-content h2 {
  margin: 0 0 0.95rem;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.04;
}

.section-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.mono-label {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-tint);
}

.shell-pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--signal);
  background: var(--signal-dim);
  border: 1px solid rgba(47, 191, 113, 0.28);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* PLATFORM FEATURES */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.18s ease;
}

.feature-card:hover {
  border-color: rgba(158, 231, 223, 0.28);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(24, 63, 61, 0.45);
  border: 1px solid rgba(158, 231, 223, 0.22);
  color: var(--teal-tint);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.mini-specs {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
}

.mini-specs li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.mini-specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
}

/* 4-LAYER STACK SKETCH / DIAGRAM */
.stack-sketch {
  background-color: #090c0f;
  background-image:
    linear-gradient(rgba(243, 239, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 230, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.sketch-canvas {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sketch-layer {
  position: relative;
  background: rgba(15, 19, 23, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.35rem;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.sketch-layer.layer-foundation {
  border-style: dashed;
  border-color: rgba(243, 239, 230, 0.18);
}

.sketch-layer.layer-selectable {
  border-color: rgba(158, 231, 223, 0.34);
  background: linear-gradient(135deg, rgba(24, 63, 61, 0.24), rgba(15, 19, 23, 0.96) 58%);
}

.sketch-node-badge {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.1rem;
}

.sketch-num {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal-tint);
  background: rgba(24, 63, 61, 0.6);
  border: 1px solid rgba(158, 231, 223, 0.28);
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
}

.sketch-role {
  font-family: var(--mono);
  font-size: 0.71rem;
  line-height: 1.45;
  color: var(--muted);
}

.sketch-role.role-interactive {
  color: var(--signal);
}

.sketch-layer-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sketch-layer-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sketch-layer-title h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}

.sketch-layer-body > p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.sketch-join {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0 0.45rem 1.35rem;
  position: relative;
}

.sketch-join::before {
  content: "";
  position: absolute;
  left: 2.02rem;
  top: 0;
  bottom: 0;
  border-left: 1.5px dashed rgba(158, 231, 223, 0.32);
}

.sketch-plus,
.sketch-arrow {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  background: #0d1216;
  border: 1px solid rgba(158, 231, 223, 0.38);
  color: var(--teal-tint);
}

.sketch-arrow {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--signal);
}

.sketch-join-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.35rem;
}

.choice-chip {
  border: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.55);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.choice-chip.is-selected {
  background: var(--brand);
  border-color: rgba(158, 231, 223, 0.5);
  color: #ffffff;
}

.sketch-output {
  background: linear-gradient(135deg, rgba(24, 63, 61, 0.45), rgba(11, 14, 17, 0.96));
  border: 1.5px solid rgba(47, 191, 113, 0.42);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
}

.sketch-output-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.formula {
  font-size: 0.74rem;
}

.sketch-sample {
  margin: 0;
  font-size: 0.96rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.58;
}

/* GOVERNANCE */
.governance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: start;
}

.commitments-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}

.commitments-list li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.85rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.commit-index {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--signal);
  padding-top: 0.2rem;
}

.commitments-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.04rem;
  font-weight: 600;
}

.commitments-list p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.policy-console {
  position: sticky;
  top: 5.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.console-panel {
  background: #0a0d10;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(243, 239, 230, 0.2);
}

.console-file {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.copy-btn {
  margin-left: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.console-code {
  margin: 0;
  padding: 1.15rem 1.2rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.console-code code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.evidence-item {
  background: var(--bg-panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.evidence-item strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.evidence-item span:last-child {
  font-size: 0.78rem;
  color: var(--muted);
}

/* DEPLOYMENT MODES + BOUNDARY SHOWCASE */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.mode-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.mode-card.mode-primary {
  border-color: rgba(158, 231, 223, 0.34);
  background: linear-gradient(180deg, rgba(24, 63, 61, 0.28), rgba(13, 16, 19, 0.96) 55%);
}

.mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mode-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  background: var(--brand);
  border: 1px solid rgba(158, 231, 223, 0.35);
  color: #ffffff;
}

.badge-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--ink-soft);
}

.mode-sub-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.mode-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.08;
}

.mode-desc {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.mode-specs {
  margin: 0;
  display: grid;
  gap: 0.95rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.mode-specs div {
  display: grid;
  gap: 0.15rem;
}

.mode-specs dt {
  font-family: var(--mono);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-tint);
}

.mode-specs dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* MOVED BOUNDARY SCHEMATIC SECTION INSIDE DEPLOYMENTS */
.boundary-showcase {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.boundary-showcase-copy h3 {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.08;
}

.boundary-showcase-copy > p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.eval-inline {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.56);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.58;
}

.eval-inline strong {
  color: var(--ink);
}

.boundary-card {
  background: linear-gradient(180deg, rgba(19, 25, 29, 0.94), rgba(11, 14, 17, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
}

.boundary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.boundary-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.boundary-id {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.segmented-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.segmented-btn.is-active {
  background: var(--brand);
  color: #ffffff;
}

.boundary-shell {
  border: 1px dashed rgba(158, 231, 223, 0.28);
  border-radius: var(--radius-md);
  background: rgba(7, 8, 10, 0.56);
  padding: 0.9rem;
}

.boundary-shell-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.shell-tag {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.diagram-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

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

.diagram-node.node-accent {
  background: linear-gradient(135deg, rgba(24, 63, 61, 0.42), rgba(17, 21, 25, 0.96));
  border-color: rgba(158, 231, 223, 0.26);
}

.node-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.3rem;
}

.node-head strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.node-step {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--teal-tint);
  opacity: 0.9;
}

.node-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.66rem;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft);
}

.badge-live {
  background: var(--signal-dim);
  color: var(--signal);
}

.diagram-node p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--muted);
}

.policy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.policy-chips span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--teal-tint);
  background: rgba(7, 8, 10, 0.5);
  border: 1px solid rgba(158, 231, 223, 0.2);
  padding: 0.15rem 0.48rem;
  border-radius: 6px;
}

.diagram-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.1rem 0;
}

.diagram-connector::before {
  content: "";
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 50%;
  border-top: 1px dashed rgba(243, 239, 230, 0.14);
}

.diagram-connector span {
  position: relative;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
  background: #0b0e11;
  padding: 0 0.55rem;
}

.diagram-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.node-compact {
  padding: 0.72rem 0.8rem;
}

.boundary-footer {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* INDUSTRIES CAROUSEL & TRUST CENTER LINKS */
.vertical-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.vertical-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.carousel-hint {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.vtab {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.25s ease;
}

.vtab-label {
  position: relative;
  z-index: 1;
}

.vtab-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: 100%;
  background: var(--signal);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
}

.vtab.is-active .vtab-progress {
  opacity: 0.9;
  animation: vtabFill 10s linear forwards;
}

.is-carousel-paused .vtab.is-active .vtab-progress {
  animation-play-state: paused;
}

@keyframes vtabFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.vtab:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.vtab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.vertical-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  background: var(--bg-panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  align-items: start;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.vertical-panel.is-transitioning {
  opacity: 0;
  transform: translateY(8px);
}

.vertical-main h3 {
  margin: 0.55rem 0 0.75rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.05rem;
  line-height: 1.08;
}

.vertical-main p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.vertical-tc-links {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tc-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--teal-tint);
  background: rgba(24, 63, 61, 0.38);
  border: 1px solid rgba(158, 231, 223, 0.28);
  padding: 0.44rem 0.82rem;
  border-radius: 999px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tc-inline-link:hover {
  background: var(--brand);
  border-color: rgba(158, 231, 223, 0.5);
  color: #ffffff;
}

.tc-inline-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.vertical-controls {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.vertical-controls li {
  padding: 0.95rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.5);
}

.vertical-controls strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.vertical-controls span {
  font-size: 0.86rem;
  color: var(--muted);
}

.honesty-note {
  margin-top: 1.5rem;
  padding: 1.35rem 1.55rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(158, 231, 223, 0.24);
  background: rgba(24, 63, 61, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.honesty-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.honesty-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-tint);
}

.tc-portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bg);
  background: var(--ink);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.tc-portal-cta:hover {
  background: #ffffff;
}

.tc-portal-cta svg {
  width: 14px;
  height: 14px;
}

.honesty-note p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.tc-doc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.25rem;
}

.tc-doc-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(7, 8, 10, 0.55);
  border: 1px solid var(--line-strong);
  padding: 0.38rem 0.78rem;
  border-radius: 8px;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.tc-doc-pill:hover {
  border-color: var(--teal-tint);
  color: var(--teal-tint);
  background: rgba(24, 63, 61, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .vtab.is-active .vtab-progress {
    animation: none;
  }
  .vertical-panel {
    transition: none;
  }
}

/* CTA */
.cta-section {
  padding-top: 1.5rem;
}

.cta-box {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(158, 231, 223, 0.28);
  background:
    radial-gradient(600px 320px at 100% 0%, rgba(24, 63, 61, 0.65), transparent 65%),
    var(--bg-elevated);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.cta-content p:last-child {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.cta-actions .btn {
  width: 100%;
  max-width: 280px;
}

.cta-email {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.cta-email a {
  color: var(--teal-tint);
  text-decoration: none;
}

.cta-email a:hover {
  text-decoration: underline;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand strong {
  display: block;
  font-size: 0.96rem;
}

.footer-brand p {
  margin: 0.1rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .main-nav,
  .header-actions .btn-ghost {
    display: none;
  }

  .hero-grid,
  .governance-grid,
  .modes-grid,
  .boundary-showcase,
  .vertical-panel,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .policy-console {
    position: static;
  }

  .sketch-layer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(1180px, calc(100% - 1.75rem));
  }

  .invariants-grid,
  .feature-grid,
  .diagram-row-split,
  .evidence-strip {
    grid-template-columns: 1fr;
  }

  .cta-actions .btn {
    max-width: none;
  }
}
