/* ============================================================
   InferReach — style.css
   Design: refined dark, minimal noise, same palette
   ============================================================ */

:root {
  --bg:          #0d1117;
  --bg-1:        #111827;
  --bg-2:        #1a2232;
  --bg-3:        #161f2c;
  --border:      rgba(16,185,129,0.18);
  --border-dim:  rgba(148,180,200,0.10);
  --green:       #10b981;
  --green-dim:   rgba(16,185,129,0.10);
  --green-glow:  rgba(16,185,129,0.20);
  --yellow:      #ffd166;
  --blue:        #00b4d8;
  --orange:      #ff6b35;
  --red:         #ff4757;
  --text-primary:   #edf2f7;
  --text-secondary: #8da0b3;
  --text-dim:       #4a6072;
  --font-mono:    'IBM Plex Mono', monospace;
  --font-sans:    'Inter', sans-serif;
  --font-display: 'Syne', sans-serif;
  --nav-h:   60px;
  --max-w:   1280px;
  --radius:  4px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Animations ---- */
@keyframes blink    { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes pulse    { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.9)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.blink { animation: blink 1.1s step-end infinite; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(13,17,23,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  text-decoration: none;
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; margin-left: 20px; }
.status-dot-nav {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: var(--green);
  color: #000;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn-primary:hover {
  background: #0ed494;
  box-shadow: 0 0 20px var(--green-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--border-dim);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover { color: var(--text-primary); border-color: rgba(148,180,200,0.25); }
.btn-large { padding: 12px 24px; font-size: 0.875rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr 460px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  gap: 40px;
  overflow: hidden;
}
/* subtle grid — less visible than before */
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,179,237,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,179,237,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}
/* terminal bar — quieter, no heavy border */
.hero-terminal-bar {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  margin-top: 44px;
  padding: 8px 14px;
  background: rgba(16,185,129,0.03);
  border: 1px solid rgba(16,185,129,0.10);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  width: fit-content;
}
.terminal-prompt { color: var(--text-dim); }
.terminal-cmd    { color: var(--text-secondary); }

.hero-content {
  grid-column: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 0;
  animation: fadeInUp 0.7s ease both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  background: rgba(16,185,129,0.05);
  border: 1px solid rgba(16,185,129,0.12);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--green);
  width: fit-content;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.5s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.title-line  { display: block; }
.accent-line { color: var(--green); }
.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.pipeline-viz {
  grid-column: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 0;
  animation: fadeInUp 0.7s 0.15s ease both;
  opacity: 0;
  animation-fill-mode: both;
}
.pipeline-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
#pipelineCanvas {
  width: 100%; height: 340px;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  background: var(--bg-1);
}
.pipeline-legend { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.leg-item { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); }
.leg-dot { width: 7px; height: 7px; border-radius: 50%; }
.leg-dot.green  { background: var(--green); }
.leg-dot.yellow { background: var(--yellow); }
.leg-dot.blue   { background: var(--blue); }
.leg-dot.orange { background: var(--orange); }

/* ============================================================
   SHARED SECTION HEADER
   ============================================================ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { max-width: var(--max-w); margin: 0 auto; padding: 112px 32px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dim);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  overflow: hidden;
}
.service-card {
  background: var(--bg-1);
  padding: 32px 28px;
  transition: background 0.2s;
  position: relative;
}
.service-card:hover { background: var(--bg-2); }
.card-icon { color: var(--green); margin-bottom: 14px; opacity: 0.75; }
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 18px; }
.card-specs { list-style: none; }
.card-specs li {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 4px 0;
  border-bottom: 1px solid var(--border-dim);
}
.card-specs li span::before { content: '→ '; color: var(--green); opacity: 0.5; }

/* ============================================================
   PLATFORM DASHBOARD
   ============================================================ */
.platform {
  background: var(--bg-1);
  padding: 112px 0;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}
.platform-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.dashboard-mockup {
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
}
.dash-header {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-dim);
}
.dash-dots { display: flex; gap: 6px; }
.dd { width: 10px; height: 10px; border-radius: 50%; }
.dd.red    { background: #ff5f56; }
.dd.yellow { background: #ffbd2e; }
.dd.green  { background: #27c93f; }
.dash-title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); flex: 1; text-align: center; }
.dash-status { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--green); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.green { background: var(--green); animation: pulse 2.5s ease-in-out infinite; }

.dash-body { display: grid; grid-template-columns: 172px 1fr; min-height: 460px; }
.dash-sidebar { background: var(--bg-1); border-right: 1px solid var(--border-dim); padding: 14px 0; }
.sidebar-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.12s;
}
.sidebar-item:hover,
.sidebar-item.active { background: rgba(16,185,129,0.05); color: var(--text-primary); }
.sidebar-item.active { color: var(--green); border-right: 2px solid var(--green); }
.sidebar-item.warn   { color: var(--yellow); }
.sidebar-sep  { height: 1px; background: var(--border-dim); margin: 6px 0; }
.badge-count  { background: var(--orange); color: #fff; font-size: 0.62rem; padding: 1px 5px; border-radius: 100px; }

.dash-main { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi-card {
  background: var(--bg-1);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.kpi-label  { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-val    { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; }
.kpi-val.green  { color: var(--green); }
.kpi-val.yellow { color: var(--yellow); }
.kpi-val.red    { color: var(--red); }
.kpi-unit   { font-size: 0.68rem; font-weight: 400; opacity: 0.65; }
.kpi-delta  { font-family: var(--font-mono); font-size: 0.68rem; }
.kpi-delta.up      { color: var(--green); }
.kpi-delta.down    { color: var(--red); }
.kpi-delta.neutral { color: var(--text-dim); }

.chart-area {
  background: var(--bg-1);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 150px;
  overflow: hidden;
}
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.chart-title  { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-secondary); }
.chart-controls { display: flex; gap: 2px; }
.cc { padding: 3px 8px; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); cursor: pointer; border-radius: 2px; transition: all 0.12s; }
.cc:hover, .cc.active { background: var(--green-dim); color: var(--green); }

.pipeline-list {
  background: var(--bg-1);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
}
.pl-header { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border-dim); font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-secondary); }
.pl-count  { color: var(--green); }
.pl-item {
  display: grid; grid-template-columns: 12px 1fr auto auto auto;
  align-items: center; gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.12s; cursor: pointer;
}
.pl-item:hover { background: rgba(255,255,255,0.02); }
.pl-item:last-child { border-bottom: none; }
.pl-status { width: 7px; height: 7px; border-radius: 50%; }
.pl-status.running { background: var(--green); animation: pulse 2.5s ease-in-out infinite; }
.pl-status.warn    { background: var(--yellow); }
.pl-name  { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); }
.pl-rate,
.pl-lag   { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); }
.pl-badge { padding: 2px 7px; border-radius: 2px; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.05em; }
.pl-badge.ok   { background: rgba(16,185,129,0.10); color: var(--green); }
.pl-badge.warn { background: rgba(255,209,102,0.10); color: var(--yellow); }

