:root {
  --navy-950: #07111d;
  --navy-900: #0c1724;
  --navy-800: #132235;
  --steel-700: #314459;
  --steel-500: #687789;
  --steel-200: #d8dee6;
  --steel-100: #edf1f5;
  --paper: #ffffff;
  --mist: #f6f8fa;
  --gold: #f5c518;
  --gold-700: #b88a05;
  --copper: #b7652c;
  --green: #216c5c;
  --blue: #32617f;
  --red: #9b3f35;
  --shadow: 0 26px 70px rgba(7, 17, 29, .18);
  --shadow-soft: 0 16px 38px rgba(7, 17, 29, .10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy-900);
  background:
    linear-gradient(90deg, rgba(7, 17, 29, .035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, #fbfcfd 0%, #eef2f5 100%);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.56;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--copper), var(--blue));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 46px);
  color: #fff;
  background: rgba(7, 17, 29, .92);
  border-bottom: 1px solid rgba(245, 197, 24, .22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(240px, 36vw);
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.main-nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: color .2s ease, background .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(245, 197, 24, .16);
}

.header-action,
.btn,
.doc-action,
.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(7, 17, 29, .14);
  color: var(--navy-900);
  background: #fff;
  text-decoration: none;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.header-action {
  color: var(--navy-950);
  border-color: transparent;
  background: var(--gold);
}

.btn:hover,
.doc-action:hover,
.quick-link:hover,
.header-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary,
.doc-action.open {
  color: var(--navy-950);
  border-color: transparent;
  background: var(--gold);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .10);
}

.btn-dark,
.doc-action.download {
  color: #fff;
  border-color: transparent;
  background: var(--navy-900);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.section,
.section-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px clamp(18px, 4vw, 46px);
}

.hero {
  position: relative;
  overflow: hidden;
  max-width: none;
  min-height: calc(100vh - 82px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 17, 29, .94), rgba(19, 34, 53, .92)),
    radial-gradient(circle at 15% 10%, rgba(245, 197, 24, .20), transparent 34rem),
    radial-gradient(circle at 86% 20%, rgba(50, 97, 127, .30), transparent 30rem);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: .22;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 70px 70px,
    linear-gradient(0deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 70px 70px;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 42px;
  max-width: var(--max);
  min-height: calc(100vh - 220px);
  margin: 0 auto;
}

.standard-strip,
.hero-actions,
.trust-bar,
.audit-capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.standard-strip span,
.section-label,
.trust-bar span,
.audit-capsules span,
.card-meta,
.doc-card .category,
.role-card span,
.band-title span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--navy-900);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 26px 0 12px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: .96;
  letter-spacing: -.05em;
}

.hero-subtitle {
  max-width: 740px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .90);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 650;
  line-height: 1.25;
}

.hero-message {
  max-width: 760px;
  color: rgba(255, 255, 255, .72);
  font-size: 18px;
}

.hero-actions {
  margin-top: 28px;
}

.executive-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)),
    radial-gradient(circle at 68% 18%, rgba(245, 197, 24, .22), transparent 20rem);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header span {
  color: rgba(255, 255, 255, .74);
  font-weight: 800;
}

.panel-header strong {
  color: var(--gold);
}

.panel-diagram {
  position: relative;
  min-height: 350px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(0deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 46px 46px,
    rgba(7, 17, 29, .24);
}

.diagram-core,
.diagram-node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.diagram-core {
  inset: 50% auto auto 50%;
  width: 118px;
  height: 118px;
  color: var(--navy-950);
  background: var(--gold);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 16px rgba(245, 197, 24, .12);
}

.diagram-node {
  min-width: 112px;
  min-height: 46px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}

.node-quality { top: 42px; left: 44px; }
.node-env { top: 72px; right: 34px; }
.node-safety { bottom: 54px; left: 58px; }
.node-improve { right: 42px; bottom: 44px; }

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.panel-metrics div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .14);
}

.panel-metrics strong {
  display: block;
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
}

.panel-metrics span {
  color: rgba(255, 255, 255, .70);
  font-size: 12px;
  font-weight: 750;
}

