:root {
  color-scheme: dark;
  --ink: #05070d;
  --carbon: #0b1020;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-strong: rgba(12, 18, 32, 0.96);
  --line: rgba(56, 213, 255, 0.2);
  --text: #f8fafc;
  --muted: #94a3b8;
  --green: #00f5a0;
  --cyan: #38d5ff;
  --violet: #8b5cf6;
  --red: #ff3b5c;
  --amber: #f5a524;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 245, 160, 0.16), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(56, 213, 255, 0.13), transparent 34rem),
    linear-gradient(180deg, #05070d 0%, #07111c 42%, #05070d 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(56, 213, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 213, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-140%);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--green);
  color: #03100b;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand img {
  filter: drop-shadow(0 10px 24px rgba(0, 245, 160, 0.22));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.desktop-nav,
.header-actions,
.mobile-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-nav a,
.text-link,
.mobile-nav a,
.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.desktop-nav a:hover,
.text-link:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #03100b;
  box-shadow: 0 18px 44px rgba(0, 245, 160, 0.18);
}

.button.secondary {
  background: rgba(248, 250, 252, 0.08);
  color: var(--text);
}

.button.ghost {
  background: transparent;
  color: #dbeafe;
}

.menu-button {
  display: none;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 73px;
  right: 18px;
  z-index: 35;
  flex-direction: column;
  align-items: stretch;
  width: min(300px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  display: flex;
}

main {
  overflow: hidden;
}

.hero,
.band,
.pillars,
.simulator,
.aispm,
.product-paths,
.enterprise-proof,
.evidence,
.trust,
.role-switcher,
.resources,
.contact {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.88fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 74px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7.5rem);
  line-height: 0.92;
}

h2 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.hero-lede,
.section-copy p {
  max-width: 780px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions,
.centered-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.centered-actions {
  justify-content: center;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.signal-row div,
.risk-grid article,
.pillar-grid article,
.path-grid article,
.managed-grid article,
.package-grid article,
.trust-grid article,
.cockpit article,
.role-card,
.explorer,
.decision-output,
.authority-stage {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.86), rgba(5, 7, 13, 0.72));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.signal-row div {
  padding: 16px;
}

.signal-row dt {
  color: var(--text);
  font-weight: 900;
}

.signal-row dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.authority-stage {
  position: relative;
  min-height: 560px;
  padding: 22px;
  overflow: hidden;
}

.authority-stage::before {
  content: "";
  position: absolute;
  inset: 70px 34px;
  border: 1px solid rgba(0, 245, 160, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(0, 245, 160, 0.1) 48% 52%, transparent 54%),
    linear-gradient(rgba(56, 213, 255, 0.07), rgba(139, 92, 246, 0.04));
}

.stage-toolbar,
.output-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
}

.stage-toolbar strong,
.output-header strong {
  color: #03100b;
  background: var(--amber);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.agent-card,
.decision-card {
  position: absolute;
  z-index: 3;
  width: min(300px, calc(100% - 44px));
  padding: 18px;
  border: 1px solid rgba(0, 245, 160, 0.32);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.92);
}

.agent-card {
  left: 34px;
  top: 122px;
  animation: float-panel 7s ease-in-out infinite;
}

.decision-card {
  right: 34px;
  bottom: 56px;
  border-color: rgba(245, 165, 36, 0.42);
  animation: float-panel 7s ease-in-out 1.5s infinite;
}

.agent-card span,
.decision-card span,
.agent-card small,
.decision-card small {
  display: block;
  color: var(--muted);
}

.agent-card strong,
.decision-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.45rem;
}

.authority-flow {
  position: absolute;
  z-index: 2;
  inset: 210px 34px auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.authority-flow div {
  min-height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 213, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 15, 26, 0.86);
  color: #e2e8f0;
  font-weight: 900;
}

.authority-flow div:nth-child(2n) {
  transform: translateY(38px);
}

@keyframes float-panel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section-copy.centered {
  text-align: center;
}

.section-copy.centered p,
.section-copy.centered h2 {
  margin-left: auto;
  margin-right: auto;
}

.band {
  width: 100%;
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, rgba(56, 213, 255, 0.08), rgba(139, 92, 246, 0.05));
  border-block: 1px solid rgba(148, 163, 184, 0.12);
}

.risk-grid,
.pillar-grid,
.path-grid,
.managed-grid,
.package-grid,
.trust-grid,
.cockpit,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.pillar-grid,
.package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-grid,
.managed-grid,
.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.risk-grid article,
.pillar-grid article,
.path-grid article,
.managed-grid article,
.package-grid article,
.trust-grid article,
.cockpit article {
  padding: 20px;
}

.risk-grid strong,
.trust-grid strong,
.cockpit span {
  display: block;
  margin-bottom: 8px;
}

.risk-grid span,
.trust-grid span,
.pillar-grid p,
.path-grid p,
.managed-grid p,
.package-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.pillar-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 900;
}

.path-grid a,
.resource-grid a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.simulator-shell {
  display: grid;
  grid-template-columns: 0.56fr 1fr;
  gap: 18px;
  margin-top: 34px;
}

.scenario-controls {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.58);
}

.scenario-controls label {
  display: grid;
  gap: 8px;
  color: #dbeafe;
  font-weight: 800;
}

.scenario-controls select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  color: var(--text);
  background: #07111c;
  padding: 12px;
}

.decision-output {
  min-height: 420px;
  padding: 20px;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 18px 0 0;
  color: #dbeafe;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

.cockpit article strong {
  display: block;
  color: var(--green);
  font-size: 2rem;
}

.ops-loop {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.ops-loop span {
  min-height: 78px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(0, 245, 160, 0.22);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.74);
  color: #e2e8f0;
  font-weight: 900;
}

.explorer {
  padding: 20px;
  margin-top: 34px;
}

.tabs,
.role-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tabs button,
.role-buttons button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.05);
}

.tabs button.is-active,
.role-buttons button.is-active {
  color: #03100b;
  background: var(--green);
  border-color: transparent;
  font-weight: 900;
}

.role-buttons {
  justify-content: center;
  margin-top: 28px;
}

.role-card {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 26px;
}

.role-card p {
  color: #cbd5e1;
  line-height: 1.7;
}

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

.resource-grid a {
  min-height: 80px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.74);
}

.contact {
  min-height: 520px;
  display: grid;
  align-items: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 32px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted);
}

.site-footer img {
  width: min(240px, 38vw);
  height: auto;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-actions .text-link,
  .header-actions .button {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .hero,
  .simulator-shell {
    grid-template-columns: 1fr;
  }

  .authority-stage {
    min-height: 520px;
  }

  .risk-grid,
  .pillar-grid,
  .path-grid,
  .managed-grid,
  .package-grid,
  .trust-grid,
  .cockpit,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero,
  .band,
  .pillars,
  .simulator,
  .aispm,
  .product-paths,
  .enterprise-proof,
  .evidence,
  .trust,
  .role-switcher,
  .resources,
  .contact {
    padding: 64px 0;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .signal-row,
  .risk-grid,
  .pillar-grid,
  .path-grid,
  .managed-grid,
  .package-grid,
  .trust-grid,
  .cockpit,
  .resource-grid,
  .ops-loop {
    grid-template-columns: 1fr;
  }

  .authority-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    inset: 184px 22px auto;
  }

  .authority-flow div:nth-child(2n) {
    transform: none;
  }

  .agent-card,
  .decision-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin-top: 16px;
  }

  .authority-stage {
    min-height: auto;
  }

  .authority-stage::before {
    display: none;
  }

  .authority-flow {
    position: relative;
    inset: auto;
    margin-top: 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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