:root {
  --bg: whitesmoke;
  --surface: #ffffff;
  --ink: #0f1a2b;
  --muted: #53627a;
  --line: #dbe4f0;
  --accent: #2684ff;
  --accent-strong: #1f6fd8;
  --accent-soft: #e7f1ff;
  --radius: 10px;
  --shadow: none;
  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header */
  scroll-padding-top: 96px;
}

#top,
section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

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

.bg-orb {
  position: fixed;
  z-index: -1;
  filter: blur(24px);
  pointer-events: none;
}

.bg-orb-1 {
  display: none;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: #d2e4f5;
  left: -140px;
  top: -140px;
}

.bg-orb-2 {
  display: none;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: #d7e4fb;
  right: -140px;
  top: 180px;
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

#outcomes .outcomes-shell,
#critical-path .container,
#trust-coverage .trust-coverage-shell,
#plans .container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 86%, white 14%);
  border-bottom: 1px solid rgba(170, 184, 207, 0.22);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  flex-shrink: 0;
}

.nav-cta {
  margin-left: 4px;
}

.bg-grid {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 25px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 24px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav-links a:hover,
.nav-dropdown-toggle:hover {
  color: var(--ink);
}

/* Dropdown nav */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.95rem;
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
}

.dropdown-arrow {
  font-size: 0.65em;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 12px 36px rgba(9, 27, 54, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 30;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.hero {
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(38, 132, 255, 0.14), transparent 52%),
    radial-gradient(ellipse at 10% 90%, rgba(31, 111, 216, 0.08), transparent 46%);
}

.data-flow-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.hero-brand {
  display: block;
  height: 36px;
  width: auto;
  margin: 0 0 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 7px 11px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.03em;
  color: #174969;
  background: #ddebfb;
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 12ch;
  font-weight: 800;
}

h1.hero-title-outcome {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  font-weight: 800;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
}

sup {
  font-size: 0.58em;
  line-height: 0;
  vertical-align: super;
}

.lead {
  margin-top: 16px;
  max-width: 58ch;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 400;
}

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

.btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #f4fffc;
  border-radius: 999px;
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: normal;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  box-shadow: 0 8px 24px rgba(38, 132, 255, 0.3);
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  height: 38px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #bfd0e7;
}

.btn-ghost:hover {
  background: #e8f0fc;
  box-shadow: none;
}

.hero-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  box-shadow: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.panel-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: #36527a;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.panel-state {
  color: #2f86ff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  box-shadow: none;
}

.metric-card h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.metric-card p {
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.bars {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  margin-top: auto;
  box-shadow: none;
}

.bars-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

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

.bar-row i {
  height: 8px;
  border-radius: 999px;
  display: block;
  background: #4f9bff;
  width: var(--w);
}

.impact-head h4 {
  margin: 0;
  font-size: 0.85rem;
  color: #496181;
}

.impact-head p {
  margin-top: 2px;
  margin-bottom: 10px;
  font-size: 0.76rem;
}

.impact-table {
  border-top: 1px solid #e4ebf6;
}

.impact-row {
  display: grid;
  grid-template-columns: 1.6fr 0.4fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e9eef7;
  font-family: var(--font-sans);
  font-size: 0.77rem;
  color: #4c617f;
}

.impact-row:last-child {
  border-bottom: none;
}

.impact-row-head {
  font-weight: 500;
  color: #3a5273;
}

.impact-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.impact-meter i {
  height: 6px;
  border-radius: 999px;
  background: #d8e5f7;
  overflow: hidden;
  position: relative;
}

.impact-meter i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w);
  background: #2684ff;
}

.impact-meter b {
  font-weight: 700;
  color: #4b6385;
  font-size: 0.75rem;
}

.impact-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.impact-grid-3x2 {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.impact-video-center {
  margin-top: 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  padding: 24px;
  box-shadow: none;
}

.impact-video-center h3 {
  margin: 0;
  font-size: 1rem;
}

.impact-video-center p {
  margin-top: 8px;
  font-size: 0.92rem;
}

.impact-intro {
  margin-top: 12px;
  max-width: none;
}

.proof-story-chip-wrap {
  margin-top: 16px;
  text-align: center;
}

.proof-story-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #bcd1eb;
  background: #f4f8ff;
  color: #1f4f7d;
  font-size: 0.82rem;
  font-weight: 700;
}

.proof-story-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.proof-saw-kicker {
  margin: 28px 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f5178;
}

