:root {
  --black: #020306;
  --surface: #08090d;
  --surface-2: #0d0f17;
  --white: #f8f8ff;
  --muted: #a8a7b7;
  --muted-2: #747482;
  --violet: #8b5cf6;
  --blue: #2f7df6;
  --green: #2ae59e;
  --gold: #d5aa45;
  --pink: #ff79c8;
  --cyan: #54d9e8;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(139, 92, 246, 0.11), transparent 25%),
    radial-gradient(circle at 87% 58%, rgba(47, 125, 246, 0.08), transparent 28%),
    radial-gradient(circle at 50% 95%, rgba(42, 229, 158, 0.05), transparent 30%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 50%;
  width: min(calc(100% - 44px), 1220px);
  height: 74px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: linear-gradient(to bottom, rgba(2,3,6,.94), rgba(2,3,6,.68));
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 25px;
}

.brand-mark i {
  display: block;
  width: 5px;
  border-radius: 6px;
  transform: skew(-7deg);
}

.brand-mark i:nth-child(1) { height: 14px; background: linear-gradient(#b891ff,#7a3df0); }
.brand-mark i:nth-child(2) { height: 24px; background: linear-gradient(#48a6ff,#6a55ff); }
.brand-mark i:nth-child(3) { height: 18px; background: linear-gradient(#39eca6,#288bea); }

.brand-word {
  color: var(--white);
  font-size: 20px;
  font-weight: 790;
  letter-spacing: -0.045em;
}

.brand-word span { color: var(--green); }

.privacy-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(164,128,255,.23);
  border-radius: 999px;
  background: rgba(103,69,180,.1);
  color: #cdc4e9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.privacy-mark span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(42,229,158,.9);
}

.chapter-status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #797887;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.chapter-status span:first-child { color: var(--white); }
.chapter-status i { display: block; width: 30px; height: 1px; background: rgba(255,255,255,.18); }

.page-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--blue), var(--green));
  box-shadow: 0 0 12px var(--blue);
  transition: width .45s ease;
}

.section-rail {
  position: fixed;
  z-index: 90;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.section-rail button {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.section-rail button::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #4b4a56;
  transition: height .25s ease, background .25s ease, box-shadow .25s ease;
}

.section-rail button:hover::before { background: #9f9dac; }
.section-rail button.active::before {
  height: 13px;
  background: linear-gradient(var(--violet), var(--blue), var(--green));
  box-shadow: 0 0 10px rgba(77,143,255,.65);
}

.chapter {
  position: relative;
  min-height: 100svh;
  padding: 126px max(44px, calc((100% - var(--max)) / 2)) 90px;
  display: grid;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.045);
  scroll-snap-align: start;
  overflow: hidden;
}

.chapter::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 620px;
  height: 620px;
  right: -300px;
  top: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,125,246,.09), rgba(139,92,246,.035), transparent 70%);
  filter: blur(18px);
}

.chapter:nth-child(3n)::before {
  left: -320px;
  right: auto;
  background: radial-gradient(circle, rgba(139,92,246,.1), rgba(42,229,158,.03), transparent 70%);
}

.chapter-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.reveal {
  opacity: .1;
  transform: translateY(28px);
  filter: blur(5px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.chapter-heading {
  max-width: 960px;
  margin-bottom: 38px;
}

.slide-label,
.eyebrow {
  margin: 0 0 17px;
  color: #7cb0ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.slide-label::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin: 0 11px 3px 0;
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

.chapter-heading h2 {
  margin: 0;
  max-width: 1050px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.chapter-heading > p:last-child {
  max-width: 840px;
  margin: 21px 0 0;
  color: #bbb9c8;
  font-size: clamp(16px, 1.65vw, 20px);
  line-height: 1.52;
  text-wrap: pretty;
}

.hero {
  text-align: center;
  padding-top: 145px;
  background: radial-gradient(ellipse at 50% 33%, rgba(107,60,246,.18), transparent 50%);
}

.hero::before {
  width: 900px;
  height: 540px;
  left: 50%;
  right: auto;
  top: 8%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(107,60,246,.19), transparent 70%);
}

.hero-inner { max-width: 1260px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(164,128,255,.23);
  border-radius: 999px;
  background: rgba(103,69,180,.1);
  color: #cdc4e9;
  letter-spacing: .1em;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(42,229,158,.9);
}

.hero h1 {
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: -.045em;
}

.hero h1 strong {
  font-size: clamp(54px, 7.5vw, 104px);
  line-height: .98;
  letter-spacing: -.065em;
  background: linear-gradient(92deg, #f8f8ff 4%, #d9d7f0 36%, #8b5cf6 62%, #2f7df6 79%, #2ae59e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 26px auto 0;
  color: #c3c0d3;
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 650;
  letter-spacing: -.02em;
}

.macro-flow {
  margin: 62px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr) auto) minmax(110px, 1fr);
  gap: 11px;
  align-items: center;
}

.author {
  margin: 40px 0 0;
  color: #797786;
  font-size: 13px;
  font-weight: 700;
}

.author span { color: #4e4d58; margin: 0 6px; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 52px;
  color: #858392;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scroll-cue span { color: var(--green); font-size: 16px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(-2px)} 50%{transform:translateY(4px)} }

.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.info-card {
  position: relative;
  min-height: 255px;
  padding: 27px 28px 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,.053), rgba(255,255,255,.018));
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 28px 65px rgba(0,0,0,.14);
  transition: transform .25s ease, border-color .25s ease;
}

.info-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); }

