/* ============================================================
   Agentica Technologies
   Design system: "instrumented control room"
   Self-contained. No frameworks, no external font calls.
   ============================================================ */

/* ---- 1. Fonts (self-hosted: no third-party requests) ------- */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/instrument-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/instrument-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/instrument-sans-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/instrument-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/instrument-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- 2. Tokens --------------------------------------------- */

:root {
  /* base */
  --ink-900: #070C18;
  --ink-850: #0A1120;
  --ink-800: #0D1628;
  --ink-700: #16243D;
  --ink-600: #22344F;

  --paper: #F4F6FA;
  --paper-2: #EDF1F7;
  --surface: #FFFFFF;

  --text: #0C1424;
  --text-2: #4A5A72;
  --text-3: #6F7E93;
  --line: #E3E8F0;
  --line-strong: #D2DAE6;

  /* brand */
  --indigo: #4E5BF2;
  --indigo-bright: #6E6BFF;
  --indigo-deep: #3A44C9;
  --teal: #10B9A0;
  --teal-bright: #19D7B8;

  /* semantic states used in the diagrams */
  --allow: #10B9A0;
  --gate: #E9A23B;
  --block: #E0586B;

  /* on dark */
  --d-text: #EEF2F9;
  --d-text-2: #9FB0C8;
  --d-text-3: #6E819C;
  --d-line: rgba(160, 185, 225, 0.16);
  --d-surface: rgba(255, 255, 255, 0.035);

  /* type */
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-micro: 0.6875rem;
  --fs-xs: 0.78125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.375rem;
  --fs-h3: clamp(1.15rem, 0.95rem + 0.6vw, 1.375rem);
  --fs-h2: clamp(1.85rem, 1.2rem + 2.1vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.35rem + 4.1vw, 4.35rem);

  /* layout */
  --wide: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --band-y: clamp(72px, 9vw, 132px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(12, 20, 36, 0.06), 0 6px 18px -8px rgba(12, 20, 36, 0.12);
  --shadow-md: 0 2px 4px rgba(12, 20, 36, 0.05), 0 22px 48px -24px rgba(12, 20, 36, 0.25);
  --shadow-lift: 0 3px 6px rgba(12, 20, 36, 0.06), 0 34px 70px -30px rgba(20, 34, 61, 0.38);
}

/* ---- 3. Reset & base --------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.038em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.032em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.02em; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
strong { font-weight: 600; }

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

.shell {
  width: min(var(--wide), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 2000;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  font-weight: 600;
}
.skip:focus { left: 16px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- 4. Utility type --------------------------------------- */

.mono {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: -0.01em;
  font-variant-ligatures: none;
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 60ch;
}

.measure { max-width: 64ch; }

/* ---- 5. Header --------------------------------------------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: rgba(247, 249, 252, 0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.masthead__inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.wordmark svg { width: 34px; height: 34px; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1; }
.wordmark__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.01em; color: var(--text); }
.wordmark__sub {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  margin-top: 5px;
  color: var(--text-3);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 30px);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.nav a { color: var(--text-2); transition: color 0.2s; padding: 6px 0; }
.nav a:hover { color: var(--indigo); }

.nav__cta {
  color: #fff !important;
  background: var(--ink-800);
  padding: 10px 17px !important;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nav__cta:hover { transform: translateY(-1px); background: var(--ink-700); box-shadow: 0 12px 26px -12px rgba(12,20,36,.55); }

.masthead.is-pinned { background: rgba(247, 249, 252, 0.93); border-bottom-color: var(--line); }

.burger { display: none; width: 42px; height: 42px; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .28s ease, opacity .2s ease; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- 6. Hero ----------------------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 48%, #EDF1F8 100%);
  color: var(--text);
  padding-top: clamp(112px, 14vh, 160px);
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}

.hero__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(12, 20, 36, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 20, 36, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(130% 95% at 20% 8%, #000 8%, transparent 70%);
  -webkit-mask-image: radial-gradient(130% 95% at 20% 8%, #000 8%, transparent 70%);
}

.hero__bloom { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero__bloom--a {
  width: 560px; height: 560px; top: -220px; left: -140px;
  background: radial-gradient(circle, rgba(78, 91, 242, 0.18), transparent 68%);
}
.hero__bloom--b {
  width: 620px; height: 620px; right: -200px; top: 10px;
  background: radial-gradient(circle, rgba(16, 185, 160, 0.16), transparent 66%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.hero__kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 26px;
}
.hero__kicker i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }

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

.hero__accent {
  background: linear-gradient(100deg, #5A67FF 12%, #3D8CEE 52%, #17B9C4 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #4E5BF2;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero__accent { color: transparent; }
}

.hero__lead {
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 52ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--indigo-bright), var(--indigo-deep));
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(78, 91, 242, .85);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(78, 91, 242, .95); }

.btn--dark {
  background: var(--ink-800);
  color: #fff;
  box-shadow: 0 16px 34px -18px rgba(12, 20, 36, .7);
}
.btn--dark:hover { transform: translateY(-2px); background: var(--ink-700); }

.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface);
}
.btn--outline:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--d-line);
  color: var(--d-text);
  background: rgba(255, 255, 255, .03);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(160, 185, 225, .32); }

/* ---- 6b. Control-plane orbital -------------------------- */

.hero__visual { display: grid; place-items: center; }

.orbit {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  color: rgba(78, 91, 242, 0.5);
}

.orbit__ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid;
}
.orbit__ring--out {
  width: 100%; height: 100%;
  border-color: rgba(16, 185, 160, 0.22);
}
.orbit__ring--in {
  width: 78%; height: 78%;
  border-color: rgba(78, 91, 242, 0.24);
}

