*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #05070b;
  --bg-deep: #020409;
  --panel: rgba(9, 13, 22, 0.72);
  --panel-strong: rgba(11, 16, 28, 0.86);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text-1: #edf2ff;
  --text-2: rgba(237, 242, 255, 0.74);
  --text-3: rgba(237, 242, 255, 0.48);
  --text-4: rgba(237, 242, 255, 0.24);
  --accent: #4c8dff;
  --accent-soft: rgba(76, 141, 255, 0.18);
  --accent-strong: rgba(76, 141, 255, 0.32);
  --accent-alt: #6f63ff;
  --success: #67d89d;
  --warning: #ffbe7a;
  --danger: #ff8b8b;
  --shadow-xl: 0 28px 80px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.3);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-1);
  background:
    radial-gradient(circle at top center, rgba(76, 141, 255, 0.16), transparent 34%),
    radial-gradient(circle at 84% 16%, rgba(111, 99, 255, 0.12), transparent 24%),
    radial-gradient(circle at 12% 78%, rgba(76, 141, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #070a12 0%, var(--bg-deep) 100%);
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 38%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 38%, transparent 88%);
  opacity: 0.6;
}

body::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 10%),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.05), transparent 42%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 42px 0 28px;
}

.section {
  margin-top: 32px;
}

.section--hero {
  margin-top: 0;
}

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-xl);
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  pointer-events: none;
}

.panel::after {
  content: '';
  position: absolute;
  inset: auto 16% -72px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 141, 255, 0.12), transparent 72%);
  pointer-events: none;
  filter: blur(6px);
}

.panel--inner {
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-lg);
}

.corner {
  position: fixed;
  width: 18px;
  height: 18px;
  opacity: 0.22;
  z-index: 2;
}

.corner--tl {
  top: 26px;
  left: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-left: 1px solid rgba(255, 255, 255, 0.72);
}

.corner--tr {
  top: 26px;
  right: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.72);
}

.corner--bl {
  bottom: 26px;
  left: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  border-left: 1px solid rgba(255, 255, 255, 0.72);
}

.corner--br {
  bottom: 26px;
  right: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.72);
}

.scanline {
  position: fixed;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(76, 141, 255, 0.38) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  animation: scanline 10s linear infinite;
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  10%,
  92% {
    opacity: 1;
  }

  100% {
    transform: translateY(3200px);
    opacity: 0;
  }
}

.eyebrow,
.section-heading__eyebrow,
.card-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-4);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  min-height: 620px;
}

.hero__content {
  padding: 42px 10px 42px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hero__content .eyebrow::before {
  content: '';
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22));
}

