/* ─────────────────────────────────────────────────────────────
   TRILATERAL MEDIA — Design System v2
   Linear-inspired precision dark aesthetic + elevation layer
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --bg:           #0C0C0C;
  --bg-surface:   #111111;
  --bg-elevated:  #161616;
  --bg-hover:     #1D1D1D;

  --border:        rgba(255,255,255,0.07);
  --border-mid:    rgba(255,255,255,0.11);
  --border-strong: rgba(255,255,255,0.16);

  --text-1: #F5F5F5;
  --text-2: #878787;
  --text-3: #4A4A4A;

  --accent:        #5E6AD2;
  --accent-hover:  #6B75DA;
  --accent-dim:    rgba(94,106,210,0.12);
  --accent-border: rgba(94,106,210,0.28);
  --accent-glow:   rgba(94,106,210,0.22);

  --green:       #22C55E;
  --green-dim:   rgba(34,197,94,0.12);
  --amber:       #D97706;
  --amber-dim:   rgba(217,119,6,0.12);
  --red:         #EF4444;
  --red-dim:     rgba(239,68,68,0.12);
  --purple:      #A78BFA;
  --purple-dim:  rgba(167,139,250,0.12);

  --r:    8px;
  --r-md: 12px;
  --r-lg: 16px;
  --t:    140ms ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--accent-dim); color: var(--text-1); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-1);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 600; letter-spacing: -0.025em; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }

p { color: var(--text-2); line-height: 1.78; }

/* ── LAYOUT ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.section    { padding: 104px 0; }
.section-sm { padding:  68px 0; }
.section-xs { padding:  48px 0; }

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #8b5cf6 55%, #60a5fa 100%);
  z-index: 201;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  background: rgba(12,12,12,0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.32s ease, background 0.3s ease;
}
.nav.nav-hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-1);
  flex-shrink: 0;
  margin-right: 36px;
  transition: opacity var(--t);
}
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-2);
  padding: 5px 10px;
  border-radius: 5px;
  transition: color var(--t);
}
.nav-link:hover  { color: var(--text-1); }
.nav-link.active { color: var(--text-1); }

/* Quiz link — plain text, no pill */
.nav-quiz {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-2);
  padding: 5px 10px;
  border-radius: 5px;
  transition: color var(--t);
}
.nav-quiz:hover  { color: var(--text-1); }
.nav-quiz.active { color: var(--accent); }

.nav-cta {
  margin-left: 16px;
  padding: 7px 16px !important;
  font-size: 13px !important;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-1);
  transition: all var(--t);
  border-radius: 1px;
}
.nav-toggle span:nth-child(1) { width: 22px; }
.nav-toggle span:nth-child(2) { width: 16px; }
.nav-toggle span:nth-child(3) { width: 22px; }
.nav-toggle.open span:nth-child(1) { width: 22px; transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { width: 22px; transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px 24px;
  flex-direction: column;
  gap: 2px;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.mobile-link:last-of-type { border-bottom: none; }
.mobile-link:hover { color: var(--text-1); }
.mobile-cta { margin-top: 12px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgba(94,106,210,0.38),
    0 0 0 1px rgba(94,106,210,0.18);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-mid);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: var(--r-md); }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* Magnetic variant — JS handles transform, CSS handles spring */
.btn-mag {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background var(--t), box-shadow var(--t) !important;
}

/* Ripple wave */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transform: scale(0);
  animation: ripple-expand 0.65s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}
.btn-ghost .ripple-wave { background: rgba(255,255,255,0.06); }
@keyframes ripple-expand {
  to { transform: scale(3.5); opacity: 0; }
}

/* ── LABELS / EYEBROWS ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--text-2);
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── HERO BADGE (animated pill) ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 8px;
  background: rgba(94,106,210,0.1);
  border: 1px solid rgba(94,106,210,0.28);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: #a5b0ff;
  letter-spacing: 0.2px;
  margin-bottom: 26px;
  opacity: 0;
  animation: badge-in 0.6s ease forwards 0.05s;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes badge-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ── HERO WORD STAGGER ── */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px);
  animation: word-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--hw-d, 0.1s);
}
@keyframes word-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ── HERO CTA TRUST BADGES ── */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  opacity: 0;
  animation: badge-in 0.7s ease forwards;
  animation-delay: var(--hw-d, 0.1s);
}

