/* ==========================================================================
   IS Insight — era-pulse design language (ADR-031 parity)
   Loaded AFTER styles.css. Overrides the legacy cyan/indigo/violet identity
   with the platform's single-hue deep-blue bio-organic system.
   Brand logos + IS Insight tri-color mark are preserved untouched.
   ========================================================================== */

:root {
  /* --- era-pulse accent family (mirrors OverWatch frontend/src/index.css) -- */
  --accent:      #6fa5e8;
  --acc-bright:  #7ab8e8;
  --acc-hi:      #8fc0f0;
  --ice:         #e6f1ff;
  --accent-soft: rgba(111, 165, 232, 0.28);
  --hairline:      rgba(96, 148, 224, 0.15);
  --hairline-soft: rgba(96, 148, 224, 0.08);
  --anatomy-track: rgba(120, 170, 230, 0.14);
  --voice-ink:     #5f7fa6;
  --era-blue:      rgba(126, 186, 255, 0.55);

  /* --- legacy token remap: single hue, no violet/cyan ------------------- */
  --grad-a: #6fa5e8;
  --grad-b: #7ab8e8;
  --grad-c: #8fc0f0;
  --brand-gradient: linear-gradient(135deg, #6fa5e8 0%, #7ab8e8 55%, #8fc0f0 100%);
  --accent-cyan: #7ab8e8;

  /* --- surfaces: deep #02040a base -------------------------------------- */
  --bg:        #02040a;
  --bg-alt:    #050a14;
  --surface:   rgba(13, 19, 31, 0.55);
  --surface-2: rgba(13, 19, 31, 0.78);
  --border:        rgba(96, 148, 224, 0.15);
  --border-strong: rgba(96, 148, 224, 0.28);

  /* --- text: blue-tinted ------------------------------------------------ */
  --text:       #d8e6f6;
  --text-muted: #7fa6cc;
  --text-dim:   #5f7fa6;

  /* --- depth: glass, hairline, quiet ------------------------------------ */
  --glass-blur: blur(24px) saturate(180%);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(96, 148, 224, 0.08);
  --glow: 0 0 44px -18px rgba(111, 165, 232, 0.55);
  --radius: 14px;
  --radius-sm: 10px;
}

/* --- Ambient field: single-hue radial breathing, never neon ------------- */
body { background: var(--bg); color: var(--text); }
body::before {
  background:
    radial-gradient(1000px 700px at 8% -10%, rgba(70, 110, 180, 0.22), transparent 60%),
    radial-gradient(900px 650px at 105% 10%, rgba(111, 165, 232, 0.16), transparent 55%),
    radial-gradient(800px 600px at 40% 110%, rgba(60, 110, 180, 0.12), transparent 55%);
}

/* --- Micro-label: the era-pulse eyebrow -------------------------------- */
.eyebrow {
  color: var(--acc-hi);
  background: transparent;
  border: none;
  border-left: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.15rem 0 0.15rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  opacity: 0.9;
}

.gradient-text {
  background: linear-gradient(120deg, var(--acc-bright), var(--ice) 60%, var(--acc-hi));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Buttons: hairline glass, quiet lift ------------------------------- */
.btn { border-radius: 8px; font-weight: 600; letter-spacing: 0.01em; transition: all .28s cubic-bezier(.4,0,.2,1); }
.btn-primary {
  background: linear-gradient(135deg, rgba(111,165,232,0.95), rgba(143,192,240,0.95));
  color: #02040a;
  box-shadow: 0 0 30px -14px rgba(111,165,232,0.7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 40px -10px rgba(143,192,240,0.65); }
.btn-ghost {
  background: rgba(96,148,224,0.06);
  border-color: var(--hairline);
  backdrop-filter: var(--glass-blur);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--ice); transform: translateY(-1px); }

/* --- Header: glass shelf ------------------------------------------------ */
.site-header { background: rgba(4, 7, 13, 0.6); backdrop-filter: var(--glass-blur); }
.site-header.scrolled { background: rgba(4, 7, 13, 0.88); border-bottom-color: var(--hairline); }
.nav-links a:hover { background: rgba(96,148,224,0.06); color: var(--ice); }

/* --- Cards: glass panes with a hairline, no heavy fills ---------------- */
.card, .split-media, .cta-band, .search-modal {
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}
.card { border-radius: var(--radius); }
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card .icon {
  background: rgba(96,148,224,0.08);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: var(--acc-hi);
}
.card .card-link { color: var(--acc-hi); }
.section-alt { background: rgba(5, 10, 20, 0.55); border-block: 1px solid var(--hairline-soft); }

/* --- Anatomy bar: the era-pulse progress primitive --------------------- */
.anatomy { display: grid; gap: 0.85rem; margin-top: 1.6rem; }
.anatomy-row { display: grid; grid-template-columns: 13ch 1fr 5ch; gap: 0.8rem; align-items: center; }
.anatomy-row .al {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--voice-ink); font-weight: 600;
}
.anatomy-row .at {
  height: 3px; border-radius: 2px; background: var(--anatomy-track); overflow: hidden; position: relative;
}
.anatomy-row .af {
  position: absolute; inset: 0 auto 0 0; border-radius: 2px;
  background: linear-gradient(90deg, rgba(111,165,232,0.5), var(--acc-hi));
  box-shadow: 0 0 12px -2px var(--era-blue);
  width: 0; transition: width 1.6s cubic-bezier(.22,1,.36,1);
}
.anatomy-row .av { font-size: 0.72rem; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }

/* --- Walker voice line -------------------------------------------------- */
.voice {
  border-left: 1px solid var(--hairline);
  padding: 0.15rem 0 0.15rem 1rem;
  color: var(--voice-ink);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.01em;
}
.voice strong { color: var(--acc-hi); font-style: normal; font-weight: 600; }

/* --- Pulse chip --------------------------------------------------------- */
.pill, .pulse-chip {
  border: 1px solid var(--hairline);
  background: rgba(96,148,224,0.05);
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.pulse-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.75rem; }
.pulse-chip::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--acc-hi); box-shadow: 0 0 8px var(--era-blue);
  animation: epBreath 3.4s ease-in-out infinite;
}
@keyframes epBreath { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }

