/* ===========================================================
   WISE Analytics — Marketing Site Design System
   Dark decision-intelligence theme: teal/cyan on deep navy-black,
   animated shader backdrop, glass-panel cards.
   =========================================================== */

:root {
  /* Brand */
  --teal-400: #22e5f0;
  --teal-500: #00c2d1;
  --cyan-400: #00f2ff;
  --amber-400: #ffb68b;
  --amber-500: #ff7f1c;

  /* Surface scale (dark, matches shader-backed background) */
  --navy-950: #0b0f10;
  --navy-900: #101415;
  --navy-800: #191c1e;
  --navy-700: #272a2c;
  --navy-600: #3a494b;

  /* Kept for compatibility; no longer a separate light zone — the whole
     page is dark now, so these resolve to the same bright tint used for
     glass-panel highlights instead of a paper background. */
  --paper-050: rgba(255, 255, 255, 0.04);
  --paper-100: rgba(255, 255, 255, 0.06);

  /* Primary text scale — now used everywhere (page is dark end to end) */
  --ink-900: #f3f5f6;
  --ink-600: #b9cacb;
  --ink-400: #849495;

  /* Secondary text scale (kept for existing "on-dark" rules — same values
     as ink-* now that there's no separate light zone) */
  --cloud-100: #f3f5f6;
  --cloud-400: #b9cacb;
  --cloud-600: #849495;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(255, 255, 255, 0.14);

  --success: #34d399;
  --warning: #fbbf24;
  --danger: #ffb4ab;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.4);

  /* Glass-panel treatment (Stitch-style frosted cards) */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(0, 242, 255, 0.3);
  --glass-glow: 0 0 40px rgba(0, 242, 255, 0.06);

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1240px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  background: var(--navy-900);
}

h1, h2, h3, h4 { font-family: var(--font-display); }

/* Fixed animated shader backdrop — sits behind all page content */
.shader-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background: var(--navy-900);
}
.shader-bg canvas { display: block; width: 100%; height: 100%; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { line-height: 1.6; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.on-dark { color: var(--cloud-100); }
.on-dark .eyebrow { color: var(--teal-400); }
.on-dark p, .on-dark .muted { color: var(--cloud-400); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 15, 16, 0.75);
  border-bottom: 1px solid var(--border-light);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { width: 34px; height: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--ink-900);
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-400);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-600);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink-900); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
  color: #00363a;
  box-shadow: 0 10px 24px -8px rgba(0, 194, 209, 0.45);
}
.btn-secondary {
  background: transparent;
  border-color: var(--ink-900);
  color: var(--ink-900);
}
.btn-secondary.on-dark-btn { border-color: var(--cloud-100); color: var(--cloud-100); }
.btn-amber {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
  color: #241503;
  box-shadow: 0 10px 24px -8px rgba(255, 127, 28, 0.45);
}
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--teal-400);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
  color: var(--ink-900);
}
.hero h1 .accent { color: var(--teal-500); }
.hero-sub {
  font-size: 18px;
  color: var(--ink-600);
  max-width: 480px;
  margin: 0 0 32px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-400);
}
.trust-line .dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0, 242, 255, 0.14);
  color: var(--teal-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ---------- Mini / demo dashboard (window chrome) ---------- */
.dash-window {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dash-window:hover { border-color: var(--glass-border-hover); box-shadow: var(--shadow-soft), var(--glass-glow); }
.dash-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-dark);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dash-dots span:nth-child(1) { background: #f87171; }
.dash-dots span:nth-child(2) { background: #fbbf24; }
.dash-dots span:nth-child(3) { background: #34d399; }
.dash-title { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--cloud-100); }
.dash-live {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: var(--success); text-transform: uppercase;
}
.dash-live .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(52,211,153,0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.dash-body { padding: 18px; }
.dash-anon-note {
  font-size: 11px;
  color: var(--cloud-600);
  padding: 0 18px 12px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 14px 12px;
  transition: border-color 0.3s ease;
}
.kpi-card:hover { border-color: var(--glass-border-hover); }
.kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cloud-400);
  margin-bottom: 6px;
}
.kpi-value { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--cloud-100); }
.kpi-delta { font-size: 11px; font-weight: 700; margin-top: 4px; }
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--danger); }

