/* Kubevue — Billow-style dark landing. Serif display + brand-blue bloom.
   Scroll-scrubbed product demo: dashboard → ⌘K palette → Ask AI → @mention → answer. */

:root {
  --bg: #06080c;
  --bg-2: #090c12;
  --ink: #f4f7f2;
  --muted: #9aa4ad;
  --faint: #626d78;
  --surface: #0e131b;
  --surface-2: #141b24;
  --surface-3: #1a232d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #0074ff;
  --accent-hi: #38b6ff;
  --accent-soft: rgba(0, 116, 255, 0.16);
  --ok: #4fd6a0;
  --prog: #f0bd68;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--faint);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  z-index: 40;
  top: 0; left: 0; right: 0;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 44px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 620; font-size: 17px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 6px; }
.pillbtn {
  padding: 9px 20px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--ink); font-size: 14px; font-weight: 520; text-decoration: none;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.pillbtn:hover { background: var(--surface-3); transform: translateY(-1px); }

/* ---------- Scroll story scaffold ---------- */
.demo-scroll {
  position: relative;
  z-index: 10;
  height: 100vh; /* JS lengthens to enable scrubbing; fallback stays 1 viewport */
}
.js-scrub .demo-scroll { height: 440vh; }

.demo-viewport {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.js-scrub .demo-viewport { position: sticky; top: 0; }

/* ---------- Hero copy ---------- */
.hero-copy {
  position: absolute;
  left: 0; right: 0;
  top: clamp(88px, 13vh, 150px);
  z-index: 12;
  text-align: center;
  padding: 0 20px;
  will-change: transform, opacity;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 116, 255, 0.08);
  color: var(--muted); font-size: 13px; font-weight: 520; text-decoration: none;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
  animation: rise 0.7s var(--ease) both;
}
.eyebrow:hover { color: var(--ink); border-color: var(--border-strong); }
.eyebrow svg { width: 11px; height: 11px; }

