/* ==========================================================
   WorkSym by ICS — Design system
   ==========================================================
   Dark hero, light body, single purple accent (#6141EE).
   Consistent with the DCDD anchor proposal typography and
   colour treatment. General Sans (Fontshare) throughout,
   JetBrains Mono for tags and captions.
   ========================================================== */

:root {
  /* Color tokens */
  --purple: #6141EE;
  --purple-soft: #8F76F1;
  --purple-tint: #F3F0FC;
  --purple-tint-strong: #E4DCFA;

  --ink: #0A0A10;
  --ink-2: #14141B;
  --ink-3: #1E1E27;

  --paper: #FBFAFD;
  --paper-2: #F5F3F9;
  --paper-3: #EBE9F0;

  --text-primary: #0A0A10;
  --text-secondary: #4A4A56;
  --text-tertiary: #78788A;
  --text-inverse: #E8E6EE;
  --text-inverse-muted: #A9A7B8;
  --text-inverse-dim: #6E6C7A;

  --border: #E1DEEA;
  --border-dark: rgba(232, 230, 238, 0.14);

  --success: #14B586;

  /* Type scale (clamped, fluid) */
  --text-xs: 0.75rem;   /* 12 */
  --text-sm: 0.875rem;  /* 14 */
  --text-base: 1rem;    /* 16 */
  --text-lg: 1.125rem;  /* 18 */
  --text-xl: 1.375rem;  /* 22 */
  --text-2xl: clamp(1.5rem, 2.4vw, 2rem);       /* 24-32 */
  --text-3xl: clamp(2rem, 3.6vw, 3rem);         /* 32-48 */
  --text-4xl: clamp(2.5rem, 5vw, 4rem);         /* 40-64 */
  --text-hero: clamp(2.75rem, 7vw, 5.5rem);     /* 44-88 */
  --text-mega: clamp(3.5rem, 9vw, 7.5rem);      /* 56-120 */

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;

  --font-sans: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 640ms;
}

/* ==========================================================
   Reset + base
   ========================================================== */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

ul { list-style: none; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--purple); color: white; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ==========================================================
   Reveal-on-scroll base state
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Nav
   ========================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 16, 0);
  backdrop-filter: blur(0);
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 16, 0.72);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.nav.is-past-hero {
  background: rgba(251, 250, 253, 0.9);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--border);
  color: var(--text-primary);
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--text-inverse);
  transition: color var(--dur) var(--ease);
}
.nav.is-past-hero .nav-inner { color: var(--text-primary); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.nav-brand .mark {
  color: var(--purple);
  display: inline-flex;
}
.brand-wordmark {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-accent { color: var(--purple); }
.brand-by {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
  font-weight: 500;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.nav.is-past-hero .brand-by {
  color: var(--text-tertiary);
  border-left-color: var(--border);
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  margin-left: auto;
  font-size: var(--text-sm);
}
.nav-links a {
  color: var(--text-inverse-muted);
  transition: color var(--dur-fast) var(--ease);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-inverse); }
.nav.is-past-hero .nav-links a { color: var(--text-secondary); }
.nav.is-past-hero .nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease);
}
.nav-cta:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}
.nav.is-past-hero .nav-cta {
  border-color: var(--border);
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ==========================================================
   Hero
   ========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text-inverse);
  padding: var(--space-32) var(--space-6) var(--space-20);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 230, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 230, 238, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 50%, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 50%, black 40%, transparent 90%);
}
.hero-orb {
  position: absolute;
  top: 30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(97, 65, 238, 0.32) 0%, rgba(97, 65, 238, 0) 60%);
  filter: blur(30px);
  border-radius: 50%;
  animation: orbFloat 18s ease-in-out infinite alternate;
}
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-4%, 3%) scale(1.06); }
  100% { transform: translate(-8%, -2%) scale(0.98); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-inverse-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: var(--space-8);
  font-family: var(--font-mono);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(97, 65, 238, 0.8);
  animation: eyebrowPulse 2.4s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(97, 65, 238, 0.8); }
  50% { opacity: 0.6; box-shadow: 0 0 4px rgba(97, 65, 238, 0.4); }
}

.hero-title {
  font-size: var(--text-mega);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: white;
  margin-bottom: var(--space-8);
  max-width: 15ch;
}
.hero-title-accent {
  color: var(--purple);
  font-weight: 500;
}

