:root {
  --ambient-left-x: 0px;
  --ambient-left-y: 0px;
  --ambient-right-x: 0px;
  --ambient-right-y: 0px;
  --navy: #0c1a2b;
  --navy-deep: #07111d;
  --navy-soft: #16304a;
  --navy-panel: rgba(12, 26, 43, 0.82);
  --navy-panel-strong: rgba(7, 17, 29, 0.96);
  --lime: #b6ff3b;
  --lime-soft: rgba(182, 255, 59, 0.1);
  --lime-line: rgba(182, 255, 59, 0.18);
  --ink: #edf3fb;
  --muted: #93a7bc;
  --line: rgba(143, 160, 181, 0.16);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.14);
  --success: #6ee7b7;
  --success-soft: rgba(110, 231, 183, 0.14);
  --shadow: 0 34px 96px rgba(1, 6, 16, 0.54);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(182, 255, 59, 0.16), transparent 24%),
    radial-gradient(circle at 88% 4%, rgba(182, 255, 59, 0.1), transparent 18%),
    radial-gradient(circle at 50% 38%, rgba(22, 48, 74, 0.34), transparent 34%),
    linear-gradient(135deg, #07101b 0%, var(--navy) 44%, #091728 100%);
}

.ambient-orb {
  position: fixed;
  top: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(22px);
  opacity: 0.72;
  transition: transform 180ms ease-out;
}

.ambient-orb--left {
  left: -140px;
  background: radial-gradient(circle, rgba(182, 255, 59, 0.3) 0%, rgba(182, 255, 59, 0.12) 38%, rgba(182, 255, 59, 0) 72%);
  transform: translate3d(var(--ambient-left-x), var(--ambient-left-y), 0);
}

.ambient-orb--right {
  right: -130px;
  background: radial-gradient(circle, rgba(182, 255, 59, 0.22) 0%, rgba(182, 255, 59, 0.08) 34%, rgba(182, 255, 59, 0) 70%);
  transform: translate3d(var(--ambient-right-x), var(--ambient-right-y), 0);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 160, 181, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 160, 181, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 88%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 80px;
}

.reveal {
  animation: rise 680ms ease both;
}

.topbar,
.hero,
.console-stage {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 4px 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__mark {
  width: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 7px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(182, 255, 59, 0.16), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 0 0 1px rgba(182, 255, 59, 0.14),
    0 18px 34px rgba(3, 8, 18, 0.3);
}

.brand__mark span {
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(182, 255, 59, 0.14), rgba(255, 255, 255, 0.04));
}

.brand__eyebrow,
.eyebrow {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--lime);
}

.brand h1,
.hero h2,
.console-shell h2,
.terminal-window h3,
.pane-header h3 {
  margin: 0;
}

.topbar__meta,
.hero__actions,
.hero__metrics,
.console-shell__actions,
.terminal-tabs,
.terminal-context,
.terminal-window__quick,
.terminal-meta,
.terminal-window__statusbar,
.artifact-toolbar,
.drift-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.status-badge,
.chip,
.quick-command,
.terminal-tab,
.artifact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-weight: 600;
}

.pill,
.status-badge {
  padding: 9px 13px;
  font-size: 0.84rem;
}

.status-badge {
  background: var(--lime-soft);
  border-color: var(--lime-line);
  color: var(--lime);
}

.status-badge--ok {
  background: var(--success-soft);
  border-color: rgba(110, 231, 183, 0.24);
  color: var(--success);
}

.status-badge--warn {
  background: var(--danger-soft);
  border-color: rgba(251, 113, 133, 0.24);
  color: var(--danger);
}

.hero {
  max-width: 1320px;
  margin: 0 auto 26px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 30px;
  align-items: start;
}

.hero__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero__side {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  margin-top: clamp(120px, 12vw, 190px);
}

.hero h2 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero__lede,
.console-shell__copy,
.pane-caption,
.terminal-window__top p,
.runbook-step span,
.finding-list li span {
  color: var(--muted);
}