.headline {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.headline .line { display: block; animation: rise 0.8s var(--ease) 0.05s both; }
.headline .line-2 {
  font-style: italic; font-weight: 420;
  background: linear-gradient(92deg, var(--accent-hi), #7aa8ff 60%, var(--ink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 0.8s var(--ease) 0.14s both;
}
.sub {
  max-width: 620px; margin: 22px auto 0;
  font-size: clamp(15px, 1.5vw, 17px); color: var(--muted); line-height: 1.62;
  animation: rise 0.8s var(--ease) 0.2s both;
}
.sub .at { color: var(--accent-hi); font-family: var(--mono); font-weight: 600; }

.cta {
  margin-top: 28px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  animation: rise 0.8s var(--ease) 0.28s both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 540; text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn svg { width: 13px; height: 13px; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(0, 116, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(0, 116, 255, 0.85); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-2); }

/* ---------- Bloom + stage positioning ---------- */
.stage-wrap { position: absolute; inset: 0; z-index: 8; }
.bloom {
  position: absolute; left: 50%; top: 6%;
  transform: translateX(-50%);
  width: 120%; height: 88%; z-index: 0;
  background:
    radial-gradient(40% 52% at 26% 46%, rgba(56, 182, 255, 0.8), transparent 68%),
    radial-gradient(44% 58% at 54% 38%, rgba(0, 132, 255, 0.92), transparent 70%),
    radial-gradient(40% 54% at 78% 48%, rgba(40, 160, 255, 0.78), transparent 68%),
    radial-gradient(50% 40% at 50% 74%, rgba(96, 92, 255, 0.4), transparent 72%);
  filter: blur(60px) saturate(1.2);
  animation: breathe 9s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes breathe {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  50% { transform: translateX(-50%) scale(1.05); opacity: 1; }
}

.stage-scaler {
  position: absolute;
  left: 50%; top: 120px;
  width: 1280px;
  transform-origin: top center;
  transform: translateX(-50%) scale(0.6);
  z-index: 2;
  will-change: transform;
}
/* =====================================================================
   DASHBOARD (design width 1280px — scaled by JS). App dark tokens.
   ===================================================================== */
.dash {
  --d-bg: #0c0c0e;
  --d-panel: #161619;
  --d-panel-2: #1b1b1f;
  --d-side: #0a0a0c;
  --d-border: #232327;
  --d-border-strong: #313135;
  --d-ink: #ededed;
  --d-muted: #9a9a9a;
  --d-faint: #63636a;
  --d-accent: #2280ff;
  --d-accent-hi: #4b96ff;
  --d-accent-soft: #11264a;
  --d-accent-ink: #9cc4ff;
  --d-ok: #47d19a;
  --d-warn: #eab308;
  --d-err: #f0616a;

  border: 1px solid var(--d-border-strong);
  border-radius: 16px;
  background: var(--d-bg);
  overflow: hidden;
  color: var(--d-ink);
  font-size: 13px;
  box-shadow: 0 -10px 60px -20px rgba(0, 116, 255, 0.35), 0 50px 110px -40px rgba(0, 0, 0, 0.85);
}

.stage-bar {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px;
  background: #0a0a0c; border-bottom: 1px solid var(--d-border);
}
.wd { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.wd-r { background: #ff5f57; } .wd-y { background: #febc2e; } .wd-g { background: #28c840; }
.chrome-nav { display: inline-flex; align-items: center; gap: 14px; margin-left: 16px; color: var(--d-faint); }
.chrome-nav .ci { width: 16px; height: 16px; }
.chrome-right { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; color: var(--d-faint); }
.chrome-right .ci { width: 16px; height: 16px; }
.chrome-right .ci-spark { color: var(--d-accent-hi); }
.updated { font-size: 12px; color: var(--d-faint); }

.stage-view { position: relative; height: 748px; overflow: hidden; }
.app { display: grid; grid-template-columns: 210px 1fr; height: 100%; }

/* sidebar */
.side {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--d-side); border-right: 1px solid var(--d-border);
  padding: 14px 12px;
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nv {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 11px; border-radius: 8px;
  font-size: 13.5px; font-weight: 460; color: var(--d-muted);
}
.nv .ni { width: 16px; font-size: 13px; color: var(--d-faint); font-style: normal; text-align: center; }
.nv.on { background: #1a1a1e; color: var(--d-ink); }
.nv.on .ni { color: var(--d-ink); }
.nv b { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--d-faint); }
.nv b.badge-blue {
  background: var(--d-accent); color: #fff;
  padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.side-foot { display: flex; flex-direction: column; gap: 8px; }
.cluster {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; border: 1px solid var(--d-border);
  background: #101013;
}
.cl-av {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #f0a020, #e0771a);
  color: #1a1200; font-weight: 700; font-size: 13px;
}
.cl-txt { display: flex; flex-direction: column; line-height: 1.25; }
.cl-k { font-size: 9.5px; letter-spacing: 0.08em; color: var(--d-accent-hi); font-weight: 600; }
.cl-n { font-size: 12.5px; color: var(--d-ink); }
.cluster .ci { width: 15px; height: 15px; margin-left: auto; color: var(--d-faint); }

/* content */
.content { padding: 26px 30px; overflow: hidden; }
.content-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.page-title { margin: 0; font-size: 30px; font-weight: 620; letter-spacing: -0.02em; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.ns-select {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 9px; border: 1px solid var(--d-border-strong);
  background: var(--d-panel); font-size: 13px; color: var(--d-ink);
}
.ns-select .ci { width: 12px; height: 12px; color: var(--d-faint); }
.cog {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--d-border-strong);
  background: var(--d-panel); display: grid; place-items: center; color: var(--d-muted); font-size: 15px;
}

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat {
  border: 1px solid var(--d-border); border-radius: 12px; background: var(--d-panel);
  padding: 16px 18px; min-height: 118px;
  display: flex; flex-direction: column;
}
.stat-k { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--d-faint); }
.stat-v { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.stat-v b { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat-v b.amber { color: var(--d-warn); }
.stat-v em { font-style: normal; font-size: 15px; color: var(--d-faint); }
.meter { margin-top: 12px; height: 4px; border-radius: 999px; background: #26262b; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 999px; }
.stat-sub { margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--d-muted); }

/* two-column panels */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.panel { border: 1px solid var(--d-border); border-radius: 12px; background: var(--d-panel); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; font-size: 14px; font-weight: 560;
}
.panel-head .dots { color: var(--d-faint); }
.panel-more {
  display: block; padding: 13px 18px; border-top: 1px solid var(--d-border);
  color: var(--d-accent); font-size: 13px; font-weight: 520; cursor: pointer;
}
.panel-more.center { text-align: center; }

/* workload health rings */
.rings { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 6px 18px; }
.ring-cell {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 6px 8px; text-align: center;
  border-right: 1px solid var(--d-border);
}
.ring-cell:last-child { border-right: 0; }
.ring {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 4px;
}
.ring-hole {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--d-panel); display: grid; place-items: center;
}
.ring-hole b { font-size: 26px; font-weight: 620; }
.ring-t { font-size: 13.5px; font-weight: 560; }
.ring-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--d-muted); }
.ring-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ring-legend i + i { margin-left: 8px; }
.dg { background: var(--d-ok); } .dr { background: var(--d-err); } .dy { background: var(--d-warn); } .db { background: var(--d-accent); }

/* namespaces */
.ns-list { list-style: none; margin: 0; padding: 6px 4px; }
.ns-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
}
.ns-list li + li { border-top: 1px solid var(--d-border); }
.ns-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ns-dot.g { background: var(--d-ok); } .ns-dot.r { background: var(--d-err); } .ns-dot.y { background: var(--d-warn); }
.ns-name { font-family: var(--mono); font-size: 13px; color: var(--d-ink); }
.ns-m { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; min-width: 60px; }
.ns-m b { font-weight: 600; font-size: 13px; }
.ns-m em { font-style: normal; font-size: 10px; letter-spacing: 0.04em; color: var(--d-faint); }

/* needs attention */
.att-list { list-style: none; margin: 0; padding: 4px; }
.att-list li { display: flex; align-items: center; gap: 13px; padding: 12px 14px; }
.att-list li + li { border-top: 1px solid var(--d-border); }
.att-ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center; background: #1e1e22; color: var(--d-faint); font-size: 13px;
}
.att-txt { display: flex; flex-direction: column; line-height: 1.35; }
.att-txt b { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--d-ink); }
.att-txt em { font-style: normal; font-size: 12px; color: var(--d-muted); }
.chip {
  margin-left: auto; padding: 5px 11px; border-radius: 8px;
  border: 1px solid rgba(234, 179, 8, 0.35); background: rgba(234, 179, 8, 0.08);
  color: var(--d-warn); font-size: 12px; font-weight: 500;
}

/* =====================================================================
   GLOBAL SEARCH BAR / COMMAND PALETTE / AI / MENTIONS / ANSWER
   ===================================================================== */
.gs-backdrop {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(8, 10, 18, 0.36);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 240ms var(--ease);
}
.dash.is-lifted .gs-backdrop { opacity: 1; }

.gs {
  position: absolute; z-index: 12;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  width: min(660px, 82%);
  border: 1px solid rgba(58, 58, 63, 0.75);
  border-radius: 16px;
  background: rgba(14, 14, 17, 0.9);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  opacity: 0.94;
  transition: box-shadow 220ms var(--ease), border-color 220ms var(--ease),
    background 220ms var(--ease), opacity 220ms var(--ease);
  will-change: transform;
}
.dash.is-lifted .gs {
  opacity: 1;
  border-color: var(--d-border-strong);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.5);
}
.dash.is-ai.is-lifted .gs {
  border-color: rgba(34, 128, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(34, 128, 255, 0.3),
    0 18px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(34, 128, 255, 0.28);
}

.gs-row { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; }
.gs-lead { position: relative; width: 17px; height: 17px; flex-shrink: 0; color: var(--d-muted); }
.gs-lead svg { position: absolute; inset: 0; width: 17px; height: 17px; transition: opacity 200ms var(--ease); }
.gs-lead .ic-spark { opacity: 0; color: var(--d-accent); }
.dash.is-ai .gs-lead .ic-search { opacity: 0; }
.dash.is-ai .gs-lead .ic-spark { opacity: 1; }

.gs-input { position: relative; flex: 1; min-width: 0; font-size: 15px; color: var(--d-ink); white-space: nowrap; overflow: hidden; }
.gs-typed { color: var(--d-ink); }
.gs-typed .at-ref { color: var(--d-accent-hi); }
.gs-ph { color: var(--d-faint); }
.gs-caret {
  display: none; width: 1.5px; height: 17px; margin-left: 1px; vertical-align: text-bottom;
  background: var(--d-accent); animation: blink 1s step-end infinite;
}
.dash.is-typing .gs-caret { display: inline-block; }
.dash.is-typing .gs-ph, .dash.has-text .gs-ph { display: none; }
@keyframes blink { 50% { opacity: 0; } }

.gs-mode {
  flex-shrink: 0; padding: 5px 11px; border-radius: 8px;
  border: 1px solid var(--d-border); background: rgba(26, 26, 30, 0.7);
  color: var(--d-muted); font-size: 11.5px; font-weight: 600;
  transition: color 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}
.dash.is-ai .gs-mode {
  color: var(--d-accent-ink);
  border-color: rgba(34, 128, 255, 0.45);
  background: rgba(34, 128, 255, 0.14);
}
.gs-mode::after { content: "Search"; }
.dash.is-ai .gs-mode { font-size: 0; }
.dash.is-ai .gs-mode::after { content: "Ask AI"; font-size: 11.5px; }

.gs-kbd {
  flex-shrink: 0; padding: 4px 8px; border-radius: 7px;
  border: 1px solid var(--d-border); background: rgba(26, 26, 30, 0.6);
  color: var(--d-faint); font-family: var(--mono); font-size: 11px;
}

/* palette footer hint */
.gs-hint {
  display: none; align-items: center; gap: 10px;
  padding: 9px 16px; border-top: 1px solid var(--d-border);
  color: var(--d-faint); font-size: 11.5px;
}
.dash.is-lifted .gs-hint { display: flex; }
.gs-hint-key {
  font-family: var(--mono); padding: 2px 7px; border-radius: 6px;
  border: 1px solid var(--d-border); background: rgba(26, 26, 30, 0.6);
}
.gs-ph-ai, .gs-hint-ai { display: none; }
.dash.is-ai .gs-ph-s, .dash.is-ai .gs-hint-s { display: none; }
.dash.is-ai .gs-ph-ai, .dash.is-ai .gs-hint-ai { display: inline; }
.dash.is-ai.has-text .gs-ph-ai,
.dash.is-ai.is-typing .gs-ph-ai { display: none; }

/* mention popover (opens upward) */
.gs-mentions {
  position: absolute; left: 12px; right: 12px; bottom: calc(100% + 6px);
  display: none; flex-direction: column; gap: 2px;
  max-height: 244px; overflow: hidden; padding: 5px;
  background: var(--d-bg); border: 1px solid var(--d-border-strong);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 24px 56px rgba(0, 0, 0, 0.6);
  z-index: 20;
}
.dash.show-mentions .gs-mentions { display: flex; }
.mn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; background: transparent;
}
.mn.active { background: var(--d-accent-soft); }
.mn-kind {
  width: 18px; height: 18px; flex-shrink: 0; display: grid; place-items: center;
  color: var(--d-muted); font-size: 12px;
}
.mn.active .mn-kind { color: var(--d-accent); }
.mn-name { font-size: 13px; font-weight: 600; color: var(--d-ink); }
.mn-ns { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--d-faint); }
.mn-empty { padding: 10px; font-size: 12.5px; color: var(--d-faint); }