.orbit__links { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

.orbit__core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 45%; height: 45%;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 5px;
  background:
    radial-gradient(circle at 30% 22%, rgba(120, 118, 255, .30), transparent 44%),
    radial-gradient(circle at 76% 86%, rgba(16, 185, 160, .16), transparent 46%),
    radial-gradient(circle at 50% 40%, #1C2842, #0B1221 60%, #070C18 100%);
  box-shadow:
    0 34px 70px -24px rgba(9, 16, 32, .55),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}
.orbit__core span {
  font-family: var(--mono);
  font-size: clamp(.5rem, .42rem + .28vw, .625rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #93A6C4;
}
.orbit__core strong {
  font-size: clamp(.95rem, .7rem + .95vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.1;
}

.orbit__nodes { position: absolute; inset: 0; }

.orbit__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 9px 17px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(12, 20, 36, .04), 0 14px 30px -14px rgba(12, 20, 36, .3);
  font-size: clamp(.75rem, .66rem + .3vw, .875rem);
  font-weight: 600;
  color: var(--text);
  animation: nodeIn .5s cubic-bezier(.22,.8,.3,1) both;
  animation-delay: calc(var(--i) * .1s + .2s);
}

@keyframes nodeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.82); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ---- 7. Run trace panel (hero figure) ---------------------- */

.trace {
  margin: 0;
  border: 1px solid var(--d-line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(23, 36, 62, 0.92), rgba(9, 15, 28, 0.94));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.trace__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--d-line);
  background: rgba(255, 255, 255, 0.025);
}

.trace__name {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--d-text);
  font-weight: 500;
}
.trace__meta {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--d-text-3);
  margin-left: auto;
}

.trace__rows { padding: 8px 0 10px; }

.trace__row {
  display: grid;
  grid-template-columns: 46px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  border-left: 2px solid transparent;
}