.hero__lede {
  max-width: 72ch;
  margin: 18px 0 0;
  font-size: 1.03rem;
  line-height: 1.65;
}

.hero-surface {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(182, 255, 59, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(13, 28, 46, 0.8), rgba(7, 17, 29, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(182, 255, 59, 0.03), transparent 30%, rgba(182, 255, 59, 0.015) 70%, transparent 100%);
  pointer-events: none;
}

.hero-surface__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-surface__header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.hero-surface__controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.playground-stage-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.playground-stage,
.playground-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-weight: 600;
}

.playground-stage--active {
  color: var(--navy);
  background: linear-gradient(135deg, #aef236 0%, #d0ff71 100%);
  border-color: rgba(182, 255, 59, 0.3);
}

.playground-dashboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 16px;
}

.playground-overview,
.playground-focus,
.playground-stage-rail {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.82), rgba(12, 26, 43, 0.62));
  overflow: hidden;
}

.playground-overview::before,
.playground-focus::before,
.playground-stage-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(182, 255, 59, 0.05), transparent 28%, rgba(255, 255, 255, 0.02) 72%, transparent 100%);
  pointer-events: none;
}

.playground-overview,
.playground-focus {
  padding: 20px;
}

.playground-overview {
  display: grid;
  gap: 14px;
}

.playground-summary {
  --playground-progress: 72%;
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 32, 50, 0.82), rgba(12, 26, 43, 0.6));
}

.playground-summary span,
.playground-stat span,
.playground-focus__eyebrow,
.playground-focus__lane-meta span,
.playground-metric__meta span,
.playground-stage-rail__header span,
.playground-sequence__stage span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.playground-summary strong {
  font-size: 1.34rem;
  line-height: 1.14;
}

.playground-summary small {
  color: var(--muted);
  line-height: 1.55;
}

.playground-summary__progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.playground-summary__progress-fill {
  display: block;
  width: var(--playground-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(182, 255, 59, 0.88), rgba(110, 231, 183, 0.84));
}

.playground-overview__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.playground-stat {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.playground-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.3;
}

.playground-sequence {
  position: relative;
  display: grid;
  gap: 12px;
}

.playground-sequence::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, rgba(182, 255, 59, 0.28), rgba(143, 160, 181, 0.08));
}

.playground-sequence__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px 16px 16px 42px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 32, 50, 0.74), rgba(12, 26, 43, 0.54));
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 8px;
}

.playground-sequence__stage::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(143, 160, 181, 0.28);
  box-shadow: 0 0 0 6px rgba(143, 160, 181, 0.08);
}

.playground-sequence__stage strong {
  font-size: 1rem;
  line-height: 1.22;
}

.playground-sequence__stage small {
  color: var(--muted);
  line-height: 1.5;
}

.playground-sequence__stage.playground-stage--active {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(27, 47, 72, 0.92), rgba(15, 30, 46, 0.78));
  border-color: rgba(182, 255, 59, 0.28);
  box-shadow: 0 18px 28px rgba(4, 12, 22, 0.22);
}

.playground-sequence__stage.playground-stage--active::before {
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(182, 255, 59, 0.12);
}

.playground-focus {
  display: grid;
  gap: 14px;
}

.playground-focus__top,
.playground-stage-rail__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.playground-focus__top strong {
  display: block;
  margin-top: 6px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.playground-gate,
.playground-focus__delta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  white-space: nowrap;
}

.playground-gate--warn,
.playground-focus__delta--warn {
  border-color: rgba(251, 113, 133, 0.24);
  background: var(--danger-soft);
  color: var(--danger);
}

.playground-gate--ok,
.playground-focus__delta--ok {
  border-color: rgba(110, 231, 183, 0.24);
  background: var(--success-soft);
  color: var(--success);
}

.playground-focus__path {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.84rem;
}

.playground-focus__note {
  margin: 0;
  min-height: 72px;
  color: var(--muted);
  line-height: 1.58;
}

.playground-focus__compare {
  display: grid;
  gap: 12px;
}

.playground-focus__lane {
  display: grid;
  gap: 8px;
}

