/* =========================================================================
   NIGHT SHEPHERD — design system
   Palantir × academic research lab. Cold, precise, zero fluff.
   ========================================================================= */

:root {
  --bg: #080c10;
  --bg-elev: #0d141b;
  --bg-elev-2: #111a23;
  --line: rgba(0, 212, 255, 0.14);
  --line-strong: rgba(0, 212, 255, 0.32);
  --line-amber: rgba(245, 158, 11, 0.28);

  --accent: #00d4ff;
  --accent-soft: rgba(0, 212, 255, 0.08);
  --accent-glow: 0 0 24px rgba(0, 212, 255, 0.35);

  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.1);

  --text: #e8f4f8;
  --text-dim: #8a9ba8;
  --text-mute: #5b6c79;

  --redact: #1a242e;
  --redact-2: #232f3a;

  --radius: 4px;
  --radius-lg: 6px;

  --font-display: 'Orbitron', 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 11vw, 140px);

  --t-quick: 140ms cubic-bezier(0.2, 0.6, 0.2, 1);
  --t-base: 280ms cubic-bezier(0.2, 0.6, 0.2, 1);
  --t-slow: 700ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---- reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-quick);
}
a:hover {
  color: #6fe7ff;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---- typography ---- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.6em;
  color: var(--text);
}
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
}
h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.1;
}
h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.2;
}
p {
  margin: 0 0 1em;
  color: var(--text-dim);
  max-width: 64ch;
}
strong {
  color: var(--text);
  font-weight: 600;
}
em {
  font-style: normal;
}

.accent {
  color: var(--accent);
}
.amber {
  color: var(--amber);
}

/* ---- layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  position: relative;
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.section + .section {
  /* avoid doubling when stacked */
}

/* ---- section label ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  border-radius: 2px;
}
.section-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.section-title {
  max-width: 24ch;
  margin-bottom: 28px;
}
.section-sub {
  max-width: 60ch;
  margin-bottom: 56px;
  color: var(--text-dim);
}

/* ---- header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(8, 12, 16, 0.6);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), padding var(--t-base);
}
.site-header.is-scrolled {
  background: rgba(8, 12, 16, 0.88);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
  text-transform: uppercase;
}
.logo-mark {
  width: 22px;
  height: 22px;
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6));
}
.logo-text em {
  color: var(--accent);
  font-style: normal;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right var(--t-base);
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta)[aria-current='page']::after {
  right: 0;
}
.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 8px 14px !important;
  color: var(--accent) !important;
  background: var(--accent-soft);
  border-radius: 2px;
  transition: background var(--t-quick), border-color var(--t-quick);
}
.nav-cta:hover {
  background: rgba(0, 212, 255, 0.16);
  border-color: var(--accent);
}

/* ---- buttons ---- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: color var(--t-quick), background var(--t-quick), border-color var(--t-quick),
    transform var(--t-quick);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(0, 212, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform var(--t-slow);
  pointer-events: none;
}
.btn:hover::before {
  transform: translateX(100%);
}
.btn-arrow {
  display: inline-block;
  transition: transform var(--t-quick);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}
.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #021018;
  --btn-bd: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
}
.btn-primary:hover {
  --btn-bg: #6fe7ff;
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.4);
  color: #021018;
}
.btn-secondary {
  --btn-bg: transparent;
  --btn-bd: var(--line-amber);
  --btn-fg: var(--amber);
}
.btn-secondary:hover {
  --btn-bd: var(--amber);
  background: var(--amber-soft);
  color: var(--amber);
}
.btn-lg {
  padding: 18px 30px;
  font-size: 14px;
}

/* ---- shared overlays ---- */
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(0, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  z-index: 1;
}
.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 212, 255, 0.025) 3px,
    rgba(0, 212, 255, 0.025) 4px
  );
  mix-blend-mode: screen;
  z-index: 1;
}
.scanline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.55), transparent);
  animation: scanline-pulse 6s linear infinite;
  filter: blur(0.5px);
}
@keyframes scanline-pulse {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  6% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* status indicator dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
.amber-dot {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  padding: 120px var(--gutter) 80px;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero::after {
  /* radial vignette */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, transparent 0%, var(--bg) 85%);
  z-index: 2;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 16, 0.5);
  border-radius: 2px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 28px;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}