.trust-bar {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 16px auto 0;
}

.trust-bar span {
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-label {
  margin-bottom: 12px;
}

.section-heading h2,
.audit-copy h2,
.confidentiality-card h2 {
  margin-bottom: 14px;
  color: var(--navy-950);
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.section-heading p,
.audit-copy p,
.confidentiality-card p {
  color: var(--steel-500);
  font-size: 18px;
}

.value-grid,
.indicator-grid,
.role-grid,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.value-card,
.indicator-card,
.role-card,
.doc-card,
.recommended-card,
.library-shell,
.audit-card,
.confidentiality-card,
.faq-list details {
  border: 1px solid rgba(216, 222, 230, .9);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.value-card,
.indicator-card,
.role-card,
.doc-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
}

.value-card::before,
.indicator-card::before,
.role-card::before,
.doc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--copper), var(--blue));
}

.card-index {
  display: block;
  margin-bottom: 32px;
  color: rgba(7, 17, 29, .13);
  font-size: 60px;
  line-height: .8;
  font-weight: 950;
  letter-spacing: -.06em;
}

.value-card h3,
.indicator-card h3,
.role-card h3,
.doc-card h3 {
  margin-bottom: 10px;
  color: var(--navy-950);
  font-size: 22px;
  line-height: 1.15;
}

.value-card p,
.indicator-card p,
.role-card p,
.doc-card p {
  color: var(--steel-500);
}

.split-section {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(237, 241, 245, .80));
}

.split-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.use-layout {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 22px;
}

.use-steps {
  display: grid;
  gap: 14px;
}

.use-steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--steel-200);
}

.use-steps span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--navy-950);
  background: var(--gold);
  font-weight: 950;
}

.use-steps h3 {
  margin-bottom: 4px;
}

.use-steps p {
  margin: 0;
  color: var(--steel-500);
}

.recommended-card {
  padding: 24px;
  background: var(--navy-900);
  color: #fff;
}

.recommended-card .section-label {
  background: var(--gold);
}

.recommended-card li {
  margin: 12px 0;
  color: rgba(255, 255, 255, .82);
}

.indicator-card span {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--gold), var(--copper));
  box-shadow: 0 14px 28px rgba(184, 138, 5, .20);
}

.process-section {
  max-width: none;
  color: #fff;
  background:
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.process-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.process-section .section-heading h2 {
  color: #fff;
}

.process-section .section-heading p {
  color: rgba(255, 255, 255, .72);
}

.process-map {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(0deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 56px 56px,
    rgba(255, 255, 255, .06);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .24);
}

.process-band,
.process-core {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
}

.process-band {
  display: grid;
  grid-template-columns: minmax(230px, .42fr) 1fr;
  gap: 16px;
  padding: 20px;
}

.band-title strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.band-items {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
}

.band-items span {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .12);
  font-weight: 750;
}

.process-core {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) 2fr minmax(150px, .55fr);
  gap: 14px;
  padding: 18px;
}

.core-side {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: var(--navy-950);
  text-align: center;
  background: var(--gold);
}

.core-side span,
.core-side strong {
  display: block;
}

.core-side span {
  font-weight: 750;
}

.core-side strong {
  font-size: 22px;
}

.core-side.output {
  background: #fff;
}

.core-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.core-flow article {
  min-height: 190px;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: var(--navy-950);
  background: #fff;
}

.core-flow span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--gold);
  font-weight: 950;
}

.core-flow h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.core-flow p {
  margin: 0;
  color: var(--steel-500);
  font-size: 14px;
}

.support {
  border-left: 5px solid var(--blue);
}

.improvement {
  border-left: 5px solid var(--gold);
}

.library-shell {
  overflow: hidden;
  padding: 18px;
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 16px;
  align-items: end;
  padding: 8px;
}

.search-shell span {
  display: block;
  margin-bottom: 8px;
  color: var(--steel-500);
  font-size: 13px;
  font-weight: 850;
}

.search-shell input,
.command-box input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  color: var(--navy-950);
  background: #fff;
  font: inherit;
  outline: none;
}

