/* ==========================================================================
   Cleariva Performance Intelligence Platform — sample static frontend
   Design language: deep navy + teal accent, soft glassmorphism, no deps.
   ========================================================================== */

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

:root {
  --navy-900: #06142b;
  --navy-800: #0b1f3a;
  --navy-700: #15325c;
  --ink: #0b1f3a;
  --teal: #2dd4bf;
  --teal-deep: #0ea5a3;
  --sky: #38bdf8;
  --violet: #8b5cf6;

  --bg: #060f20;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(148, 184, 230, 0.16);
  --text: #e8eefb;
  --text-dim: #9fb2d0;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.75);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="light"] {
  --bg: #eef3fb;
  --surface: rgba(11, 31, 58, 0.04);
  --surface-2: #ffffff;
  --border: rgba(11, 31, 58, 0.12);
  --text: #0b1f3a;
  --text-dim: #4d6185;
  --shadow: 0 20px 45px -26px rgba(11, 31, 58, 0.4);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

/* ---------- Background decoration ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 72%);
}
.bg-glow {
  position: fixed; z-index: -1; top: -220px; left: 50%;
  width: 900px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.22), transparent 60%),
              radial-gradient(circle at 70% 40%, rgba(56, 189, 248, 0.18), transparent 55%);
  filter: blur(10px); pointer-events: none;
}

/* ---------- Layout primitives ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 92px 24px; }
/* Full-bleed tinted band: the background spans edge-to-edge, while the inner
   content is constrained to the same max width as a normal .section. The inner
   wrapper (.section-inner) is centered; content inside stays left-aligned. */
.section-alt { background: var(--surface); border-block: 1px solid var(--border); max-width: none; }
.section-alt > .section-inner { max-width: var(--maxw); margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal);
  margin-bottom: 14px;
}
.section-head { max-width: 680px; margin: 0 0 48px; text-align: left; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--text-dim); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; padding: 10px 18px; transition: all 0.18s ease;
  background: none; color: inherit;
}
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #04121f; box-shadow: 0 10px 26px -12px var(--teal-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px var(--teal-deep); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { border-color: var(--border); padding: 10px 14px; }
.btn-ghost:hover { border-color: var(--teal); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 6px 14px rgba(45,212,191,0.25)); }
.brand-text strong { display: block; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-text small { color: var(--text-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--text-dim); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav a:hover { color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--teal); transition: width 0.2s ease; }
.nav a:hover::after { width: 100%; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.env-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em;
}
.env-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45,212,191,0.18); animation: pulse 2.4s infinite; }
.theme-icon { font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  padding: clamp(56px, 8vw, 104px) 24px 72px;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; margin: 10px 0 18px; }
.grad { background: linear-gradient(100deg, var(--teal), var(--sky) 60%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--text-dim); font-size: 1.14rem; max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 36px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin: 0; }
.hero-stats dt { color: var(--text-dim); font-size: 0.82rem; }
.hero-stats dd { margin: 2px 0 0; font-size: 1.7rem; font-weight: 800; }

.hero-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.hero-card-head { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.92rem; color: var(--text-dim); margin-bottom: 20px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.2); animation: pulse 2s infinite; }