.hero-title-em {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}
[data-glitch] {
  position: relative;
}
[data-glitch].is-glitching::before,
[data-glitch].is-glitching::after {
  content: attr(data-glitch);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
}
[data-glitch].is-glitching::before {
  color: var(--amber);
  transform: translate(2px, 0);
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  opacity: 0.6;
  mix-blend-mode: screen;
}
[data-glitch].is-glitching::after {
  color: var(--accent);
  transform: translate(-2px, 0);
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 60ch;
  color: var(--text-dim);
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 2px;
  max-width: 720px;
}
.hero-meta > div {
  background: rgba(8, 12, 16, 0.6);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-k {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.meta-v {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.meta-v.amber {
  color: var(--amber);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-mute);
}
.scroll-bar {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
}
.scroll-bar::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: scroll-tick 2s ease-in-out infinite;
}
@keyframes scroll-tick {
  0% {
    top: 0;
    opacity: 1;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* =========================================================================
   PROBLEM
   ========================================================================= */
.section-problem {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4)),
    var(--bg);
}
.problem-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 72ch;
  font-size: 1.05rem;
  line-height: 1.75;
}
.problem-body p {
  color: var(--text-dim);
}
.problem-conclusion {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.25;
  color: var(--text);
  padding-left: 22px;
  margin-top: 16px;
}
.problem-conclusion .line-marker {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* =========================================================================
   LIGHTNING product card
   ========================================================================= */
.product-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at top right, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, #000, transparent 70%);
}
.product-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  flex-wrap: wrap;
}
.product-id {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-mark {
  width: 32px;
  height: 32px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text);
}
.product-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 2px;
}
.product-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.product-card-body {
  position: relative;
  z-index: 1;
  padding: 36px 32px;
}
.product-lede {
  font-size: 1.1rem;
  max-width: 72ch;
  color: var(--text);
  margin-bottom: 36px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-feature {
  padding: 20px;
  background: rgba(8, 12, 16, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: border-color var(--t-base), transform var(--t-base);
}
.product-feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 10px;
}
.product-feature h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.product-feature p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--text-dim);
}
.product-card-footer {
  position: relative;
  z-index: 1;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.3);
}
.product-note {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

/* =========================================================================
   ARCHITECTURE / pipeline
   ========================================================================= */
.section-architecture {
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.02));
}
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 30px 0 56px;
}
.pipeline-rail {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 86px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent) 20%,
    var(--accent) 80%,
    transparent
  );
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}
.pipeline-rail .rail-token {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  opacity: 0;
}
.pipeline.is-visible .rail-token {
  animation: rail-flow 4.2s linear infinite;
}
.pipeline.is-visible .rail-token:nth-child(2) {
  animation-delay: 1.4s;
}
.pipeline.is-visible .rail-token:nth-child(3) {
  animation-delay: 2.8s;
}
@keyframes rail-flow {
  0% {
    left: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
.stage {
  position: relative;
  z-index: 1;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  opacity: 0;
  transform: translateY(20px);
}
.pipeline.is-visible .stage {
  animation: stage-in 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.pipeline.is-visible .stage:nth-child(2) {
  animation-delay: 0.2s;
}
.pipeline.is-visible .stage:nth-child(3) {
  animation-delay: 0.4s;
}
.pipeline.is-visible .stage:nth-child(4) {
  animation-delay: 0.6s;
}
@keyframes stage-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stage:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px -16px rgba(0, 212, 255, 0.4);
}
.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-mute);
}
.stage-num {
  color: var(--accent);
  font-weight: 600;
}
.stage-icon {
  width: 64px;
  height: 64px;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.4));
}
.stage h3 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 0.04em;
}
.stage p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-dim);
}
.stage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.stage-meta span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.3);
}
[data-stage='symbolic'] .stage-icon {
  color: var(--amber);
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.35));
}
[data-stage='hybrid'] .stage-icon {
  color: var(--text);
  filter: drop-shadow(0 0 14px rgba(232, 244, 248, 0.25));
}

.trust-property {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
  border: 1px solid var(--line-amber);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 16px;
  overflow: hidden;
}
.trust-property::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  box-shadow: 0 0 16px var(--amber);
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--amber);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.trust-property p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  max-width: 80ch;
}

/* =========================================================================
   COVERAGE / regimes
   ========================================================================= */
.regime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.regime-card {
  background: var(--bg-elev);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--t-quick), color var(--t-quick);
  position: relative;
  min-height: 130px;
}
.regime-card:hover {
  background: var(--bg-elev-2);
}
.regime-card:hover .regime-code {
  color: var(--accent);
}
.regime-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
}
.regime-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
}
.regime-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.regime-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color var(--t-quick);
}
.regime-name {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
  flex: 1;
}
.regime-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

/* =========================================================================
   CLASSIFIED cards
   ========================================================================= */
.section-classified {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5)),
    var(--bg);
}
.classified-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.classified-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.classified-card::after {
  content: 'TBD';
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  padding: 4px 10px;
  border: 1px solid var(--amber);
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 2px;
  z-index: 2;
}
.classified-head {
  padding: 18px 22px;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
}
.classified-stamp {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid var(--amber);
  color: var(--amber);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  transform: rotate(-1.2deg);
  background: rgba(245, 158, 11, 0.06);
}
.classified-body {
  padding: 28px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.classified-body h3 {
  font-size: 1.15rem;
  margin: 0;
}
.redact {
  background: var(--redact);
  display: inline-block;
  color: transparent !important;
  user-select: none;
  letter-spacing: 0;
  border-radius: 1px;
  padding: 0 4px;
}
.redact-line {
  display: block;
  height: 12px;
  background: var(--redact);
  margin-bottom: 8px;
  width: 100%;
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.redact-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.06), transparent);
  animation: redact-shimmer 6s linear infinite;
}
@keyframes redact-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.redact-line.short {
  width: 65%;
}
.redact-inline {
  background: var(--redact);
  color: transparent !important;
  user-select: none;
  padding: 0 4px;
  border-radius: 1px;
  letter-spacing: 0;
}
.redact-inline.short {
  /* same effect, narrower */
}
.classified-foot {
  padding: 14px 22px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-mute);
}