.wordmark {
  position: relative;
  display: inline-block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(68px, 12vw, 124px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(227, 235, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 32px rgba(76, 141, 255, 0.16);
}

.wordmark::after {
  content: 'SERKOV AI';
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  background: linear-gradient(135deg, rgba(76, 141, 255, 0.7), rgba(111, 99, 255, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(26px);
  opacity: 0.28;
}

.positioning {
  margin-top: 16px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(223, 232, 255, 0.8);
}

.hero__lead {
  max-width: 620px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  cursor: pointer;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 65%);
  pointer-events: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  outline: none;
}

.button--primary {
  background: linear-gradient(180deg, rgba(76, 141, 255, 0.2), rgba(76, 141, 255, 0.09));
  border-color: rgba(76, 141, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(76, 141, 255, 0.06) inset, 0 18px 40px rgba(22, 60, 145, 0.22);
}

.button--primary:hover,
.button--primary:focus-visible {
  border-color: rgba(118, 169, 255, 0.48);
  box-shadow: 0 0 0 1px rgba(76, 141, 255, 0.12) inset, 0 22px 44px rgba(22, 60, 145, 0.28);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(237, 242, 255, 0.86);
}

.button--block {
  width: 100%;
}

.button--compact {
  min-height: 46px;
  padding-inline: 20px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.hero__footnote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(103, 216, 157, 0.42);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.hero__visual {
  min-height: 620px;
  padding: 28px;
  display: flex;
  align-items: stretch;
}

.hero-visual__orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero-visual__orb--primary {
  width: 420px;
  height: 420px;
  right: -110px;
  top: 40px;
  box-shadow: 0 0 60px rgba(76, 141, 255, 0.08) inset;
}

.hero-visual__orb--secondary {
  width: 250px;
  height: 250px;
  right: 70px;
  bottom: 42px;
  border-color: rgba(111, 99, 255, 0.11);
}

.hero-terminal {
  position: relative;
  width: 100%;
  border-radius: calc(var(--radius-xl) - 6px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent),
    linear-gradient(180deg, rgba(6, 10, 18, 0.94), rgba(4, 7, 13, 0.98));
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-terminal__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-terminal__label,
.hero-terminal__state {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-terminal__label {
  color: var(--text-4);
}

.hero-terminal__state {
  color: rgba(161, 195, 255, 0.88);
}

.hero-terminal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-kpi {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.022);
}

.hero-kpi__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
}

.hero-kpi__value {
  margin-top: 12px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.hero-kpi__meta {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-3);
}

.hero-route {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-route span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 242, 255, 0.76);
}

.trust-strip {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}

.trust-strip__label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-4);
}

.trust-strip__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip__items span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(237, 242, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 24px;
}

.section-heading--left {
  margin-bottom: 0;
}

.section-heading h2 {
  max-width: 900px;
  margin-top: 12px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p:last-child {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stack-card {
  min-height: 220px;
  padding: 22px 22px 20px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.stack-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    var(--panel-strong);
}

.stack-card__index {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(140, 179, 255, 0.78);
}

.stack-card h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.stack-card p:last-child {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.metrics-suite {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.metrics-suite__block {
  padding: 24px;
}

.metrics-suite__heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.metrics-suite__heading h2 {
  margin-top: 10px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(24px, 3.3vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.metrics-suite__heading p:last-child {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.76;
  color: var(--text-2);
}

.presentation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.presentation-metric {
  min-width: 0;
  min-height: 236px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.presentation-metric:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.presentation-metric.is-updated {
  box-shadow: 0 0 0 1px rgba(76, 141, 255, 0.09) inset, 0 0 22px rgba(76, 141, 255, 0.12);
}

.presentation-metric__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.presentation-metric__titles {
  min-width: 0;
}

.presentation-metric__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-4);
}

.presentation-metric__title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-1);
}

.presentation-metric__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 242, 255, 0.74);
  white-space: nowrap;
  flex: 0 0 auto;
}

.presentation-metric__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.presentation-metric__value {
  margin-top: 20px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: rgba(245, 248, 255, 0.96);
  min-height: 1.1em;
  overflow-wrap: anywhere;
}

.presentation-metric__subvalue {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  min-height: 2.8em;
}

.presentation-metric__footnote {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-3);
  min-height: 3.2em;
}

.presentation-metric__updated {
  margin-top: auto;
  padding-top: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}

.presentation-metric.is-live .presentation-metric__status {
  border-color: rgba(103, 216, 157, 0.22);
  background: rgba(103, 216, 157, 0.08);
  color: #b8f0cf;
}

.presentation-metric.is-live .presentation-metric__dot {
  background: var(--success);
  box-shadow: 0 0 10px rgba(103, 216, 157, 0.46);
  animation: pulse 2.4s ease-in-out infinite;
}

.presentation-metric.is-degraded .presentation-metric__status {
  border-color: rgba(255, 190, 122, 0.26);
  background: rgba(255, 190, 122, 0.09);
  color: #ffd6a7;
}

.presentation-metric.is-degraded .presentation-metric__dot {
  background: var(--warning);
  box-shadow: 0 0 10px rgba(255, 190, 122, 0.44);
  animation: pulse 2.6s ease-in-out infinite;
}

.presentation-metric.is-fallback .presentation-metric__status,
.presentation-metric.is-loading .presentation-metric__status {
  color: rgba(237, 242, 255, 0.62);
}

.presentation-metric.is-fallback .presentation-metric__dot {
  background: rgba(237, 242, 255, 0.34);
}

.presentation-metric.is-loading::after,
.live-dashboard__summary.is-loading::after,
.live-block.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.06) 48%, transparent 100%);
  animation: skeletonSweep 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes skeletonSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.presentation-metric.is-loading .presentation-metric__value,