.playground-focus__lane-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.playground-focus__lane-meta strong {
  font-size: 1rem;
}

.playground-focus__track,
.playground-metric__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.playground-focus__fill,
.playground-metric__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
}

.playground-focus__fill--desired,
.playground-metric__fill--desired {
  background: rgba(182, 255, 59, 0.24);
}

.playground-focus__fill--live,
.playground-metric__fill--live {
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.84), rgba(249, 115, 22, 0.82));
}

.playground-focus__footer {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.playground-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.playground-metric {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 32, 50, 0.8), rgba(12, 26, 43, 0.58));
  color: var(--ink);
  text-align: left;
  display: grid;
  gap: 12px;
}

.playground-metric__meta,
.playground-metric__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.playground-metric__meta strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.playground-metric__foot small {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  word-break: break-word;
}

.playground-metric__foot b {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.playground-metric--active {
  border-color: rgba(182, 255, 59, 0.32);
  box-shadow: 0 18px 28px rgba(4, 12, 22, 0.24);
  transform: translateY(-2px);
}

.playground-metric--warn {
  box-shadow: inset 0 1px 0 rgba(251, 113, 133, 0.06);
}

.playground-metric--ok .playground-metric__fill--live {
  background: linear-gradient(90deg, rgba(110, 231, 183, 0.82), rgba(182, 255, 59, 0.72));
}

.playground-stage-rail {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 18px 20px;
}

.playground-stage-rail__header strong {
  font-size: 0.95rem;
}

.playground-slider {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.playground-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #aef236 0%, #d0ff71 100%);
  box-shadow: 0 0 0 4px rgba(182, 255, 59, 0.15);
  cursor: pointer;
}

.playground-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #aef236 0%, #d0ff71 100%);
  box-shadow: 0 0 0 4px rgba(182, 255, 59, 0.15);
  cursor: pointer;
}

.playground-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.playground-labels span:nth-child(2) {
  text-align: center;
}

.playground-labels span:nth-child(3) {
  text-align: right;
}

.topology-map {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas:
    "source git"
    "hub live"
    "hpa service";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 360px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.8), rgba(12, 26, 43, 0.58));
  overflow: hidden;
}

.topology-trace {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}

.topology-trace--horizontal {
  left: 22%;
  right: 22%;
  top: 49%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(182, 255, 59, 0.18), transparent);
}

.topology-trace--vertical {
  top: 20%;
  bottom: 20%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(182, 255, 59, 0.16), transparent);
}

.topology-node,
.topology-hub,
.topology-stat {
  position: relative;
  text-align: left;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(20, 34, 52, 0.78), rgba(12, 26, 43, 0.58));
  box-shadow: inset 0 1px 0 rgba(182, 255, 59, 0.03);
}

.topology-node {
  min-height: 110px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.topology-node--source {
  grid-area: source;
}

.topology-node--git {
  grid-area: git;
}

.topology-node--live {
  grid-area: live;
}

.topology-node--hpa {
  grid-area: hpa;
}

.topology-node--service {
  grid-area: service;
}

.topology-node::after,
.topology-hub::after,
.topology-stat::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(182, 255, 59, 0.24), transparent);
}

.topology-node span,
.topology-hub span,
.topology-stat span {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.topology-node strong,
.topology-hub strong,
.topology-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
  line-height: 1.2;
  color: var(--ink);
}

.topology-node small,
.topology-hub small {
  color: var(--muted);
  line-height: 1.45;
}

.topology-hub {
  grid-area: hub;
  min-height: 136px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  z-index: 1;
}

.topology-hub::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  border: 1px solid rgba(182, 255, 59, 0.08);
  pointer-events: none;
}