.hero-lede {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-inverse-muted);
  max-width: 62ch;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple);
  color: white;
}
.btn-primary:hover {
  background: #7757F0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(97, 65, 238, 0.32);
}
.btn-ghost {
  color: var(--text-inverse-muted);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-ghost-light {
  color: var(--text-secondary);
  border-color: var(--border);
  background: transparent;
}
.btn-ghost-light:hover {
  color: var(--text-primary);
  border-color: var(--purple);
}
.btn-large {
  padding: 16px 28px;
  font-size: var(--text-base);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-inverse-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollBounce 2.4s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%   { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

/* ==========================================================
   Sections (shared)
   ========================================================== */

.section {
  padding: var(--space-32) 0;
  position: relative;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: var(--space-6);
}
.section-label-inverted {
  color: var(--purple-soft);
}
.section-headline {
  font-size: var(--text-4xl);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  max-width: 22ch;
}
.section-lede {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 65ch;
  margin-bottom: var(--space-16);
}

/* ==========================================================
   Thesis
   ========================================================== */

.section-thesis {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-16);
  align-items: start;
  margin-top: var(--space-12);
}
.thesis-quote {
  position: sticky;
  top: 120px;
  padding: var(--space-8);
  background: var(--purple-tint);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--purple);
}
.quote-mark {
  font-family: 'Georgia', serif;
  font-size: 60pt;
  line-height: 0.6;
  color: var(--purple);
  margin-bottom: var(--space-4);
  font-weight: 400;
}
.quote-body {
  font-size: var(--text-xl);
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}
.quote-attr {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(97, 65, 238, 0.16);
}
.thesis-body p {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}
.thesis-body p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .thesis-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .thesis-quote { position: static; }
}

/* ==========================================================
   Design rule (dark full-bleed moment)
   ========================================================== */

.section-rule {
  background: var(--ink);
  color: var(--text-inverse);
  padding: var(--space-40) 0;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.section-rule::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(97, 65, 238, 0.2) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.section-rule > * { position: relative; z-index: 1; }
.rule-preamble {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  color: var(--text-inverse-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-12);
}
.rule-headline {
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: var(--space-12);
}
.rule-line {
  display: block;
  margin-bottom: var(--space-4);
}
.rule-word {
  color: white;
  font-weight: 600;
}
.rule-verb {
  color: var(--text-inverse-muted);
  font-weight: 400;
}
.rule-verb-accent {
  color: var(--purple);
  font-weight: 500;
}
.rule-caption {
  font-size: var(--text-base);
  color: var(--text-inverse-muted);
  max-width: 62ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================
   Architecture
   ========================================================== */

.section-architecture {
  background: var(--paper);
}

.arch-diagram {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.arch-layer {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-8);
  align-items: start;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.arch-layer:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(97, 65, 238, 0.06);
  border-color: rgba(97, 65, 238, 0.24);
}
.arch-layer-neural {
  border-color: rgba(97, 65, 238, 0.3);
  background: linear-gradient(135deg, white 0%, var(--purple-tint) 100%);
}
.arch-layer-spine {
  border-color: rgba(97, 65, 238, 0.16);
  background: white;
}
.arch-layer-spine .arch-layer-tag {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.arch-layer-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.arch-layer-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--purple-tint-strong);
  color: var(--purple);
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: 1px solid transparent;
  align-self: flex-start;
}
.arch-layer-name {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.arch-layer-body {
  min-width: 0;
}
.arch-layer-desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}
.arch-layer-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}
.arch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}
.arch-pill {
  display: inline-block;
  padding: 5px 12px;
  background: white;
  border: 1px solid rgba(97, 65, 238, 0.28);
  color: var(--purple);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.arch-guarantees {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: var(--space-4);
}
.guarantee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.guarantee-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(20, 181, 134, 0.14);
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.arch-boundary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-4);
  margin: var(--space-2) 0;
}
.arch-boundary-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--purple) 0 4px, transparent 4px 8px);
}
.arch-boundary-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
  padding: 6px 12px;
  background: white;
  border: 1px solid rgba(97, 65, 238, 0.28);
  border-radius: 999px;
  flex-shrink: 0;
}
.arch-boundary-note {
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 10px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.arch-foundation {
  background: var(--ink);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-8);
  align-items: start;
  margin-top: var(--space-2);
}
.arch-foundation-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-soft);
  font-weight: 500;
}
.arch-foundation-body {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-inverse-muted);
}

@media (max-width: 800px) {
  .arch-layer, .arch-foundation {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .arch-guarantees { grid-template-columns: 1fr; }
  .arch-boundary { flex-direction: column; }
  .arch-boundary-line { width: 100%; }
  .arch-boundary-note { display: none; }
}

/* ==========================================================
   Guarantees grid
   ========================================================== */

.section-guarantees {
  background: var(--paper-2);
  border-top: 1px solid var(--border);
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-12);
}
.guarantee-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.guarantee-card:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 65, 238, 0.24);
  box-shadow: 0 12px 32px rgba(97, 65, 238, 0.06);
}
.guarantee-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.guarantee-title {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.guarantee-body {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================
   Foundations
   ========================================================== */

.section-foundations {
  background: var(--paper);
  border-top: 1px solid var(--border);
}

.foundation-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.foundation-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.foundation-card:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 65, 238, 0.24);
  box-shadow: 0 16px 40px rgba(97, 65, 238, 0.08);
}
.foundation-card-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, white 0%, var(--purple-tint) 100%);
  border-color: rgba(97, 65, 238, 0.2);
}
.foundation-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.foundation-flag {
  font-size: 22px;
  filter: saturate(1.1);
}
.foundation-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.foundation-org {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.foundation-loc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
}
.foundation-title {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.foundation-body {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}
.foundation-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  align-self: flex-start;
  width: 100%;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(20, 181, 134, 0.16);
  flex-shrink: 0;
}
.status-active { background: var(--success); }