/* ── CARDS ── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  border-color: rgba(94,106,210,0.25);
  box-shadow:
    0 0 0 1px rgba(94,106,210,0.07),
    0 16px 48px rgba(0,0,0,0.36),
    0 0 36px rgba(94,106,210,0.06);
  transform: translateY(-2px);
}
.card-pad    { padding: 32px; }
.card-pad-lg { padding: 40px; }

/* Service icon: animates on card hover */
.svc-icon {
  width: 42px; height: 42px;
  border-radius: var(--r);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.svc-icon svg { width: 18px; height: 18px; }
.card:hover .svc-icon {
  background: rgba(94,106,210,0.2);
  border-color: rgba(94,106,210,0.4);
  box-shadow: 0 0 16px rgba(94,106,210,0.22);
  transform: scale(1.06) rotate(4deg);
}

/* Step tag: glows on hover */
.step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.card:hover .step-tag {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(94,106,210,0.38);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

/* Dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 1;
}

/* Vignette edges */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, var(--bg) 0%, transparent 100%),
    radial-gradient(ellipse 50% 80% at 0%   50%, var(--bg) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 50%, var(--bg) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* ── AURORA BACKGROUND ── */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}
.aurora-1 {
  width: 700px; height: 700px;
  top: -280px; left: -180px;
  background: radial-gradient(circle, rgba(124,58,237,0.22) 0%, transparent 70%);
  animation-name: aur-a;
  animation-duration: 22s;
}
.aurora-2 {
  width: 580px; height: 580px;
  top: -60px; right: -240px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  animation-name: aur-b;
  animation-duration: 28s;
  animation-delay: -8s;
}
.aurora-3 {
  width: 380px; height: 380px;
  bottom: -100px; left: 38%;
  background: radial-gradient(circle, rgba(94,106,210,0.18) 0%, transparent 70%);
  animation-name: aur-c;
  animation-duration: 20s;
  animation-delay: -4s;
}
@keyframes aur-a {
  0%   { transform: translate(0,0)         scale(1);    }
  50%  { transform: translate(80px,55px)   scale(1.1);  }
  100% { transform: translate(-30px,20px)  scale(0.95); }
}
@keyframes aur-b {
  0%   { transform: translate(0,0)          scale(1);    }
  50%  { transform: translate(-90px,40px)   scale(1.08); }
  100% { transform: translate(50px,-28px)   scale(1.12); }
}
@keyframes aur-c {
  0%   { transform: translate(0,0)          scale(1);    }
  100% { transform: translate(-55px,-70px)  scale(1.18); }
}

/* Hero particle canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* ── TERMINAL ── */
.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', ui-monospace, monospace;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 32px 80px rgba(0,0,0,0.7),
    0 8px 24px rgba(0,0,0,0.4);
  transition: box-shadow 0.3s ease;
}
.terminal:hover {
  box-shadow:
    0 0 0 1px rgba(94,106,210,0.12),
    0 32px 80px rgba(0,0,0,0.75),
    0 0 60px rgba(94,106,210,0.07);
}