.info-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -70px;
  bottom: -70px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: .16;
}

.info-card.violet::after { background: var(--violet); }
.info-card.blue::after { background: var(--blue); }
.info-card.green::after { background: var(--green); }

.card-index {
  position: absolute;
  top: 21px;
  right: 22px;
  color: #5e5c6c;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
}

.info-card h3,
.control-card > span {
  margin: 0 0 18px;
  color: #f0eff8;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.info-card.violet h3 { color: #bd91ff; }
.info-card.blue h3 { color: #72a8ff; }
.info-card.green h3 { color: #54e5ae; }

.info-card ul,
.control-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #aaa8b7;
  font-size: 13px;
  line-height: 1.5;
}

.info-card li,
.control-card li {
  position: relative;
  padding-left: 16px;
}

.info-card li + li,
.control-card li + li { margin-top: 7px; }
.info-card li::before,
.control-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .67em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6f6d7c;
}

.info-card.violet li::before { background: var(--violet); box-shadow: 0 0 8px rgba(139,92,246,.6); }
.info-card.blue li::before { background: var(--blue); box-shadow: 0 0 8px rgba(47,125,246,.6); }
.info-card.green li::before { background: var(--green); box-shadow: 0 0 8px rgba(42,229,158,.6); }
.two-column-list { columns: 2; column-gap: 26px; }
.two-column-list li { break-inside: avoid; }

.flow-panel {
  position: relative;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(13,15,24,.82), rgba(6,7,11,.9));
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}

.featured-flow { border-color: rgba(83,142,247,.18); }
.secondary-flow { border-color: rgba(42,229,158,.15); }

.flow-label,
.mini-heading {
  margin: 0 0 13px;
  color: #7f7c8b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mini-heading { margin-top: 26px; }

.flow-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr) auto) minmax(130px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.flow-chain.four { grid-template-columns: repeat(3, minmax(130px, 1fr) auto) minmax(130px, 1fr); }
.flow-chain.five { grid-template-columns: repeat(4, minmax(112px, 1fr) auto) minmax(112px, 1fr); }
.flow-chain.six { grid-template-columns: repeat(5, minmax(92px, 1fr) auto) minmax(92px, 1fr); }
.flow-chain.seven { grid-template-columns: repeat(6, minmax(84px, 1fr) auto) minmax(84px, 1fr); }
.flow-chain.eight { grid-template-columns: repeat(7, minmax(70px, 1fr) auto) minmax(70px, 1fr); }
.flow-chain.nine { grid-template-columns: repeat(8, minmax(65px, 1fr) auto) minmax(65px, 1fr); }

.flow-node {
  position: relative;
  min-height: 58px;
  padding: 12px 13px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(var(--tone-rgb, 113,158,255), .5);
  border-radius: 11px;
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--tone-rgb, 113,158,255), .3), transparent 66%),
    linear-gradient(145deg, rgba(var(--tone-rgb, 113,158,255), .2), rgba(7,8,13,.98) 72%);
  color: #dce0e9;
  font-size: 10px;
  font-weight: 790;
  letter-spacing: .045em;
  text-transform: uppercase;
  box-shadow:
    0 14px 34px rgba(0,0,0,.23),
    0 0 24px rgba(var(--tone-rgb, 113,158,255), .1),
    inset 0 1px rgba(255,255,255,.08);
  opacity: .25;
  transform: translateY(7px);
}

.is-visible .flow-node {
  animation: node-in .55s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(.14s + (var(--i) * .09s));
}

@keyframes node-in { to { opacity: 1; transform: translateY(0); } }