.trace__t { color: var(--d-text-3); font-size: var(--fs-micro); }
.trace__k { color: var(--indigo-bright); }
.trace__v { color: var(--d-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chip {
  font-size: var(--fs-micro);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
  font-weight: 500;
}
.chip--ok { color: var(--teal-bright); border-color: rgba(25, 215, 184, 0.32); background: rgba(16, 185, 160, 0.1); }
.chip--gate { color: #F3BC69; border-color: rgba(233, 162, 59, 0.38); background: rgba(233, 162, 59, 0.12); }

.trace__row--gate {
  background: linear-gradient(90deg, rgba(233, 162, 59, 0.11), transparent 78%);
  border-left-color: var(--gate);
}
.trace__row--ok-act {
  background: linear-gradient(90deg, rgba(16, 185, 160, 0.11), transparent 78%);
  border-left-color: var(--teal);
}

.trace__policy {
  margin: 4px 16px;
  padding: 9px 12px;
  border: 1px dashed rgba(233, 162, 59, 0.34);
  border-radius: var(--r-sm);
  background: rgba(233, 162, 59, 0.06);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  line-height: 1.5;
  color: #EBC48B;
}

.trace__foot {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--d-line);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--d-text-3);
  background: rgba(255,255,255,0.015);
}

/* one orchestrated page-load reveal */
.trace__row, .trace__policy { animation: traceIn 0.44s cubic-bezier(.22,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 0.13s + 0.25s); }

@keyframes traceIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

.trace-intro { margin-top: clamp(38px, 4vw, 56px); }
.trace--inline { margin-top: 18px; }

/* ---- 8. Stage rail (Design → Scale) ------------------------ */

.stages {
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.stages a {
  padding: 14px 14px 14px 0;
  border-top: 2px solid transparent;
  margin-top: -25px;
  padding-top: 22px;
  transition: border-color 0.25s ease;
}
.stages a:hover { border-top-color: var(--indigo); }

.stages b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.stages span {
  font-size: var(--fs-xs);
  color: var(--text-3);
  line-height: 1.4;
  display: block;
}

/* ---- 9. Bands & section headings --------------------------- */

.band {
  padding-block: var(--band-y);
  position: relative;
}
.band--paper { background: var(--paper); }
.band--white { background: var(--surface); border-block: 1px solid var(--line); }
.band--dark {
  background: var(--ink-900);
  color: var(--d-text);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.band--dark h2, .band--dark h3 { color: #fff; }

.band--dark .band__field {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(126, 150, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 150, 200, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(110% 80% at 50% 0%, #000 5%, transparent 70%);
  -webkit-mask-image: radial-gradient(110% 80% at 50% 0%, #000 5%, transparent 70%);
}

.sec-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 18px;
}
.sec-tag::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-strong);
  flex: none;
}
.band--dark .sec-tag { color: var(--d-text-3); }
.band--dark .sec-tag::before { background: rgba(160, 185, 225, 0.3); }

.sec-head { margin-bottom: clamp(38px, 4.4vw, 62px); max-width: 56ch; }
.sec-head .lead { margin-top: 20px; }
.band--dark .sec-head .lead { color: var(--d-text-2); }

.sec-head--split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  max-width: none;
}
.sec-head--split .lead { margin-top: 0; }

/* ---- 10. Shift: answers → actions -------------------------- */

.shift__note {
  border-left: 2px solid var(--indigo);
  padding-left: 20px;
  margin-top: 26px;
  color: var(--text-2);
  max-width: 58ch;
}

.figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(18px, 2.6vw, 34px);
  box-shadow: var(--shadow-sm);
}
.figure > svg,
.figure__scroll > svg { width: 100%; height: auto; }

.figure__scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.figure__hint { display: none; }

.figure figcaption {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-3);
  line-height: 1.55;
  max-width: 78ch;
}

.figure--dark {
  border-color: var(--d-line);
  background: linear-gradient(180deg, rgba(22, 36, 61, 0.55), rgba(10, 17, 32, 0.5));
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.figure--dark figcaption { border-top-color: var(--d-line); color: var(--d-text-3); }

.figure--flush { padding: clamp(14px, 2vw, 26px); }

/* ---- 11. Capability cards ---------------------------------- */

.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.cap {
  background: var(--surface);
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.25s ease;
}
.cap:hover { background: #FBFCFE; }

.cap__icon { color: var(--indigo); width: 30px; height: 30px; }
.cap h3 { margin-bottom: -2px; }
.cap p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }

.cap__out {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--text-3);
  line-height: 1.55;
}
.cap__out b { color: var(--text-2); font-weight: 500; display: block; margin-bottom: 2px; }

.caps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1180px) {
  .caps, .caps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .caps, .caps--four { grid-template-columns: 1fr; }
}

/* ---- 12. Architecture (dark) ------------------------------- */

.arch__points {
  margin-top: clamp(30px, 3.4vw, 46px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.arch__points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--d-text-2);
  line-height: 1.55;
  border-top: 1px solid var(--d-line);
  padding-top: 16px;
}
@media (max-width: 1000px) { .arch__points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .arch__points { grid-template-columns: 1fr; gap: 16px; } }
.arch__points svg { width: 18px; height: 18px; margin-top: 3px; color: var(--teal-bright); }
.arch__points b { color: var(--d-text); font-weight: 600; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--teal-bright);
  border-bottom: 1px solid rgba(25, 215, 184, 0.35);
  padding-bottom: 3px;
  transition: gap 0.2s ease;
}
.link-arrow:hover { gap: 13px; }
.link-arrow svg { width: 15px; height: 15px; }

.link-arrow--ink { color: var(--indigo); border-bottom-color: rgba(78, 91, 242, 0.3); }

/* ---- 13. Solutions ----------------------------------------- */

.solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
}

.sol {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 22px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}
.sol:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sol svg { width: 34px; height: 34px; color: var(--indigo); }
.sol h3 { font-size: var(--fs-base); margin-bottom: 5px; }
.sol p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }

/* ---- 14. Security ------------------------------------------ */

.threats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--d-line);
  border: 1px solid var(--d-line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 30px;
}

.threat {
  background: rgba(12, 20, 36, 0.72);
  padding: 22px;
}
.threat__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.threat__head b { font-size: var(--fs-sm); font-weight: 600; color: var(--d-text); }
.threat p { font-size: var(--fs-xs); color: var(--d-text-3); line-height: 1.6; }

.dot {
  width: 7px; height: 7px; border-radius: 2px; flex: none;
  transform: rotate(45deg);
}
.dot--block { background: var(--block); }
.dot--gate { background: var(--gate); }
.dot--allow { background: var(--allow); }

.redteam {
  margin-top: 34px;
  border: 1px solid var(--d-line);
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(120deg, rgba(224, 88, 107, 0.09), rgba(78, 91, 242, 0.07));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.redteam p { color: var(--d-text-2); font-size: var(--fs-sm); margin-top: 8px; max-width: 62ch; }

/* ---- 15. Governance ---------------------------------------- */

.frameworks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
@media (max-width: 900px) { .frameworks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .frameworks { grid-template-columns: 1fr; } }

.fw {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  background: var(--surface);
}
.fw__name {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--indigo);
  margin-bottom: 8px;
  font-weight: 500;
}
.fw h3 { font-size: var(--fs-base); margin-bottom: 6px; }
.fw p { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.6; }

/* ---- 16. Industries ---------------------------------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.tags span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  background: var(--surface);
}

/* ---- 17. Insights ------------------------------------------ */

.insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.insight {
  border: 1px solid var(--d-line);
  border-radius: var(--r-md);
  padding: 24px;
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 178px;
}
.insight__state {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--d-text-3);
  display: flex;
  align-items: center;
  gap: 7px;
}
.insight__state::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--indigo-bright);
}
.insight h3 { font-size: var(--fs-base); }
.insight p { font-size: var(--fs-xs); color: var(--d-text-3); margin-top: auto; line-height: 1.6; }

/* ---- 18. Team ---------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: start;
}

.person {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}

.person__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo-bright), var(--indigo-deep));
  flex: none;
}
.avatar--team { background: linear-gradient(135deg, #13A6C9, var(--teal)); }

.person__role {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--text-3);
  margin-bottom: 5px;
}
.person__bio { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.68; }

.pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.pills span {
  font-size: var(--fs-micro);
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--text-2);
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--indigo);
}
.profile-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.profile-link svg { width: 14px; height: 14px; }

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 18px 26px;
  margin-top: 22px;
}
.skills > div { border-top: 1px solid var(--line); padding-top: 13px; }
.skills b { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 4px; }
.skills span { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.55; display: block; }

.principle {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--ink-900);
  color: var(--d-text);
}
.principle span {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--d-text-3);
  display: block;
  margin-bottom: 7px;
}
.principle strong { font-size: var(--fs-base); font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; }

/* ---- 19. CTA ----------------------------------------------- */