.proof-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.proof-cards li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--bg);
}

.proof-cards h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.proof-cards p {
  margin: 0;
  font-size: 0.88rem;
}

.proof-cards p + p {
  margin-top: 8px;
}

.trust-rail {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.trust-rail li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 14px 14px;
  background: var(--bg);
}

.trust-rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -8px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  z-index: 1;
}

.trust-rail-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.trust-rail h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.trust-rail p {
  font-size: 0.82rem;
}

.impact-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.impact-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: transparent;
  box-shadow: none;
}

.impact-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.impact-item p {
  font-size: 0.95rem;
}

.impact-visual {
  border: 1px solid #d5e2f6;
  border-radius: 12px;
  background: #f7fbff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.impact-graphic {
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
}

.impact-graphic p {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a6184;
}

.impact-mini-bars {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.impact-mini-bars i {
  display: block;
  height: 8px;
  width: var(--w);
  border-radius: 999px;
  background: #7aaef5;
}

.impact-video {
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
}

.impact-video h3 {
  margin: 0;
  font-size: 1rem;
}

.impact-video p {
  margin-top: 8px;
  font-size: 0.92rem;
}

.impact-video-link {
  margin-top: 12px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: none;
}

.card p + ul,
.card h2 + p,
.card h3 + p,
.card p + p {
  margin-top: 12px;
}

.breaks-illustration {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 12px auto 0;
}

.approach-illustration {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 12px auto 0;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
}

.section-head {
  margin-bottom: 22px;
}

.section-head p {
  margin-top: 12px;
  max-width: 65ch;
}

.section-cta .section-head p,
#outcomes .section-head p,
#critical-path .section-head p,
#trust-coverage .section-head p {
  max-width: none;
}

/* Outcome-led sections */
.trust-flow-stage {
  margin-top: 12px;
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent);
}

.trust-flow-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.path-story-viz {
  margin: 28px 0 22px;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 40%, var(--surface)), var(--surface));
  overflow: hidden;
}

.path-story-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.flow-box {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1.5;
}

.flow-box--gate {
  fill: var(--accent);
  stroke: var(--accent);
}

.flow-box--pass {
  fill: color-mix(in srgb, #1f9d64 16%, var(--surface));
  stroke: #1f9d64;
}

.flow-label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  font-family: var(--font-sans);
}

.flow-label--on {
  fill: #ffffff;
}

.flow-label--sm {
  font-size: 12px;
}

.flow-caption {
  fill: #d64545;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  font-family: var(--font-sans);
}

.flow-track {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.35;
}

.flow-track--pass {
  stroke: #1f9d64;
}

.flow-track--block {
  stroke: #d64545;
  stroke-dasharray: 4 5;
}

.path-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.path-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg);
}

.path-card h3 {
  margin-top: 6px;
}

.path-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.path-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f5178;
}

.path-card--bad {
  border-color: #e2c4c4;
  background: linear-gradient(160deg, #fff8f8, var(--surface));
}

.path-card--bad .path-label {
  color: #8a3b3b;
}

.path-card--good {
  border-color: #b9d4f0;
  background: linear-gradient(160deg, #f3f8ff, var(--surface));
}

.path-card--good .path-label {
  color: #1f4f7d;
}

.path-flow {
  margin: 16px 0 0;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
  line-height: 1.45;
}

.path-caption {
  margin: 22px auto 0;
  max-width: 72ch;
  text-align: center;
  color: var(--muted);
}

.path-caption strong {
  color: var(--ink);
}

.outcome-card .outcome-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f5178;
}

.outcome-proof {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: #36527a;
  font-weight: 600;
}

.rulebook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.rulebook-grid--stacked {
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.rulebook-actor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg);
}

.rulebook-grid--stacked .rulebook-actor {
  padding: 16px 18px;
}

.rulebook-pattern {
  margin-top: 24px;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
}

.trust-coverage-split {
  margin-top: 28px;
  align-items: stretch;
}

.trust-coverage-split > .card {
  background: var(--bg);
  height: 100%;
}

.trust-coverage-split > .card h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-top: 6px;
}

.trust-coverage-split > .card > p {
  margin-top: 12px;
}

.trust-debt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}

.trust-debt-grid--stacked {
  grid-template-columns: 1fr;
  margin: 20px 0 0;
}

.trust-debt-item {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  padding: 18px;
  background: var(--bg);
}