.topology-node--active,
.topology-hub--active {
  border-color: rgba(182, 255, 59, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(182, 255, 59, 0.08),
    0 16px 28px rgba(4, 12, 22, 0.28);
  transform: translateY(-2px);
}

.topology-node--warn {
  border-color: rgba(251, 113, 133, 0.26);
  box-shadow: inset 0 1px 0 rgba(251, 113, 133, 0.06);
}

.topology-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.topology-stat {
  padding: 14px 16px 18px;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 0;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(182, 255, 59, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(15, 31, 49, 0.82), rgba(7, 17, 29, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(182, 255, 59, 0.04), transparent 30%, rgba(182, 255, 59, 0.02) 70%, transparent 100%);
  pointer-events: none;
}

.hero-visual__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-visual__header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.control-map {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-areas:
    "baseline evidence"
    "core core"
    "governance remediation";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
}

.control-map::before,
.control-map::after {
  display: none;
}

.control-node {
  position: relative;
  padding: 18px;
  text-align: left;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 35, 54, 0.78), rgba(12, 26, 43, 0.62));
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(182, 255, 59, 0.03);
}

.control-node--baseline {
  grid-area: baseline;
}

.control-node--evidence {
  grid-area: evidence;
}

.control-node--drift {
  grid-area: governance;
}

.control-node--reconcile {
  grid-area: remediation;
}

.control-node::after {
  content: "";
  position: absolute;
  inset: auto 16px 16px 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(182, 255, 59, 0.24), transparent);
}

.control-node span,
.control-core span,
.signal-panel__header span:first-child {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.control-node strong {
  font-size: 1rem;
  line-height: 1.18;
  color: var(--ink);
}

.control-node small,
.control-core p,
.signal-item small {
  color: var(--muted);
  line-height: 1.5;
}

.control-node--active {
  border-color: rgba(182, 255, 59, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(182, 255, 59, 0.08),
    0 18px 32px rgba(4, 12, 22, 0.3);
  transform: translateY(-2px);
}

.control-core {
  grid-area: core;
  position: relative;
  width: auto;
  margin: 0 78px;
  padding: 20px 18px;
  border-radius: 26px;
  border: 1px solid rgba(182, 255, 59, 0.16);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.95), rgba(12, 26, 43, 0.88));
  box-shadow: 0 22px 42px rgba(3, 8, 18, 0.36);
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

.control-core strong {
  display: block;
  margin-top: 8px;
  font-size: 1.15rem;
}

.signal-panel {
  position: relative;
  z-index: 1;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 34, 52, 0.68), rgba(12, 26, 43, 0.54));
}

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

.signal-panel__scope {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.signal-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(182, 255, 59, 0.07);
}

.signal-item--warn .signal-item__dot {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(251, 113, 133, 0.1);
}

.signal-item--ok .signal-item__dot {
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(110, 231, 183, 0.1);
}

.signal-item strong {
  display: block;
  font-size: 0.95rem;
}

.signal-item__value {
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  color: var(--muted);
  font-size: 0.8rem;
}

.pipeline-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(182, 255, 59, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(12, 26, 43, 0.76), rgba(7, 17, 29, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pipeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(182, 255, 59, 0.03), transparent 32%, rgba(255, 255, 255, 0.02) 78%, transparent 100%);
  pointer-events: none;
}

.pipeline-card__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pipeline-card__header h3 {
  margin: 0;
  font-size: 1.04rem;
}

.pipeline-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.pipeline-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pipeline-step {
  position: relative;
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 32, 50, 0.78), rgba(12, 26, 43, 0.58));
  text-align: left;
  color: var(--ink);
  display: grid;
  gap: 8px;
}

.pipeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  width: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(182, 255, 59, 0.28), rgba(143, 160, 181, 0.14));
}

.pipeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  right: -5px;
  width: 6px;
  height: 6px;
  border-top: 1px solid rgba(182, 255, 59, 0.28);
  border-right: 1px solid rgba(182, 255, 59, 0.28);
  transform: rotate(45deg);
}

.pipeline-step span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.pipeline-step strong {
  font-size: 0.98rem;
  line-height: 1.16;
}

.pipeline-step small {
  color: var(--muted);
  line-height: 1.42;
}

.pipeline-step--active {
  border-color: rgba(182, 255, 59, 0.3);
  background: linear-gradient(180deg, rgba(28, 48, 72, 0.9), rgba(14, 29, 45, 0.76));
  box-shadow: 0 18px 28px rgba(4, 12, 22, 0.22);
}