.flow-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--tone-rgb, 113,158,255), .95), transparent);
  box-shadow: 0 0 13px rgba(var(--tone-rgb, 113,158,255), .65);
}

[data-tone="violet"] { --tone-rgb: 139,92,246; }
[data-tone="blue"] { --tone-rgb: 47,125,246; }
[data-tone="cyan"] { --tone-rgb: 47,201,226; }
[data-tone="pink"] { --tone-rgb: 222,91,171; }
[data-tone="green"] { --tone-rgb: 42,229,158; }
[data-tone="gold"] { --tone-rgb: 222,177,70; }

.flow-arrow {
  align-self: center;
  color: #36d4a5;
  font-size: 19px;
  text-align: center;
  text-shadow: 0 0 16px rgba(42,229,158,.5);
}

.compact { gap: 7px; }
.compact .flow-node { min-height: 55px; padding-inline: 8px; font-size: 8.5px; }
.compact .flow-arrow { font-size: 14px; }

.chapter-note {
  margin: 21px 0 0;
  padding: 16px 18px;
  border-left: 2px solid var(--green);
  border-radius: 0 11px 11px 0;
  background: linear-gradient(90deg, rgba(42,229,158,.075), rgba(42,229,158,.015));
  color: #d4d2dc;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.chapter-note strong { color: var(--green); }
.top-note { margin: -6px 0 26px; }

.decision-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.decision-outcomes > div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}

.status-dot {
  grid-row: 1 / 3;
  align-self: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.green-dot { background: var(--green); box-shadow: 0 0 12px rgba(42,229,158,.7); }
.blue-dot { background: var(--blue); box-shadow: 0 0 12px rgba(47,125,246,.7); }
.muted-dot { background: #696875; }
.decision-outcomes strong { color: #d9d7e1; font-size: 11px; }
.decision-outcomes small { color: #777582; font-size: 9px; margin-top: 3px; }

.context-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  color: #aaa8b6;
  background: rgba(255,255,255,.025);
  font-size: 10px;
}

.context-strip strong { color: #ecebf3; }
.context-strip i { color: #4e4d58; font-style: normal; }

.finale {
  padding-top: 116px;
  padding-bottom: 110px;
  background:
    radial-gradient(circle at 50% 14%, rgba(101,70,225,.17), transparent 33%),
    radial-gradient(circle at 80% 72%, rgba(42,229,158,.07), transparent 30%);
}

.finale-heading { margin-bottom: 29px; }
.finale-heading h2 {
  background: linear-gradient(92deg, #f8f8ff 0%, #e2dcff 37%, #72a5ff 68%, #54e7ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.architecture {
  padding: 24px;
  border: 1px solid rgba(116,144,255,.2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(12,15,25,.88), rgba(5,7,11,.96));
  box-shadow: 0 35px 90px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.035);
}

.architecture-row {
  display: grid;
  align-items: stretch;
  gap: 7px;
}

.architecture-row-one { grid-template-columns: repeat(7, minmax(70px, 1fr) auto) minmax(70px, 1fr); }
.architecture-row-two,
.architecture-row-three { grid-template-columns: repeat(5, minmax(90px, 1fr) auto) minmax(90px, 1fr); }

.architecture-node {
  position: relative;
  min-height: 56px;
  display: grid;
  place-items: center;
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,.115);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(20,22,30,.98), rgba(7,8,12,.99));
  color: #dfe3eb;
  text-align: center;
  font-size: 8.5px;
  font-weight: 820;
  letter-spacing: .035em;
  line-height: 1.25;
  text-transform: uppercase;
  opacity: .15;
  transform: scale(.96);
  box-shadow: 0 12px 24px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.055);
}

.finale .is-visible .architecture-node {
  animation: architecture-in .5s ease forwards;
  animation-delay: calc(.12s + (var(--i) * .055s));
}

@keyframes architecture-in { to { opacity: 1; transform: scale(1); } }

.architecture-row-one .architecture-node,
.architecture-row-two .architecture-node,
.architecture-row-three .architecture-node { border-top-color: rgba(255,255,255,.16); }
.architecture-arrow,
.architecture-bridge {
  align-self: center;
  color: var(--green);
  text-align: center;
  text-shadow: 0 0 14px rgba(42,229,158,.5);
}
.architecture-arrow { font-size: 13px; }
.architecture-bridge { margin: 8px 0; font-size: 18px; }

.tech-layer-heading { margin-top: 37px; }

.stack-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
  position: relative;
}

.stack-stage {
  position: relative;
  min-width: 0;
  min-height: 262px;
  padding: 17px 11px 13px;
  border: 1px solid rgba(var(--tone-rgb), .35);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% -8%, rgba(var(--tone-rgb), .24), transparent 44%),
    linear-gradient(165deg, rgba(var(--tone-rgb), .1), rgba(7,8,13,.96) 55%);
  box-shadow: 0 18px 42px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.055);
}