/* answer panel */
.gs-answer {
  display: none; flex-direction: column; gap: 10px;
  max-height: 340px; overflow: hidden; padding: 16px 18px;
  border-bottom: 1px solid var(--d-border);
}
.dash.show-answer .gs-answer { display: flex; }
.gs-answer-q {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--d-muted);
}
.gs-answer-q .spark { width: 14px; height: 14px; color: var(--d-accent); flex-shrink: 0; }
.gs-answer-q .at-ref { color: var(--d-accent-hi); }
.gs-answer-body { font-size: 13.5px; line-height: 1.58; color: var(--d-ink); }
.gs-answer-body p { margin: 0 0 9px; }
.gs-answer-body p:last-child { margin-bottom: 0; }
.gs-answer-body .mono { font-family: var(--mono); font-weight: 600; }
.gs-answer-body code {
  font-family: var(--mono); font-size: 12px; padding: 1px 6px; border-radius: 6px;
  background: rgba(237, 237, 237, 0.09); color: var(--d-accent-ink);
}
.gs-answer-actions { display: flex; gap: 8px; }
.gs-answer-actions button {
  padding: 5px 11px; border-radius: 8px; border: 1px solid var(--d-border);
  background: transparent; color: var(--d-muted); font: inherit; font-size: 11.5px; font-weight: 600;
  cursor: pointer;
}
.gs-answer-actions button:first-child { color: var(--d-accent-ink); border-color: rgba(34, 128, 255, 0.4); }