.presentation-metric.is-loading .presentation-metric__subvalue,
.presentation-metric.is-loading .presentation-metric__footnote,
.presentation-metric.is-loading .presentation-metric__updated,
.live-dashboard__summary.is-loading .live-dashboard__summary-value,
.live-dashboard__summary.is-loading .live-dashboard__summary-meta,
.live-block.is-loading .live-block__primary,
.live-block.is-loading .live-block__secondary,
.live-block.is-loading .mode-chip {
  color: transparent;
  border-color: transparent;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.025);
  border-radius: 8px;
  user-select: none;
}

.presentation-metric.is-loading .presentation-metric__value,
.live-block.is-loading .live-block__primary {
  min-height: 1.2em;
}

.presentation-metric.is-loading .presentation-metric__subvalue,
.presentation-metric.is-loading .presentation-metric__footnote,
.live-block.is-loading .live-block__secondary,
.live-dashboard__summary.is-loading .live-dashboard__summary-meta {
  min-height: 2.6em;
}

.presentation-metric__value.is-refreshing,
.presentation-metric__subvalue.is-refreshing,
.presentation-metric__footnote.is-refreshing,
.presentation-metric__updated.is-refreshing,
.live-dashboard__summary-value.is-refreshing,
.live-dashboard__summary-meta.is-refreshing,
.live-block__primary.is-refreshing,
.live-block__secondary.is-refreshing {
  animation: valueShimmer 0.72s ease-out forwards;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  min-height: 244px;
  padding: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.metric-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
}

.metric-card__value {
  margin-top: 20px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.metric-card__detail {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.metric-card__meta {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
}

.runtime-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3);
}

.flow-chain {
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.flow-node {
  position: relative;
  min-height: 176px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.flow-node:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 44px;
  right: -14px;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(76, 141, 255, 0.38), rgba(255, 255, 255, 0.06));
}

.flow-node__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(76, 141, 255, 0.22);
  background: rgba(76, 141, 255, 0.08);
  color: rgba(170, 202, 255, 0.92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.flow-node h3 {
  margin-top: 18px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.flow-node p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.68;
  color: var(--text-2);
}

.briefing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.briefing-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.briefing-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.briefing-point {
  min-height: 180px;
  padding: 20px;
}

.briefing-point h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.briefing-point p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-2);
}

.briefing-panel {
  padding: 28px;
}

.gate,
.live-panel {
  position: relative;
}

.gate__header,
.live-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.gate__status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gate__title,
.live-panel__title {
  margin-top: 14px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.gate__description {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-2);
}

.locked-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.locked-preview__card {
  padding: 16px 16px 14px;
  min-height: 126px;
  position: relative;
}

.locked-preview__card::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: linear-gradient(180deg, rgba(4, 7, 12, 0.08), rgba(4, 7, 12, 0.18));
  pointer-events: none;
}

.locked-preview__label,
.locked-preview__meta {
  position: relative;
  z-index: 1;
}

.locked-preview__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-4);
}

.locked-preview__value {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: rgba(240, 244, 255, 0.64);
}

.locked-preview__meta {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(237, 242, 255, 0.5);
}

.gate-form {
  margin-top: 22px;
}

.gate-form__label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px 0 56px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-1);
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.input-wrap input::placeholder {
  color: rgba(237, 242, 255, 0.24);
}

.input-wrap input:focus {
  outline: none;
  border-color: rgba(76, 141, 255, 0.36);
  background: rgba(76, 141, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(76, 141, 255, 0.08), 0 0 24px rgba(76, 141, 255, 0.1);
}

.card-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-3);
}

.live-msg {
  min-height: 1.2em;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 171, 171, 0.86);
}

.live-msg:empty {
  display: none;
}

.gate-loading {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(170, 202, 255, 0.82);
  animation: gatePulse 1.3s ease-in-out infinite;
}

@keyframes gatePulse {
  0%,
  100% {
    opacity: 0.48;
  }

  50% {
    opacity: 1;
  }
}

.live-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 10px;
  text-align: center;
}

.live-loading__bar {
  width: 124px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(76, 141, 255, 0.56), transparent);
  animation: loadBar 1.4s ease-in-out infinite;
}