.trust-debt-grid--stacked .trust-debt-item {
  padding: 16px 18px;
}

.trust-debt-actions {
  margin-top: 28px;
  justify-content: center;
}

.arch-desc p + p {
  margin-top: 14px;
}

.capability-context {
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(140deg, color-mix(in srgb, var(--surface) 92%, var(--accent-soft) 8%), var(--surface));
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}

.capability-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bcd1eb;
  border-radius: 999px;
  background: #f4f8ff;
  color: #2f5178;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.capability-context h3 {
  margin: 10px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

.capability-context-copy > p {
  margin-top: 10px;
  max-width: none;
}

.capability-wide-text {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  text-align: left;
}

.capability-context-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 7px;
}

.capability-context-list strong {
  color: var(--ink);
}

.capability-pattern {
  grid-column: 1 / -1;
  margin-top: 14px;
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  text-align: center;
  align-items: center;
  border: 1px dashed #aac2e5;
  border-radius: 999px;
  background: #f5f9ff;
  color: #1f456f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 14px;
}

.capability-pattern-note {
  margin: 12px auto 0;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #bfd5ee;
  background: #eef6ff;
  color: #1f4f7d;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.capability-context-visual {
  display: flex;
  justify-content: center;
}

.capability-context-visual img {
  width: min(100%, 460px);
  height: auto;
  display: block;
}

.card-grid {
  display: grid;
  gap: 14px;
}

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

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

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

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

.plans-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

#plans .section-head > p:not(.eyebrow) {
  text-align: left;
  max-width: none;
}

.plan-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100%;
  background: var(--surface);
  overflow: hidden;
  box-shadow: none;
}

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(140, 161, 189, 0.28);
}

.plan-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.plan-tier {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  background: #edf4ff;
  border: 1px solid #c8d9f3;
  color: #1f5fb8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan-tier-featured {
  background: #1f6fd8;
  border-color: #1f6fd8;
  color: #ffffff;
}

.plan-highlight {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff4d6;
  border: 1px solid #f1d78a;
  color: #8b5a00;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.plan-card h3 {
  text-align: left;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
}

.plan-subtext,
.plan-tag,
.plan-note {
  text-align: left;
}

.plan-subtext {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  max-width: 34ch;
}

.plan-tag {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.plan-features li {
  position: relative;
  padding-left: 32px;
  color: #41546f;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
}

.plan-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(38, 132, 255, 0.12);
}

.plan-card .plan-note {
  margin-top: 10px;
  font-size: 0.88rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-index {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.82rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.architecture-visual {
  margin: 16px 0 18px;
  border: 1px solid #d8e1ee;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

/* Architecture: heading above, description + SVG two-column card */
.arch-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(340px, 1fr);
  gap: 40px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: none;
}

.arch-desc p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 38ch;
}

.arch-diagram-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-diagram {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
}

.arch-core {
  width: fit-content;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid #c8d8ee;
  background: #edf4ff;
  color: #35527a;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
}

.arch-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: #486487;
}

.arch-links i {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: #c7d8ef;
}

.arch-pulse {
  display: grid;
  gap: 6px;
}

.arch-pulse i {
  display: block;
  height: 6px;
  width: var(--w);
  border-radius: 999px;
  background: #7aaef5;
}

.arch-highlight {
  background: #2563eb !important;
  color: #fff !important;
  border-color: #2563eb !important;
  font-weight: 700;
}

.tag-highlight {
  background: #2563eb !important;
  color: #fff !important;
  border-color: #2563eb !important;
}

.arch-footnote {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: #7a8ba0;
  text-align: center;
}

.tags span {
  border-radius: 999px;
  border: 1px solid #cbdbef;
  background: #edf3fd;
  color: #39557c;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
}

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.deploy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 28px 20px;
  text-align: center;
  box-shadow: none;
}

.deploy-icon {
  width: 80px;
  height: 56px;
  margin: 0 auto 12px;
}

.deploy-icon img,
.deploy-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deploy-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.deploy-card p {
  font-size: 0.9rem;
}

.section-cta {
  padding-top: 70px;
}