.button,
.chip,
.quick-command,
.terminal-tab,
.artifact-chip,
.runbook-step,
.playground-stage,
.playground-replay,
.playground-metric,
.pipeline-step,
.playground-sequence__stage {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.chip:hover,
.quick-command:hover,
.terminal-tab:hover,
.artifact-chip:hover,
.runbook-step:hover,
.playground-stage:hover,
.playground-replay:hover,
.playground-metric:hover,
.pipeline-step:hover,
.playground-sequence__stage:hover {
  transform: translateY(-1px);
  border-color: var(--lime-line);
}

.button {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button--primary {
  color: var(--navy);
  background: linear-gradient(135deg, #aef236 0%, #d0ff71 100%);
  box-shadow: 0 18px 34px rgba(182, 255, 59, 0.18);
}

.button--ghost,
.chip,
.quick-command,
.terminal-tab,
.artifact-chip {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.chip,
.quick-command,
.terminal-tab,
.artifact-chip {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.hero__metrics {
  margin-top: 22px;
}

.metric-card,
.console-shell,
.terminal-window,
.drift-summary__card,
.finding-list li,
.runbook-step,
.code-block {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric-card {
  min-width: 220px;
  flex: 1 1 220px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(24, 39, 60, 0.74), rgba(12, 26, 43, 0.52));
  backdrop-filter: blur(8px);
}

.metric-card span,
.drift-summary__card span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.metric-card strong,
.drift-summary__card strong {
  font-size: 1.05rem;
}

.console-stage {
  max-width: 1220px;
  margin: 0 auto;
}

.console-shell {
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(182, 255, 59, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(12, 26, 43, 0.86), rgba(7, 17, 29, 0.95));
  backdrop-filter: blur(10px);
}

.console-shell__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.console-shell__copy {
  margin: 14px 0 0;
  line-height: 1.55;
}

.console-shell__actions {
  margin-top: 18px;
}

.terminal-window {
  margin-top: 22px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(182, 255, 59, 0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(22, 48, 74, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(6, 14, 24, 0.98), rgba(12, 26, 43, 0.98));
}

.terminal-window__top,
.terminal-window__toolbar,
.terminal-window__input,
.terminal-window__statusbar {
  padding: 18px 22px;
}

.terminal-window__top,
.terminal-window__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.terminal-window__top {
  border-bottom: 1px solid var(--line);
}

.terminal-window__lights {
  display: flex;
  gap: 8px;
}

.terminal-window__lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--danger);
}

.terminal-window__lights span:nth-child(2) {
  background: #f59e0b;
}

.terminal-window__lights span:nth-child(3) {
  background: var(--success);
}

.terminal-window__toolbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.terminal-tab--active,
.artifact-chip--active {
  color: var(--navy);
  background: linear-gradient(135deg, #aef236 0%, #d0ff71 100%);
  border-color: rgba(182, 255, 59, 0.32);
}

.terminal-context span,
.terminal-meta span,
.terminal-window__statusbar span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.8rem;
}

.terminal-window__quick {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.quick-command {
  padding: 9px 12px;
  font-size: 0.85rem;
}

.terminal-window__body {
  min-height: 620px;
  padding: 18px 22px 0;
}

.terminal-pane {
  display: none;
  min-height: 580px;
}

.terminal-pane--active {
  display: block;
}

.terminal-meta {
  margin-bottom: 14px;
}

.terminal-output {
  height: 520px;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(5, 12, 21, 0.88), rgba(10, 22, 37, 0.76));
  box-shadow: inset 0 1px 0 rgba(182, 255, 59, 0.05);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--ink);
}

.pane-header {
  margin-bottom: 16px;
}

.pane-caption {
  margin: 10px 0 0;
  line-height: 1.5;
}

.code-block {
  margin: 0;
  min-height: 500px;
  padding: 18px;
  overflow: auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10, 22, 37, 0.78), rgba(12, 26, 43, 0.62));
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 0.88rem;
  line-height: 1.62;
}

.code-line {
  display: block;
  color: var(--ink);
}

.code-line--comment {
  color: var(--lime);
}

.code-line--drift {
  margin: 0 -10px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--danger-soft);
  color: #fda4af;
}