@keyframes loadBar {
  0% {
    opacity: 0.35;
    transform: scaleX(0.62);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }

  100% {
    opacity: 0.35;
    transform: scaleX(0.62);
  }
}

.live-loading__text {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-4);
}

.live-panel--ready .live-loading {
  display: none;
}

.live-dashboard {
  margin-top: 20px;
}

.live-dashboard__summary {
  padding: 18px 18px 16px;
}

.live-dashboard__summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-dashboard__summary-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
}

.live-dashboard__summary-value {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(237, 242, 255, 0.86);
}

.live-dashboard__summary-meta {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-3);
}

.live-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.live-block {
  min-height: 168px;
  padding: 18px;
}

.live-block__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
}

.live-block__primary {
  margin-top: 14px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.live-block__secondary {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--text-2);
}

.live-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.live-sync {
  margin-top: 0;
}

.live-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 190, 122, 0.16);
  background: rgba(255, 190, 122, 0.06);
  color: rgba(255, 213, 168, 0.9);
  font-size: 12px;
  line-height: 1.7;
}

.live-banner:empty {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(237, 242, 255, 0.88);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill--muted {
  color: var(--text-3);
  border-color: rgba(255, 255, 255, 0.08);
}

.status-pill--online {
  color: #a8f0c6;
  border-color: rgba(103, 216, 157, 0.28);
  background: rgba(103, 216, 157, 0.09);
}

.status-pill--active {
  color: #b3d1ff;
  border-color: rgba(76, 141, 255, 0.32);
  background: rgba(76, 141, 255, 0.12);
}

.status-pill--stopped {
  color: rgba(237, 242, 255, 0.7);
}

.status-pill--error {
  color: #ffc0c0;
  border-color: rgba(255, 139, 139, 0.3);
  background: rgba(255, 139, 139, 0.12);
}

.status-pill--warn {
  color: #ffd29f;
  border-color: rgba(255, 190, 122, 0.3);
  background: rgba(255, 190, 122, 0.11);
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mode-chip--neutral {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
}

.mode-chip--live {
  color: #a8f0c6;
  border-color: rgba(103, 216, 157, 0.28);
  background: rgba(103, 216, 157, 0.09);
}

.mode-chip--paper {
  color: #b3d1ff;
  border-color: rgba(76, 141, 255, 0.34);
  background: rgba(76, 141, 255, 0.12);
}

.mode-chip--shadow {
  color: #d8c7ff;
  border-color: rgba(111, 99, 255, 0.36);
  background: rgba(111, 99, 255, 0.14);
}

.mode-chip--frozen {
  color: #ffd19e;
  border-color: rgba(255, 190, 122, 0.34);
  background: rgba(255, 190, 122, 0.12);
}

.mode-chip--observe,
.mode-chip--data {
  color: rgba(237, 242, 255, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding: 22px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__wordmark {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.footer__descriptor,
.footer__meta p {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__meta {
  text-align: right;
}

@media (max-width: 1180px) {
  .hero,
  .briefing-layout {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-top: 24px;
    padding-right: 0;
  }

  .hero__visual {
    min-height: 520px;
  }

  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .briefing-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .presentation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-shell {
    width: min(1280px, calc(100vw - 32px));
    padding-top: 28px;
  }

  .trust-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-chain,
  .stack-grid,
  .briefing-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-node:not(:last-child)::after {
    display: none;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .presentation-grid {
    grid-template-columns: 1fr;
  }

  .corner {
    width: 12px;
    height: 12px;
  }

  .corner--tl {
    top: 16px;
    left: 16px;
  }

  .corner--tr {
    top: 16px;
    right: 16px;
  }

  .corner--bl {
    bottom: 16px;
    left: 16px;
  }

  .corner--br {
    bottom: 16px;
    right: 16px;
  }

  .site-shell {
    width: min(1280px, calc(100vw - 24px));
    padding-top: 20px;
  }

  .section {
    margin-top: 22px;
  }

  .hero {
    gap: 18px;
    min-height: auto;
  }

  .hero__content {
    padding: 18px 0 8px;
  }

  .hero__lead,
  .section-heading p:last-child,
  .gate__description {
    font-size: 14px;
  }

  .hero__visual,
  .briefing-panel,
  .metrics-suite__block {
    padding: 18px;
  }

  .hero-terminal,
  .trust-strip,
  .flow-chain {
    padding: 18px;
  }

  .hero-terminal__grid,
  .metrics-grid,
  .flow-chain,
  .stack-grid,
  .briefing-points,
  .live-dashboard__grid,
  .locked-preview {
    grid-template-columns: 1fr;
  }

  .hero-kpi,
  .metric-card,
  .stack-card,
  .briefing-point,
  .flow-node,
  .live-block {
    min-height: auto;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .gate__header,
  .live-panel__header,
  .live-panel__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-hint {
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════
   LIVE VISUAL LAYER  —  ambient, terminal, ops, metrics
   ═══════════════════════════════════════════════════════════ */

/* ── Ambient breathing glow ── */
.site-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 16% 58%, rgba(76, 141, 255, 0.055), transparent 42%),
    radial-gradient(circle at 84% 34%, rgba(111, 99, 255, 0.04), transparent 36%);
  animation: ambientBreath 22s ease-in-out infinite alternate;
}

@keyframes ambientBreath {
  0% { opacity: 0.44; }
  100% { opacity: 1; }
}

/* ── Hero terminal — dot texture via ::before ── */
.hero-terminal {
  isolation: isolate;
}

.hero-terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(76, 141, 255, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.48;
}

/* ── Hero terminal sweep trace ── */
.hero-terminal__trace {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(76, 141, 255, 0.58) 38%,
    rgba(76, 141, 255, 0.36) 62%,
    transparent 100%
  );
  pointer-events: none;
  animation: termTrace 5.5s ease-in-out infinite;
  opacity: 0;
}

@keyframes termTrace {
  0% { left: -1px; opacity: 0; }
  7% { opacity: 1; }
  88% { opacity: 0.55; }
  100% { left: 100%; opacity: 0; }
}

/* ── Hero KPI active highlight & pulse dot ── */
.hero-kpi {
  position: relative;
  transition: border-color 1s ease, box-shadow 1s ease;
}

.hero-kpi.is-active {
  border-color: rgba(76, 141, 255, 0.26);
  box-shadow: 0 0 0 1px rgba(76, 141, 255, 0.07) inset, 0 0 20px rgba(76, 141, 255, 0.08);
}

.hero-kpi::after {
  content: '';
  position: absolute;
  top: 11px;
  right: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(103, 216, 157, 0.68);
  box-shadow: 0 0 8px rgba(103, 216, 157, 0.38);
  animation: heroPulse 3.2s ease-in-out infinite;
}

.hero-kpi:nth-child(2)::after { animation-delay: 0.8s; }
.hero-kpi:nth-child(3)::after { animation-delay: 1.6s; }
.hero-kpi:nth-child(4)::after { animation-delay: 2.4s; }

@keyframes heroPulse {
  0%, 100% { opacity: 0.28; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ── Hero route active step ── */
.hero-route span {
  transition: border-color 0.55s ease, background 0.55s ease, color 0.55s ease;
}

.hero-route span.is-active {
  border-color: rgba(76, 141, 255, 0.34);
  background: rgba(76, 141, 255, 0.13);
  color: rgba(185, 215, 255, 0.94);
}

/* ═══════════════════════════════════════════════════════════
   OPS GRID  —  Active Modules
   ═══════════════════════════════════════════════════════════ */

.ops-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
  align-items: stretch;
}

.ops-kpi {
  padding: 22px 22px 20px;
  min-height: 176px;
  transition: transform 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ops-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.ops-kpi__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.ops-kpi__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
  line-height: 1.45;
  min-width: 0;
  max-width: 18ch;
}

.ops-kpi__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(237, 242, 255, 0.78);
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  flex: 0 0 auto;
  max-width: 110px;
}

.ops-kpi__badge--active {
  color: #b8f0cf;
  border-color: rgba(103, 216, 157, 0.26);
  background: rgba(103, 216, 157, 0.1);
}

.ops-kpi__badge--scan {
  color: #bcd6ff;
  border-color: rgba(76, 141, 255, 0.28);
  background: rgba(76, 141, 255, 0.11);
}

.ops-kpi__badge--warn {
  color: #ffd6a7;
  border-color: rgba(255, 190, 122, 0.28);
  background: rgba(255, 190, 122, 0.11);
}

.ops-kpi__value {
  margin-top: 22px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-1);
  max-width: 12ch;
  overflow-wrap: anywhere;
}

.ops-kpi__meta {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.62;
  color: var(--text-2);
  max-width: 32ch;
  min-width: 0;
}

.ops-kpi__value.is-refreshing {
  animation: valueShimmer 0.56s ease-out forwards;
}

.ops-kpi__meta.is-refreshing {
  animation: valueShimmer 0.56s ease-out forwards;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.ops-card {
  min-height: 320px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  min-width: 0;
}

.ops-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.ops-card.is-active {
  border-color: rgba(76, 141, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(76, 141, 255, 0.05) inset, 0 18px 42px rgba(0, 0, 0, 0.28);
}

.ops-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.ops-card__index {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(154, 190, 255, 0.82);
}

.ops-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: normal;
  text-align: right;
  line-height: 1.35;
  max-width: 16ch;
  justify-content: flex-end;
}

.ops-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  margin-top: 18px;
  min-width: 0;
}

.ops-card__body > div:first-child {
  min-width: 0;
}

.ops-card h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-1);
  max-width: 16ch;
}

.ops-card p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.62;
  color: var(--text-2);
  max-width: 33ch;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.ops-card__metric {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}

.ops-card__metric-value {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: rgba(245, 248, 255, 0.95);
  max-width: 12ch;
  overflow-wrap: anywhere;
}

.ops-card__metric-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  line-height: 1.45;
  max-width: 24ch;
}

.ops-card__metric-value.is-refreshing {
  animation: valueShimmer 0.58s ease-out forwards;
}

.ops-card__anim {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ops-card__anim--large {
  height: 64px;
  margin-top: 18px;
  flex: 0 0 auto;
}

.ops-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.ops-dot--active {
  background: var(--success);
  box-shadow: 0 0 8px rgba(103, 216, 157, 0.52);
  animation: pulse 2.8s ease-in-out infinite;
}

.ops-dot--scanning {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(76, 141, 255, 0.52);
  animation: pulse 1.6s ease-in-out infinite;
}

.ops-dot--shadow {
  background: rgba(138, 124, 255, 0.88);
  box-shadow: 0 0 8px rgba(111, 99, 255, 0.5);
  animation: pulse 3.4s ease-in-out infinite;
}

/* Scanner: dot grid + vertical sweep */
.ops-scan-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 141, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 141, 255, 0.09) 1px, transparent 1px);
  background-size: 12px 12px;
}

.ops-scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(76, 141, 255, 0.82), transparent);
  animation: opscanSweep 2.8s linear infinite;
}