.cta-card {
  background: #edf4ff;
  border: 1px solid #c6d9f7;
  border-radius: calc(var(--radius) + 2px);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.cta-card h2 {
  margin-top: 4px;
}

.cta-card p {
  margin-top: 10px;
  max-width: 58ch;
}

/* Contact Section */
.contact-grid {
  display: block;
  margin-top: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  align-self: flex-start;
  cursor: pointer;
}

.contact-info {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-height: 100%;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-item strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.contact-detail-item p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-detail-item a {
  color: var(--accent);
  transition: color 0.15s ease;
}

.contact-detail-item a:hover {
  color: var(--accent-strong);
}

.contact-map {
  padding: 8px;
  overflow: hidden;
  min-height: 100%;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.site-footer {
  border-top: 1px solid #d5deeb;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
  color: var(--ink);
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ Accordion */
#faq .container {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(540px, 1fr);
  gap: 56px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: none;
}

#faq .section-head {
  margin-bottom: 0;
}

#faq .section-head p {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.45;
}

.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  background: transparent;
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 8px 28px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: "";
}

.faq-icon {
  min-width: 24px;
  text-align: right;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}

.faq-icon::before {
  content: "+";
}

.faq-item[open] .faq-icon::before {
  content: "-";
}

.faq-answer {
  padding: 0 56px 28px 0;
}

.faq-answer p {
  font-size: 1.03rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 66ch;
}

/* Dark Theme (default) — Cursor-inspired depth, Alloy blue accents */
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #111111;
  --ink: #f5f5f5;
  --muted: #a3a3a3;
  --line: rgba(237, 236, 236, 0.1);
  --accent: #2684ff;
  --accent-strong: #1f6fd8;
  --accent-soft: rgba(38, 132, 255, 0.14);
  --shadow: none;
  color-scheme: dark;
}

:root[data-theme="dark"] body {
  background: var(--bg);
}

:root[data-theme="dark"] .bg-grid,
:root[data-theme="dark"] .bg-orb-1,
:root[data-theme="dark"] .bg-orb-2 {
  display: none;
}

:root[data-theme="dark"] .site-header {
  background: rgba(0, 0, 0, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

:root[data-theme="dark"] .nav-links,
:root[data-theme="dark"] .footer-brand p,
:root[data-theme="dark"] .footer-links a,
:root[data-theme="dark"] .footer-bottom p,
:root[data-theme="dark"] p,
:root[data-theme="dark"] .card ul,
:root[data-theme="dark"] .tags span,
:root[data-theme="dark"] .section-head p,
:root[data-theme="dark"] .metric-card p,
:root[data-theme="dark"] .bars-title,
:root[data-theme="dark"] .bar-row span,
:root[data-theme="dark"] .panel-pill {
  color: var(--muted);
}

:root[data-theme="dark"] .footer-links h4 {
  color: var(--ink);
}

:root[data-theme="dark"] .footer-bottom {
  border-top-color: var(--line);
}

:root[data-theme="dark"] .nav-dropdown-menu {
  background: #111111;
  border-color: var(--line);
  box-shadow: none;
}

:root[data-theme="dark"] .nav-dropdown-menu a:hover {
  background: rgba(38, 132, 255, 0.12);
  color: #9fc3ff;
}

:root[data-theme="dark"] .nav-dropdown-toggle {
  color: var(--muted);
}

:root[data-theme="dark"] .nav-dropdown-toggle:hover,
:root[data-theme="dark"] .nav-links a:hover {
  color: var(--ink);
}

:root[data-theme="dark"] .mobile-menu-toggle {
  background: rgba(17, 17, 17, 0.95);
  border-color: var(--line);
  color: var(--ink);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] .btn-ghost,
:root[data-theme="dark"] .impact-item h3,
:root[data-theme="dark"] .faq-question,
:root[data-theme="dark"] .faq-icon {
  color: var(--ink);
}

:root[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(38, 132, 255, 0.22), transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(61, 214, 140, 0.08), transparent 42%);
}

:root[data-theme="dark"] .proof-story-chip {
  background: rgba(38, 132, 255, 0.12);
  border-color: rgba(38, 132, 255, 0.35);
  color: #9fc3ff;
}

:root[data-theme="dark"] .proof-story-chip:hover {
  background: rgba(38, 132, 255, 0.2);
  color: #c5dcff;
}

:root[data-theme="dark"] .proof-saw-kicker {
  color: #9fc3ff;
}

:root[data-theme="dark"] .proof-cards li {
  background: #111111;
  border-color: var(--line);
}

:root[data-theme="dark"] .trust-rail li {
  background: #111111;
  border-color: var(--line);
}

:root[data-theme="dark"] .trust-flow-stage,
:root[data-theme="dark"] .path-story-viz {
  background: linear-gradient(180deg, rgba(38, 132, 255, 0.12), rgba(17, 17, 17, 0.4));
  border-color: var(--line);
}

:root[data-theme="dark"] .flow-box {
  fill: #111111;
}

:root[data-theme="dark"] .flow-box--gate {
  fill: #2684ff;
}

:root[data-theme="dark"] .flow-label {
  fill: var(--ink);
}

:root[data-theme="dark"] .hero-panel {
  position: relative;
  background: #111111;
  border: 1px solid var(--line);
  box-shadow: none;
}

:root[data-theme="dark"] .hero-panel::before {
  content: none;
}

:root[data-theme="dark"] .eyebrow {
  border: 1px solid rgba(38, 132, 255, 0.28);
  background: rgba(38, 132, 255, 0.1);
  color: #9fc3ff;
}

:root[data-theme="dark"] .btn {
  color: #f5f9ff;
  box-shadow: none;
}

:root[data-theme="dark"] .btn:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

:root[data-theme="dark"] .btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(230, 238, 255, 0.22);
  color: var(--ink);
  box-shadow: none;
}