.terminal-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
}
.tdots { display: flex; gap: 5px; }
.tdot  { width: 10px; height: 10px; border-radius: 50%; }
.tdot-r { background: #FF5F57; }
.tdot-y { background: #FEBC2E; }
.tdot-g { background: #28C840; }
.terminal-label {
  margin: 0 auto;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.3px;
}

.terminal-body {
  padding: 18px 20px;
  font-size: 11.5px;
  line-height: 1.85;
  min-height: 300px;
}

.tl {
  opacity: 0;
  animation: tl-in 0.18s ease forwards;
  display: block;
}
.tl-success { color: #22C55E; }
.tl-info    { color: var(--accent); }
.tl-dim     { color: var(--text-3); }
.tl-white   { color: var(--text-1); }
.tl-amber   { color: #D97706; }

.tl:nth-child(1)  { animation-delay: 0.30s; }
.tl:nth-child(2)  { animation-delay: 0.55s; }
.tl:nth-child(3)  { animation-delay: 0.80s; }
.tl:nth-child(4)  { animation-delay: 1.10s; }
.tl:nth-child(5)  { animation-delay: 1.40s; }
.tl:nth-child(6)  { animation-delay: 1.65s; }
.tl:nth-child(7)  { animation-delay: 1.90s; }
.tl:nth-child(8)  { animation-delay: 2.20s; }
.tl:nth-child(9)  { animation-delay: 2.50s; }
.tl:nth-child(10) { animation-delay: 2.80s; }
.tl:nth-child(11) { animation-delay: 3.10s; }
.tl:nth-child(12) { animation-delay: 3.40s; }
.tl:nth-child(13) { animation-delay: 3.70s; }
.tl:nth-child(14) { animation-delay: 4.00s; }
.tl:nth-child(15) { animation-delay: 4.30s; }
.tl:nth-child(16) { animation-delay: 4.60s; }

.t-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--text-2);
  border-radius: 1px;
  vertical-align: middle;
  opacity: 0;
  animation: t-cursor-blink 1s steps(1) infinite;
  animation-delay: 4.8s;
}

@keyframes tl-in {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes t-cursor-blink {
  0%,49%   { opacity: 1; }
  50%,100% { opacity: 0; }
}

/* floating notification */
.hero-notif {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(17,17,17,0.95);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  margin-bottom: 12px;
  opacity: 0;
  animation: notif-slide 0.4s ease forwards;
  animation-delay: 5.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}
.hero-notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-notif-text { font-size: 12px; color: var(--text-1); font-weight: 500; }
.hero-notif-sub  { font-size: 11px; color: var(--text-2); margin-top: 1px; }

@keyframes notif-slide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.8); }
}

/* ── STATS STRIP ── */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.stat-item {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.22s;
  cursor: default;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-elevated); }
.stat-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat-num span { color: var(--accent); }
.stat-label-txt { font-size: 13px; color: var(--text-2); }

/* ── CASE STUDY CARD ── */
.cs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.cs-card:hover {
  border-color: rgba(94,106,210,0.26);
  box-shadow: 0 0 36px rgba(94,106,210,0.07), 0 24px 56px rgba(0,0,0,0.42);
  transform: translateY(-4px);
}
.cs-tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.cs-metric { display: flex; flex-direction: column; }
.cs-metric-num {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-1);
  line-height: 1;
}
.cs-metric-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
}

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color var(--t);
  font-family: inherit;
  line-height: 1.4;
}
.faq-btn:hover { color: var(--text-1); }
.faq-icon-wrap {
  width: 22px; height: 22px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.28s ease, color 0.28s ease;
}
.faq-btn[aria-expanded="true"] .faq-icon-wrap {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s ease;
}
.faq-body-inner { padding-bottom: 20px; }
.faq-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.75; }

/* ── CTA GLOW SECTION ── */
.cta-glow {
  position: relative;
  overflow: hidden;
}
.cta-glow::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(94,106,210,0.14) 0%, transparent 70%);
  pointer-events: none;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.footer-col-head {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-3);
  margin-bottom: 12px;
}
.footer-link {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  padding: 3px 0;
  transition: color var(--t);
}
.footer-link:hover { color: var(--text-1); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 10px;
  max-width: 220px;
  line-height: 1.6;
}

/* ── FORM ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-2);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  color: var(--text-1);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  -webkit-appearance: none;
  line-height: 1.5;
}
.form-control:focus {
  border-color: var(--accent);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(94,106,210,0.12);
}
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234A4A4A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 136px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, transparent 50%, var(--bg) 100%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }

/* Page hero aurora accent */
.page-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-hero-glow::after {
  content: '';
  position: absolute;
  top: -200px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(94,106,210,0.1) 0%, transparent 65%);
  animation: aur-a 20s ease-in-out infinite alternate;
  filter: blur(60px);
}

/* ── GRADIENT TEXT ── */
.g-text {
  background: linear-gradient(135deg, #f0f0f0 0%, #a78bfa 32%, #60a5fa 65%, #5e6ad2 100%);
  background-size: 300% 300%;
  animation: grad-pan 9s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* When .g-text is also a .hero-word, run both animations together */
.hero-word.g-text {
  animation: word-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             grad-pan  9s ease infinite;
  animation-delay: var(--hw-d, 0.1s), 0s;
}
@keyframes grad-pan {
  0%, 100% { background-position: 0%   50%; }
  50%       { background-position: 100% 50%; }
}

/* ── SERVICE DETAIL (services page) ── */
.svc-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  transition: color 0.2s;
}
.feature-list li:hover { color: var(--text-1); }
.feature-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── COMPARE TOGGLE (services page) ── */
.compare-toggle {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 36px;
}
.compare-btn {
  padding: 9px 22px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-2);
  transition: all 0.22s;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.compare-btn.active {
  background: var(--bg-surface);
  color: var(--text-1);
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.compare-state { display: none; }
.compare-state.active { display: grid; }

/* ── VALUE CARDS (about page) ── */
.value-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--border-strong);
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
  transition: color 0.25s, text-shadow 0.25s;
}
.card:hover .value-num {
  color: rgba(94,106,210,0.35);
  text-shadow: 0 0 20px rgba(94,106,210,0.2);
}