@keyframes opscanSweep {
  0% { left: -2px; opacity: 0; }
  5% { opacity: 1; }
  90% { opacity: 0.65; }
  100% { left: 100%; opacity: 0; }
}

/* Signal bars */
.ops-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5px;
  height: 100%;
  padding: 10px 14px;
}

.ops-bars__bar {
  width: 6px;
  height: 46px;
  border-radius: 3px 3px 0 0;
  background: rgba(76, 141, 255, 0.62);
  transform-origin: bottom center;
  transform: scaleY(0.14);
}

.ops-bars__bar:nth-child(1) { animation: barBounce 1.9s ease-in-out infinite 0s; }
.ops-bars__bar:nth-child(2) { animation: barBounce 1.9s ease-in-out infinite 0.18s; }
.ops-bars__bar:nth-child(3) { animation: barBounce 1.9s ease-in-out infinite 0.36s; }
.ops-bars__bar:nth-child(4) { animation: barBounce 1.9s ease-in-out infinite 0.54s; }
.ops-bars__bar:nth-child(5) { animation: barBounce 1.9s ease-in-out infinite 0.72s; }
.ops-bars__bar:nth-child(6) { animation: barBounce 1.9s ease-in-out infinite 0.9s; }
.ops-bars__bar:nth-child(7) { animation: barBounce 1.9s ease-in-out infinite 1.08s; }

