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

* {
  margin: 0;
  padding: 0;
}

:root {
  --royal-blue: #4073F3;
  --cyan-accent: #00D4FF;
  --deep-navy: #0A0E27;
  --cloud-white: #F8FAFC;
  --slate-gray: #64748B;
  --black: #000000;
  --green: #16A34A;
  --green-soft: #EAF7EE;
  --orange: #D97706;
  --orange-soft: #FFF7ED;
  --red: #DC2626;
  --red-soft: #FEF2F2;
  --teal: #0F766E;
  --teal-soft: #ECFDF5;
  --blue-soft: #EEF4FF;
  --cyan-soft: #E8FBFF;
  --ink: #101828;
  --text: #263348;
  --text-light: #64748B;
  --border: #DFE7F1;
  --border-strong: #C5D1E3;
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --sidebar-width: 292px;
  --content-max: 920px;
  --font: 'Inter', system-ui, -apple-system, 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  width: var(--sidebar-width);
  height: 100vh;
  flex-direction: column;
  color: rgba(255,255,255,0.72);
  background: #070A1E;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.24s ease;
}

.sidebar-header {
  padding: 28px 24px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: 0;
}

.sidebar-logo span {
  color: var(--royal-blue);
}

.sidebar-subtitle {
  max-width: 190px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,0.58);
  letter-spacing: 0;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
}

.nav-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 22px;
  border-left: 3px solid transparent;
  color: rgba(255,255,255,0.56);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #FFFFFF;
  background: rgba(64, 115, 243, 0.13);
  border-left-color: var(--royal-blue);
}

.nav-number {
  min-width: 24px;
  color: var(--cyan-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
}

.sidebar-footer {
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.progress-label {
  margin-bottom: 7px;
  color: rgba(255,255,255,0.48);
  font-size: 11px;
}

.progress-bar {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.11);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--royal-blue), var(--cyan-accent));
  transition: width 0.2s ease;
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 220;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 8px;
  background: #070A1E;
  box-shadow: 0 14px 32px rgba(7, 10, 30, 0.22);
  cursor: pointer;
}

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #FFFFFF;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 14, 39, 0.62);
}

.main-content {
  min-width: 0;
  flex: 1;
  margin-left: var(--sidebar-width);
}

.hero {
  position: relative;
  min-height: 74vh;
  max-height: 780px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 72px 54px 58px;
  color: #FFFFFF;
  background: #070A1E;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,10,30,0.98) 0%, rgba(7,10,30,0.86) 39%, rgba(7,10,30,0.48) 72%, rgba(7,10,30,0.25) 100%),
    linear-gradient(0deg, rgba(7,10,30,0.62), rgba(7,10,30,0.08));
  pointer-events: none;
}

.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.95;
}

.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
}

.scene-lane {
  position: absolute;
  right: 8%;
  width: 48%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,212,255,0), rgba(0,212,255,0.8), rgba(64,115,243,0));
  box-shadow: 0 0 18px rgba(0,212,255,0.26);
}

.lane-one {
  top: 37%;
  transform: rotate(-13deg);
}

.lane-two {
  top: 58%;
  transform: rotate(13deg);
}

.scene-node {
  position: absolute;
  width: 154px;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  color: #FFFFFF;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
}

.scene-node span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.scene-node strong {
  font-size: 24px;
  line-height: 1;
}

.node-source {
  top: 28%;
  right: 36%;
  border-color: rgba(0,212,255,0.42);
}

.node-agent {
  top: 41%;
  right: 19%;
  width: 182px;
  min-height: 100px;
  background: rgba(64,115,243,0.26);
  border-color: rgba(64,115,243,0.65);
}

.node-validate {
  top: 62%;
  right: 33%;
  border-color: rgba(22,163,74,0.55);
}

.node-output {
  top: 25%;
  right: 7%;
  border-color: rgba(217,119,6,0.55);
}

.node-audit {
  top: 66%;
  right: 8%;
  border-color: rgba(0,212,255,0.42);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(0, 212, 255, 0.34);
  border-radius: 999px;
  color: #DDF9FF;
  background: rgba(0, 212, 255, 0.09);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  max-width: 700px;
  color: #FFFFFF;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.03;
}