/* staggered reveal for answer body lines (transform+opacity only) */
.gs-answer-body p, .gs-answer-actions {
  opacity: 0; transform: translateY(6px); filter: blur(3px);
  transition: opacity 340ms var(--ease), transform 340ms var(--ease), filter 340ms var(--ease);
}
.dash.answer-1 .gs-answer-body p:first-child { opacity: 1; transform: none; filter: none; }
.dash.answer-2 .gs-answer-body p { opacity: 1; transform: none; filter: none; }
.dash.answer-2 .gs-answer-actions { opacity: 1; transform: none; filter: none; }

/* thinking state (mutually exclusive with revealed answer) */
.gs-answer-thinking { display: none; font-size: 12.5px; font-style: italic; color: var(--d-faint); }
.dash.is-thinking .gs-answer-thinking { display: block; }
.dash.is-thinking .gs-answer-body, .dash.is-thinking .gs-answer-actions { display: none; }

/* =====================================================================
   SHOWCASE SECTIONS 2 & 3 (autoplay on view)
   ===================================================================== */
.showcase {
  position: relative; z-index: 10;
  max-width: 1200px; margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 44px) 0;
}
.sc-intro { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.sc-eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-hi); margin: 0 0 16px;
}
.sc-title {
  margin: 0 0 18px; font-family: var(--serif); font-weight: 380;
  font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.02em;
}
.sc-lead { margin: 0 auto; max-width: 600px; font-size: clamp(15px, 1.5vw, 17px); color: var(--muted); line-height: 1.62; }