.stack-stage:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 3;
  top: 50%;
  right: -14px;
  width: 16px;
  transform: translateY(-50%);
  color: rgba(113,238,196,.94);
  font-size: 18px;
  font-weight: 850;
  text-align: center;
  text-shadow: 0 0 12px rgba(42,229,158,.68);
}

.stage-number {
  display: block;
  color: rgba(var(--tone-rgb), .82);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .16em;
}

.stack-stage h3 {
  margin: 7px 0 14px;
  color: #f1eff8;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: .025em;
}

.logo-list { display: grid; gap: 8px; }

.logo-chip {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 38px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  color: #cfced8;
  font-size: 8.5px;
  font-weight: 760;
  line-height: 1.18;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}

.logo-chip img {
  width: 27px;
  height: 27px;
  padding: 3px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}

.logo-chip img.wide-logo { padding: 6px 2px; }
.logo-chip span { min-width: 0; overflow-wrap: anywhere; }

.logo-chip.prosp-chip { grid-template-columns: 1fr; }
.logo-chip img.prosp-logo {
  width: 72px;
  height: 27px;
  margin: 0 auto;
  padding: 4px;
  border: 1px solid rgba(145,104,246,.32);
  border-radius: 7px;
  background: #05060a;
}

.rev360-stage {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-color: rgba(139,92,246,.67);
  box-shadow: 0 22px 60px rgba(77,50,170,.28), 0 0 36px rgba(139,92,246,.16), inset 0 1px rgba(255,255,255,.09);
}

.rev360-mark {
  min-height: 94px;
  margin-top: 15px;
  padding: 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(181,142,255,.34);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 50%, rgba(116,72,222,.16), transparent 74%),
    #020305;
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 0 24px rgba(139,92,246,.13);
}

.rev360-mark img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 0 18px rgba(145,105,255,.34)); }
.rev360-owner {
  display: block;
  margin-top: 14px;
  color: #f2effa;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .025em;
  text-align: center;
}
.rev360-stage p { margin: 6px 2px 0; color: #8f85aa; font-size: 8.5px; font-weight: 720; line-height: 1.4; text-align: center; }

.feedback-loop {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 13px 17px;
  border: 1px solid rgba(139,92,246,.22);
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(139,92,246,.115), rgba(42,229,158,.055));
}

