/* ================================================================
   PRAEVA SYSTEMS — PUBLIC WEBSITE
   Designed and built for Praeva Systems.
   ================================================================ */

:root {
  --night: #040b1b;
  --night-2: #07132d;
  --navy: #0a214b;
  --navy-2: #12376f;
  --blue: #087ff5;
  --blue-soft: #5aaef9;
  --cyan: #14d6d7;
  --cyan-soft: #9df0ef;
  --teal: #0cb9b7;
  --ink: #071326;
  --slate: #54657b;
  --muted: #718198;
  --line: #dbe5ef;
  --line-dark: rgba(255,255,255,.1);
  --paper: #f7f9fc;
  --white: #fff;
  --allow: #13a475;
  --deny: #d15454;
  --escalate: #d29a35;
  --shadow: 0 28px 90px rgba(4, 11, 27, .12);
  --shadow-dark: 0 34px 100px rgba(0,0,0,.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --shell: min(1200px, calc(100vw - 44px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 9999;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin: 0 auto; }
.section { padding: 118px 0; position: relative; overflow: hidden; }

h1,h2,h3,p { margin-top: 0; }
h1 {
  max-width: 810px;
  margin-bottom: 28px;
  font-size: clamp(55px, 7vw, 98px);
  line-height: .92;
  letter-spacing: -.065em;
}
h2 {
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 67px);
  line-height: .98;
  letter-spacing: -.055em;
}
h3 {
  font-size: 23px;
  line-height: 1.16;
  letter-spacing: -.025em;
}
p {
  color: var(--slate);
  font-size: 17px;
  line-height: 1.72;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: var(--navy-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .20em;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.eyebrow.cyan { color: var(--cyan-soft); }

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #fff;
  background: linear-gradient(115deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 36px rgba(8,127,245,.27);
}
.button.ghost {
  color: var(--night-2);
  border-color: rgba(7,19,45,.13);
  background: rgba(255,255,255,.76);
}
.button.dark-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.17);
  background: rgba(255,255,255,.06);
}
.button.large { min-height: 60px; padding-inline: 30px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247,249,252,.84);
  border-bottom: 1px solid rgba(7,19,45,.075);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: var(--shell);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand img { width: 154px; height: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #33445c;
  font-size: 13px;
  font-weight: 800;
}
.site-nav > a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta {
  padding: 12px 19px;
  color: #fff;
  background: var(--night-2);
  border-radius: 999px;
}
.nav-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
}
.nav-toggle span:not(.sr-only) {
  width: 25px; height: 2px;
  display: block;
  margin: 5px 0;
  background: var(--night-2);
}

/* Hero */
.hero {
  min-height: calc(100vh - 82px);
  padding: 92px 0 40px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(7,19,45,.026) 1px, transparent 1px),
    linear-gradient(90deg,rgba(7,19,45,.026) 1px,transparent 1px),
    linear-gradient(180deg,#fbfcfe 0%,#f5f8fb 100%);
  background-size: 48px 48px,48px 48px,auto;
}
.hero::before {
  content: "";
  width: 620px; height: 620px;
  position: absolute;
  right: -300px; top: -220px;
  border: 1px solid rgba(8,127,245,.10);
  border-radius: 50%;
}
.hero::after {
  content: "";
  width: 420px; height: 420px;
  position: absolute;
  right: -165px; top: -120px;
  border: 1px solid rgba(18,212,214,.12);
  border-radius: 50%;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
}
.hero-glow-one {
  width: 480px; height: 480px;
  right: 5%; top: 16%;
  background: radial-gradient(circle, rgba(18,212,214,.11), transparent 67%);
}
.hero-glow-two {
  width: 440px; height: 440px;
  left: 8%; bottom: -28%;
  background: radial-gradient(circle, rgba(8,127,245,.09), transparent 70%);
}
.hero-grid {
  min-height: 700px;
  display: grid;
  /* The authority diagram uses a 680px desktop canvas. Do not let its
     column shrink below that width or the execution path will clip. */
  grid-template-columns: minmax(0,.88fr) minmax(680px,1.12fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-lede {
  max-width: 730px;
  margin-bottom: 24px;
  font-size: clamp(20px,2vw,25px);
  line-height: 1.58;
}
.thesis-line {
  margin: 28px 0 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--night-2);
  font-size: 15px;
}
.thesis-pulse {
  width: 9px; height: 9px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 7px rgba(18,212,214,.10);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof {
  margin-top: 34px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: #718198;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--blue),var(--cyan));
}

.hero-system {
  width: 100%;
  min-width: 0;
  min-height: 585px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(7,19,45,.10);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(rgba(8,127,245,.047) 1px,transparent 1px),
    linear-gradient(90deg,rgba(8,127,245,.047) 1px,transparent 1px),
    rgba(255,255,255,.91);
  background-size: 28px 28px;
  box-shadow: var(--shadow);
}
.system-topline {
  height: 58px;
  padding: 0 22px;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(7,19,45,.08);
  color: #728298;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #2c6d67;
}
.status-chip i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(18,212,214,.10);
}
.system-lines {
  width: 100%; height: calc(100% - 58px);
  overflow: visible;
  position: absolute;
  left: 0; top: 58px;
  z-index: 1;
}
.system-stage {
  width: 132px;
  min-height: 108px;
  padding: 16px;
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(7,19,45,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(7,19,45,.06);
}
.system-stage.principal { left: 30px; top: 112px; }
.system-stage.agent { left: 224px; top: 112px; }
.system-stage.target { right: 28px; top: 112px; }
.stage-index {
  margin-bottom: 13px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
}
.system-stage strong { font-size: 11px; letter-spacing: .06em; }
.system-stage small { margin-top: 5px; color: #8391a4; font-size: 10px; }

.praeva-core {
  width: 132px;
  min-height: 150px;
  position: absolute;
  left: 432px;
  top: 90px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.core-mark {
  width: 86px; height: 86px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 3;
  border: 5px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,var(--blue),var(--cyan)) border-box;
  color: transparent;
  font-size: 43px;
  font-weight: 950;
  -webkit-text-stroke: 2px transparent;
  background-clip: padding-box,border-box;
}
.core-mark::before {
  content: "P";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,var(--blue),var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.praeva-core strong { font-size: 11px; letter-spacing: .08em; }
.praeva-core small { margin-top: 4px; color: #7c8ca1; font-size: 9px; }
.core-orbit {
  position: absolute;
  border: 1px solid rgba(8,127,245,.13);
  border-radius: 50%;
}
.orbit-one { width: 112px; height: 112px; }
.orbit-two { width: 142px; height: 142px; border-color: rgba(18,212,214,.11); }

.decision-console {
  min-width: 300px;
  padding: 16px 18px;
  position: absolute;
  left: 350px;
  top: 320px;
  z-index: 4;
  display: grid;
  grid-template-columns: auto repeat(3,1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(7,19,45,.10);
  border-radius: 15px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 34px rgba(7,19,45,.08);
}
.console-label {
  margin-right: 2px;
  color: #7e8da1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}
.decision-choice {
  padding: 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  color: #8794a6;
  background: rgba(7,19,45,.035);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
.decision-choice span { width: 6px; height: 6px; border-radius: 50%; }
.decision-choice.allow span { background: var(--allow); }
.decision-choice.deny span { background: var(--deny); }
.decision-choice.escalate span { background: var(--escalate); }
.decision-choice.active {
  color: #126348;
  border: 1px solid rgba(19,164,117,.15);
  background: rgba(19,164,117,.09);
}
.console-note {
  position: absolute;
  left: 360px;
  top: 394px;
  z-index: 4;
  color: #7f8da0;
  font-size: 9px;
}
.hero-rule {
  height: 1px;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg,transparent,rgba(7,19,45,.12),transparent);
}

/* Category strip */
.category-strip {
  background: #fff;
  border-bottom: 1px solid rgba(7,19,45,.08);
}
.category-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: stretch;
}
.category-item {
  min-height: 170px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.category-item.featured {
  background: linear-gradient(135deg,rgba(8,127,245,.06),rgba(18,212,214,.075));
}
.category-label {
  margin-bottom: 12px;
  color: #8391a4;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}
.category-item.featured .category-label { color: var(--blue); }
.category-item strong { font-size: 20px; letter-spacing: -.02em; }
.category-item p { margin: 7px 0 0; font-size: 13px; }
.category-arrow {
  display: grid;
  place-items: center;
  color: #a6b2c1;
  font-size: 18px;
}

/* Shared section layouts */
.section-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 90px;
  align-items: end;
}
.section-heading { max-width: 730px; }
.section-intro { max-width: 620px; }
.section-intro p { font-size: 19px; }
.section-intro p:last-child { margin-bottom: 0; }

/* Authority cards */
.authority-cards {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.authority-card {
  min-height: 350px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(7,19,45,.09);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.82);
}
.authority-card-featured {
  border-color: rgba(8,127,245,.22);
  background:
    radial-gradient(circle at 100% 0%,rgba(18,212,214,.12),transparent 38%),
    linear-gradient(145deg,rgba(8,127,245,.05),rgba(18,212,214,.05)),
    #fff;
  box-shadow: var(--shadow);
}
.featured-beam {
  width: 180px; height: 2px;
  position: absolute;
  top: 0; right: 34px;
  background: linear-gradient(90deg,transparent,var(--cyan),transparent);
}
.card-top {
  margin-bottom: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-number { color: #94a2b3; font-size: 11px; font-weight: 900; }
.mini-icon {
  width: 38px; height: 38px;
  position: relative;
  border: 1px solid rgba(7,19,45,.09);
  border-radius: 10px;
  background: #f8fafc;
}
.identity-icon::before {
  content: "";
  width: 11px; height: 11px;
  position: absolute;
  left: 13px; top: 8px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}
.identity-icon::after {
  content: "";
  width: 18px; height: 8px;
  position: absolute;
  left: 8px; bottom: 7px;
  border: 2px solid var(--blue);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.access-icon::before {
  content: "";
  width: 14px; height: 14px;
  position: absolute;
  left: 8px; top: 10px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}
.access-icon::after {
  content: "";
  width: 14px; height: 2px;
  position: absolute;
  left: 20px; top: 17px;
  background: linear-gradient(90deg,var(--blue),var(--cyan));
  box-shadow: 6px 4px 0 -1px var(--cyan);
}
.authority-icon {
  background: linear-gradient(135deg,rgba(8,127,245,.07),rgba(18,212,214,.08));
}
.authority-icon::before {
  content: "";
  width: 17px; height: 17px;
  position: absolute;
  left: 9px; top: 9px;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#f8fafc,#f8fafc) padding-box,
    linear-gradient(135deg,var(--blue),var(--cyan)) border-box;
}
.authority-icon::after {
  content: "";
  width: 7px; height: 4px;
  position: absolute;
  left: 15px; top: 15px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
.authority-card h3 { margin-top: 44px; }
.authority-card p { font-size: 15px; }
.card-question {
  margin-top: auto;
  padding-top: 22px;
  color: var(--night-2);
  border-top: 1px solid rgba(7,19,45,.08);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

/* Dark runtime section */
.dark-section {
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%,rgba(18,212,214,.10),transparent 28%),
    radial-gradient(circle at 10% 92%,rgba(8,127,245,.12),transparent 30%),
    var(--night);
}
.dark-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom,rgba(0,0,0,.8),transparent 90%);
}
.dark-section h2 { color: #fff; }
.dark-section p { color: #9eafc5; }
.runtime-path {
  margin-top: 58px;
  padding: 40px 34px;
  display: grid;
  grid-template-columns: 1fr .55fr 1fr .55fr 1.18fr .55fr 1fr;
  align-items: center;
  gap: 10px;
  position: relative;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.035);
  box-shadow: var(--shadow-dark);
}
.runtime-node {
  min-height: 125px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.runtime-node span {
  margin-bottom: 18px;
  color: #6f829d;
  font-size: 9px;
  font-weight: 900;
}
.runtime-node strong { font-size: 13px; }
.runtime-node small { margin-top: 6px; color: #788aa3; font-size: 10px; }
.runtime-node.praeva-node {
  border-color: rgba(18,212,214,.32);
  background: linear-gradient(135deg,rgba(8,127,245,.17),rgba(18,212,214,.12));
}
.runtime-node.praeva-node span { color: var(--cyan); }
.runtime-wire { text-align: center; }
.runtime-wire i {
  height: 1px;
  display: block;
  position: relative;
  background: #5f718a;
}
.runtime-wire i::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  border-left: 5px solid #5f718a;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}
.runtime-wire.hot i {
  height: 2px;
  background: linear-gradient(90deg,var(--blue),var(--cyan));
  box-shadow: 0 0 14px rgba(18,212,214,.35);
}
.runtime-wire.hot i::after { border-left-color: var(--cyan); }
.runtime-wire b {
  margin-top: 8px;
  display: block;
  color: #60738d;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.component-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}
.component {
  min-height: 240px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.025);
}
.component-head {
  margin-bottom: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.component-head span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
}
.component-head h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}
.component p { margin-bottom: 0; font-size: 14px; }

/* Scenario */
.scenario-layout {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 88px;
  align-items: start;
}
.scenario-copy {
  position: sticky;
  top: 130px;
}
.scenario-copy p { max-width: 520px; font-size: 19px; }
.scenario-callout {
  margin-top: 34px;
  padding: 18px 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(7,19,45,.09);
  border-radius: 13px;
  background: #fff;
  color: #5f6e82;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(7,19,45,.05);
}
.scenario-callout strong {
  color: var(--blue);
  font-size: 22px;
}

.scenario-console {
  overflow: hidden;
  border: 1px solid rgba(7,19,45,.10);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.scenario-console-head {
  min-height: 58px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7d8b9d;
  border-bottom: 1px solid rgba(7,19,45,.08);
  background: #f9fbfd;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
.trace-id { color: var(--blue); }
.trace-row {
  min-height: 104px;
  padding: 22px 22px 22px 28px;
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(7,19,45,.07);
}
.trace-row:last-child { border-bottom: 0; }
.trace-line {
  width: 1px;
  position: absolute;
  left: 16px; top: 0; bottom: 0;
  background: #dce4ed;
}
.trace-line::before {
  content: "";
  width: 8px; height: 8px;
  position: absolute;
  left: -4px; top: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #9dafc3;
}
.trace-time {
  color: #9ba7b6;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 10px;
}
.trace-body strong { display: block; font-size: 15px; }
.trace-body small { margin-top: 6px; display: block; color: #7b899c; font-size: 11px; }
.trace-result {
  min-width: 78px;
  padding: 8px 10px;
  text-align: center;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
.trace-result.allow { color: #0e6e4e; background: rgba(19,164,117,.11); }
.trace-result.deny { color: #a43d3d; background: rgba(209,84,84,.11); }
.trace-result.escalate { color: #996d18; background: rgba(210,154,53,.13); }

/* Receipt section */
.receipt-section {
  color: #fff;
  background: linear-gradient(145deg,#071126,#040b1b);
}
.receipt-grid-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 84% 30%,rgba(18,212,214,.10),transparent 25%),
    linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);
  background-size: auto,40px 40px,40px 40px;
}
.receipt-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 88px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.receipt-copy h2 { color: #fff; }
.receipt-copy p { color: #9eafc5; font-size: 18px; }
.receipt-points {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 11px 18px;
}
.receipt-points li {
  position: relative;
  padding-left: 18px;
  color: #a8b8cb;
  font-size: 12px;
}
.receipt-points li::before {
  content: "";
  width: 6px; height: 6px;
  position: absolute;
  left: 0; top: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.authority-receipt {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255,255,255,.015),rgba(255,255,255,.015)),
    rgba(255,255,255,.035);
  box-shadow: var(--shadow-dark);
}
.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.receipt-head > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.receipt-kicker {
  color: #7f92aa;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}
.receipt-head strong {
  color: #eaf2fb;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 13px;
}
.receipt-state {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
}
.receipt-state.escalate {
  color: #ffd98f;
  border: 1px solid rgba(210,154,53,.18);
  background: rgba(210,154,53,.10);
}
.receipt-rule {
  height: 1px;
  margin: 22px 0 10px;
  background: linear-gradient(90deg,rgba(255,255,255,.08),rgba(18,212,214,.22),rgba(255,255,255,.08));
}
.authority-receipt dl { margin: 0; }
.authority-receipt dl > div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 22px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}
.authority-receipt dt {
  color: #70839b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.authority-receipt dd {
  margin: 0;
  color: #e2ebf5;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 10px;
  text-align: right;
}
.receipt-footer {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #647891;
  font-size: 8px;
}

/* Company / name meaning */
.company-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  align-items: center;
}
.company-mark {
  min-height: 420px;
  position: relative;
  display: grid;
  place-items: center;
}
.meaning-ring {
  width: 230px; height: 230px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  border: 12px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(var(--paper),var(--paper)) padding-box,
    linear-gradient(135deg,var(--blue),var(--cyan)) border-box;
  box-shadow: 0 26px 80px rgba(8,127,245,.12);
}
.meaning-p {
  background: linear-gradient(135deg,var(--blue),var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 112px;
  font-weight: 950;
  letter-spacing: -.08em;
}
.meaning-lines {
  width: 45%;
  height: 80px;
  position: absolute;
  top: calc(50% - 40px);
}
.meaning-lines::before,
.meaning-lines::after {
  content: "";
  height: 2px;
  position: absolute;
  background: linear-gradient(90deg,var(--blue),var(--cyan));
}
.meaning-lines.left { left: 0; }
.meaning-lines.right { right: 0; transform: scaleX(-1); }
.meaning-lines.left::before,
.meaning-lines.right::before { width: 88%; top: 18px; }
.meaning-lines.left::after,
.meaning-lines.right::after { width: 70%; bottom: 18px; }
.company-lede { color: var(--night-2); font-size: 24px; }
blockquote {
  margin: 38px 0 0;
  padding: 28px 0 0;
  color: var(--night-2);
  border-top: 1px solid rgba(7,19,45,.11);
  font-size: clamp(32px,4.4vw,54px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.045em;
}

/* CTA */
.cta-section { padding: 25px 0 118px; }
.cta-panel {
  min-height: 370px;
  padding: 56px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
  color: #fff;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 18%,rgba(18,212,214,.18),transparent 26%),
    linear-gradient(135deg,#07132d,#091c3d);
  box-shadow: var(--shadow);
}
.cta-panel::before {
  content: "";
  width: 420px; height: 420px;
  position: absolute;
  right: -180px; bottom: -270px;
  border: 1px solid rgba(18,212,214,.15);
  border-radius: 50%;
}
.cta-copy { position: relative; z-index: 2; }
.cta-copy h2 { color: #fff; }
.cta-copy p { max-width: 720px; color: #a4b5c9; font-size: 18px; }
.cta-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-note {
  min-height: 17px;
  margin: 3px 0 0;
  color: #8598af;
  font-size: 10px;
  text-align: center;
}
.cta-signal {
  width: 270px; height: 120px;
  position: absolute;
  right: 5%; top: 5%;
  opacity: .18;
}
.cta-signal span {
  height: 1px;
  display: block;
  position: absolute;
  right: 0;
  background: linear-gradient(90deg,transparent,var(--cyan));
}
.cta-signal span:nth-child(1){width:100%;top:10px}
.cta-signal span:nth-child(2){width:82%;top:32px}
.cta-signal span:nth-child(3){width:92%;top:54px}
.cta-signal span:nth-child(4){width:68%;top:76px}
.cta-signal span:nth-child(5){width:78%;top:98px}

/* Footer */
.site-footer {
  padding: 58px 0;
  color: #7e90a7;
  background: var(--night);
}
.footer-grid {
  display: grid;
  grid-template-columns: .7fr 1.35fr .95fr;
  gap: 46px;
  align-items: center;
}
.footer-brand img {
  width: 160px;
  filter: brightness(0) invert(1);
  opacity: .86;
}
.footer-copy strong {
  color: #d9e4f1;
  font-size: 12px;
  letter-spacing: .02em;
}
.footer-copy p { margin: 4px 0 0; color: #7f90a6; font-size: 11px; }
.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 19px;
  flex-wrap: wrap;
  color: #a7b5c6;
  font-size: 11px;
  font-weight: 750;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1220px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-system {
    width: min(760px, 100%);
    max-width: 760px;
    margin-inline: auto;
  }
  .section-grid { grid-template-columns: 1fr; gap: 24px; }
  .authority-cards { grid-template-columns: 1fr 1fr; }
  .authority-card-featured { grid-column: 1 / -1; }
  .component-grid { grid-template-columns: repeat(2,1fr); }
  .scenario-layout,
  .receipt-layout,
  .company-layout { grid-template-columns: 1fr; gap: 54px; }
  .scenario-copy { position: static; }
  .company-mark { min-height: 320px; }
  .cta-panel { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 800px) {
  :root { --shell: min(100% - 28px,1200px); }
  .section { padding: 82px 0; }

  .nav-shell { min-height: 70px; }
  .brand img { width: 128px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 14px; right: 14px; top: 76px;
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    border: 1px solid rgba(7,19,45,.10);
    border-radius: 15px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .nav-cta { text-align: center; }

  .hero {
    min-height: auto;
    padding: 66px 0 34px;
  }
  .hero-grid { gap: 46px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-proof { gap: 12px 18px; }

  .hero-system {
    min-height: auto;
    padding: 0 16px 24px;
  }
  .system-topline { margin: 0 -16px 22px; }
  .system-lines { display: none; }
  .system-stage,
  .praeva-core,
  .decision-console,
  .console-note {
    width: auto;
    min-height: 0;
    position: static;
  }
  .system-stage {
    margin-bottom: 10px;
    padding: 16px;
    text-align: center;
  }
  .stage-index { margin-bottom: 7px; }
  .praeva-core {
    margin: 18px auto 20px;
  }
  .decision-console {
    min-width: 0;
    padding: 14px;
    grid-template-columns: 1fr;
  }
  .console-label { margin-bottom: 4px; text-align: center; }
  .console-note { margin-top: 12px; text-align: center; line-height: 1.5; }

  .category-grid { grid-template-columns: 1fr; }
  .category-arrow { min-height: 34px; transform: rotate(90deg); }
  .category-item { min-height: 128px; padding: 24px; }

  .authority-cards { grid-template-columns: 1fr; }
  .authority-card-featured { grid-column: auto; }

  .runtime-path {
    padding: 24px;
    grid-template-columns: 1fr;
  }
  .runtime-wire {
    min-height: 34px;
    display: grid;
    place-items: center;
  }
  .runtime-wire i {
    width: 1px; height: 26px;
  }
  .runtime-wire i::after {
    right: -3px; top: auto; bottom: -1px;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 5px solid #5f718a;
    border-bottom: 0;
  }
  .runtime-wire.hot i { width: 2px; height: 26px; }
  .runtime-wire.hot i::after {
    border-left-color: transparent;
    border-top-color: var(--cyan);
  }
  .runtime-wire b { display: none; }
  .runtime-node { min-height: 100px; text-align: center; }
  .runtime-node span { margin-bottom: 8px; }

  .component-grid { grid-template-columns: 1fr; }
  .component { min-height: 190px; }

  .trace-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 30px;
  }
  .trace-time { margin-left: 0; }
  .trace-result {
    width: max-content;
    min-width: 78px;
  }

  .receipt-points { grid-template-columns: 1fr; }
  .authority-receipt dl > div { grid-template-columns: 1fr; gap: 5px; }
  .authority-receipt dd { text-align: left; }
  .receipt-footer { flex-direction: column; }

  .company-mark { min-height: 250px; }
  .meaning-ring { width: 165px; height: 165px; border-width: 9px; }
  .meaning-p { font-size: 80px; }

  .cta-section { padding-bottom: 82px; }
  .cta-panel { min-height: 0; padding: 36px 24px; }
  .cta-actions { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

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

/* v2.2 hero decision-console safety */
@media (min-width: 1221px) {
  .hero-system {
    padding-bottom: 34px;
  }

  .decision-console {
    bottom: auto;
  }

  .console-note {
    max-width: 360px;
    line-height: 1.45;
  }
}


/* ================================================================
   v2.3 — RESPONSIVE HERO AUTHORITY GRID
   Replaces fixed-position desktop internals with a true grid so the
   full Principal → Agent → Praeva → Tool path and decision panel fit
   inside the hero frame at every desktop width.
   ================================================================ */

@media (min-width: 801px) {
  .hero-system {
    min-height: 520px;
    padding: 0 22px 28px;
    display: grid;
    grid-template-columns:
      minmax(105px, 1fr) 24px
      minmax(105px, 1fr) 24px
      minmax(118px, 1.08fr) 24px
      minmax(105px, 1fr);
    grid-template-rows: 58px minmax(210px, 1fr) auto auto;
    column-gap: 6px;
    row-gap: 14px;
    align-items: center;
    overflow: hidden;
  }

  .system-topline {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0 -22px;
    position: relative;
    z-index: 4;
  }

  .system-lines {
    display: none;
  }

  .system-stage,
  .praeva-core,
  .decision-console,
  .console-note {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }

  .system-stage {
    width: 100%;
    min-width: 0;
    min-height: 118px;
    padding: 15px 12px;
    position: relative;
    z-index: 3;
  }

  .system-stage.principal {
    grid-column: 1;
    grid-row: 2;
  }

  .system-stage.agent {
    grid-column: 3;
    grid-row: 2;
  }

  .system-stage.target {
    grid-column: 7;
    grid-row: 2;
  }

  .praeva-core {
    width: 100%;
    min-width: 0;
    min-height: 175px;
    grid-column: 5;
    grid-row: 2;
    position: relative;
    z-index: 4;
  }

  /* Connectors */
  .system-stage.principal::after,
  .system-stage.agent::after,
  .praeva-core::after {
    content: "";
    width: 30px;
    height: 2px;
    position: absolute;
    top: 50%;
    right: -34px;
    transform: translateY(-50%);
    background: #91a0b3;
    z-index: 1;
  }

  .system-stage.principal::before,
  .system-stage.agent::before,
  .praeva-core::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -35px;
    transform: translateY(-50%);
    border-left: 5px solid #91a0b3;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    z-index: 2;
  }

  .system-stage.agent::after {
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 0 12px rgba(18,212,214,.34);
  }

  .system-stage.agent::before {
    border-left-color: var(--cyan);
  }

  .praeva-core::after {
    background: linear-gradient(90deg, var(--cyan), #91a0b3);
  }

  .praeva-core::before {
    border-left-color: #91a0b3;
  }

  .decision-console {
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
    grid-column: 3 / 8;
    grid-row: 3;
    display: grid;
    grid-template-columns: auto repeat(3, minmax(72px, 1fr));
    gap: 8px;
    align-items: center;
    z-index: 4;
  }

  .decision-choice {
    min-width: 0;
    white-space: nowrap;
  }

  .console-note {
    width: 100%;
    max-width: none;
    grid-column: 3 / 8;
    grid-row: 4;
    margin: 0;
    padding: 0 4px;
    position: static;
    color: #7f8da0;
    font-size: 9px;
    line-height: 1.45;
    z-index: 4;
  }
}

/* Narrow laptop / tablet: keep all four stages visible, but tighten labels. */
@media (min-width: 801px) and (max-width: 1220px) {
  .hero-system {
    width: min(100%, 760px);
    min-height: 500px;
    margin-inline: auto;
  }

  .system-stage strong {
    font-size: 10px;
  }

  .system-stage small {
    font-size: 9px;
  }

  .decision-console {
    grid-column: 1 / -1;
  }

  .console-note {
    grid-column: 1 / -1;
  }
}


/* ================================================================
   v2.4 — FULL-WIDTH DESKTOP HERO
   The hero diagram now spans the full content width on desktop/laptop.
   This removes the remaining clipping risk caused by sharing horizontal
   space with the headline.
   ================================================================ */

@media (min-width: 801px) {
  .hero {
    padding-top: 78px;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 54px !important;
    min-height: auto !important;
    align-items: start;
  }

  .hero-copy {
    max-width: 980px;
  }

  .hero-copy h1 {
    max-width: 900px;
  }

  .hero-lede {
    max-width: 860px;
  }

  .hero-system {
    width: 100% !important;
    max-width: none !important;
    min-height: 520px;
    margin-inline: 0 !important;
  }
}

/* Give the full-width authority diagram a generous interior grid. */
@media (min-width: 1000px) {
  .hero-system {
    grid-template-columns:
      minmax(130px, 1fr) 34px
      minmax(130px, 1fr) 34px
      minmax(150px, 1.08fr) 34px
      minmax(130px, 1fr);
    column-gap: 10px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .system-topline {
    margin-left: -28px;
    margin-right: -28px;
  }

  .decision-console {
    grid-column: 3 / 8;
    width: 100%;
    max-width: 680px;
    justify-self: end;
  }

  .console-note {
    grid-column: 3 / 8;
    width: 100%;
    max-width: 680px;
    justify-self: end;
  }
}

/* On smaller laptops, use the whole box for the decision panel. */
@media (min-width: 801px) and (max-width: 999px) {
  .decision-console,
  .console-note {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }
}


/* ================================================================
   v2.6 — TYPOGRAPHY PASS
   Slightly larger supporting text for desktop readability without
   changing the established hero headline scale.
   ================================================================ */

body {
  font-size: 17px;
}

p {
  font-size: 18px;
  line-height: 1.72;
}

.site-nav {
  font-size: 14px;
}

.eyebrow {
  font-size: 12px;
}

.hero-lede {
  font-size: clamp(22px, 2.1vw, 27px);
}

.thesis-line {
  font-size: 16px;
}

.hero-proof {
  font-size: 12px;
}

.system-topline {
  font-size: 10px;
}

.system-stage strong {
  font-size: 12px;
}

.system-stage small {
  font-size: 11px;
}

.praeva-core strong {
  font-size: 12px;
}

.praeva-core small {
  font-size: 10px;
}

.console-label {
  font-size: 9px;
}

.decision-choice {
  font-size: 9px;
}

.console-note {
  font-size: 10px;
}

.category-label {
  font-size: 10px;
}

.category-item strong {
  font-size: 22px;
}

.category-item p {
  font-size: 14px;
}

.section-intro p {
  font-size: 20px;
}

.authority-card p {
  font-size: 16px;
}

.card-question {
  font-size: 15px;
}

.runtime-node strong {
  font-size: 14px;
}

.runtime-node small {
  font-size: 11px;
}

.runtime-wire b {
  font-size: 9px;
}

.component p {
  font-size: 15px;
}

.scenario-copy p {
  font-size: 20px;
}

.trace-body strong {
  font-size: 16px;
}

.trace-body small {
  font-size: 12px;
}

.trace-result {
  font-size: 9px;
}

.receipt-copy p {
  font-size: 19px;
}

.receipt-points li {
  font-size: 13px;
}

.authority-receipt dt {
  font-size: 10px;
}

.authority-receipt dd {
  font-size: 11px;
}

.company-lede {
  font-size: 25px;
}

.cta-copy p {
  font-size: 19px;
}

.footer-copy strong {
  font-size: 13px;
}

.footer-copy p,
.footer-links {
  font-size: 12px;
}

/* Keep mobile readable without letting it become oversized. */
@media (max-width: 800px) {
  p {
    font-size: 17px;
  }

  .hero-lede {
    font-size: 21px;
  }

  .section-intro p,
  .scenario-copy p,
  .receipt-copy p,
  .cta-copy p {
    font-size: 18px;
  }

  .system-stage strong {
    font-size: 11px;
  }

  .system-stage small {
    font-size: 10px;
  }
}


/* ================================================================
   v2.7 — HERO BOX SPACING TIGHTEN
   Pull the Principal / Agent / Praeva / Tool cluster closer together
   so the authority path reads as a tighter sequence on desktop.
   ================================================================ */

@media (min-width: 1000px) {
  .hero-system {
    /* fixed internal desktop track widths + centered cluster */
    grid-template-columns:
      210px 30px
      210px 30px
      180px 30px
      210px !important;
    justify-content: center;
    column-gap: 0;
    row-gap: 12px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .system-topline {
    margin-left: -22px;
    margin-right: -22px;
  }

  .system-stage {
    min-height: 126px;
  }

  .praeva-core {
    min-height: 165px;
  }

  .system-stage.principal::after,
  .system-stage.agent::after,
  .praeva-core::after {
    width: 26px;
    right: -28px;
  }

  .system-stage.principal::before,
  .system-stage.agent::before,
  .praeva-core::before {
    right: -29px;
  }

  .decision-console {
    grid-column: 3 / 8;
    max-width: 620px;
    margin-top: 2px;
  }

  .console-note {
    grid-column: 3 / 8;
    max-width: 620px;
  }
}

/* Smaller laptop widths: still tight, but a touch more flexible. */
@media (min-width: 801px) and (max-width: 999px) {
  .hero-system {
    grid-template-columns:
      minmax(150px, 180px) 22px
      minmax(150px, 180px) 22px
      minmax(135px, 160px) 22px
      minmax(150px, 180px);
    justify-content: center;
    column-gap: 0;
    row-gap: 12px;
  }

  .system-stage.principal::after,
  .system-stage.agent::after,
  .praeva-core::after {
    width: 18px;
    right: -20px;
  }

  .system-stage.principal::before,
  .system-stage.agent::before,
  .praeva-core::before {
    right: -21px;
  }
}


/* ================================================================
   v2.8 — CLEAN DESKTOP AUTHORITY FLOW
   Desktop gets a dedicated layout. Mobile keeps the existing stacked
   component that already works well.
   ================================================================ */

.desktop-authority-flow {
  display: none;
}

@media (min-width: 801px) {
  /* Hide the legacy hero internals on desktop only. */
  .hero-system > .system-lines,
  .hero-system > .system-stage,
  .hero-system > .praeva-core,
  .hero-system > .decision-console,
  .hero-system > .console-note {
    display: none !important;
  }

  .hero-system {
    display: block !important;
    min-height: 500px !important;
    padding: 0 28px 34px !important;
    overflow: hidden !important;
  }

  .system-topline {
    height: 58px !important;
    margin: 0 -28px !important;
    padding: 0 24px !important;
    position: relative !important;
    display: flex !important;
  }

  .desktop-authority-flow {
    min-height: 405px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 0 4px;
  }

  .desktop-flow-row {
    width: min(100%, 980px);
    margin: 0 auto;
    display: grid;
    grid-template-columns:
      minmax(165px, 1fr) 46px
      minmax(165px, 1fr) 46px
      170px 46px
      minmax(165px, 1fr);
    align-items: center;
    gap: 0;
  }

  .desktop-stage {
    min-height: 126px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(7,19,45,.11);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 30px rgba(7,19,45,.055);
  }

  .desktop-stage-index {
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
  }

  .desktop-stage strong {
    color: var(--ink);
    font-size: 13px;
    letter-spacing: .06em;
  }

  .desktop-stage small {
    margin-top: 6px;
    color: #8290a3;
    font-size: 11px;
  }

  .desktop-connector {
    height: 2px;
    position: relative;
    background: #91a0b3;
  }

  .desktop-connector::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #91a0b3;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }

  .desktop-connector.hot {
    height: 3px;
    background: linear-gradient(90deg,var(--blue),var(--cyan));
    box-shadow: 0 0 12px rgba(18,212,214,.30);
  }

  .desktop-connector.hot::after {
    border-left-color: var(--cyan);
  }

  .desktop-praeva {
    min-height: 176px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .desktop-p-ring {
    width: 104px;
    height: 104px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    border: 6px solid transparent;
    border-radius: 50%;
    background:
      linear-gradient(#fff,#fff) padding-box,
      linear-gradient(135deg,var(--blue),var(--cyan)) border-box;
    box-shadow: 0 18px 42px rgba(8,127,245,.14);
  }

  .desktop-p-ring span {
    background: linear-gradient(135deg,var(--blue),var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 54px;
    font-weight: 950;
    line-height: 1;
  }

  .desktop-praeva strong {
    font-size: 12px;
    letter-spacing: .10em;
  }

  .desktop-praeva small {
    margin-top: 5px;
    color: #8290a3;
    font-size: 10px;
  }

  .desktop-decision-row {
    width: min(100%, 720px);
    margin: 26px auto 0;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: auto repeat(3, minmax(110px, 1fr));
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(7,19,45,.10);
    border-radius: 15px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 30px rgba(7,19,45,.05);
  }

  .desktop-decision-label {
    color: #7e8da1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
  }

  .desktop-decision {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    color: #7a8799;
    background: rgba(7,19,45,.035);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
  }

  .desktop-decision i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
  }

  .desktop-decision.allow {
    color: #11684d;
    border: 1px solid rgba(19,164,117,.13);
    background: rgba(19,164,117,.09);
  }

  .desktop-decision.allow i { background: var(--allow); }
  .desktop-decision.deny i { background: var(--deny); }
  .desktop-decision.escalate i { background: var(--escalate); }

  .desktop-decision-note {
    width: min(100%, 720px);
    margin: 10px auto 0;
    color: #8190a3;
    font-size: 10px;
    line-height: 1.45;
  }
}

@media (min-width: 801px) and (max-width: 1030px) {
  .desktop-flow-row {
    grid-template-columns:
      minmax(135px, 1fr) 30px
      minmax(135px, 1fr) 30px
      145px 30px
      minmax(135px, 1fr);
  }

  .desktop-stage {
    min-height: 116px;
    padding: 15px;
  }

  .desktop-p-ring {
    width: 90px;
    height: 90px;
  }

  .desktop-p-ring span {
    font-size: 46px;
  }

  .desktop-decision-row {
    grid-template-columns: auto repeat(3, minmax(92px,1fr));
  }
}

@media (max-width: 800px) {
  .desktop-authority-flow {
    display: none !important;
  }
}


/* ================================================================
   v2.9 — CATEGORY + RUNTIME ARCHITECTURE POLISH
   ================================================================ */

/* Identity → Access → Authority */
.category-strip {
  padding: 34px 0 38px;
  background:
    linear-gradient(rgba(8,127,245,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(8,127,245,.026) 1px,transparent 1px),
    #fff;
  background-size: 38px 38px;
}

.category-intro {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
}

.category-intro > span {
  color: #7d8b9d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}

.category-intro p {
  max-width: 650px;
  margin: 0;
  color: #68788d;
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 54px 1fr 54px 1.08fr;
  align-items: stretch;
  border: 1px solid rgba(7,19,45,.09);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 44px rgba(7,19,45,.055);
}

.category-item {
  min-height: 188px;
  padding: 28px 30px 24px;
  position: relative;
  justify-content: flex-start;
  border: 0;
}

.category-item.featured {
  background:
    radial-gradient(circle at 100% 0%,rgba(18,212,214,.13),transparent 38%),
    linear-gradient(145deg,rgba(8,127,245,.06),rgba(18,212,214,.07));
}

.category-step {
  margin-bottom: 20px;
  color: #99a6b6;
  font-size: 10px;
  font-weight: 900;
}

.category-item.featured .category-step {
  color: var(--blue);
}

.category-item .category-label {
  margin-bottom: 8px;
}

.category-item strong {
  font-size: 23px;
}

.category-item p {
  max-width: 290px;
  margin-top: 7px;
  margin-bottom: auto;
  font-size: 14px;
  line-height: 1.5;
}

.category-item small {
  margin-top: 20px;
  color: #9aa7b7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.category-item.featured small {
  color: var(--blue);
}

.category-signal {
  width: 110px;
  height: 2px;
  position: absolute;
  right: 24px;
  top: 0;
  background: linear-gradient(90deg,transparent,var(--cyan),transparent);
}

.category-connector {
  display: grid;
  place-items: center;
  background: #fbfcfe;
}

.category-connector span {
  width: 30px;
  height: 2px;
  position: relative;
  background: #a2afbf;
}

.category-connector span::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid #a2afbf;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.category-connector.hot span {
  height: 3px;
  background: linear-gradient(90deg,var(--blue),var(--cyan));
  box-shadow: 0 0 10px rgba(18,212,214,.24);
}

.category-connector.hot span::after {
  border-left-color: var(--cyan);
}

.category-footnote {
  margin-top: 16px;
  padding: 0 6px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  color: #718198;
  font-size: 11px;
}

.category-footnote strong {
  color: #41536b;
}

/* How Praeva Works */
.runtime-frame {
  margin-top: 58px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  background: rgba(255,255,255,.025);
  box-shadow: var(--shadow-dark);
}

.runtime-frame-head {
  min-height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #72859f;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}

.runtime-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #92dfe0;
}

.runtime-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(18,212,214,.09);
}

.runtime-frame .runtime-path {
  margin: 0;
  padding: 36px 32px 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.runtime-boundary {
  margin: 0 32px 30px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.runtime-boundary > div:not(.runtime-boundary-arrow) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.runtime-boundary span {
  color: #657994;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}

.runtime-boundary strong {
  color: #b8c6d7;
  font-size: 13px;
}

.runtime-boundary-arrow {
  color: var(--cyan);
  font-size: 25px;
  font-weight: 700;
}

.runtime-boundary .authority-boundary {
  padding-left: 22px;
  border-left: 1px solid rgba(18,212,214,.16);
}

.runtime-boundary .authority-boundary span {
  color: #77dcdf;
}

.runtime-boundary .authority-boundary strong {
  color: #e7f4f6;
}

/* Product primitives */
.component-grid {
  margin-top: 18px;
  grid-template-columns: repeat(2,1fr);
}

.component {
  min-height: 210px;
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}

.component::after {
  content: "";
  width: 130px;
  height: 130px;
  position: absolute;
  right: -56px;
  bottom: -70px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 50%;
}

.component-featured {
  border-color: rgba(18,212,214,.25);
  background:
    radial-gradient(circle at 100% 0%,rgba(18,212,214,.085),transparent 36%),
    linear-gradient(135deg,rgba(8,127,245,.08),rgba(18,212,214,.055));
}

.component-label {
  margin-bottom: 26px;
  color: #667b96;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .17em;
}

.component-featured .component-label {
  color: #78dfe1;
}

.component-head {
  margin-bottom: 17px;
}

.component-head span {
  min-width: 24px;
}

.component-head h3 {
  font-size: 19px;
}

.component p {
  max-width: 500px;
  font-size: 15px;
  line-height: 1.58;
}

@media (max-width: 800px) {
  .category-strip {
    padding: 26px 0 30px;
  }

  .category-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .category-intro p {
    max-width: none;
    text-align: left;
  }

  .category-grid {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .category-item {
    min-height: 150px;
    padding: 24px;
  }

  .category-connector {
    min-height: 36px;
  }

  .category-connector span {
    width: 2px;
    height: 24px;
  }

  .category-connector span::after {
    right: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #a2afbf;
    border-bottom: 0;
  }

  .category-connector.hot span {
    width: 3px;
    height: 24px;
  }

  .category-connector.hot span::after {
    border-left-color: transparent;
    border-top-color: var(--cyan);
  }

  .category-footnote {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .runtime-frame-head {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 14px;
  }

  .runtime-frame .runtime-path {
    padding: 24px;
  }

  .runtime-boundary {
    margin: 0 24px 24px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .runtime-boundary-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .runtime-boundary .authority-boundary {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(18,212,214,.16);
  }

  .component-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   v3.0 — CONTENT DEPTH + WHEN AGENTS RUN AMOK
   ================================================================ */

.why-now-section {
  background:
    radial-gradient(circle at 90% 15%, rgba(18,212,214,.08), transparent 24%),
    #f7f9fc;
}
.why-now-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.why-now-card {
  min-height: 235px;
  padding: 28px;
  border: 1px solid rgba(7,19,45,.09);
  border-radius: 20px;
  background: rgba(255,255,255,.86);
}
.why-now-card > span {
  margin-bottom: 46px;
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
}
.why-now-card h3 { margin-bottom: 13px; }
.why-now-card p { margin-bottom: 0; font-size: 15px; }

.fit-section { background: #fff; }
.fit-header {
  margin-bottom: 46px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: end;
}
.fit-header p { margin-bottom: 10px; font-size: 19px; }
.fit-table {
  overflow: hidden;
  border: 1px solid rgba(7,19,45,.09);
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(7,19,45,.05);
}
.fit-row {
  min-height: 92px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: .85fr 1fr 1.45fr;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid rgba(7,19,45,.07);
  background: #fff;
}
.fit-row:last-child { border-bottom: 0; }
.fit-row-head {
  min-height: 48px;
  color: #8492a4;
  background: #f8fafc;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
.fit-row strong { font-size: 15px; }
.fit-row span { color: #64758a; font-size: 14px; line-height: 1.5; }
.fit-row-praeva {
  background: linear-gradient(135deg,rgba(8,127,245,.06),rgba(18,212,214,.07));
}
.fit-row-praeva strong { color: var(--blue); }

.doctrine-section {
  background:
    linear-gradient(rgba(8,127,245,.025) 1px, transparent 1px),
    linear-gradient(90deg,rgba(8,127,245,.025) 1px,transparent 1px),
    #f8fafc;
  background-size: 44px 44px;
}
.doctrine-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 17px;
}
.doctrine-item {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(7,19,45,.09);
  border-radius: 19px;
  background: rgba(255,255,255,.9);
}
.doctrine-item:last-child { grid-column: 1 / -1; }
.doctrine-item > span {
  margin-bottom: 38px;
  display: block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
}
.doctrine-item p { margin-bottom: 0; font-size: 15px; }

.resources-section { background: #fff; }
.resources-heading {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 80px;
  align-items: end;
}
.resources-heading p { margin-bottom: 14px; font-size: 18px; }
.text-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}
.resource-feature {
  min-height: 380px;
  padding: 34px;
  display: grid;
  grid-template-columns: .58fr 1.2fr .75fr;
  gap: 38px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(7,19,45,.10);
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0%,rgba(18,212,214,.13),transparent 30%),
    linear-gradient(135deg,#07132d,#0a214b);
  box-shadow: var(--shadow);
  color: #fff;
}
.resource-feature:hover { transform: translateY(-2px); }
.resource-series {
  min-height: 220px;
  padding-right: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255,255,255,.11);
}
.resource-series span {
  color: #8ba0ba;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .17em;
}
.resource-series strong {
  color: transparent;
  background: linear-gradient(135deg,var(--blue),var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 64px;
  line-height: 1;
}
.resource-type {
  color: #7fdde0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}
.resource-copy h3,
.resource-copy h2 {
  margin: 14px 0 16px;
  color: #fff;
  font-size: clamp(30px,3.2vw,46px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.resource-copy p { color: #a8b8ca; font-size: 16px; }
.resource-read {
  display: inline-block;
  margin-top: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}
.resource-graphic {
  min-height: 220px;
  display: grid;
  place-items: center;
}
.rogue-path {
  width: 100%;
  display: grid;
  gap: 12px;
}
.rogue-node {
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-align: center;
}
.rogue-node.ok { color: #78dfb8; }
.rogue-node.warn { color: #f4cf7c; }
.rogue-node.stop { color: #fff; border-color: rgba(18,212,214,.3); }
.rogue-path i {
  width: 2px; height: 20px;
  justify-self: center;
  background: linear-gradient(var(--blue),var(--cyan));
}
.resource-secondary-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 18px;
}
.resource-secondary {
  padding: 27px;
  border: 1px solid rgba(7,19,45,.09);
  border-radius: 18px;
  background: #f9fbfd;
}
.resource-secondary > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
.resource-secondary h3 { margin: 20px 0 12px; }
.resource-secondary p { font-size: 15px; }
.resource-secondary a { color: var(--blue); font-size: 12px; font-weight: 850; }

/* Resource index page */
.resource-hero {
  padding-top: 100px;
  background:
    radial-gradient(circle at 80% 20%,rgba(18,212,214,.09),transparent 25%),
    linear-gradient(rgba(8,127,245,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(8,127,245,.025) 1px,transparent 1px),
    #f8fafc;
  background-size: auto,46px 46px,46px 46px,auto;
}
.resource-page-heading { max-width: 980px; }
.resource-page-heading p { max-width: 760px; font-size: 21px; }
.resource-index-section { background: #fff; }
.resource-index-label {
  margin-bottom: 20px;
  color: #7e8da1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}
.resource-feature-page { grid-template-columns: .5fr 1.5fr; }
.resource-feature-page .resource-copy h2 { font-size: clamp(32px,4vw,52px); }
.resource-doc-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 22px;
}
.resource-doc {
  padding: 34px;
  border: 1px solid rgba(7,19,45,.09);
  border-radius: 20px;
  background: #f9fbfd;
}
.resource-doc h2 {
  margin-top: 16px;
  font-size: 34px;
  line-height: 1.04;
}
.resource-doc p { font-size: 16px; }
.doctrine-list {
  padding-left: 22px;
  color: #58697e;
}
.doctrine-list li {
  margin: 0 0 17px;
  padding-left: 5px;
  line-height: 1.65;
}

/* Article */
.article-shell {
  width: min(920px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 110px 0 120px;
}
.article-header { max-width: 900px; }
.article-series {
  margin-bottom: 16px;
  color: var(--navy-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}
.article-series span { color: var(--blue); }
.article-meta {
  margin-bottom: 28px;
  color: #8593a4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.article-header h1 {
  max-width: 900px;
  font-size: clamp(50px,7vw,84px);
}
.article-deck {
  max-width: 820px;
  font-size: 22px;
  line-height: 1.55;
}
.article-rule {
  height: 1px;
  margin: 50px 0 60px;
  background: linear-gradient(90deg,var(--blue),var(--cyan),transparent);
}
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 {
  margin-top: 58px;
  font-size: 38px;
}
.article-body p { font-size: 19px; }
.article-callout {
  margin: 40px 0;
  padding: 28px;
  border-left: 4px solid var(--cyan);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(135deg,rgba(8,127,245,.06),rgba(18,212,214,.07));
}
.article-callout span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}
.article-callout strong {
  font-size: 22px;
  line-height: 1.35;
}
.article-decision-table {
  margin: 34px 0 42px;
  overflow: hidden;
  border: 1px solid rgba(7,19,45,.09);
  border-radius: 16px;
}
.article-decision-head,
.article-decision-table > div:not(.article-decision-head) {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(7,19,45,.07);
}
.article-decision-table > div:last-child { border-bottom: 0; }
.article-decision-head {
  color: #8190a2;
  background: #f8fafc;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
.article-decision-table strong { font-size: 14px; }
.article-quote {
  margin: 50px 0;
  padding: 30px 0;
  border-block: 1px solid rgba(7,19,45,.10);
  color: var(--navy-2);
  font-size: clamp(34px,5vw,54px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.04em;
}
.article-end {
  margin-top: 70px;
  padding: 34px;
  border-radius: 20px;
  background: var(--night-2);
}
.article-end > span {
  color: #7fdde0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}
.article-end > strong {
  margin: 14px 0 10px;
  display: block;
  color: #fff;
  font-size: 30px;
}
.article-end p { color: #a4b5c9; font-size: 15px; }

@media (max-width: 800px) {
  .why-now-grid,
  .doctrine-grid,
  .resource-secondary-grid,
  .resource-doc-grid {
    grid-template-columns: 1fr;
  }
  .doctrine-item:last-child { grid-column: auto; }
  .fit-header,
  .resources-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fit-row,
  .fit-row-head {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .fit-row-head { display: none; }
  .fit-row { padding: 22px; }
  .resource-feature,
  .resource-feature-page {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .resource-series {
    min-height: 100px;
    padding: 0 0 20px;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.11);
  }
  .resource-series strong { font-size: 48px; }
  .resource-graphic { display: none; }
  .article-shell { padding-top: 80px; }
  .article-body p { font-size: 18px; }
}