@media (max-width: 1000px) {
  .foundation-grid { grid-template-columns: 1fr 1fr; }
  .foundation-card-featured { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .foundation-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   Credibility numbers
   ========================================================== */

.section-credibility {
  background: var(--paper-2);
  border-top: 1px solid var(--border);
}
.credibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-12);
}
.credibility-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.credibility-card:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 65, 238, 0.24);
}
.credibility-number {
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--purple);
  line-height: 0.95;
  margin-bottom: var(--space-3);
}
.credibility-label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-3);
}
.credibility-source {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ==========================================================
   Governance
   ========================================================== */

.section-governance {
  background: var(--paper);
  border-top: 1px solid var(--border);
}
.gov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.gov-card {
  padding: var(--space-6);
  border-left: 2px solid var(--purple);
  padding-left: var(--space-5);
}
.gov-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.gov-body {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--text-secondary);
}
.gov-frameworks {
  margin-top: var(--space-12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.framework-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 6px 14px;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ==========================================================
   Contact
   ========================================================== */

.section-contact {
  background: var(--ink);
  color: var(--text-inverse);
  padding: var(--space-32) 0 var(--space-24);
  position: relative;
  overflow: hidden;
}
.section-contact::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(97, 65, 238, 0.24) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.contact-headline {
  font-size: var(--text-4xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: white;
  margin: var(--space-6) auto var(--space-6);
  max-width: 20ch;
}
.contact-body {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-inverse-muted);
  max-width: 55ch;
  margin: 0 auto var(--space-10);
}
.contact-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.contact-actions .btn-ghost-light {
  color: var(--text-inverse-muted);
  border-color: rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.contact-actions .btn-ghost-light:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================
   Footer
   ========================================================== */

.footer {
  background: var(--ink-2);
  color: var(--text-inverse);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer-brand .brand-wordmark {
  font-size: 1.5rem;
  color: white;
}
.footer-by {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
  margin-top: 4px;
  margin-bottom: var(--space-4);
}
.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-inverse-muted);
  max-width: 28ch;
  line-height: 1.5;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-inverse-dim);
  margin-bottom: var(--space-4);
  font-weight: 500;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-col li {
  font-size: var(--text-sm);
  color: var(--text-inverse-muted);
  line-height: 1.5;
}
.footer-col a {
  color: var(--text-inverse-muted);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-copy, .footer-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-inverse-dim);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   Responsive fine-tune
   ========================================================== */

@media (max-width: 720px) {
  .section { padding: var(--space-16) 0; }
  .section-rule { padding: var(--space-20) 0; }
  .section-contact { padding: var(--space-20) 0 var(--space-16); }

  .hero { padding: var(--space-20) var(--space-4) var(--space-16); min-height: 0; }
  .hero-title { max-width: unset; margin-bottom: var(--space-6); }
  .hero-lede { font-size: var(--text-base); margin-bottom: var(--space-8); }
  .hero-eyebrow { margin-bottom: var(--space-6); font-size: 10px; padding: 5px 10px; }
  .hero-scroll { display: none; }

  .section-headline { font-size: var(--text-3xl); margin-bottom: var(--space-6); }
  .section-lede { font-size: var(--text-base); margin-bottom: var(--space-10); }
  .rule-headline { font-size: var(--text-4xl); }
  .rule-preamble { margin-bottom: var(--space-8); }
  .contact-headline { font-size: var(--text-3xl); }
  .contact-body { font-size: var(--text-base); }

  .container, .container-narrow { padding: 0 var(--space-4); }

  /* Non-sticky nav on mobile: absolute at top, scrolls away with page. */
  .nav {
    position: absolute;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .nav.is-scrolled,
  .nav.is-past-hero {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .nav-inner { padding: var(--space-4) var(--space-4); gap: var(--space-3); }
  .nav-brand { font-size: 0.95rem; }
  .brand-by { display: none; }
  .nav-cta { padding: 6px 12px; font-size: var(--text-xs); }

  /* Denser cards on mobile */
  .guarantee-card, .foundation-card, .credibility-card { padding: var(--space-5); }
  .arch-layer, .arch-foundation { padding: var(--space-5); }

  /* Contact actions stack full-width on mobile */
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { justify-content: center; }

  /* Foundation card header wraps cleanly on very narrow */
  .foundation-org { font-size: var(--text-sm); line-height: 1.3; }

  /* Framework tags: allow to wrap nicely */
  .gov-frameworks { gap: 6px; }
  .framework-tag { font-size: 10px; padding: 5px 10px; }
}

@media (max-width: 400px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .rule-headline { font-size: var(--text-3xl); letter-spacing: -0.03em; }
  .credibility-number { font-size: 3rem; }
}