/* ── CONTACT OPTIONS ── */
.contact-option {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}
.contact-option:hover {
  border-color: rgba(94,106,210,0.26);
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  transform: translateX(4px);
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.22s;
}
.contact-option:hover .contact-icon {
  background: rgba(94,106,210,0.2);
  box-shadow: 0 0 12px rgba(94,106,210,0.2);
}

/* ── INLINE BADGE ── */
.inline-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ── QUOTE MARK ── */
.quote-mark {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border-strong);
  line-height: 0.8;
  margin-bottom: 12px;
  display: block;
  font-family: Georgia, serif;
}

/* ── DIVIDER ── */
.hr { height: 1px; background: var(--border); }


/* ── QUIZ STYLES ── */
.quiz-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  position: relative;
}
.quiz-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}
.quiz-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.quiz-stage { display: none; }
.quiz-stage.active { display: block; }

.quiz-progress-bar {
  height: 2px;
  background: var(--border);
  position: relative;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  border-radius: 1px;
}

.quiz-body { padding: 40px 40px 36px; }

.quiz-q-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 14px;
}

.quiz-question {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--text-1);
}

.answer-grid { display: flex; flex-direction: column; gap: 10px; }

.answer-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--t);
  font-size: 14px;
  color: var(--text-1);
  text-align: left;
  font-family: inherit;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.answer-opt:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.answer-opt.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.answer-key {
  width: 24px; height: 24px;
  border-radius: 4px;
  background: var(--bg-hover);
  border: 1px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
  transition: all var(--t);
  font-family: 'JetBrains Mono', monospace;
}
.answer-opt.selected .answer-key {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Quiz slide transitions */
.q-slide-out-left  { animation: q-out-l 0.18s ease forwards; }
.q-slide-in-right  { animation: q-in-r  0.2s  ease forwards; }
.q-slide-out-right { animation: q-out-r 0.18s ease forwards; }
.q-slide-in-left   { animation: q-in-l  0.2s  ease forwards; }
@keyframes q-out-l { to   { opacity: 0; transform: translateX(-22px); } }
@keyframes q-in-r  { from { opacity: 0; transform: translateX(22px);  } to { opacity:1; transform:none; } }
@keyframes q-out-r { to   { opacity: 0; transform: translateX(22px);  } }
@keyframes q-in-l  { from { opacity: 0; transform: translateX(-22px); } to { opacity:1; transform:none; } }

.quiz-back-btn {
  background: none; border: none;
  color: var(--text-2);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  padding: 0 0 20px;
  transition: color var(--t);
  font-family: inherit;
}
.quiz-back-btn:hover { color: var(--text-1); }

/* Score ring */
.score-ring-wrap {
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 24px;
}
.score-ring-wrap svg { transform: rotate(-90deg); }
.score-bg-circle { fill: none; stroke: var(--border-mid); stroke-width: 6; }
.score-fill-circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 352;
  stroke-dashoffset: 352;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4,0,0.2,1);
}
.score-num-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-num {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-1);
}
.score-denom { font-size: 12px; color: var(--text-2); }

.result-tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}
.tier-high   { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(239,68,68,0.3); }
.tier-growth { background: var(--amber-dim);  color: var(--amber);  border: 1px solid rgba(217,119,6,0.3); }
.tier-almost { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(167,139,250,0.3); }
.tier-ready  { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(34,197,94,0.3); }

.result-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.result-bullet.show { opacity: 1; transform: translateX(0); }
.result-bullet-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Email capture */
.quiz-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  color: var(--text-1);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  font-family: inherit;
}
.quiz-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94,106,210,0.1);
}
.quiz-input::placeholder { color: var(--text-3); }

