/* ==========================================================================
   Blackwall Labs — design system
   Fonts are self-hosted (Space Grotesk + IBM Plex Mono, /fonts/*.woff2) —
   real typographic identity with zero third-party requests at runtime.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/SpaceGrotesk-var.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-500.woff2") format("woff2");
}

:root {
  --bg: #08090b;
  --bg-elevated: #101216;
  --bg-elevated-2: #16191f;
  --border: #22262c;
  --border-soft: #1a1d22;
  --text: #edf0f3;
  --text-muted: #9aa3ad;
  --text-faint: #676f79;
  --accent: #ff5a1f;
  --accent-hover: #ff7440;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --accent-2: #2dd4a7;
  --accent-2-soft: rgba(45, 212, 167, 0.12);
  --accent-violet: #6a5cff;
  --danger: #ff5470;
  --bg-alt: #0c0e12;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Atmospheric gradient mesh, fixed behind all content on every page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 520px at 88% -6%, rgba(255, 90, 31, 0.16), transparent 60%),
    radial-gradient(680px 560px at 6% 18%, rgba(106, 92, 255, 0.14), transparent 62%),
    radial-gradient(900px 700px at 50% 115%, rgba(45, 212, 167, 0.07), transparent 60%),
    var(--bg);
  pointer-events: none;
}

/* Fine grain texture for a less flat, more designed surface */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

::selection {
  background: var(--accent);
  color: #08090b;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1320px;
}

section {
  position: relative;
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--border-top {
  border-top: 1px solid var(--border-soft);
}

/* Alternating band tone, applied by JS (main.js) to every other main > .section
   so pages get visual rhythm instead of one flat color top to bottom. */
.section.tone-alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg) 90%);
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.text-muted {
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 11, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Resources nav dropdown ---------- */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.15s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--text);
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-dropdown[data-open="true"] .nav-dropdown-toggle {
  color: var(--text);
}

.nav-dropdown[data-open="true"] .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-1);
  z-index: 60;
}

.nav-dropdown[data-open="true"] .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-elevated-2);
  color: var(--text);
}

@media (max-width: 860px) {
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1rem;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    display: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 4px 0 0 14px;
    min-width: 0;
  }

  .nav-dropdown[data-open="true"] .nav-dropdown-menu {
    display: flex;
  }

  .nav-dropdown-menu a {
    border-bottom: none;
    padding: 12px 4px;
    color: var(--text-faint);
  }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

@media (max-width: 860px) {
  /* height is an explicit vh calc, not inset's bottom:0 — .site-header's
     backdrop-filter creates a new containing block for fixed descendants,
     which makes bottom:0 resolve against the 72px header instead of the
     viewport. vh units aren't affected by that, so this stays correct. */
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    border-top: 1px solid var(--border-soft);
    overflow-y: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1rem;
  }

  .nav-links a[aria-current="page"]::after {
    display: none;
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 108px 0 96px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -200px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  left: -220px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(106, 92, 255, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 22px;
}

.hero .lede {
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-proof {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-proof-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 64px;
  }
}

/* ---------- Wall diagram (layer stack) ---------- */

.wall-diagram {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  padding: 22px;
  box-shadow: var(--shadow-1);
}

.wall-layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated-2);
  margin-bottom: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
  font: inherit;
  text-align: left;
  color: inherit;
  appearance: none;
}

.wall-layer:last-child {
  margin-bottom: 0;
}

.wall-layer:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.wall-layer[data-open="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.25);
}

.wall-layer-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  width: 24px;
  flex-shrink: 0;
}

.wall-layer-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-faint);
  transition: transform 0.2s ease, color 0.2s ease;
}

.wall-layer[data-open="true"] .wall-layer-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.wall-layer-body strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 2px;
}

.wall-layer-body span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- Logo strip ---------- */

.logo-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 32px 0;
}

.logo-strip-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
  text-align: center;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.logo-row span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ---------- Feature grid / cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 40%), var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-violet) 70%, transparent);
  opacity: 0.6;
}

a.card {
  display: block;
}

a.card:hover,
.grid .card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 31, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 90, 31, 0.06);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Problem / stat band ---------- */

.stat-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 64px 0;
}

.stat-num {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 220px;
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Process steps ---------- */

.process {
  counter-reset: step;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-list { grid-template-columns: 1fr; }
}

.process-step {
  counter-increment: step;
  border-left: 1px solid var(--border);
  padding: 4px 0 4px 22px;
  position: relative;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Testimonials ---------- */

.quote-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-card p.quote {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
}

.quote-attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}

.quote-attr strong {
  color: var(--text);
}

.quote-attr span {
  color: var(--text-faint);
}

/* ---------- FAQ ---------- */

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-question .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.faq-question .plus::before,
.faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-question .plus::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
}

.faq-question .plus::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
}