:root[data-theme="dark"] .btn-ghost:hover {
  background: rgba(38, 132, 255, 0.1);
  border-color: rgba(38, 132, 255, 0.4);
  box-shadow: none;
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(17, 17, 17, 0.9);
  border-color: var(--line);
  color: var(--muted);
}

:root[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .bars,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .tags span,
:root[data-theme="dark"] .impact-item,
:root[data-theme="dark"] .cta-card,
:root[data-theme="dark"] .plan-card,
:root[data-theme="dark"] .deploy-card,
:root[data-theme="dark"] .path-card,
:root[data-theme="dark"] .rulebook-actor,
:root[data-theme="dark"] .trust-debt-item {
  background: #111111;
  border-color: var(--line);
  box-shadow: none;
}

:root[data-theme="dark"] .path-card--bad {
  background: linear-gradient(160deg, rgba(138, 59, 59, 0.16), #111111);
  border-color: rgba(196, 120, 120, 0.35);
}

:root[data-theme="dark"] .path-card--good {
  background: linear-gradient(160deg, rgba(38, 132, 255, 0.12), #111111);
  border-color: rgba(38, 132, 255, 0.28);
}

:root[data-theme="dark"] .path-label,
:root[data-theme="dark"] .outcome-kicker,
:root[data-theme="dark"] .outcome-proof {
  color: #9fc3ff;
}

:root[data-theme="dark"] .path-card--bad .path-label {
  color: #f0b4b4;
}

:root[data-theme="dark"] .outcome-loop-steps strong,
:root[data-theme="dark"] .path-caption strong {
  color: var(--ink);
}

:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .bars {
  background: transparent;
}

:root[data-theme="dark"] .metric-card h3 {
  color: var(--ink);
}

:root[data-theme="dark"] .panel-pill {
  border-color: rgba(38, 132, 255, 0.28);
  background: rgba(38, 132, 255, 0.1);
  color: #9fc3ff;
}

:root[data-theme="dark"] .panel-state {
  color: #2684ff;
  position: relative;
  padding-left: 14px;
}

:root[data-theme="dark"] .panel-state::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #2684ff;
  box-shadow: 0 0 0 0 rgba(38, 132, 255, 0.55);
  animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(38, 132, 255, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(38, 132, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(38, 132, 255, 0); }
}

:root[data-theme="dark"] .bar-row i,
:root[data-theme="dark"] .impact-mini-bars i,
:root[data-theme="dark"] .arch-pulse i {
  background: #2684ff;
}

:root[data-theme="dark"] .impact-meter i {
  background: #1a2740;
}

:root[data-theme="dark"] .impact-meter i::after {
  background: #2684ff;
}

:root[data-theme="dark"] .impact-meter b,
:root[data-theme="dark"] .impact-head h4,
:root[data-theme="dark"] .impact-row-head {
  color: #cdddf8;
}

:root[data-theme="dark"] .impact-table,
:root[data-theme="dark"] .impact-row {
  border-color: #2a2a2a;
}

:root[data-theme="dark"] .impact-row {
  color: #9eb2d2;
}

:root[data-theme="dark"] .tags span {
  background: #1a1a1a;
  color: #a9bfdc;
}

:root[data-theme="dark"] #outcomes .outcomes-shell,
:root[data-theme="dark"] #critical-path .container,
:root[data-theme="dark"] #trust-coverage .trust-coverage-shell,
:root[data-theme="dark"] #plans .container,
:root[data-theme="dark"] #faq .container,
:root[data-theme="dark"] .arch-grid {
  background: #111111;
  border-color: var(--line);
  box-shadow: none;
}

:root[data-theme="dark"] .architecture-visual {
  border-color: #2a2a2a;
  background: #141414;
}

:root[data-theme="dark"] .arch-core {
  border-color: rgba(38, 132, 255, 0.35);
  background: rgba(38, 132, 255, 0.12);
  color: #aecdff;
}

:root[data-theme="dark"] .arch-links {
  color: #9ab3d7;
}

:root[data-theme="dark"] .arch-links i {
  background: #333333;
}

:root[data-theme="dark"] .step-index {
  border-color: rgba(38, 132, 255, 0.3);
  background: rgba(38, 132, 255, 0.12);
  color: #98bcff;
}

:root[data-theme="dark"] .impact-item {
  background: rgba(17, 17, 17, 0.95);
  border-color: var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

:root[data-theme="dark"] .impact-item:hover {
  border-color: rgba(38, 132, 255, 0.4);
  transform: translateY(-2px);
}

:root[data-theme="dark"] .deploy-card {
  border-color: #2a2a2a;
  background: #141414;
}

:root[data-theme="dark"] .deploy-icon img {
  filter: brightness(0) invert(1);
}

:root[data-theme="dark"] .impact-visual,
:root[data-theme="dark"] .impact-video-center,
:root[data-theme="dark"] .impact-graphic,
:root[data-theme="dark"] .impact-video {
  border-color: #2a2a2a;
  background: #141414;
}

:root[data-theme="dark"] .impact-graphic p {
  color: #a9bfdc;
}

:root[data-theme="dark"] .capability-context {
  border-color: var(--line);
  background: #111111;
}

:root[data-theme="dark"] .capability-kicker {
  border-color: rgba(38, 132, 255, 0.35);
  background: rgba(38, 132, 255, 0.12);
  color: #aecdff;
}

:root[data-theme="dark"] .capability-pattern {
  border-color: rgba(38, 132, 255, 0.35);
  background: rgba(18, 36, 61, 0.9);
  color: #b5d2ff;
}

:root[data-theme="dark"] .capability-pattern-note {
  border-color: rgba(38, 132, 255, 0.35);
  background: rgba(20, 41, 68, 0.9);
  color: #c0d8ff;
}

:root[data-theme="dark"] .cta-card {
  background: #111111;
  border-color: var(--line);
}

:root[data-theme="dark"] .form-group input,
:root[data-theme="dark"] .form-group textarea {
  background: #0a0a0a;
  border-color: var(--line);
  color: var(--ink);
}

:root[data-theme="dark"] .form-group input::placeholder,
:root[data-theme="dark"] .form-group textarea::placeholder {
  color: #5a7196;
}

:root[data-theme="dark"] .form-group input:focus,
:root[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.2);
}

:root[data-theme="dark"] .contact-detail-item p,
:root[data-theme="dark"] .contact-detail-item a {
  color: var(--muted);
}

:root[data-theme="dark"] .contact-detail-item a:hover {
  color: var(--accent);
}

:root[data-theme="dark"] .plan-subtext,
:root[data-theme="dark"] .plan-tag,
:root[data-theme="dark"] .plan-note,
:root[data-theme="dark"] .plan-features li {
  color: var(--muted);
}

:root[data-theme="dark"] .plan-tier {
  background: rgba(38, 132, 255, 0.12);
  border-color: rgba(38, 132, 255, 0.3);
  color: #9fc3ff;
}

:root[data-theme="dark"] .plan-tier-featured {
  background: #2684ff;
  border-color: #2684ff;
  color: #ffffff;
}

:root[data-theme="dark"] .plan-card:has(.plan-tier-featured) {
  border-color: rgba(38, 132, 255, 0.45);
  box-shadow: none;
}

:root[data-theme="dark"] .plan-features li::before {
  color: #2684ff;
  background: rgba(38, 132, 255, 0.14);
}

:root[data-theme="dark"] .plan-highlight {
  background: rgba(255, 244, 214, 0.1);
  border-color: rgba(241, 215, 138, 0.35);
  color: #f5d98a;
}

:root[data-theme="dark"] .plan-header {
  border-bottom-color: rgba(140, 161, 189, 0.18);
}

:root[data-theme="dark"] .plan-cta {
  border-color: #31455f;
  background: #1a1a1a;
  color: #b8cced;
}

:root[data-theme="dark"] .site-footer {
  border-top: 1px solid var(--line);
}

:root[data-theme="dark"] .footer-links a:hover {
  color: var(--accent);
}

:root[data-theme="dark"] .faq-item {
  border-color: #2a2a2a;
}

:root[data-theme="dark"] .faq-answer p {
  color: var(--muted);
}

:root[data-theme="dark"] .breaks-illustration,
:root[data-theme="dark"] .approach-illustration,
:root[data-theme="dark"] .arch-diagram {
  filter: brightness(0.92) contrast(1.05);
  opacity: 0.95;
}

:root[data-theme="dark"] .reveal {
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="dark"] .panel-state::before {
    animation: none;
  }

  .flow-dot {
    display: none;
  }
}

@media (max-width: 1080px) {
  .proof-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-context {
    grid-template-columns: 1fr;
  }

  .capability-context-visual img {
    width: min(100%, 640px);
  }

  .arch-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px;
  }

  .arch-desc p {
    max-width: 100%;
  }

  #faq .container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 26px;
  }

  #faq .section-head p,
  .faq-answer p {
    max-width: 100%;
  }

  .faq-question {
    font-size: clamp(1.02rem, 2.6vw, 1.35rem);
    padding: 24px 0 22px;
  }

  .faq-answer {
    padding: 0 0 22px;
  }

  .five-up,
  .three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .impact-layout {
    grid-template-columns: 1fr;
  }

  .impact-grid-3x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .trust-rail li:not(:last-child)::after {
    display: none;
  }

  .path-compare,
  .rulebook-grid,
  .trust-debt-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .capability-context {
    padding: 16px;
    margin-bottom: 18px;
  }

  .capability-pattern {
    display: block;
    border-radius: 12px;
    line-height: 1.45;
    text-align: center;
  }

  .nav-wrap {
    position: relative;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-actions {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    margin-left: 0;
    width: min(340px, calc(100vw - 28px));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 20px 40px rgba(9, 27, 54, 0.16);
    z-index: 40;
  }

  .site-header.is-mobile-menu-open .nav-links {
    display: flex;
  }

  .nav-links > a,
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: 10px;
    padding: 10px 12px;
  }

  .nav-links > a:hover,
  .nav-dropdown-toggle:hover {
    color: var(--accent);
    background: var(--accent-soft);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    min-width: 0;
    border: 0;
    border-radius: 10px;
    margin-top: 4px;
    background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft) 12%);
    box-shadow: none;
    padding: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: 520px;
    opacity: 1;
    visibility: visible;
  }

  .nav-dropdown-menu a {
    padding: 8px 12px 8px 20px;
  }

  .nav-links .theme-toggle,
  .nav-links .nav-cta {
    width: 100%;
    justify-content: center;
    margin: 4px 0 0;
  }

  .path-story-viz {
    height: 260px;
  }

  .trust-flow-stage {
    height: 220px;
  }

  .hero-grid,
  .split,
  .two-up,
  .steps,
  .cta-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-copy h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .hero-brand {
    margin-left: auto;
    margin-right: auto;
  }

  .proof-cards {
    grid-template-columns: 1fr;
  }

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

  .contact-info {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 74px 0;
  }

  #outcomes .outcomes-shell,
  #critical-path .container,
  #trust-coverage .trust-coverage-shell,
  #plans .container {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }
}

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

  h1 {
    font-size: 2rem;
  }

  .five-up,
  .four-up,
  .three-up,
  .two-up,
  .plans-grid,
  .impact-grid-3x2,
  .trust-rail,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .card,
  .hero-panel,
  .cta-card {
    padding: 18px;
  }

  .btn,
  .btn-sm {
    height: 42px;
  }

  .theme-toggle {
    height: 42px;
    padding: 0 14px;
  }

  .faq-question {
    font-size: clamp(1rem, 6vw, 1.2rem);
  }

  .faq-icon {
    font-size: 1.3rem;
  }

  #faq .container {
    padding: 18px;
  }

  #outcomes .outcomes-shell,
  #critical-path .container,
  #trust-coverage .trust-coverage-shell,
  #plans .container {
    padding: 18px;
  }
}