.hero-copy {
  max-width: 680px;
  margin-top: 22px;
  color: rgba(255,255,255,0.82);
  font-size: 19px;
  line-height: 1.62;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 680px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
}

.hero-proof div {
  min-height: 112px;
  padding: 18px;
  background: rgba(7,10,30,0.55);
}

.hero-proof strong {
  display: block;
  margin-bottom: 8px;
  color: #FFFFFF;
  font-size: 16px;
}

.hero-proof span {
  display: block;
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  line-height: 1.5;
}

.content-body {
  width: min(var(--content-max), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 78px 0 76px;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  position: relative;
  width: calc(100% + 96px);
  margin-left: -48px;
  padding-left: 48px;
  padding-right: 48px;
  background: var(--surface-alt);
}

.section-opening {
  padding-top: 66px;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--royal-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.section h2 {
  max-width: 780px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.16;
}

.section h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.section p {
  max-width: 770px;
  margin-top: 18px;
  font-size: 17px;
}

.lead {
  color: var(--text);
  font-size: 19px;
  line-height: 1.72;
}

.risk-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.risk-strip div {
  min-height: 174px;
  padding: 22px;
  background: #FFFFFF;
}

.risk-strip span {
  display: block;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
}

.risk-strip p {
  margin-top: 12px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

.outcome-statement {
  max-width: 850px;
  margin-top: 24px;
  padding-left: 24px;
  border-left: 4px solid var(--royal-blue);
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.62;
}

.outcome-statement.compact {
  color: var(--text);
  font-size: 19px;
  font-weight: 500;
}

.note-band {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid rgba(64,115,243,0.22);
  border-radius: 8px;
  background: var(--blue-soft);
}

.note-band strong {
  flex: 0 0 240px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.note-band span {
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.feature-card,
.impact-card,
.duration-card,
.expansion-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.055);
}

.feature-card {
  padding: 24px;
  border-top: 4px solid var(--royal-blue);
}

.feature-card:nth-child(2) {
  border-top-color: var(--teal);
}

.feature-card:nth-child(3) {
  border-top-color: var(--orange);
}

.feature-card p,
.impact-card p,
.duration-card p,
.expansion-grid p {
  margin-top: 12px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.65;
}

.callout {
  margin-top: 32px;
  padding: 24px;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: var(--green-soft);
}

.callout span {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.callout p {
  margin-top: 8px;
  color: var(--text);
  font-size: 16px;
}

.workflow-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 6px;
}

.workflow-step {
  position: relative;
  min-height: 176px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FFFFFF;
}

.workflow-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -16px;
  width: 17px;
  height: 2px;
  background: var(--border-strong);
}

.workflow-step:last-child::after {
  display: none;
}

.workflow-step span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #FFFFFF;
  background: var(--royal-blue);
  font-family: var(--font-mono);
  font-size: 13px;
}

.workflow-step strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.workflow-step p {
  margin-top: 10px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.55;
}

.contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.contrast-card {
  min-height: 230px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.contrast-card.muted {
  background: #FFFFFF;
  border-top: 4px solid var(--orange);
}

.contrast-card.strong {
  background: #071E3D;
  border-color: rgba(0,212,255,0.28);
  border-top: 4px solid var(--cyan-accent);
}

.contrast-card.strong h3,
.contrast-card.strong p {
  color: #FFFFFF;
}

.contrast-card p {
  margin-top: 14px;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.impact-card {
  min-height: 235px;
  padding: 26px;
}

.impact-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--royal-blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}

.impact-card:nth-child(2) span {
  color: var(--teal);
  background: var(--teal-soft);
}

.impact-card:nth-child(3) span {
  color: var(--orange);
  background: var(--orange-soft);
}

.impact-card:nth-child(4) span {
  color: var(--green);
  background: var(--green-soft);
}

.process-types {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FFFFFF;
}

.process-types h3 {
  margin-bottom: 18px;
}

.process-types ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  list-style: none;
}

.process-types li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.process-types li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--royal-blue);
}