.drift-summary {
  margin-bottom: 16px;
}

.drift-summary__card {
  min-width: 220px;
  flex: 1 1 220px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(23, 39, 60, 0.72), rgba(12, 26, 43, 0.52));
}

.finding-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.finding-list li {
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(21, 35, 54, 0.68), rgba(12, 26, 43, 0.54));
}

.finding-list li strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.finding-list li strong::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(251, 113, 133, 0.12);
}

.finding-list li.finding--ok strong::before {
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(110, 231, 183, 0.12);
}

.artifact-toolbar {
  margin-bottom: 14px;
}

.artifact-title {
  margin: 0 0 12px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--lime);
}

.runbook-list {
  display: grid;
  gap: 12px;
}

.runbook-step {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(21, 35, 54, 0.7), rgba(12, 26, 43, 0.54));
}

.runbook-step strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.terminal-window__input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
}

.terminal-prompt {
  align-self: center;
  color: var(--lime);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
}

.terminal-window__input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
}

.terminal-window__input input::placeholder {
  color: var(--muted);
}

.terminal-window__statusbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.terminal-line {
  white-space: pre-wrap;
  word-break: break-word;
  animation: terminal-rise 220ms ease both;
}

.terminal-line + .terminal-line {
  margin-top: 4px;
}

.terminal-line--command {
  color: var(--lime);
}

.terminal-line--muted {
  color: var(--muted);
}

.terminal-line--warn {
  color: #fdba74;
}

.terminal-line--error {
  color: var(--danger);
}

.terminal-line--success {
  color: var(--success);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes terminal-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__side {
    margin-top: 0;
  }

  .playground-dashboard {
    grid-template-columns: 1fr;
  }

  .playground-focus__top,
  .playground-stage-rail__header {
    grid-template-columns: 1fr;
  }

  .hero__metrics,
  .drift-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .terminal-window__body {
    min-height: 560px;
  }

  .terminal-pane {
    min-height: 520px;
  }

  .terminal-output,
  .code-block {
    min-height: 440px;
    height: 440px;
  }

  .pipeline-flow {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline-step:nth-child(2)::after,
  .pipeline-step:nth-child(2)::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 1400px);
    padding-top: 18px;
  }

  .topbar,
  .console-shell__header,
  .hero-surface__header,
  .hero-visual__header,
  .pipeline-card__header,
  .terminal-window__top,
  .terminal-window__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h2 {
    font-size: clamp(2.2rem, 12vw, 3.7rem);
  }

  .hero-surface__controls {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
  }

  .control-map {
    grid-template-columns: 1fr;
    grid-template-areas:
      "core"
      "baseline"
      "evidence"
      "governance"
      "remediation";
    min-height: auto;
  }

  .control-map::before,
  .control-map::after,
  .control-core {
    position: static;
    transform: none;
    width: auto;
  }

  .control-core {
    margin: 0;
    margin-bottom: 6px;
  }

  .pipeline-flow {
    grid-template-columns: 1fr;
  }

  .pipeline-step::after,
  .pipeline-step::before {
    display: none;
  }

  .console-shell,
  .terminal-window,
  .metric-card,
  .hero-surface,
  .hero-visual,
  .pipeline-card {
    border-radius: 24px;
  }

  .playground-overview,
  .playground-focus,
  .playground-stage-rail {
    padding: 18px;
  }

  .playground-overview__stats,
  .playground-metrics,
  .playground-labels {
    grid-template-columns: 1fr;
  }

  .playground-stage-group {
    width: 100%;
  }

  .playground-labels span {
    text-align: left;
  }

  .hero__metrics,
  .drift-summary {
    grid-template-columns: 1fr;
  }

  .terminal-window__input {
    grid-template-columns: 1fr;
  }

  .terminal-window__statusbar {
    justify-content: flex-start;
  }
}