/* aspect-ratio reserves the stage's height before JS runs, so the absolutely
   positioned scaler is always contained (JS overrides height once it fits). */
.sc-stage { position: relative; max-width: 1120px; margin: 0 auto; aspect-ratio: 1280 / 792; -webkit-overflow-scrolling: touch; }
.sc-spacer { pointer-events: none; }
.sc-bloom {
  position: absolute; left: 50%; top: -6%; transform: translateX(-50%);
  width: 92%; height: 80%; z-index: 0;
  background:
    radial-gradient(46% 60% at 50% 40%, rgba(0, 132, 255, 0.5), transparent 70%),
    radial-gradient(40% 50% at 26% 54%, rgba(56, 182, 255, 0.36), transparent 68%),
    radial-gradient(40% 50% at 76% 54%, rgba(96, 92, 255, 0.3), transparent 70%);
  filter: blur(64px) saturate(1.15);
}
.sc-scaler {
  position: absolute; top: 0; left: 50%; width: 1280px;
  transform-origin: top center; transform: translateX(-50%) scale(0.7);
  z-index: 2;
}

/* --- Grafana widget that drops into the grid (section 2) --- */
.graf-widget { overflow: hidden; }
.js .graf-widget { max-height: 0; opacity: 0; margin-bottom: 0; }
.play .graf-widget { animation: gwDrop 0.7s var(--ease) 2.55s both; }
@keyframes gwDrop {
  from { max-height: 0; opacity: 0; margin-bottom: 0; transform: translateY(-10px) scale(0.985); filter: blur(4px); }
  to { max-height: 380px; opacity: 1; margin-bottom: 14px; transform: none; filter: none; }
}
.gw-title { display: flex; flex-direction: column; line-height: 1.3; }
.gw-title b { font-size: 14px; font-weight: 560; }
.gw-title em { font-style: normal; font-size: 11.5px; color: var(--d-faint); }
.gw-range {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--d-border-strong);
  background: var(--d-panel-2); font-size: 12px; color: var(--d-muted);
}
.gw-range .ci { width: 11px; height: 11px; }
.gw-body { display: flex; gap: 10px; padding: 6px 18px 0; height: 158px; }
.gw-yaxis { display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0 20px; font-size: 10px; color: var(--d-faint); font-family: var(--mono); }
.gw-chart { flex: 1; height: 100%; }
.js .gw-area { opacity: 0; }
.play .gw-area { animation: fadeIn 0.8s ease-out 3.0s both; }
.gw-line { stroke-dasharray: 1500; }
.js .gw-line { stroke-dashoffset: 1500; }
.play .gw-line { animation: gwDraw 1.3s ease-out 2.85s both; }
@keyframes gwDraw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.gw-xaxis { display: flex; justify-content: space-between; padding: 6px 18px 16px 44px; font-size: 10.5px; color: var(--d-faint); font-family: var(--mono); }