.faq-item[data-open="true"] .faq-question .plus::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  color: var(--text-muted);
  padding-bottom: 22px;
  max-width: 640px;
  font-size: 0.94rem;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-elevated) 55%);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.price-card h3 {
  margin-bottom: 6px;
}

.price-card .price {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 18px 0 4px;
}

.price-card .price small {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.price-features {
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.price-features li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  align-items: flex-start;
}

.price-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-2);
}

/* ---------- Table (compliance / comparison) ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th, td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.9rem;
}

th {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-elevated);
}

tr:last-child td {
  border-bottom: none;
}

td.yes { color: var(--accent-2); }
td.no { color: var(--text-faint); }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  margin-bottom: 10px;
}

.cta-banner .lede {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .cta-banner {
    padding: 36px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Forms ---------- */

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

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}

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

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-bottom a {
  color: var(--text-faint);
}

.footer-bottom a:hover {
  color: var(--text-muted);
}

/* ---------- Misc utility ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-2);
  background: var(--accent-2-soft);
  border-radius: 999px;
  padding: 5px 10px;
}

.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 64px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.check-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  padding: 20px 0 0;
}

.breadcrumb a {
  color: var(--text-faint);
}

.breadcrumb a:hover {
  color: var(--text-muted);
}

.page-hero {
  padding: 56px 0 72px;
}

.page-hero .eyebrow {
  margin-bottom: 18px;
}

.page-hero .lede {
  max-width: 640px;
  margin-top: 18px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0a0a0a;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Scroll reveal (applied via JS, degrades to fully visible without it) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Glass polish for the hero architecture diagram + CTA banner ---------- */

.wall-diagram {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 30%), var(--bg-elevated);
  backdrop-filter: blur(6px);
}

.cta-banner {
  background: linear-gradient(135deg, var(--accent-soft), rgba(106, 92, 255, 0.08) 60%, var(--bg-elevated));
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent-violet) 80%, transparent);
}

/* ---------- Layer scrollspy nav (platform.html) — enhancement only, wide screens ---------- */

.layer-nav {
  display: none;
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 1400px) {
  .layer-nav {
    display: flex;
  }
}

.layer-nav::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
  z-index: -1;
}

.layer-nav a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.layer-nav a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.layer-nav a.active {
  color: #0a0a0a;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- Animated flow pulse through the hero layer diagram ---------- */

.wall-diagram {
  position: relative;
}

.wall-diagram .flow-pulse {
  position: absolute;
  left: 22px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent);
  animation: flow-down 6s ease-in-out infinite;
}

@keyframes flow-down {
  0% { top: 34px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: calc(100% - 34px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wall-diagram .flow-pulse {
    display: none;
  }
}

/* ---------- Click-to-expand detail on wall-layer rows ---------- */

.wall-layer {
  cursor: pointer;
}

.wall-layer {
  transition: border-color 0.2s ease, background 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
}

.wall-layer[data-open="true"] {
  padding-top: 22px;
  padding-bottom: 22px;
}

.wall-layer-detail {
  max-height: 0;
  overflow: hidden;
  border-width: 0;
  border-style: solid;
  border-color: rgba(45, 212, 167, 0.25);
  background: transparent;
  transition: max-height 0.28s ease, margin-top 0.28s ease, padding 0.28s ease, border-width 0.28s ease, background 0.28s ease;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--accent-2);
  border-radius: var(--radius-sm);
}

.wall-layer[data-open="true"] .wall-layer-detail {
  max-height: 80px;
  margin-top: 14px;
  padding: 12px 14px;
  border-width: 1px;
  background: rgba(45, 212, 167, 0.1);
}

/* ---------- Readiness quiz ---------- */

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.quiz-option:hover {
  border-color: var(--text-muted);
}

.quiz-option input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.quiz-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.quiz-q.answered {
  border-color: rgba(45, 212, 167, 0.35);
}

/* ---------- Light section variant — deliberate contrast band, used sparingly ---------- */

.section--light {
  --bg: #f2ede6;
  --bg-alt: #eee6d8;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #ece5db;
  --border: #ddd4c3;
  --border-soft: #e6dece;
  --text: #18161c;
  --text-muted: #5c574d;
  --text-faint: #8a8375;
  --accent-soft: rgba(255, 90, 31, 0.09);
  background: var(--bg);
  color: var(--text);
}

.section--light .btn-secondary {
  border-color: var(--border);
}

.section--light .card {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02) inset, 0 8px 24px rgba(24, 22, 20, 0.06);
}

/* Editorial pull-quote */

.pull-quote {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  font-style: italic;
}

.pull-quote cite {
  display: block;
  margin-top: 18px;
  font-size: 0.9rem;
  font-style: normal;
  font-family: var(--font-mono);
  color: var(--text-faint);
}
