@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/outfit-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/outfit-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/outfit-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  --obsidian-lowest: #060E20;
  --obsidian-deep: #0F172A;
  --obsidian-low: #131B2E;
  --obsidian-base: #171F33;
  --obsidian-high: #222A3D;
  --obsidian-bright: #31394D;
  --brand-emerald: #10B981;
  --brand-hover: #059669;
  --covenant-gold: #D4AF37;
  --surface-text: #DAE2FD;
  --surface-muted: #94A3B8;
  --white: #ffffff;
  --red-600: #DC2626;
  --font-headline: "Space Grotesk", sans-serif;
  --font-body: Outfit, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--surface-text);
  font-family: var(--font-body);
  background-color: var(--obsidian-deep);
  -webkit-font-smoothing: antialiased;
  overflow-anchor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 38% at 12% 8%, rgba(16, 185, 129, 0.10), transparent 58%),
    radial-gradient(ellipse 40% 32% at 88% 4%, rgba(212, 175, 55, 0.06), transparent 55%);
  animation: ambient-drift 26s ease-in-out infinite alternate;
}

body > * { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

a { color: inherit; }

.icon {
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mono { font-family: var(--font-mono); }
.emerald { color: var(--brand-emerald); }
.gold { color: var(--covenant-gold); }
.muted { color: var(--surface-muted); }

.glass {
  background-color: rgba(23, 31, 51, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--obsidian-bright);
  background: rgba(6, 14, 32, 0.8);
  backdrop-filter: blur(12px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

.lockup > div {
  min-width: 0;
}

.lockup h1 {
  font-size: 24px;
  letter-spacing: 0.1em;
  line-height: 1;
}

.lockup p {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand-emerald);
  letter-spacing: 0.1em;
  line-height: 1;
}

.divider-v {
  width: 1px;
  height: 32px;
  background: var(--obsidian-bright);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--surface-muted);
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--white); }

.site-nav a[aria-current="page"] { color: var(--brand-emerald); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--obsidian-bright);
  background: var(--obsidian-deep);
  border-radius: 4px;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--brand-emerald);
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}

.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }

body > .app-header.is-open .menu-toggle span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

body > .app-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }

body > .app-header.is-open .menu-toggle span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip-emerald {
  color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--brand-emerald);
}

.chip-gold {
  color: var(--covenant-gold);
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--covenant-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 4px 4px 0 0 var(--obsidian-deep);
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 var(--obsidian-deep);
}

.btn:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 0 var(--obsidian-deep);
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-sm {
  padding: 8px 20px;
  font-size: 12px;
}

.btn-emerald {
  background: var(--brand-emerald);
  color: var(--obsidian-deep);
}

.btn-emerald:hover:not(:disabled) { background: var(--brand-hover); }

.btn-red {
  background: var(--red-600);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--obsidian-bright);
  box-shadow: none;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.7;
  color: var(--brand-emerald);
  margin: 0 0 16px;
}

.page-title {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--surface-muted);
  margin: 16px 0 0;
}

.app-footer {
  border-top: 1px solid var(--obsidian-bright);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--surface-muted);
}