.charts-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}
.chart-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: border-color 0.3s ease;
}
.chart-card:hover { border-color: var(--glass-border-hover); }
.chart-card-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cloud-400);
  margin-bottom: 10px;
}
.sparkline { width: 100%; height: 64px; display: block; }
.donut-wrap { display: flex; align-items: center; gap: 14px; }
.donut {
  width: 70px; height: 70px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: var(--cloud-100);
}
.donut-legend { font-size: 11px; color: var(--cloud-400); display: flex; flex-direction: column; gap: 4px; }
.donut-legend .lg-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
}
.section-head p { font-size: 16px; color: var(--ink-600); margin: 0; }
.on-dark .section-head p { color: var(--cloud-400); }

/* ---------- Cards grid (services) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.svc-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--glass-border-hover); box-shadow: var(--shadow-card), var(--glass-glow); }
.svc-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.svc-card h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; color: var(--ink-900); }
.svc-card p { font-size: 13.5px; color: var(--ink-600); margin: 0 0 14px; }
.svc-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--teal-400);
}

/* ---------- Flow (how it works) ---------- */
.flow-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.flow-step {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s ease;
}
.flow-step:hover { border-color: var(--glass-border-hover); }
.flow-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-400));
  color: #00363a;
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.flow-step h4 { font-size: 14.5px; font-weight: 800; margin: 0 0 8px; color: var(--cloud-100); }
.flow-step p { font-size: 12.5px; color: var(--cloud-400); margin: 0; }

/* ---------- Audience cards ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.aud-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.aud-card:hover { border-color: var(--glass-border-hover); box-shadow: var(--glass-glow); }
.aud-card .aud-icon { font-size: 22px; margin-bottom: 12px; }
.aud-card h4 { font-size: 15px; font-weight: 800; margin: 0 0 8px; color: var(--cloud-100); }
.aud-card p { font-size: 13px; color: var(--cloud-400); margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 30px; }
.footer-brand span { font-weight: 800; color: var(--cloud-100); font-size: 15px; }
.footer-tag { font-size: 13px; color: var(--cloud-400); max-width: 260px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--cloud-600); margin: 0 0 14px;
}
.footer-col a, .footer-col span.item {
  display: block; font-size: 13.5px; color: var(--cloud-400);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--cloud-100); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--cloud-600);
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  flex-wrap: wrap; gap: 10px;
}

/* ---------- Solutions page: detailed service blocks ---------- */
.svc-detail {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}
.svc-detail:last-child { border-bottom: none; }
.svc-detail .svc-icon { width: 52px; height: 52px; font-size: 22px; margin-bottom: 0; }
.svc-detail h3 { font-size: 21px; font-weight: 800; margin: 0 0 10px; }
.svc-detail p.lead { font-size: 15px; color: var(--ink-600); max-width: 640px; margin: 0 0 16px; }
.deliverables { display: flex; flex-wrap: wrap; gap: 10px; }
.deliverables li {
  font-size: 12.5px; font-weight: 700; color: var(--ink-900);
  background: rgba(0,219,231,0.1); border: 1px solid rgba(0,219,231,0.28);
  padding: 7px 14px; border-radius: var(--radius-lg);
}