.phase-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.phase-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.phase-item:last-child {
  border-bottom: 1px solid var(--border);
}

.phase-item span {
  color: var(--royal-blue);
  font-size: 16px;
  font-weight: 800;
}

.phase-item p {
  max-width: 640px;
  margin-top: 0;
  color: var(--text);
  font-size: 16px;
}

.duration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.duration-card {
  padding: 26px;
  border-top: 4px solid var(--royal-blue);
}

.duration-card:nth-child(2) {
  border-top-color: var(--green);
}

.expansion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.expansion-grid article {
  padding: 24px;
}

.audit-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
}

.final-section {
  border-bottom: none;
  color: rgba(255,255,255,0.78);
  background: #070A1E;
  width: calc(100% + 96px);
  margin-left: -48px;
  padding: 82px 48px 86px;
}

.final-section .section-kicker {
  color: var(--cyan-accent);
}

.final-section h2,
.final-section .lead {
  color: #FFFFFF;
}

.audit-panel div {
  min-height: 188px;
  padding: 24px;
  background: rgba(255,255,255,0.06);
}

.audit-panel span {
  display: block;
  color: var(--cyan-accent);
  font-size: 16px;
  font-weight: 800;
}

.audit-panel p {
  margin-top: 12px;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.6;
}

.final-cta {
  margin-top: 50px;
  padding-top: 46px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.final-cta h2 {
  max-width: 760px;
  font-size: 34px;
}

.final-cta p {
  max-width: 680px;
  color: rgba(255,255,255,0.74);
}

@media (max-width: 1180px) {
  .hero {
    padding-left: 42px;
    padding-right: 42px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .scene-node {
    opacity: 0.74;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-header {
    padding-top: 72px;
  }

  .sidebar-toggle {
    display: flex;
  }

  .sidebar-overlay.open {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    padding: 88px 30px 50px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(7,10,30,0.98) 0%, rgba(7,10,30,0.9) 58%, rgba(7,10,30,0.72) 100%),
      linear-gradient(0deg, rgba(7,10,30,0.5), rgba(7,10,30,0.08));
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .scene-node {
    transform: translateX(80px);
    opacity: 0.48;
  }

  .content-body {
    width: min(var(--content-max), calc(100% - 40px));
  }

  .section-alt,
  .final-section {
    width: calc(100% + 40px);
    margin-left: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .risk-strip,
  .workflow-panel,
  .audit-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-step::after {
    display: none;
  }

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

@media (max-width: 760px) {
  .hero {
    padding: 82px 20px 38px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-proof,
  .impact-grid,
  .contrast-grid,
  .duration-grid,
  .expansion-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    display: none;
  }

  .node-source,
  .node-validate,
  .node-output,
  .node-audit {
    display: none;
  }

  .node-agent {
    top: 20px;
    right: -48px;
    transform: none;
    opacity: 0.34;
  }

  .section {
    padding: 56px 0 54px;
  }

  .section h2 {
    font-size: 29px;
  }

  .section p,
  .lead {
    font-size: 16px;
  }

  .risk-strip,
  .workflow-panel,
  .audit-panel,
  .process-types ul {
    grid-template-columns: 1fr;
  }

  .risk-strip div,
  .audit-panel div {
    min-height: auto;
  }

  .outcome-statement {
    padding-left: 18px;
    font-size: 18px;
  }

  .note-band {
    display: block;
  }

  .note-band strong {
    display: block;
    margin-bottom: 10px;
  }

  .phase-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .final-section {
    padding-top: 62px;
    padding-bottom: 66px;
  }

  .final-cta h2 {
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .content-body {
    width: min(var(--content-max), calc(100% - 28px));
  }

  .section-alt,
  .final-section {
    width: calc(100% + 28px);
    margin-left: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .feature-card,
  .impact-card,
  .duration-card,
  .expansion-grid article,
  .process-types {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sidebar,
  .progress-fill {
    transition: none;
  }
}
