/* ---------------- Navigation ---------------- */
nav.cx-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 238, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--foundation);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--foundation);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.logo-mark::before, .logo-mark::after {
  content: ''; position: absolute;
}
.logo-mark::before {
  left: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--trust-blue);
}
.logo-mark::after {
  right: 6px; bottom: 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--bone);
}
.logo-tld {
  color: var(--trust-blue);
  margin-left: 1px;
  font-weight: 700;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--foundation);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--foundation);
  color: var(--bone);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--foundation);
  transition: background .2s, transform .2s, border-color .2s;
}
.nav-cta:hover { background: var(--trust-blue); border-color: var(--trust-blue); }

/* Hamburger — hidden on desktop, shown under 800px */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--foundation);
  margin: 0 auto;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 28px 20px;
  border-top: 1px solid var(--line);
  background: rgba(246, 244, 238, 0.97);
}
.mobile-menu a {
  color: var(--foundation);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta {
  margin-top: 12px;
  background: var(--foundation);
  color: var(--bone);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--foundation);
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }            /* mobile uses the hamburger CTA */
  .nav-toggle { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; }
}

/* ---------------- Hero ---------------- */
.hero { padding: 100px 0 80px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero h1 .accent { color: var(--trust-blue); }
.hero h1 .underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 14px;
  background: var(--trust-blue);
  opacity: 0.15;
  z-index: -1;
  border-radius: 4px;
}
.hero-sub { margin: 28px 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #008060;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,200,150,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(0,200,150,0); }
}

/* Terminal */
.terminal {
  background: var(--foundation-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 30px 80px -20px rgba(27,39,53,0.45),
    0 12px 30px -10px rgba(27,39,53,0.25);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  position: relative;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.terminal-bar .title {
  margin-left: 12px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}
.terminal-body { padding: 20px 22px; color: #D8DEE9; min-height: 320px; }
.term-line { white-space: pre; opacity: 0; animation: termIn .4s forwards; }
.term-line.cmd    { color: #E5E9F0; }
.term-line.prompt { color: var(--trust-blue); }
.term-line .prompt { color: var(--trust-blue); }
.term-line .key { color: #88C0D0; }
.term-line .str { color: #A3D9B1; }
.term-line .num { color: #FFC97A; }
.term-line.comment { color: #6B7785; }
.term-line.ok { color: var(--signal); }
.term-line.dim { color: rgba(216,222,233,0.55); }
.term-line:nth-child(1)  { animation-delay: .2s; }
.term-line:nth-child(2)  { animation-delay: .35s; }
.term-line:nth-child(3)  { animation-delay: .5s; }
.term-line:nth-child(4)  { animation-delay: .65s; }
.term-line:nth-child(5)  { animation-delay: .80s; }
.term-line:nth-child(6)  { animation-delay: .95s; }
.term-line:nth-child(7)  { animation-delay: 1.10s; }
.term-line:nth-child(8)  { animation-delay: 1.25s; }
.term-line:nth-child(9)  { animation-delay: 1.40s; }
.term-line:nth-child(10) { animation-delay: 1.55s; }
.term-line:nth-child(11) { animation-delay: 1.70s; }
.term-line:nth-child(12) { animation-delay: 1.85s; }
.term-line:nth-child(13) { animation-delay: 2.0s; }
.term-line:nth-child(14) { animation-delay: 2.15s; }
.term-line:nth-child(15) { animation-delay: 2.30s; }
@keyframes termIn {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}
.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--trust-blue);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Trust strip */
.trust-strip {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.trust-strip .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Alignment chips — Concordium agentic-stack categories */
.align-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.align-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--foundation);
  opacity: 0.85;
}
.align-chip .chip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--trust-blue);
  flex-shrink: 0;
}

/* Compact live-status pill pinned to far right of trust strip */
.trust-strip .strip-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #008060;
  letter-spacing: 0.04em;
}
.trust-strip .strip-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.2);
  animation: pulse 2s infinite;
}

/* Warn variant — pre-release / "coming soon" */
.trust-strip .strip-status--warn {
  background: rgba(255, 176, 32, 0.10);
  border-color: rgba(255, 176, 32, 0.30);
  color: #B97300;
}
.trust-strip .strip-status--warn .strip-status-dot {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.22);
  animation: pulse-warn 2s infinite;
}
@keyframes pulse-warn {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,176,32,0.22); }
  50%      { box-shadow: 0 0 0 6px rgba(255,176,32,0);   }
}