/* --- Add-a-widget modal (section 2) --- */
.wmodal-backdrop {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(6, 8, 14, 0.62); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
}
.play .wmodal-backdrop { animation: wback 2.55s ease 0.1s forwards; }
@keyframes wback { 0% { opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }

.wmodal {
  position: absolute; z-index: 31; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: 660px; max-width: 82%;
  border: 1px solid var(--d-border-strong); border-radius: 16px;
  background: #121215; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; overflow: hidden;
}
.play .wmodal { animation: wmodal 2.55s var(--ease) 0.1s forwards; }
@keyframes wmodal {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.965); filter: blur(4px); }
  8% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: none; }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: none; }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(0.99); filter: blur(3px); }
}
.wmodal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; }
.wmodal-title { font-size: 16px; font-weight: 560; }
.wmodal-x { color: var(--d-faint); font-size: 20px; line-height: 1; }
.wmodal-tabs { display: flex; gap: 22px; padding: 0 22px; border-bottom: 1px solid var(--d-border); }
.wtab { padding: 8px 2px 12px; font-size: 13.5px; color: var(--d-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.wtab.on { color: var(--d-accent-ink); border-bottom-color: var(--d-accent); }
.wmodal-body { display: grid; grid-template-columns: 260px 1fr; min-height: 300px; }
.wlist { border-right: 1px solid var(--d-border); padding: 8px; overflow: hidden; }
.wl-item { padding: 10px 12px; border-radius: 9px; display: flex; flex-direction: column; gap: 2px; }
.wl-item b { font-size: 13.5px; font-weight: 560; }
.wl-item em { font-style: normal; font-size: 11.5px; color: var(--d-faint); }
.wl-item.on { background: #1c1c20; }
.wpanels { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.wp-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.wp-item .wp-i { color: var(--d-faint); font-size: 12px; }
.wp-item b { font-weight: 500; }
.wp-item em { font-style: normal; margin-left: auto; font-size: 11.5px; color: var(--d-faint); }
.wp-item.pick { background: transparent; }
.play .wp-item.pick { animation: wpick 2.55s ease 0.1s forwards; }
@keyframes wpick {
  0%, 26% { background: transparent; box-shadow: none; }
  36% { background: var(--d-accent-soft); box-shadow: inset 0 0 0 1px rgba(34, 128, 255, 0.4); }
  80% { background: var(--d-accent-soft); box-shadow: inset 0 0 0 1px rgba(34, 128, 255, 0.4); }
  100% { background: transparent; box-shadow: none; }
}
.wmodal-foot { padding: 12px 22px; border-top: 1px solid var(--d-border); font-size: 12px; color: var(--d-faint); }

/* --- Global multi-cluster dashboard (section 3) --- */
.switcher {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 999px;
  border: 1px solid rgba(34, 128, 255, 0.3); background: rgba(20, 26, 40, 0.8);
}
.sw-gear { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 128, 255, 0.22); color: var(--d-accent-hi); font-size: 13px; }
.sw-name { padding: 5px 14px; border-radius: 999px; background: rgba(34, 128, 255, 0.16); font-size: 13px; font-weight: 560; }
.sw-name em { font-style: normal; color: var(--d-faint); margin-left: 6px; }
.sw-add { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 128, 255, 0.22); color: var(--d-accent-hi); font-size: 16px; }

.gdash { padding: 30px 40px; overflow: hidden; }
.gd-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.gd-title { display: flex; flex-direction: column; line-height: 1.3; }
.gd-title b { font-size: 26px; font-weight: 620; letter-spacing: -0.02em; }
.gd-title em { font-style: normal; font-size: 13px; color: var(--d-faint); }
.gd-add {
  padding: 9px 16px; border-radius: 9px; border: 1px solid var(--d-border-strong);
  background: var(--d-panel); font-size: 13px; color: var(--d-ink);
}
.gd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

.gwidget {
  position: relative; border: 1px solid var(--d-border); border-radius: 12px;
  background: var(--d-panel); padding: 16px 18px;
}
.js .gwidget.drop-a { opacity: 0; }
.js .gwidget.drop-b { opacity: 0; }
.play .drop-a { animation: drop 0.6s var(--ease) 0.15s both; }
.play .drop-b { animation: drop 0.6s var(--ease) 0.45s both; }
@keyframes drop {
  from { opacity: 0; transform: translateY(16px) scale(0.99); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.drag-h { position: absolute; top: 14px; left: 14px; color: var(--d-faint); font-size: 12px; letter-spacing: -2px; opacity: 0.6; }
.gw-head { display: flex; align-items: flex-start; justify-content: space-between; padding-left: 18px; margin-bottom: 12px; }
.gw-h-title { display: flex; flex-direction: column; line-height: 1.35; }
.gw-h-title b { font-size: 14.5px; font-weight: 560; }
.gw-h-title em { font-style: normal; font-size: 12px; color: var(--d-faint); }
.gw-h-title .mono { font-family: var(--mono); }
.gw-cluster {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--d-border-strong);
  background: var(--d-panel-2); font-size: 12.5px; color: var(--d-muted);
}
.gw-cluster .ci { width: 11px; height: 11px; }

.na-list { list-style: none; margin: 0; padding: 0; }
.na-list li { display: flex; align-items: flex-start; gap: 11px; padding: 11px 4px; }
.na-list li + li { border-top: 1px solid var(--d-border); }
.na-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--d-err); margin-top: 5px; flex-shrink: 0; }
.na-txt { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.na-txt b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--d-ink); }
.na-txt em { font-style: normal; font-size: 11.5px; color: var(--d-muted); overflow: hidden; text-overflow: ellipsis; }
.na-cl { margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--d-faint); white-space: nowrap; }