.search-shell input:focus,
.command-box input:focus {
  border-color: var(--gold-700);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, .18);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--steel-200);
  border-radius: 999px;
  color: var(--steel-700);
  background: #fff;
  cursor: pointer;
  font-weight: 850;
}

.filter-buttons button.active {
  color: var(--navy-950);
  border-color: transparent;
  background: var(--gold);
}

.library-summary {
  margin: 14px 8px 18px;
  color: var(--steel-500);
  font-weight: 850;
}

.doc-card {
  display: flex;
  flex-direction: column;
  min-height: 315px;
  box-shadow: none;
}

.doc-card .category {
  align-self: flex-start;
  margin-bottom: 14px;
  background: var(--steel-100);
}

.doc-card .code {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gold-700);
  font-weight: 950;
}

.doc-meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--steel-500);
  font-size: 13px;
  font-weight: 750;
}

.doc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.doc-action {
  min-height: 42px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.role-grid {
  grid-template-columns: repeat(3, 1fr);
}

.role-card span {
  margin-bottom: 26px;
  background: var(--steel-100);
}

.audit-section {
  color: #fff;
  background:
    linear-gradient(135deg, var(--navy-950), #1a2c41);
  max-width: none;
}

.audit-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.audit-layout {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 24px;
  align-items: center;
}

.audit-copy h2 {
  color: #fff;
}

.audit-copy p {
  color: rgba(255, 255, 255, .74);
}

.audit-capsules span {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .12);
}

.audit-card {
  padding: 26px;
  color: var(--navy-950);
  background: #fff;
}

.audit-card h3 {
  margin-bottom: 16px;
  font-size: 28px;
}

.audit-card li {
  margin: 12px 0;
  color: var(--steel-700);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-list details {
  padding: 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy-950);
  font-weight: 950;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--steel-500);
}

.confidentiality-section {
  padding-top: 42px;
}

.confidentiality-card {
  padding: 30px;
  border-color: rgba(155, 63, 53, .26);
  background:
    linear-gradient(135deg, #fff, #fff7f4);
}

.confidentiality-card .section-label {
  color: #fff;
  background: var(--red);
}

.command-dialog {
  width: min(760px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
}

.command-dialog::backdrop {
  background: rgba(7, 17, 29, .58);
  backdrop-filter: blur(8px);
}

.command-box {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 28px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow);
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.command-header button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--steel-200);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 850;
}

.command-results {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
  margin-top: 12px;
}

.command-result {
  display: block;
  padding: 14px;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  color: var(--navy-950);
  text-decoration: none;
}

.command-result:hover {
  background: #fff8dd;
}

.command-result small {
  display: block;
  color: var(--steel-500);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 46px);
  color: rgba(255, 255, 255, .72);
  background: var(--navy-950);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .header-action {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    padding-top: 10px;
    padding-bottom: 4px;
  }

  .main-nav a {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, .08);
    white-space: nowrap;
  }

  .hero-layout,
  .use-layout,
  .audit-layout {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .indicator-grid,
  .role-grid,
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-core {
    grid-template-columns: 1fr;
  }

  .core-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .section,
  .section-shell {
    padding: 62px 18px;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: min(185px, 58vw);
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: .045em;
  }

  .executive-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .panel-diagram {
    min-height: 260px;
  }

  .diagram-core {
    width: 88px;
    height: 88px;
  }

  .diagram-node {
    min-width: 86px;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .panel-metrics,
  .value-grid,
  .indicator-grid,
  .role-grid,
  .doc-grid,
  .faq-list,
  .library-toolbar,
  .process-band,
  .core-flow {
    grid-template-columns: 1fr;
  }

  .process-map {
    padding: 12px;
    border-radius: 24px;
  }

  .core-side {
    min-height: 110px;
  }

  .core-flow article {
    min-height: auto;
  }

  .panel-header {
    display: grid;
    gap: 4px;
  }

  .doc-actions,
  .site-footer {
    display: block;
  }

  .doc-action {
    width: 100%;
    margin-top: 8px;
  }

  .use-steps article {
    grid-template-columns: 1fr;
  }
}