.feedback-arrow { color: #b996ff; font-size: 23px; line-height: 1; text-shadow: 0 0 14px rgba(139,92,246,.7); }
.feedback-loop strong { color: #ebe7f7; font-size: 10px; }
.feedback-loop > span:last-child { color: #817e8d; font-size: 9px; text-align: right; }

.strategy-cta {
  display: table;
  margin: 0;
  padding: 14px 22px;
  border: 1px solid rgba(148,108,255,.66);
  border-radius: 11px;
  background: linear-gradient(110deg, #7447de, #397be8 54%, #1dac83);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .035em;
  box-shadow: 0 15px 38px rgba(67,81,209,.3), 0 0 25px rgba(82,204,168,.13), inset 0 1px rgba(255,255,255,.22);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.strategy-cta:hover,
.strategy-cta:focus-visible { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 20px 46px rgba(67,81,209,.4), 0 0 30px rgba(82,204,168,.18); }
.strategy-cta span { padding-left: 8px; }

.final-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.main-site-cta {
  display: table;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  background: rgba(255,255,255,.045);
  color: #d6d4df;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .035em;
  box-shadow: inset 0 1px rgba(255,255,255,.05);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.main-site-cta:hover,
.main-site-cta:focus-visible { transform: translateY(-2px); border-color: rgba(42,229,158,.38); background: rgba(42,229,158,.07); color: #fff; }
.main-site-cta span { padding-left: 8px; color: #54e5ae; }

.secondary-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.secondary-actions .main-site-cta,
.secondary-actions .back-to-top {
  min-width: 150px;
  margin: 0;
  padding: 11px 15px;
  border-radius: 9px;
  font-size: 10px;
  text-align: center;
}

.back-to-top {
  display: table;
  margin: 20px auto 0;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  color: #c8c7d2;
  font-size: 10px;
  font-weight: 720;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px max(28px, calc((100% - var(--max)) / 2));
  border-top: 1px solid rgba(255,255,255,.07);
  background: #010204;
  color: #5c5b67;
  font-size: 9px;
  letter-spacing: .04em;
}

@media (max-width: 1080px) {
  .site-header { width: calc(100% - 34px); }
  .chapter { padding-inline: 45px; }
  .section-rail { right: 9px; }
  .macro-flow { grid-template-columns: repeat(3, minmax(120px,1fr) auto) minmax(120px,1fr); }
  .macro-flow .flow-node:nth-of-type(n+4) { margin-top: 8px; }
  .flow-chain,
  .flow-chain.four,
  .flow-chain.five,
  .flow-chain.six,
  .flow-chain.seven,
  .flow-chain.eight,
  .flow-chain.nine {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .flow-chain .flow-node { flex: 1 1 135px; }
  .flow-chain .flow-arrow { flex: 0 0 auto; }
  .architecture-row-one,
  .architecture-row-two,
  .architecture-row-three {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .architecture-node { flex: 1 1 105px; }
  .stack-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stack-stage:nth-child(3)::after { display: none; }
  .stack-stage { min-height: 252px; }
}

@media (max-width: 820px) {
  html { scroll-snap-type: none; }
  .site-header { grid-template-columns: 1fr auto; height: 66px; }
  .privacy-mark { display: none; }
  .section-rail { display: none; }
  .chapter { min-height: auto; padding: 104px 24px 76px; }
  .hero { min-height: 100svh; padding-top: 118px; }
  .chapter-heading { margin-bottom: 28px; }
  .chapter-heading h2 { font-size: clamp(38px, 10vw, 58px); }
  .card-grid.three,
  .card-grid.two,
  .decision-outcomes,
  .control-layers { grid-template-columns: 1fr; }
  .info-card { min-height: 0; }
  .macro-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 42px;
  }
  .macro-flow .flow-node { min-width: 135px; }
  .flow-panel { padding: 14px; overflow: hidden; }
  .flow-chain,
  .flow-chain.four,
  .flow-chain.five,
  .flow-chain.six,
  .flow-chain.seven,
  .flow-chain.eight,
  .flow-chain.nine {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  .flow-chain .flow-node { flex: none; width: 100%; min-height: 50px; }
  .flow-chain .flow-arrow { transform: rotate(90deg); }
  .architecture { padding: 17px; }
  .architecture-row-one,
  .architecture-row-two,
  .architecture-row-three { flex-direction: column; flex-wrap: nowrap; }
  .architecture-node { flex: none; width: 100%; min-height: 50px; }
  .architecture-arrow { transform: rotate(90deg); }
  .architecture-bridge { margin: 12px 0; }
  .stack-map { grid-template-columns: 1fr; gap: 18px; }
  .stack-stage { min-height: 0; padding: 19px 18px; }
  .stack-stage:not(:last-child)::after,
  .stack-stage:nth-child(3)::after {
    display: block;
    top: auto;
    right: auto;
    bottom: -21px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }
  .logo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rev360-mark { min-height: 105px; }
  .rev360-mark img { max-width: 330px; }
  .feedback-loop { grid-template-columns: auto 1fr; }
  .feedback-loop > span:last-child { grid-column: 1 / -1; text-align: left; padding-left: 33px; }
  .context-strip { justify-content: flex-start; }
  .site-footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 520px) {
  .site-header { width: calc(100% - 28px); }
  .brand-word { font-size: 18px; }
  .hero h1 strong { font-size: clamp(48px, 14vw, 70px); }
  .hero-subtitle { max-width: 320px; line-height: 1.55; }
  .chapter { padding-inline: 18px; }
  .chapter-heading h2 { font-size: 38px; }
  .chapter-heading > p:last-child { font-size: 16px; }
  .two-column-list { columns: 1; }
  .logo-list { grid-template-columns: 1fr; }
  .final-actions { align-items: stretch; flex-direction: column; }
  .strategy-cta,
  .main-site-cta { display: flex; width: 100%; justify-content: center; }
  .secondary-actions { flex-wrap: nowrap; }
  .secondary-actions .main-site-cta,
  .secondary-actions .back-to-top { width: auto; min-width: 0; flex: 1; }
}

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

@media print {
  body::before {
    content: "Private REV360 architecture briefing — not for redistribution";
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%,-50%) rotate(-22deg);
    color: rgba(0,0,0,.16);
    font-size: 32px;
    font-weight: 800;
    z-index: 9999;
    white-space: nowrap;
  }
  .site-header, .section-rail, .site-footer { display: none; }
  .chapter { min-height: auto; page-break-after: always; background: #fff !important; color: #111; }
}