/* ============================================================
   STACK
   ============================================================ */
.stack { max-width: var(--max-w); margin: 0 auto; padding: 112px 32px; }
.stack-layers { display: flex; flex-direction: column; align-items: center; gap: 0; }
.stack-layer {
  width: 100%;
  display: flex; align-items: center; gap: 24px;
  padding: 20px 28px;
  background: var(--bg-1);
  border: 1px solid var(--border-dim);
  border-radius: 5px;
}
.layer-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-width: 96px;
}
.layer-items { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
.layer-arrow { color: var(--border-dim); padding: 2px 0; }
.stack-chip {
  padding: 5px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-dim);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.stack-chip:hover,
.stack-chip.active { border-color: var(--green); color: var(--green); background: var(--green-dim); }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--bg-1); padding: 112px 32px; border-top: 1px solid var(--border-dim); }
.process-steps {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-step { padding: 0 36px 0 0; position: relative; }
.step-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--border-dim);
  line-height: 1;
  margin-bottom: 14px;
}
.step-line { position: absolute; top: 20px; right: 0; width: 1px; height: 55%; background: var(--border-dim); }
.step-content h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step-content p   { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; }
.step-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
}

/* ============================================================
   AUDIT CTA
   ============================================================ */
.audit-cta {
  background: var(--bg-1);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: 100px 32px;
}
.audit-cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.audit-cta-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.audit-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.15;
}
.audit-cta-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
}
.audit-cta-sub strong { color: var(--text-primary); font-weight: 600; }
.audit-features { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 36px; }
.audit-feature {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.audit-feature::before { content: '→'; color: var(--green); opacity: 0.7; }
.audit-note { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); margin-top: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-1); border-top: 1px solid var(--border-dim); padding: 60px 32px 0; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 240px; }
.footer-tagline  { font-size: 0.85rem; color: var(--text-secondary); }
.footer-location { font-size: 0.78rem; color: var(--text-dim); }
.footer-email {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.footer-email:hover { opacity: 1; }
.footer-nav { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.fc-head {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a { text-decoration: none; font-size: 0.8rem; color: var(--text-dim); transition: color 0.15s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding: 16px 0;
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-copy { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0d1117;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; max-width: 300px; padding: 0 24px; }
.loader-logo {
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.loader-pipeline { display: flex; align-items: center; justify-content: center; gap: 0; width: 100%; }
.lp-node {
  width: 48px; height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(16,185,129,0.12);
  background: #111827;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  color: var(--text-dim);
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.lp-node.active { border-color: var(--green); color: var(--green); box-shadow: 0 0 10px rgba(16,185,129,0.12); }
.lp-track { flex: 1; height: 1px; background: rgba(255,255,255,0.04); position: relative; overflow: visible; max-width: 44px; }
.lp-particle { position: absolute; top: -3px; left: -6px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 5px rgba(16,185,129,0.4); opacity: 0; }
.loader-status { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim); letter-spacing: 0.04em; min-height: 1.2em; text-align: center; }

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-dim);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: rgba(148,180,200,0.25); color: var(--text-primary); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
body.light .theme-toggle .icon-moon { display: none; }
body.light .theme-toggle .icon-sun  { display: block; }

/* ============================================================
   LIGHT THEME
   ============================================================ */
body.light {
  --bg: #f8fafc; --bg-1: #f1f5f9; --bg-2: #e8eef5; --bg-3: #dde5ee;
  --border: rgba(16,185,129,0.22); --border-dim: rgba(0,0,0,0.07);
  --green: #059669; --green-dim: rgba(5,150,105,0.08); --green-glow: rgba(5,150,105,0.18);
  --text-primary: #0f172a; --text-secondary: #475569; --text-dim: #94a3b8;
  --yellow: #d97706; --blue: #0284c7; --orange: #ea580c; --red: #dc2626;
}
body.light .nav { background: rgba(248,250,252,0.88); }
body.light .hero-grid-bg {
  background-image:
    linear-gradient(rgba(16,185,129,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.04) 1px, transparent 1px);
}
body.light #pipelineCanvas   { background: #f1f5f9; }
body.light .service-card      { background: #f8fafc; }
body.light .service-card:hover{ background: #f1f5f9; }
body.light .kpi-card,
body.light .chart-area,
body.light .pipeline-list     { background: #f8fafc; }
body.light .pl-item:hover     { background: rgba(0,0,0,0.015); }
body.light .stack-chip        { background: #f1f5f9; }
body.light .stack-layer       { background: #f8fafc; }
body.light .process           { background: #f1f5f9; }
body.light .footer            { background: #f1f5f9; }
body.light .audit-cta         { background: #f1f5f9; }
body.light .platform          { background: #f1f5f9; }
body.light .dashboard-mockup  { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding: 16px 24px; }
  .pipeline-viz { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .dash-sidebar { display: none; }
  .stack-layer { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 54px; }
  .nav-links { display: none; }
  .nav-inner { padding: 0 16px; }
  .nav-cta .status-dot-nav { display: none; }
  .hero { padding: 12px 16px; gap: 20px; }
  .hero-terminal-bar { font-size: 0.7rem; padding: 7px 10px; overflow: hidden; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 0.875rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; justify-content: center; text-align: center; }
  .services { padding: 64px 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .platform { padding: 64px 0; }
  .platform-inner { padding: 0 16px; }
  .dash-body { grid-template-columns: 1fr !important; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .pl-item { grid-template-columns: 12px 1fr auto; }
  .pl-rate, .pl-lag { display: none; }
  .stack { padding: 64px 16px; }
  .stack-layer { padding: 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .layer-label { min-width: unset; }
  .process { padding: 64px 16px; }
  .process-steps { grid-template-columns: 1fr; gap: 28px; }
  .step-line { display: none; }
  .step-num { font-size: 2rem; }
  .footer { padding: 48px 16px 0; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-brand { max-width: 100%; }
  .footer-nav { gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 1.7rem; }
  .btn-large { padding: 11px 18px; font-size: 0.85rem; }
  .dashboard-mockup { overflow-x: auto; }
  .audit-cta { padding: 64px 16px; }
  .audit-features { flex-direction: column; align-items: center; gap: 12px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 1.7rem; }
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer-nav { flex-direction: column; gap: 20px; }
}