/* ---------------- Stat strip ---------------- */
.stats {
  background: var(--foundation);
  color: var(--bone);
  border-radius: var(--radius);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px 32px;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
}
.stat { position: relative; z-index: 1; }
.stat .num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.stat .num .unit { font-size: 22px; color: var(--trust-blue); margin-left: 2px; }
.stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: 32px; }
}

/* ---------------- Pillars ---------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  background: var(--paper);
  padding: 36px 32px;
  position: relative;
  transition: background .2s;
}
.pillar:hover { background: #FBFAF6; }
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--trust-blue-soft);
  border: 1px solid var(--trust-blue-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--trust-blue);
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ---------------- Flow diagram ---------------- */
.flow-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
}
.flow-svg-container { width: 100%; max-width: 1000px; margin: 0 auto; }
.flow-svg { width: 100%; height: auto; display: block; }

.flow-node-bg { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.flow-node-title { fill: var(--foundation); font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.flow-node-sub { fill: var(--ink-mute); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.flow-num { fill: var(--trust-blue); font-family: var(--font-mono); font-weight: 600; font-size: 11px; }
.flow-path { fill: none; stroke: var(--trust-blue); stroke-width: 1.5; stroke-dasharray: 4 4; }
.flow-arrow { fill: var(--trust-blue); }

.packet { fill: var(--trust-blue); filter: drop-shadow(0 0 8px rgba(38,103,255,0.6)); }
.packet-1 { animation: travel 6s linear infinite; }
.packet-2 { animation: travel 6s linear infinite; animation-delay: 1.5s; }
.packet-3 { animation: travel 6s linear infinite; animation-delay: 3s; }
@keyframes travel {
  0%   { offset-distance: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.flow-step .step-num {
  font-family: var(--font-mono);
  color: var(--trust-blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.flow-step h4 { margin-bottom: 6px; }
.flow-step p { font-size: 14px; line-height: 1.55; }
@media (max-width: 800px) { .flow-steps { grid-template-columns: 1fr 1fr; } }

/* ---------------- Use cases ---------------- */
.usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.usecase {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.usecase:hover {
  border-color: var(--trust-blue-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(38,103,255,0.15);
}
.usecase-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--trust-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.usecase h4 { font-size: 18px; margin-bottom: 8px; }
.usecase p { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.usecase code {
  display: block;
  background: var(--foundation-deep);
  color: #D8DEE9;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}
.usecase code .k { color: #88C0D0; }
.usecase code .s { color: #A3D9B1; }
.usecase code .c { color: #6B7785; }
@media (max-width: 900px) { .usecases { grid-template-columns: 1fr; } }

/* ---------------- Vault ---------------- */
.vault-section { background: var(--paper); }
.vault-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .vault-grid { grid-template-columns: 1fr; gap: 40px; } }
.vault-features { display: grid; gap: 16px; margin-top: 32px; }
.vault-feat {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.vault-feat-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--trust-blue-soft);
  color: var(--trust-blue);
  display: flex; align-items: center; justify-content: center;
}
.vault-feat h4 { font-size: 16px; margin-bottom: 4px; }
.vault-feat p { font-size: 14px; line-height: 1.5; }
.shamir-svg { width: 100%; max-width: 460px; height: auto; }

/* ---------------- CCDX ---------------- */
.ccdx-wrap {
  background: var(--foundation);
  color: var(--bone);
  border-radius: var(--radius);
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.ccdx-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}
.ccdx-wrap > * { position: relative; z-index: 1; }
.ccdx-wrap h2, .ccdx-wrap h3, .ccdx-wrap h4 { color: white; }
.ccdx-wrap .eyebrow { color: #6BA3FF; }
.ccdx-wrap .eyebrow::before { background: #6BA3FF; box-shadow: 0 0 0 4px rgba(107,163,255,0.2); }
.ccdx-wrap p { color: rgba(246,244,238,0.7); }

.ccdx-top { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 900px) { .ccdx-top { grid-template-columns: 1fr; } .ccdx-wrap { padding: 40px 28px; } }

.supply-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.supply-card .row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; }
.supply-card .row + .row { border-top: 1px solid rgba(255,255,255,0.08); }
.supply-card .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246,244,238,0.55); }
.supply-card .val { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: white; }

.fee-split { margin-top: 32px; }
.fee-bar {
  display: flex;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}
.fee-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  position: relative;
  transition: filter .2s;
  cursor: default;
}
.fee-seg:hover { filter: brightness(1.15); }
.fee-seg .pct { font-size: 22px; }
.fee-seg .seg-lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-top: 2px; }
.fee-stakers   { background: var(--trust-blue); flex: 45; }
.fee-lock      { background: #4D80FF; flex: 45; }
.fee-treasury  { background: #88AFFF; flex: 10; color: var(--foundation); }

.fee-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 700px) { .fee-legend { grid-template-columns: 1fr; } }
.legend-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.legend-item .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 8px; vertical-align: middle; }
.legend-item h4 { font-size: 15px; margin-bottom: 6px; }
.legend-item p { font-size: 13px; line-height: 1.5; color: rgba(246,244,238,0.6); margin: 0; }

.donut-wrap { display: flex; align-items: center; justify-content: center; }
.donut { width: 240px; height: 240px; }
.donut-center { text-anchor: middle; dominant-baseline: middle; }
.donut-center .big { fill: white; font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.donut-center .sm { fill: rgba(246,244,238,0.55); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; }

/* ---------------- Roadmap ---------------- */
.roadmap-section { background: var(--paper); }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.roadmap::before {
  content: '';
  position: absolute;
  top: 22px; left: 12%; right: 12%; height: 1px;
  background: var(--line);
  z-index: 0;
}
.road-stage { position: relative; padding: 0 20px; z-index: 1; }
.road-marker {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-mute);
  font-size: 14px;
}
.road-stage.shipped .road-marker {
  background: #008060;
  border-color: #008060;
  color: white;
  box-shadow: 0 0 0 6px rgba(0,128,96,0.18);
}
.road-stage.shipped .tag { color: #008060; }
.road-stage.active .road-marker {
  background: var(--trust-blue);
  border-color: var(--trust-blue);
  color: white;
  box-shadow: 0 0 0 6px var(--trust-blue-soft);
}
.road-stage.next .road-marker {
  border-color: var(--trust-blue);
  color: var(--trust-blue);
}
.road-stage .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-mute);
}
.road-stage.active .tag { color: var(--trust-blue); }
.road-stage .aligned {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 12px;
  line-height: 1.4;
}
.road-stage .aligned::before {
  content: '⤳ ';
  color: var(--trust-blue);
  font-family: var(--font-mono);
  margin-right: 4px;
}
.road-stage h4 { margin-bottom: 8px; }
.road-stage p { font-size: 14px; }
@media (max-width: 800px) {
  .roadmap { grid-template-columns: 1fr; gap: 32px; }
  .roadmap::before { display: none; }
}

/* ---------------- CTA ---------------- */
.cta-section {
  background: var(--foundation);
  border-radius: var(--radius);
  padding: 72px 56px;
  text-align: center;
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 28px 28px;
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { color: white; max-width: 18ch; margin: 0 auto 16px; }
.cta-section p { color: rgba(246,244,238,0.75); max-width: 52ch; margin: 0 auto 32px; font-size: 17px; }
.cta-section .btn-primary { background: white; color: var(--foundation); border-color: white; }
.cta-section .btn-primary:hover { background: var(--trust-blue); color: white; border-color: var(--trust-blue); }
.cta-section .btn-secondary { color: var(--bone); border-color: rgba(246,244,238,0.25); }
.cta-section .btn-secondary:hover { border-color: var(--bone); }
.cta-section .eyebrow { color: #6BA3FF; }
.cta-section .eyebrow::before { background: #6BA3FF; box-shadow: 0 0 0 4px rgba(107,163,255,0.2); }
@media (max-width: 700px) { .cta-section { padding: 48px 28px; } }

/* CTA access-request form */
.access-form {
  text-align: left;
  max-width: 640px;
  margin: 32px auto 0;
  display: grid;
  gap: 16px;
}
.access-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .access-row { grid-template-columns: 1fr; }
}
.access-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.access-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.65);
}
.access-opt {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  color: rgba(246,244,238,0.4);
  font-size: 11px;
  margin-left: 4px;
}
.access-form input[type="text"],
.access-form input[type="email"],
.access-form select,
.access-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .15s, background .15s;
}
.access-form textarea {
  resize: vertical;
  min-height: 76px;
  font-family: var(--font-body);
}
.access-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(246,244,238,0.5) 50%),
                    linear-gradient(135deg, rgba(246,244,238,0.5) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.access-form select option { background: var(--foundation); color: var(--bone); }
.access-form input::placeholder,
.access-form textarea::placeholder {
  color: rgba(246,244,238,0.35);
}
.access-form input:focus,
.access-form select:focus,
.access-form textarea:focus {
  outline: none;
  border-color: var(--trust-blue);
  background: rgba(255,255,255,0.07);
}
.access-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.access-submit {
  justify-self: center;
  margin-top: 6px;
  min-width: 220px;
  justify-content: center;
}
.access-submit.is-loading { opacity: 0.7; cursor: progress; }
.access-submit[disabled] { cursor: not-allowed; opacity: 0.6; }

.access-msg {
  min-height: 20px;
  font-size: 14px;
  text-align: center;
  margin-top: 6px;
  font-family: var(--font-body);
}
.access-msg--ok  { color: var(--signal); }
.access-msg--err { color: #FF7A8C; }

/* ---------------- Footer ---------------- */
footer.cx-footer { padding: 56px 0 40px; border-top: 1px solid var(--line-soft); }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-col a {
  display: block;
  color: var(--foundation);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.75;
}
.foot-col a:hover { opacity: 1; color: var(--trust-blue); }
.foot-blurb { font-size: 13px; line-height: 1.6; max-width: 36ch; margin-top: 16px; color: var(--ink-soft); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 16px;
}
.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.foot-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
}
.foot-status.foot-status--warn .dot {
  background: var(--warn);
}

/* ---------------- Long-form prose pages (terms, faq, api) ---------------- */
.prose {
  max-width: 68ch;
  margin: 0;
}
.prose h1 { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 12px; }
.prose h2 { font-size: 28px; margin: 48px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { color: var(--ink-soft); margin: 12px 0; font-size: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--trust-blue-hover); }
.prose code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--trust-blue-soft);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--trust-blue);
}
.prose pre {
  background: var(--foundation-deep);
  color: #D8DEE9;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}
.prose pre code { background: transparent; padding: 0; color: inherit; }
.prose .endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 8px 0 18px;
}
.prose .endpoint code { background: transparent; padding: 0; font-size: 14.5px; color: var(--foundation); }
.method {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.method-get    { background: rgba(0,200,150,0.18); color: #008060; }
.method-post   { background: rgba(38,103,255,0.18); color: var(--trust-blue-hover); }
.method-delete { background: rgba(255,77,106,0.18); color: #d33653; }

.prose .api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 14.5px;
}
.prose .api-table th,
.prose .api-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose .api-table th {
  color: var(--ink-mute);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.prose .api-table td code { font-size: 13px; }

.prose .callout {
  background: var(--trust-blue-soft);
  border: 1px solid var(--trust-blue-border);
  border-left: 3px solid var(--trust-blue);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 22px 0;
}
.prose .callout strong { color: var(--trust-blue); }

/* FAQ accordion */
.faq-list { max-width: 68ch; margin: 0; }
.faq-section-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--trust-blue); margin: 36px 0 12px; }
details.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--foundation);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--trust-blue);
  line-height: 1;
  transition: transform .2s;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
details.faq-item a { color: var(--trust-blue-hover); }

/* ---------------- Page-head reuse ---------------- */
.page-head {
  padding: 80px 0 32px;
}
.page-head .container { text-align: left; }
.page-head h1 { margin-bottom: 14px; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head .lead { font-size: 18px; max-width: 60ch; }