.cta {
  background: var(--ink-900);
  color: var(--d-text);
  padding-block: clamp(64px, 8vw, 110px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta__bloom {
  position: absolute;
  z-index: -1;
  width: 720px; height: 720px;
  border-radius: 50%;
  left: 50%; top: -420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(78, 91, 242, 0.38), transparent 66%);
  filter: blur(70px);
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}
.cta h2 { color: #fff; }
.cta__lead { color: var(--d-text-2); margin-top: 20px; font-size: var(--fs-md); max-width: 46ch; }

.routes { display: grid; gap: 1px; background: var(--d-line); border: 1px solid var(--d-line); border-radius: var(--r-md); overflow: hidden; }
.routes a {
  background: rgba(12, 20, 36, 0.65);
  padding: 19px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  transition: background 0.22s ease;
}
.routes a:hover { background: rgba(78, 91, 242, 0.14); }
.routes b { font-size: var(--fs-sm); font-weight: 600; color: var(--d-text); display: block; }
.routes small { font-size: var(--fs-xs); color: var(--d-text-3); display: block; margin-top: 3px; }
.routes svg { width: 17px; height: 17px; color: var(--d-text-3); }
.routes a:hover svg { color: var(--teal-bright); }

.contact {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--d-line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.contact span {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  color: var(--d-text-3);
  display: block;
  margin-bottom: 7px;
}
.contact strong { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--d-text); }
.contact small { display: block; font-size: var(--fs-xs); color: var(--d-text-3); margin-top: 3px; }
.contact a:hover { color: var(--teal-bright); }

/* ---- 20. Footer -------------------------------------------- */

.foot {
  background: var(--ink-850);
  color: var(--d-text-3);
  padding-block: 56px 26px;
  border-top: 1px solid var(--d-line);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.foot .wordmark__name { color: var(--d-text); }
.foot__tag { font-size: var(--fs-sm); margin-top: 16px; max-width: 30ch; line-height: 1.6; }
.foot h4 { font-size: var(--fs-xs); color: var(--d-text); margin-bottom: 14px; font-weight: 600; letter-spacing: 0; }
.foot__col a, .foot__col span { display: block; font-size: var(--fs-sm); padding: 4px 0; }
.foot__col a:hover { color: var(--d-text); }

.foot__bottom {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--d-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--fs-xs);
}

/* ---- 21. Progress spine (wide screens only) ---------------- */

.spine {
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: none;
  gap: 2px;
  flex-direction: column;
}
.spine a {
  display: grid;
  grid-template-columns: 22px auto;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: var(--fs-micro);
  font-family: var(--mono);
  color: var(--text-3);
  opacity: 0.55;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.spine a::before {
  content: "";
  height: 1px;
  background: currentColor;
  width: 12px;
  transition: width 0.25s ease;
}
.spine a:hover { opacity: 1; }
.spine a.is-current { opacity: 1; color: var(--indigo); }
.spine a.is-current::before { width: 22px; }
.spine.on-dark a { color: var(--d-text-3); }
.spine.on-dark a.is-current { color: var(--teal-bright); }

@media (min-width: 1480px) {
  .spine { display: flex; }
}

/* ---- 22. Diagram shared SVG styling ------------------------ */

.dg-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.02em; }
.dg-title { font-family: 'Instrument Sans', sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.dg-sub { font-family: 'Instrument Sans', sans-serif; font-size: 11px; font-weight: 400; }
.dg-num { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; font-weight: 500; }

/* ---- 23. Responsive ---------------------------------------- */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .orbit { width: min(100%, 460px); }
  .cta__grid, .team, .sec-head--split { grid-template-columns: 1fr; }
  .sec-head--split { gap: 22px; align-items: start; }
  .foot__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stages { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .redteam { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 66px 12px auto 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: var(--r-lg);
    background: rgba(9, 15, 28, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--d-line);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px !important; border-radius: var(--r-sm); color: var(--d-text-2) !important; }
  .nav a:hover { background: rgba(255,255,255,0.06); color: #fff !important; }
  .nav__cta { background: var(--indigo) !important; color: #fff !important; text-align: center; margin-top: 6px; border-radius: var(--r-sm); }
  .masthead.is-pinned .nav a { color: var(--d-text-2); }
  .masthead.is-pinned .nav__cta { color: #fff !important; background: var(--indigo); }
}

@media (max-width: 720px) {
  .stages { grid-template-columns: repeat(2, 1fr); }
  .orbit { width: min(100%, 360px); }
  .orbit__node { padding: 7px 12px; }
  .orbit__core { width: 46%; height: 46%; }
  .trace__row { grid-template-columns: 40px 62px minmax(0, 1fr); row-gap: 2px; }
  .trace__row .chip { grid-column: 3; justify-self: start; margin-top: 2px; }
  .team { gap: 14px; }
  .foot__grid { grid-template-columns: 1fr; }
  .figure { padding: 16px; }

  /* wide technical diagrams stay legible by panning rather than shrinking */
  .figure__scroll > svg { width: 720px; max-width: none; }
  .figure__hint {
    display: block;
    font-family: var(--mono);
    font-size: var(--fs-micro);
    color: var(--text-3);
    margin-bottom: 10px;
  }
  .figure--dark .figure__hint { color: var(--d-text-3); }
  .trace__v { white-space: normal; overflow: visible; }
}

@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
  .stages { grid-template-columns: 1fr; }
  .stages a { margin-top: 0; padding-top: 10px; padding-bottom: 10px; border-top: 1px solid var(--line); }
}

/* ---- 24. Motion preferences -------------------------------- */

@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;
  }
}

/* ---- 25. Print --------------------------------------------- */

@media print {
  .masthead, .spine, .hero__bloom, .cta__bloom { display: none !important; }
  body { background: #fff; }
  .band--dark, .hero, .cta { background: #fff !important; color: #000 !important; }
}