.score-ring {
  width: 196px; height: 196px; margin: 6px auto 28px;
  display: grid; place-items: center; position: relative;
}
.score-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track {
  fill: none; stroke: rgba(148, 184, 230, 0.14); stroke-width: 14; stroke-linecap: round;
}
.ring-progress {
  fill: none; stroke: url(#ringGrad); stroke-width: 14; stroke-linecap: round;
  /* 2 * pi * r (r = 94) ≈ 590.6 */
  stroke-dasharray: 590.6;
  stroke-dashoffset: 590.6;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.score-ring-inner {
  position: relative; z-index: 1; text-align: center;
  width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-content: center; gap: 2px;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--teal) 14%, var(--surface-2)), var(--surface-2));
  box-shadow: inset 0 0 0 1px var(--border), inset 0 10px 26px -16px rgba(0, 0, 0, 0.6);
}
.score-value {
  display: block; font-size: 3rem; font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, var(--teal), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.score-label { color: var(--text-dim); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; }

.hero-skills { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 15px; }
.hero-skills li { display: grid; grid-template-columns: 7.2rem 1fr 2.1rem; align-items: center; gap: 14px; font-size: 0.9rem; }
.hero-skills span:first-child { color: var(--text-dim); }
.hero-skills .bar { height: 9px; border-radius: 999px; background: rgba(148, 184, 230, 0.14); position: relative; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3); }
.hero-skills .bar::after {
  content: ""; position: absolute; inset: 0; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  border-radius: inherit; box-shadow: 0 0 12px -2px color-mix(in srgb, var(--teal) 70%, transparent);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-skills li.in .bar::after { width: var(--w); }
.hero-skills b { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }

/* ---------- Engines ---------- */
.engine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.engine-card {
  position: relative; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; outline: none;
}
.engine-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--sky)); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.engine-card:hover, .engine-card:focus-visible { transform: translateY(-6px); border-color: color-mix(in srgb, var(--teal) 55%, var(--border)); box-shadow: var(--shadow); }
.engine-card:hover::before, .engine-card:focus-visible::before { transform: scaleX(1); }
.engine-step { font-size: 0.78rem; font-weight: 700; color: var(--teal); letter-spacing: 0.1em; }
.engine-card h3 { font-size: 1.22rem; margin: 10px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.engine-card p { color: var(--text-dim); font-size: 0.95rem; }
.engine-tag { display: inline-block; margin-top: 16px; font-size: 0.74rem; font-weight: 600; color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
.engine-card.is-signature { background: linear-gradient(170deg, color-mix(in srgb, var(--teal) 16%, var(--surface-2)), var(--surface-2)); border-color: color-mix(in srgb, var(--teal) 40%, var(--border)); }
.chip { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #04121f; background: var(--teal); padding: 3px 8px; border-radius: 999px; }

/* ---------- Pipeline ---------- */
.pipeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  position: relative;
}
/* Base rail + animated progress fill, aligned to the dot centers (top: 26px = half of 52px dot) */
.pipeline::before,
.pipeline::after {
  content: ""; position: absolute; top: 26px; height: 3px; border-radius: 999px;
  left: 10%; right: 10%;
}
.pipeline::before { background: rgba(148, 184, 230, 0.16); }
.pipeline::after {
  right: auto; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--sky), var(--violet));
  box-shadow: 0 0 14px -2px color-mix(in srgb, var(--teal) 70%, transparent);
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.pipeline.in::after { width: 80%; }

/* Traveling pulse that rides the rail */
.pipeline .flow-pulse {
  position: absolute; top: 23px; left: 10%; width: 9px; height: 9px; border-radius: 50%;
  background: #eafffb; box-shadow: 0 0 10px 3px var(--teal); opacity: 0;
}
.pipeline.in .flow-pulse { animation: flowRide 3.4s ease-in-out 1.4s infinite; }

.pipeline li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; z-index: 1;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--i) * 0.12s);
}
.pipeline.in li { opacity: 1; transform: none; }