/* Admin panel */
.admin-panel {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-panel.open { display: flex; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }
.reveal.d6 { transition-delay: 0.48s; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob           { animation: none !important; }
  .g-text                { animation: none !important;
                           background: linear-gradient(135deg, var(--text-1) 0%, var(--accent) 100%);
                           background-size: 100%; }
  .hero-word             { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-badge            { animation: none !important; opacity: 1 !important; }
  .hero-trust            { animation: none !important; opacity: 1 !important; }
  .reveal                { transition: opacity 0.3s !important; transform: none !important; }
  .tl                    { animation: none !important; opacity: 1 !important; }
  .hero-notif            { animation: none !important; opacity: 1 !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .svc-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid     { grid-template-columns: 1fr 1fr 1fr; gap: 32px 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
  .hero-grid       { gap: 44px !important; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Hero: grow to content, no overflow clip on mobile */
  .hero {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 64px;
    overflow: visible;
    align-items: flex-start;
  }

  /* Hero grid: single column, tighter gap */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .section    { padding: 72px 0; }
  .container  { padding: 0 20px; }

  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-grid > :first-child { grid-column: 1 / -1; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  .quiz-body { padding: 28px 24px 24px; }

  .compare-toggle { flex-direction: column; width: 100%; }
  .compare-btn { width: 100%; text-align: center; }
}

/* ── GLOBAL GRID COLLAPSE (inner pages) ── */
/* Catches inline-style grids on about/services/contact/index that don't have a class */
@media (max-width: 768px) {
  /* 3-col layouts → single column */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    display: block !important;
  }
  [style*="grid-template-columns:repeat(3,1fr)"] > * + * {
    margin-top: 16px;
  }

  /* 2-col section-level layouts → single column */
  .section [style*="grid-template-columns:1fr 1fr"]:not(.compare-state),
  .section [style*="grid-template-columns:1fr 1.4fr"],
  .section [style*="grid-template-columns:repeat(2,1fr)"]:not(.compare-state),
  .section-sm [style*="grid-template-columns:1fr 1fr"]:not(.compare-state),
  .section-sm [style*="grid-template-columns:1fr 1.4fr"],
  .section-sm [style*="grid-template-columns:repeat(2,1fr)"]:not(.compare-state) {
    display: block !important;
  }
  /* Spacing between stacked layout sections only (not form field grids) */
  .section > .container > [style*="grid-template-columns:1fr 1fr"]:not(.compare-state) > * + *,
  .section > .container > [style*="grid-template-columns:1fr 1.4fr"] > * + *,
  .section > .container > [style*="grid-template-columns:repeat(2,1fr)"]:not(.compare-state) > * + *,
  .section-sm > .container > [style*="grid-template-columns:1fr 1fr"]:not(.compare-state) > * + *,
  .section-sm > .container > [style*="grid-template-columns:1fr 1.4fr"] > * + *,
  .section-sm > .container > [style*="grid-template-columns:repeat(2,1fr)"]:not(.compare-state) > * + * {
    margin-top: 48px;
  }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-right: none; }
}


/* ══════════════════════════════════════════════════════
   HERO GLOW  — centered for new single-column layout
══════════════════════════════════════════════════════ */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 65% at 50% 60%, rgba(94,106,210,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(124,58,237,0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════════════
   CENTERED HERO (Linear-style)
══════════════════════════════════════════════════════ */
.hero-centered {
  min-height: 88vh;
  padding-bottom: 80px;
  justify-content: center;
}
.hero-centered .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-centered h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: center;
}

/* Badge above headline */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(94,106,210,0.07);
  margin-bottom: 28px;
  text-decoration: none;
  letter-spacing: 0.1px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.hero-badge:hover {
  border-color: rgba(94,106,210,0.45);
  color: var(--text-1);
  background: rgba(94,106,210,0.12);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: live-pulse 2.5s ease infinite;
}

/* ══════════════════════════════════════════════════════
   DASHBOARD SHOWCASE SECTION (Linear-style product shot)
══════════════════════════════════════════════════════ */
.dash-showcase {
  position: relative;
  padding: 0 0 0;
  overflow: hidden;
}

/* Purple glow behind the window */
.dash-showcase-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(94,106,210,0.14) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
  z-index: 0;
}

/* Bottom fade — makes it look like the window floats out of the page */
.dash-showcase::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Inner wrapper with horizontal padding */
.dash-showcase-inner {
  position: relative;
  z-index: 3; /* above ::after fade gradient (z-index:2) so window content isn't covered */
  padding: 0 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Large window overrides */
.dash-window-lg {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 40px 100px rgba(0,0,0,0.65),
    0 0 80px rgba(94,106,210,0.08);
}
.dash-window-lg .dash-body {
  height: 480px;
  grid-template-columns: 190px 1fr;
}
.dash-window-lg .dash-sidebar { padding: 16px 0; }
.dash-window-lg .dash-sbl     { padding: 9px 18px 9px 14px; font-size: 13px; gap: 8px; }
.dash-window-lg .dash-main    { padding: 18px 22px; gap: 14px; }
.dash-window-lg .dash-main-hdr > :first-child { font-size: 13.5px; }
.dash-window-lg .dash-kpi     { padding: 12px 14px; }
.dash-window-lg .dash-kpi-val { font-size: 1.6rem; }
.dash-window-lg .dash-kpi-lbl { font-size: 10.5px; }
.dash-window-lg .dash-feed-row { padding: 7px 0; }
.dash-window-lg .dash-fd-name  { font-size: 12.5px; min-width: 58px; }
.dash-window-lg .dash-fd-desc  { font-size: 12.5px; }
.dash-window-lg .dash-fd-time  { font-size: 11px; }
.dash-window-lg .dash-section-lbl { font-size: 11px; margin: 2px 0; }
.dash-window-lg .dash-lead-row { padding: 8px 0; }
.dash-window-lg .dash-ld-name  { font-size: 12.5px; min-width: 58px; }
.dash-window-lg .dash-ld-ind   { font-size: 11.5px; min-width: 66px; }
.dash-window-lg .dash-auto-row { padding: 9px 0; }
.dash-window-lg .dash-auto-name { font-size: 12.5px; }
.dash-window-lg .dash-chart svg { height: 80px; }

/* Mobile: showcase collapses gracefully */
@media (max-width: 900px) {
  .dash-showcase-inner { padding: 0 20px 60px; }
  .dash-window-lg .dash-body { height: auto; grid-template-columns: 1fr; }
  .dash-window-lg .dash-main { height: 280px; }
}
@media (max-width: 768px) {
  .dash-showcase::after { height: 60px; }
  .hero-centered { min-height: auto; padding-bottom: 48px; }
  .hero-badge { font-size: 11px; white-space: normal; text-align: center; }
}


/* ══════════════════════════════════════════════════════
   INDUSTRIES BAR
══════════════════════════════════════════════════════ */
.industries-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 14px 0;
}
.industries-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.industries-label {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.industries-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.industries-pills span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  letter-spacing: 0.15px;
  transition: color 0.14s, border-color 0.14s;
  cursor: default;
}
.industries-pills span:hover {
  color: var(--text-1);
  border-color: var(--border-mid);
}


/* ══════════════════════════════════════════════════════
   AI DASHBOARD  (hero right panel)
══════════════════════════════════════════════════════ */

/* Outer wrapper — creates the glow behind the window */
.dash-wrapper {
  position: relative;
}
.dash-wrapper::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 75% 60% at 55% 50%, rgba(94,106,210,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(20px);
}

/* The window itself */
.dash-window {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.5),
    0 0 0 0.5px rgba(255,255,255,0.04) inset;
}

/* Title bar */
.dash-titlebar {
  height: 36px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
}
.dash-title {
  font-size: 11.5px;
  color: var(--text-3);
  flex: 1;
  text-align: center;
  letter-spacing: 0.1px;
}
.dash-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
}
.dash-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: live-pulse 2.2s ease infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

/* Body layout: sidebar + main */
.dash-body {
  display: grid;
  grid-template-columns: 130px 1fr;
  height: 300px;
}

/* Sidebar */
.dash-sidebar {
  border-right: 1px solid var(--border);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dash-sbl {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 12px;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  margin: 1px 0;
  transition: color 0.14s, background 0.14s, border-color 0.14s;
  user-select: none;
  position: relative;
}
.dash-sbl.active {
  color: var(--text-1);
  background: rgba(255,255,255,0.06);
  border-left-color: var(--accent);
}
.dash-sbl:not(.active):hover {
  color: var(--text-2);
  background: rgba(255,255,255,0.03);
}

/* Main panel */
.dash-main {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.dash-main-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-main-hdr > :first-child {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-1);
}
.dash-main-hdr > :last-child {
  font-size: 11px;
  color: var(--text-3);
}

/* KPI row */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
}
.dash-kpi {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dash-kpi-val {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-1);
  line-height: 1.1;
}
.dash-kpi-lbl {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 1px;
}
.dash-kpi-delta {
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
}

/* Section label */
.dash-section-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* Activity feed */
.dash-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}
.dash-feed-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: feed-in 0.35s ease forwards;
  animation-delay: var(--fd, 1s);
}
.dash-feed-row:last-child { border-bottom: none; }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: none; }
}
.dash-fd-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--border-strong);
}
.dash-fd-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-1);
  flex-shrink: 0;
  min-width: 50px;
}
.dash-fd-desc {
  font-size: 11.5px;
  color: var(--text-2);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-fd-time {
  font-size: 10.5px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* Status footer */
.dash-footer {
  display: flex;
  gap: 14px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.dash-status-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--text-3);
}
.dash-sd {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
}
.dash-sd.on { background: var(--green); }

/* Dashboard responsive — sidebar becomes horizontal tab strip */
@media (max-width: 900px) {
  .dash-window { max-width: 100%; }
  .dash-body   { grid-template-columns: 1fr; height: auto; }

  /* Flip sidebar to horizontal tab strip */
  .dash-sidebar {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    scrollbar-width: none;
  }
  .dash-sidebar::-webkit-scrollbar { display: none; }

  /* Tabs reset for horizontal */
  .dash-sbl {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin: 0;
    padding: 9px 12px;
  }
  .dash-sbl.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
    background: transparent;
  }
  .dash-sbl:not(.active):hover { background: transparent; }

  .dash-main { height: 260px; }
}