.logs-controls { display: flex; gap: 8px; padding-left: 18px; margin-bottom: 12px; }
.lc-sel, .lc-filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--d-border-strong);
  background: var(--d-panel-2); font-size: 12px; color: var(--d-muted);
}
.lc-sel .ci { width: 11px; height: 11px; }
.lc-filter { flex: 1; color: var(--d-faint); }

.logs-stream {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5;
  border-top: 1px solid var(--d-border); padding-top: 10px; max-height: 300px; overflow: hidden;
}
.log { display: flex; gap: 12px; padding: 4px 2px; }
.js .logs-stream .log { opacity: 0; }
.play .logs-stream .log { animation: logIn 0.4s ease-out both; }
.play .logs-stream .log.cursor-line { animation: none; opacity: 1; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.play .log:nth-child(1) { animation-delay: 0.9s; }
.play .log:nth-child(2) { animation-delay: 1.25s; }
.play .log:nth-child(3) { animation-delay: 1.6s; }
.play .log:nth-child(4) { animation-delay: 1.95s; }
.play .log:nth-child(5) { animation-delay: 2.3s; }
.play .log:nth-child(6) { animation-delay: 2.65s; }
.play .log:nth-child(7) { animation-delay: 3.0s; }
.lt { color: var(--d-faint); flex-shrink: 0; }
.lp { flex-shrink: 0; font-weight: 600; }
.lp.gw { color: var(--d-accent-hi); }
.lp.ck { color: var(--d-ok); }
.lm { color: var(--d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm.warn { color: var(--d-warn); }
.lm.err { color: var(--d-err); }
.log-cursor { display: inline-block; width: 7px; height: 13px; background: var(--d-accent); vertical-align: text-bottom; animation: blink 1s step-end infinite; }

/* ---------- Features ---------- */
.features {
  position: relative; z-index: 10;
  max-width: 1100px; margin: 0 auto;
  padding: clamp(72px, 12vw, 128px) clamp(20px, 5vw, 44px);
  text-align: center;
}
.sec-eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-hi);
  margin: 0 0 14px;
}
.sec-title {
  margin: 0 0 48px; font-family: var(--serif); font-weight: 420;
  font-size: clamp(34px, 5.5vw, 60px); line-height: 1.04; letter-spacing: -0.015em;
}
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; text-align: left; }
.fgrid article {
  padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}