.p-dot {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 16px;
  border-radius: 50%; background: var(--surface-2);
  border: 1px solid var(--border); font-weight: 700; color: var(--teal);
  position: relative; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.p-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent); opacity: 0;
}
.pipeline li:hover .p-dot {
  transform: translateY(-3px) scale(1.06);
  border-color: var(--teal);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--teal) 80%, transparent);
}
.pipeline.in li .p-dot::after { animation: dotPing 2.6s ease-out infinite; animation-delay: calc(1.4s + var(--i) * 0.28s); }
.p-num { position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.pipeline h4 { font-size: 1rem; }
.pipeline p { color: var(--text-dim); font-size: 0.86rem; margin: 4px 0 0; max-width: 15ch; }

@keyframes flowRide {
  0% { left: 10%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 90%; opacity: 0; }
}
@keyframes dotPing {
  0% { opacity: 0.9; transform: scale(0.9); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

/* ---------- KPIs ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.kpi {
  position: relative; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px; overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.kpi::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.kpi:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--teal) 45%, var(--border)); box-shadow: var(--shadow); }
.kpi:hover::before { transform: scaleX(1); }
.kpi-icon {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px;
  border-radius: 11px; font-size: 1.1rem;
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 24%, transparent);
}
.kpi-label { color: var(--text-dim); font-size: 0.84rem; }
.kpi-value { display: block; font-size: 2.1rem; font-weight: 800; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.kpi-trend { font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.kpi-trend.up { color: #34d399; }
.kpi-trend.down { color: var(--sky); }

/* ---------- Panels ---------- */
.panel-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h3 { font-size: 1.1rem; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.seg button { background: none; border: none; color: var(--text-dim); font: inherit; font-size: 0.8rem; padding: 6px 14px; cursor: pointer; }
.seg button.is-active { background: var(--teal); color: #04121f; font-weight: 700; }
.panel-note { color: var(--text-dim); font-size: 0.8rem; margin: 14px 0 0; }

.chart {
  position: relative; display: flex; align-items: flex-end; gap: 12px;
  height: 200px; padding: 24px 4px 8px;
  background-image: repeating-linear-gradient(to top, transparent, transparent 39px, var(--border) 39px, var(--border) 40px);
  background-position: bottom; border-radius: 10px;
}
.chart .col { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; align-items: center; height: 100%; }
.chart .col i {
  width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; min-height: 4px;
  background: linear-gradient(180deg, var(--sky), var(--teal) 55%, var(--teal-deep));
  box-shadow: 0 0 18px -6px color-mix(in srgb, var(--teal) 80%, transparent), inset 0 1px 0 rgba(255,255,255,0.25);
  height: 4px; transition: height 1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease, transform 0.2s ease;
  position: relative;
}
.chart .col i::after {
  content: attr(data-val); position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 0.74rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity 0.4s ease 0.6s;
}
.chart.in .col i::after { opacity: 1; }
.chart .col:hover i { filter: brightness(1.12); transform: scaleY(1.015); transform-origin: bottom; }
.chart .col:hover i::after { opacity: 1; transition-delay: 0s; color: var(--teal); }
.chart .col span { font-size: 0.74rem; color: var(--text-dim); font-weight: 500; }

.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.queue li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); position: relative; cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.queue li::before {
  content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 3px; border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--sky)); opacity: 0; transition: opacity 0.18s ease;
}
.queue li:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--teal) 45%, var(--border));
  background: var(--surface-2);
}
.queue li:hover::before { opacity: 1; }
.queue li:hover .avatar { transform: scale(1.08) rotate(-4deg); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; color: #04121f; background: linear-gradient(135deg, var(--teal), var(--sky)); transition: transform 0.2s ease; box-shadow: 0 6px 14px -8px var(--teal-deep); }
.queue .who { font-weight: 600; font-size: 0.92rem; }
.queue .skill { color: var(--text-dim); font-size: 0.8rem; }
.pri { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; }
.pri.high { background: rgba(248,113,113,0.16); color: #f87171; }
.pri.med { background: rgba(56,189,248,0.16); color: var(--sky); }
.pri.low { background: rgba(148,184,230,0.14); color: var(--text-dim); }

/* ---------- Loop card ---------- */
.loop-card { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 24px; padding: 44px; box-shadow: var(--shadow); }
.loop-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 10px 0 14px; }
.loop-card p { color: var(--text-dim); }
.loop-metrics { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.loop-metric {
  flex: 1 1 120px; min-width: 110px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.loop-metric:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--teal) 45%, var(--border));
  box-shadow: var(--shadow);
}
.loop-num {
  display: flex; align-items: baseline; gap: 2px; line-height: 1;
  font-weight: 800; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--teal), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.loop-num b { font-size: 2.4rem; }
.loop-num i { font-size: 1.3rem; font-style: normal; font-weight: 700; }
.loop-metric small { display: block; margin-top: 8px; font-size: 0.8rem; font-weight: 500; color: var(--text-dim); }
.loop-visual { position: relative; display: grid; place-items: center; min-height: 220px; }
.loop-ring { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 2px dashed var(--teal); animation: spin 16s linear infinite; opacity: 0.6; }
.loop-ring.r2 { width: 120px; height: 120px; border-color: var(--sky); animation-duration: 10s; animation-direction: reverse; }
.loop-core { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #04121f; background: linear-gradient(135deg, var(--teal), var(--sky)); box-shadow: 0 12px 30px -10px var(--teal-deep); }

/* ---------- Footer ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 72px; border-top: 1px solid var(--border); text-align: center; }
.footer-brand { font-size: 1.05rem; }
.footer-note { color: var(--text-dim); font-size: 0.9rem; margin: 10px auto 6px; max-width: 44rem; }
.footer-build { color: var(--text-dim); font-size: 0.78rem; font-variant-numeric: tabular-nums; }

/* ---------- Animations ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .loop-ring, .live-dot, .env-pill .dot { animation: none; }
  .pipeline li { opacity: 1; transform: none; transition: none; }
  .pipeline::after { width: 80%; transition: none; }
  .pipeline .flow-pulse, .pipeline.in li .p-dot::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .engine-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-row { grid-template-columns: 1fr; }
  .loop-card { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 620px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .pipeline::before,
  .pipeline::after,
  .pipeline .flow-pulse { display: none; }
  .engine-grid { grid-template-columns: 1fr; }
  .loop-metrics { flex-wrap: wrap; gap: 18px; }
  .topbar-actions .btn-primary { display: none; }
}