/* On mobile: show dashboard below hero copy — don't hide it */
@media (max-width: 768px) {
  .dash-wrapper { display: block; margin-top: 32px; }
}

/* ── DASHBOARD PANEL SWITCHING ── */
.dash-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.dash-panel.active { display: flex; }

/* Direction-aware slide transitions */
.panel-out-left  { animation: panel-out-left  0.15s cubic-bezier(0.4,0,1,1)     forwards; }
.panel-out-right { animation: panel-out-right 0.15s cubic-bezier(0.4,0,1,1)     forwards; }
.panel-in-right  { animation: panel-in-right  0.24s cubic-bezier(0.22,1,0.36,1) forwards; }
.panel-in-left   { animation: panel-in-left   0.24s cubic-bezier(0.22,1,0.36,1) forwards; }

@keyframes panel-out-left  { to   { opacity: 0; transform: translateX(-14px); } }
@keyframes panel-out-right { to   { opacity: 0; transform: translateX(14px);  } }
@keyframes panel-in-right  { from { opacity: 0; transform: translateX(18px);  } to { opacity: 1; transform: none; } }
@keyframes panel-in-left   { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

/* ── LEADS PANEL ── */
.dash-leads {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.dash-lead-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.dash-lead-row:last-child { border-bottom: none; }
.dash-ld-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-1);
  min-width: 52px;
  flex-shrink: 0;
}
.dash-ld-ind {
  font-size: 10.5px;
  color: var(--text-3);
  min-width: 58px;
  flex-shrink: 0;
}
.dash-ld-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.dash-ld-bar > div {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}
.dash-ld-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}
.dash-ld-badge.booked    { color: var(--green);  background: var(--green-dim);  }
.dash-ld-badge.nurturing { color: var(--accent);  background: var(--accent-dim); }
.dash-ld-badge.contacted { color: var(--amber);   background: var(--amber-dim);  }
.dash-ld-badge.new       { color: var(--text-3);  background: rgba(255,255,255,0.05); }

/* ── AUTOMATIONS PANEL ── */
.dash-autos {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.dash-auto-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.dash-auto-row:last-child { border-bottom: none; }
.dash-auto-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.dash-auto-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-auto-sub  { font-size: 10px; color: var(--text-3); }
.dash-auto-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
  min-width: 28px;
  text-align: right;
}
.dash-auto-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
  color: var(--text-3);
  background: rgba(255,255,255,0.05);
  letter-spacing: 0.2px;
}
.dash-auto-pill.on { color: var(--green); background: var(--green-dim); }

/* ── ANALYTICS PANEL ── */
.dash-chart { flex-shrink: 0; }
.dash-chart svg { display: block; }
.dash-chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}
.dash-chart-labels span {
  font-size: 9px;
  color: var(--text-3);
  flex: 1;
  text-align: center;
}