@keyframes barBounce {
  0%, 100% { transform: scaleY(0.14); opacity: 0.26; }
  50% { transform: scaleY(1); opacity: 0.88; }
}

/* Shadow wave lines */
.ops-wave-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 0 14px;
}

.ops-wave {
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(111, 99, 255, 0.22) 10%,
    rgba(148, 134, 255, 0.88) 28%,
    rgba(111, 99, 255, 0.4) 48%,
    rgba(148, 134, 255, 0.82) 68%,
    rgba(111, 99, 255, 0.18) 86%,
    transparent 100%
  );
  animation: waveDrift 3.4s ease-in-out infinite;
}

.ops-wave--2 {
  opacity: 0.56;
  animation-delay: 1.7s;
}

@keyframes waveDrift {
  0%, 100% { transform: scaleX(0.82) translateX(-4%); opacity: 0.42; }
  50% { transform: scaleX(1) translateX(0); opacity: 1; }
}

/* Execution pulse rings */
.ops-ring-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
}

.ops-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(76, 141, 255, 0.72);
}

.ops-ring--pulse {
  border-color: rgba(76, 141, 255, 0.38);
  animation: ringExpand 2.4s ease-out infinite;
}

.ops-ring--pulse2 {
  border-color: rgba(76, 141, 255, 0.22);
  animation: ringExpand 2.4s ease-out infinite 1.2s;
}