.fgrid article:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--border-strong); }
.fgrid h3 { margin: 0 0 8px; font-size: 18px; font-weight: 560; letter-spacing: -0.01em; }
.fgrid p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.fgrid .at { color: var(--accent-hi); font-family: var(--mono); font-weight: 600; }

/* ---------- Footer ---------- */
.foot {
  max-width: 1100px; margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 44px); border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 560; }
.foot-brand img { border-radius: 5px; }
.foot-meta { font-size: 13px; color: var(--faint); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Static fallback (no-JS / reduced motion) ---------- */
.static-demo .demo-viewport { height: auto; padding-bottom: 40px; }
.static-demo .hero-copy { position: static; padding-top: clamp(96px, 12vh, 150px); }
.static-demo .stage-wrap { position: relative; inset: auto; margin-top: 20px; }
.static-demo .bloom { top: 14%; height: 70%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .bloom { animation: none !important; }
  /* show the showcase end-states without motion (override the .js hidden bases) */
  .js .graf-widget { max-height: none; opacity: 1; margin-bottom: 14px; }
  .js .gw-line { stroke-dashoffset: 0; }
  .js .gw-area { opacity: 1; }
  .wmodal, .wmodal-backdrop { display: none; }
  .js .gwidget.drop-a, .js .gwidget.drop-b { opacity: 1; }
  .js .logs-stream .log { opacity: 1; }
}