/* ---------- Demo section (Solutions page, full tabs) ---------- */
.demo-banner {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: var(--amber-400);
  background: rgba(255,127,28,0.12); border: 1px solid rgba(255,127,28,0.3);
  border-radius: var(--radius-lg); padding: 9px 18px; width: fit-content; margin: 0 auto 32px;
}
.demo-tabs {
  display: flex; gap: 6px; padding: 10px; overflow-x: auto;
  border-bottom: 1px solid var(--border-dark);
}
.demo-tab {
  background: transparent; border: none; color: var(--cloud-400);
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 700; padding: 9px 16px; border-radius: var(--radius-lg);
  white-space: nowrap; flex-shrink: 0;
}
.demo-tab.active { background: rgba(0,242,255,0.14); color: var(--teal-400); }
.demo-panel { display: none; }
.demo-panel.active { display: block; }
.map-placeholder {
  height: 220px; border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 30% 40%, rgba(34,211,238,0.25), transparent 40%),
    radial-gradient(circle at 70% 65%, rgba(245,158,11,0.2), transparent 40%),
    var(--navy-800);
  border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--cloud-400); font-size: 12px;
}
.alert-list { display: flex; flex-direction: column; gap: 10px; }
.alert-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--navy-800); border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.alert-item .txt { font-size: 12.5px; color: var(--cloud-100); }
.alert-item .sub { font-size: 11px; color: var(--cloud-600); margin-top: 2px; }
.alert-badge {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-lg);
  text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0;
}
.alert-badge.high { background: rgba(248,113,113,0.15); color: #f87171; }
.alert-badge.medium { background: rgba(251,191,36,0.15); color: #fbbf24; }
.alert-badge.low { background: rgba(52,211,153,0.15); color: #34d399; }

/* ---------- Generic content blocks (About) ---------- */
.prose { max-width: 720px; }
.prose p { font-size: 16px; color: var(--ink-600); margin: 0 0 20px; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 0 0 18px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.value-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 22px;
  transition: border-color 0.2s ease;
}
.value-card:hover { border-color: var(--glass-border-hover); }
.value-card h4 { font-size: 15px; font-weight: 800; margin: 0 0 8px; color: var(--ink-900); }
.value-card p { font-size: 13.5px; margin: 0; color: var(--ink-600); }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 0.9fr; gap: 56px; align-items: start;
}
.form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink-900); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 14px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark); background: rgba(255,255,255,0.05); color: var(--ink-900);
}
.field input::placeholder, .field textarea::placeholder { color: var(--cloud-600); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(0,242,255,0.15);
}
.form-note { font-size: 12.5px; color: var(--ink-400); margin-top: 14px; text-align: center; }
.confirm-panel { display: none; text-align: center; padding: 30px 10px; }
.confirm-panel .check {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(0,194,209,0.16);
  color: var(--teal-400); font-size: 24px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.confirm-panel h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink-900); }
.confirm-panel p { color: var(--ink-600); font-size: 14px; }

.contact-side .item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-side .item .ic {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(0,194,209,0.12);
  color: var(--teal-400); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-side .item h5 { font-size: 14px; margin: 0 0 4px; }
.contact-side .item p, .contact-side .item a { font-size: 13.5px; color: var(--ink-600); margin: 0; }
.contact-side .item a:hover { color: var(--teal-500); }

/* ---------- Simple progress bars (demo: projects tab) ---------- */
.bar-list { display: flex; flex-direction: column; gap: 14px; }
.bar-row .bar-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--cloud-100); margin-bottom: 6px; }
.bar-row .bar-top span:last-child { color: var(--cloud-400); }
.bar-track { width: 100%; height: 7px; border-radius: 4px; background: var(--navy-700); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(11,15,16,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-dark);
  padding: 12px 16px;
}
.mobile-cta-bar .btn { width: 100%; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc-detail { grid-template-columns: 48px 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  section { padding: 56px 0; }

  /* Mobile hero dashboard simplifies to KPI cards only — full charts hidden */
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .dash-window .charts-row { display: none; }
  .demo-panel .charts-row { grid-template-columns: 1fr; }

  .mobile-cta-bar { display: block; }
  body { padding-bottom: 78px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi-value { font-size: 18px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* Mobile full-screen nav overlay */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy-950);
  padding: 90px 32px 32px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; font-size: 20px; font-weight: 700; color: var(--cloud-100);
  padding: 16px 0; border-bottom: 1px solid var(--border-dark);
}
.mobile-nav .btn { margin-top: 24px; }
.nav-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: var(--cloud-100); font-size: 26px;
}