@keyframes ringExpand {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(2.9); opacity: 0; }
}

/* Risk telemetry blinking dots */
.ops-telemetry {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.ops-telemetry__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 190, 122, 0.74);
  flex: 0 0 auto;
}

.ops-telemetry__dot:nth-child(1) { animation: teleBlink 2.6s ease-in-out infinite 0s; }
.ops-telemetry__dot:nth-child(2) { animation: teleBlink 2.6s ease-in-out infinite 0.35s; }
.ops-telemetry__dot:nth-child(3) { animation: teleBlink 2.6s ease-in-out infinite 0.7s; }
.ops-telemetry__dot:nth-child(4) { animation: teleBlink 2.6s ease-in-out infinite 1.05s; }
.ops-telemetry__dot:nth-child(5) { animation: teleBlink 2.6s ease-in-out infinite 1.4s; }
.ops-telemetry__dot:nth-child(6) { animation: teleBlink 2.6s ease-in-out infinite 1.75s; }
.ops-telemetry__dot:nth-child(7) { animation: teleBlink 2.6s ease-in-out infinite 2.1s; }

@keyframes teleBlink {
  0%, 100% { opacity: 0.14; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.42); }
}

/* Telemetry data stream lines */
.ops-stream {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ops-stream__line {
  position: absolute;
  height: 1px;
  width: 54%;
  background: linear-gradient(90deg, transparent, rgba(103, 216, 157, 0.68), transparent);
  animation: streamFlow 3s linear infinite;
}

.ops-stream__line:nth-child(1) { top: 24%; }
.ops-stream__line:nth-child(2) { top: 50%; animation-delay: 1s; width: 42%; opacity: 0.78; }
.ops-stream__line:nth-child(3) { top: 76%; animation-delay: 2s; width: 50%; opacity: 0.58; }

@keyframes streamFlow {
  0% { left: -60%; }
  100% { left: 110%; }
}

/* ═══════════════════════════════════════════════════════════
   METRIC CARDS  —  live indicator & value shimmer
   ═══════════════════════════════════════════════════════════ */

.metric-card.is-live .metric-card__label::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(103, 216, 157, 0.42);
  margin-left: 9px;
  vertical-align: middle;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes valueShimmer {
  0% { opacity: 0.5; }
  40% { opacity: 1; }
  100% { opacity: 1; }
}

.metric-card__value.is-refreshing {
  animation: valueShimmer 0.52s ease-out forwards;
}

/* ── Ops / metrics responsive ── */
@media (max-width: 920px) {
  .ops-overview,
  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-kpi__label,
  .ops-card h3,
  .ops-card p,
  .ops-card__metric-label {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .ops-overview,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .ops-kpi,
  .ops-card {
    min-height: auto;
  }

  .ops-kpi__head,
  .ops-card__topline {
    gap: 10px;
  }

  .ops-status {
    max-width: 14ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