/* =========================================================================
   CTA strip
   ========================================================================= */
.section-cta {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.12), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.cta-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 18ch;
  margin: 0 auto 16px;
}
.cta-sub {
  max-width: 56ch;
  margin: 0 auto 36px;
  color: var(--text-dim);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-mute);
  max-width: 40ch;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.footer-links a {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  padding: 4px 0;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================================================================
   ABOUT page
   ========================================================================= */
.page-about .doc-header {
  position: relative;
  padding: 160px var(--gutter) 80px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-about .doc-header .grid-overlay {
  z-index: 0;
}
.page-about .doc-header .container {
  position: relative;
  z-index: 1;
}
.doc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-mute);
  text-transform: uppercase;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 8px;
}
.doc-stamp {
  color: var(--amber);
}
.doc-title {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  max-width: 22ch;
  margin-bottom: 28px;
}
.doc-lede {
  max-width: 64ch;
  font-size: 1.05rem;
  color: var(--text-dim);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.mission-body p {
  font-size: 1.02rem;
}
.mission-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mission-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--text-dim);
}
.mission-list strong {
  color: var(--text);
}
.li-mark {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  flex-shrink: 0;
  position: relative;
}
.li-mark::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.team-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-base);
}
.team-card:hover {
  border-color: var(--line-strong);
}
.team-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-mute);
}
.team-clear {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--accent);
}
.team-body {
  padding: 28px 24px 30px;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.team-bio {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 0;
}

/* philosophy */
.philosophy-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  overflow: hidden;
}
.philosophy-card::before,
.philosophy-card::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid var(--accent);
  opacity: 0.5;
}
.philosophy-card::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.philosophy-card::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}
.philosophy-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.36em;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  border-radius: 2px;
  margin-bottom: 32px;
}
.philosophy-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
  margin: 0 auto 24px;
  max-width: 22ch;
  position: relative;
}
.quote-mark {
  position: absolute;
  left: -32px;
  top: -16px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}
.philosophy-body {
  margin: 0 auto;
  max-width: 50ch;
  color: var(--text-dim);
}

/* =========================================================================
   404
   ========================================================================= */
.page-404 {
  min-height: 100vh;
  display: flex;
}
.error-main {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  overflow: hidden;
}
.error-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}
.error-inner .hero-cta {
  justify-content: center;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 880px) {
  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .pipeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pipeline-rail {
    display: none;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px var(--gutter);
  }
  .site-nav {
    gap: 14px;
    font-size: 11px;
  }
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .site-nav .nav-cta {
    display: inline-flex;
  }
  .site-nav a[href='/about'],
  .site-nav a[href='https://github.com/BenjaminHorrigan/lightning'] {
    display: inline-flex;
  }
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }
  .product-card-header,
  .product-card-body,
  .product-card-footer {
    padding-left: 22px;
    padding-right: 22px;
  }
  .product-lede {
    font-size: 1rem;
  }
  .philosophy-card {
    padding: 36px 22px;
  }
  .quote-mark {
    display: none;
  }
  .doc-bar {
    font-size: 9px;
  }
  .classified-stamp {
    font-size: 11px;
    padding: 4px 10px;
  }
}

@media (max-width: 420px) {
  .hero-meta {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   CONTACT PAGE
   ========================================================================= */
.page-contact .doc-header {
  position: relative;
  padding: 160px var(--gutter) 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-contact .doc-header .grid-overlay {
  z-index: 0;
}
.page-contact .doc-header .container {
  position: relative;
  z-index: 1;
}
.container.narrow {
  max-width: 720px;
}
.section-contact {
  padding: 60px var(--gutter) 120px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 16, 0.6);
  border-radius: 4px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--t-quick), box-shadow var(--t-quick), background var(--t-quick);
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
  background: rgba(0, 0, 0, 0.55);
}
.form-input::placeholder {
  color: var(--text-mute);
}
textarea.form-input {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.form-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.5;
}
.cf-turnstile {
  min-height: 65px;
}
.form-actions {
  margin-top: 8px;
}
.form-actions .btn {
  align-self: flex-start;
}
.form-status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.55;
  min-height: 1.2em;
  padding: 10px 14px;
  border-radius: 2px;
  border: 1px solid transparent;
}
.form-status:empty {
  display: none;
}
.form-status[data-kind='pending'] {
  color: var(--text-dim);
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.3);
}
.form-status[data-kind='success'] {
  color: var(--accent);
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.06);
}
.form-status[data-kind='error'] {
  color: var(--amber);
  border-color: var(--line-amber);
  background: var(--amber-soft);
}
#cf-submit[data-busy='1'] {
  opacity: 0.6;
  cursor: progress;
}

.page-result {
  padding: 160px var(--gutter) 120px;
}
.page-result .container.narrow h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 18px;
}
.page-result .container.narrow p {
  color: var(--text-dim);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

@media (max-width: 560px) {
  .contact-form {
    padding: 24px 20px;
  }
}