/* --- Frames: screenshots + video --------------------------------------- */
.ui-shot, .video-frame { border-color: var(--hairline); border-radius: var(--radius); background: #02040a; }
.ui-shot::after { box-shadow: inset 0 0 0 1px rgba(96,148,224,0.08); border-radius: var(--radius); }

/* --- Stats / feature rows / timeline ----------------------------------- */
.feature-row { border-bottom-color: var(--hairline-soft); }
.feature-row .tick {
  background: rgba(96,148,224,0.1); border: 1px solid var(--hairline);
  color: var(--acc-hi); font-size: 0.75rem;
}
.timeline::before { background: linear-gradient(180deg, var(--acc-hi), transparent); opacity: 0.6; }
.tl-item::before { background: var(--bg); border-color: var(--accent); }
.stat .cap { color: var(--voice-ink); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* --- Forms, footer, search --------------------------------------------- */
.form-field input, .form-field textarea, .form-field select {
  background: rgba(96,148,224,0.07); border-color: var(--hairline); border-radius: 8px;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(111,165,232,0.14);
}
.site-footer { background: rgba(5,10,20,0.6); border-top-color: var(--hairline); }
.footer-bottom { border-top-color: var(--hairline-soft); }
.footer-bottom .socials a { border-color: var(--hairline); }
.footer-bottom .socials a:hover { border-color: var(--accent); color: var(--ice); }
.search-results a.active, .search-results a:hover { background: rgba(96,148,224,0.12); }
.search-results a .sp { color: var(--acc-hi); }

/* --- Brand protection: logos keep their true colors -------------------- */
.nav-logo img, .footer-brand img, .vendor img, .vendor-sub img { filter: none; }
.ow-logo img { filter: drop-shadow(0 0 14px rgba(111,165,232,0.45)); }
.ow-logo .ow-wm { color: var(--ice); text-shadow: 0 0 18px rgba(111,165,232,0.5), 0 0 3px rgba(111,165,232,0.6); }

/* --- Neural field canvas (hero backdrop) ------------------------------- */
.neural-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.75; z-index: 0; }
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .pulse-chip::before { animation: none; opacity: 0.8; }
  .anatomy-row .af { transition: none; }
  .neural-field { display: none; }
}