.app-footer a {
  color: var(--surface-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.app-footer a:hover { color: var(--white); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}

.preview-note {
  text-align: center;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surface-muted);
}

[data-reveal] {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease var(--reveal-delay), transform 0.7s ease var(--reveal-delay);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes ambient-drift {
  from { transform: translate3d(-2%, -1%, 0); }
  to { transform: translate3d(3%, 2%, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes shield-breathe {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(16, 185, 129, 0)); }
  50% { filter: drop-shadow(0 0 7px rgba(16, 185, 129, 0.4)); }
}

.lockup .icon.emerald { animation: shield-breathe 5.5s ease-in-out infinite; }

.eyebrow { animation: rise 0.7s ease 0.05s both; }
.page-title { animation: rise 0.7s ease 0.12s both; }
.lede { animation: rise 0.7s ease 0.18s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body::before { animation: none; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 780px) {
  body > .app-header {
    position: relative;
    z-index: 30;
    padding: 12px 16px;
  }

  body > .app-header .divider-v { display: none; }
  body > .app-header .menu-toggle { display: block; }

  body > .app-header .header-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    /* Fully opaque: against this dark palette even 3% bleed ghosts the
       page copy through the menu. */
    background: var(--obsidian-lowest);
    border-bottom: 1px solid var(--obsidian-bright);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  }

  body > .app-header.is-open .header-menu { display: flex; }

  body > .app-header .header-menu .chip {
    align-self: flex-start;
    margin-bottom: 6px;
  }

  body > .app-header .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  body > .app-header .site-nav a {
    font-size: 14px;
    letter-spacing: 0.12em;
    padding: 14px 2px;
    border-bottom: 1px solid var(--obsidian-bright);
  }

  body > .app-header .site-nav a:last-child { border-bottom: 0; }
  body > .app-header .lockup h1 { font-size: 20px; }
  body > .app-header .header-left { flex-wrap: nowrap; }
  body > .app-header .btn-sm { padding: 11px 18px; }
}

@media (max-width: 720px) {
  .app-footer { font-size: 11px; padding: 20px 16px 28px; }
  .app-footer a { display: inline-block; padding: 5px 0; }
  .footer-links { gap: 4px 16px; }
  .app-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 16px;
    gap: 14px;
  }

  .footer-links { justify-content: center; }
}

@media (max-width: 520px) {
  .wrap { padding: 40px 16px 64px; }
}

/* The wordmark wraps rather than sliding under the header actions. */
@media (max-width: 430px) {
  body > .app-header { gap: 10px; padding: 12px 14px; }
  body > .app-header .lockup {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
    white-space: normal;
  }
  body > .app-header .lockup .icon { width: 26px; height: 26px; flex-shrink: 0; }
  body > .app-header .lockup h1 { font-size: 17px; line-height: 1.12; letter-spacing: 0.08em; }
  body > .app-header .lockup p { display: none; }
  body > .app-header .lockup > div { min-width: 0; }
  body > .app-header .header-actions { gap: 8px; }
  body > .app-header .btn-sm { padding: 10px 12px; font-size: 11px; }
}

.visually-hidden-svg { position: absolute; }
.desk-cursor-home { left: 28%; top: 42%; }
.dot-ok { background: var(--brand-emerald); }
.dot-gold { background: var(--covenant-gold); }
.dot-alert { background: #EF4444; }
.row-12 { display: flex; align-items: center; gap: 12px; }
.row-start-12 { display: flex; gap: 12px; align-items: flex-start; }
.row-between-mb { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.row-10-mb { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.row-between-12 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.row-between-mt { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.fs-10 { font-size: 10px; }
.fs-14 { font-size: 14px; }
.mono-10 { font-size: 10px; letter-spacing: 0.1em; }
.mono-11-wide { font-size: 11px; letter-spacing: 0.12em; }
.title-16 { font-size: 16px; letter-spacing: 0.08em; }
.mt-6 { margin-top: 6px; }
.mt-12 { margin-top: 12px; }
.copy-12 { margin: 8px 0 0; font-size: 12px; }
.copy-11 { margin: 8px 0 0; font-size: 11px; }
.copy-11-tight { margin: 6px 0 0; font-size: 11px; }
.lede-12 { margin: 0 0 16px; font-size: 12px; line-height: 1.5; }
.lede-12-tight { margin: 8px 0 14px; font-size: 12px; line-height: 1.5; }
.lede-12-room { margin: 8px 0 16px; font-size: 12px; line-height: 1.5; }
.note-11 { margin: 8px 0 16px; font-size: 11px; }
.note-11-pull { margin: -4px 0 8px; font-size: 11px; }
.copy-12-mid { margin: 10px 0 12px; font-size: 12px; }
.warn-row { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: 12px; line-height: 1.45; }
.opt-note { margin-top: 4px; font-size: 10px; letter-spacing: 0.1em; }
.accent-emerald { margin-top: 3px; accent-color: var(--brand-emerald); }
.chip-muted { color: var(--surface-muted); border-color: var(--surface-muted); }
.cursor-default { cursor: default; }
.btn-compact-11 { padding: 8px 14px; font-size: 11px; }
.btn-compact-11w { padding: 8px 16px; font-size: 11px; }
.btn-mid { padding: 10px 16px; font-size: 12px; }
.btn-mid-mt { margin-top: 12px; padding: 10px 16px; font-size: 12px; }
.btn-mid-full { margin-top: 12px; padding: 10px 16px; font-size: 12px; width: 100%; }
.btn-mid-start { padding: 10px 16px; font-size: 12px; align-self: flex-start; }
.btn-notify { padding: 12px 24px; font-size: 13px; }
.is-hidden { display: none !important; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-turnstile { margin: 16px 0 4px; }
