:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --obsidian: #090d16;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --cobalt: #1d4ed8;
  --cobalt-light: #eff6ff;
  --emerald: #047857;
  --emerald-bright: #10b981;
  --emerald-light: #ecfdf5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--slate-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   SINGLE UNIFIED INSTITUTIONAL COMMAND HEADER + 01–06 STEPPER + TELEMETRY BAR
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.03em;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.nav-tab {
  text-decoration: none;
  color: #94a3b8;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 7px;
  transition: all 0.16s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-tab.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Sleek Sub-Header Executive Telemetry & Walkthrough Control Bar (38px slim) */
.exec-subbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate-600);
}

.exec-subbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.exec-subbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.telemetry-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-800);
}

.subbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  color: var(--slate-900);
  transition: all 0.15s ease;
}

.subbar-btn:hover {
  background: #f1f5f9;
  border-color: var(--slate-500);
}

.subbar-btn-primary {
  background: var(--slate-900);
  color: #ffffff;
  border-color: var(--slate-900);
}

.subbar-btn-primary:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

/* Buttons */
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  background: #2563eb;
  color: #ffffff;
  transition: all 0.15s ease;
  border: 1px solid #3b82f6;
  cursor: pointer;
}

.btn-demo:hover {
  background: #1d4ed8;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  background: #ffffff;
  color: var(--slate-900);
  border: 1px solid var(--border-strong);
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: var(--slate-600);
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  background: #059669;
  color: #ffffff;
  border: 1px solid #10b981;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-emerald:hover {
  background: #047857;
}

/* Page Shell — Tight, Intentional Executive Spacing */
.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 36px 32px 88px;
}

.page-header {
  max-width: 880px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-title {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--slate-900);
  margin-bottom: 14px;
}

.page-subtitle {
  font-size: 17px;
  color: var(--slate-600);
  font-weight: 400;
  line-height: 1.6;
}

/* Cinema Frame */
.cinema-frame {
  background: var(--obsidian);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(9, 13, 22, 0.16);
  border: 1px solid var(--slate-800);
}

.cinema-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 10px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}

.cinema-dots {
  display: flex;
  gap: 6px;
}

.cinema-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.cinema-frame video {
  width: 100%;
  border-radius: 10px;
  display: block;
  background: #020617;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
}

/* Embedded Live AI Chat & Crisis Simulator Hub — Institutional Terminal Style */
.live-interactive-hub {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  margin: 48px 0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.hub-header {
  background: var(--obsidian);
  color: #ffffff;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--slate-800);
}

.hub-worker-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 10px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.hub-worker-btn {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--slate-700);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.hub-worker-btn:hover {
  border-color: var(--slate-400);
  color: var(--slate-900);
}

.hub-worker-btn.active {
  background: var(--slate-900);
  border-color: var(--slate-900);
  color: #ffffff;
}

.hub-body {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  min-height: 410px;
}

.hub-chat-pane {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
}

.hub-messages {
  height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 8px;
  margin-bottom: 14px;
}

.msg-bubble {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 92%;
}

.msg-agent {
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--slate-900);
  align-self: flex-start;
}

.msg-user {
  background: var(--slate-900);
  color: #ffffff;
  align-self: flex-end;
  font-weight: 500;
}

.prompt-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.prompt-chip {
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  color: var(--slate-800);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.prompt-chip:hover {
  background: var(--cobalt-light);
  border-color: #93c5fd;
  color: var(--cobalt);
}

.hub-side-pane {
  padding: 22px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

/* Executive Spotlight Tour & Specification Tooltips */
.wizard-spotlight-active {
  position: relative;
  z-index: 1050 !important;
  outline: 2px solid #2563eb !important;
  outline-offset: 6px;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.14), 0 20px 50px rgba(15, 23, 42, 0.18) !important;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.wizard-floating-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1300;
  width: 420px;
  max-width: calc(100vw - 40px);
  background: var(--obsidian);
  color: #ffffff;
  border: 1px solid #334155;
  border-top: 3px solid #2563eb;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
}

.wizard-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid #3b82f6;
  color: #93c5fd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tooltip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--slate-700);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: middle;
}

.tooltip-badge:hover {
  background: var(--slate-900);
  color: #ffffff;
  border-color: var(--slate-900);
}

.tooltip-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tooltip-modal-card {
  background: #ffffff;
  color: var(--slate-900);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--slate-900);
  border-radius: 14px;
  max-width: 540px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 28px 64px rgba(9, 13, 22, 0.35);
}

.walkthrough-3step-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.walkthrough-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.walkthrough-tab-btn {
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--slate-700);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.walkthrough-tab-btn.active {
  background: var(--slate-900);
  color: #ffffff;
  border-color: var(--slate-900);
}

/* Footer */
/* ==========================================================================
   HIGH-CONVERTING EXECUTIVE SALES FUNNEL NEXT-STEP CARDS
   ========================================================================== */
.next-step-conversion-card {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 32px 36px;
  margin: 52px 0 24px;
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
  position: relative;
  overflow: hidden;
}

.next-step-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.step-tag-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
}

.roi-sales-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 4px 12px;
  border-radius: 4px;
}

.next-step-content {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.next-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 6px;
}

.next-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.next-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
}

.next-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-next-step {
  padding: 13px 20px;
  font-size: 13.5px;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.funnel-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 24px;
}

.funnel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
  border-radius: 999px;
}

@media (max-width: 1080px) {
  .next-step-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.site-footer {
  background: var(--obsidian);
  color: #94a3b8;
  padding: 56px 32px;
  border-top: 1px solid var(--slate-800);
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 1100px) {
  .site-nav, .exec-subbar {
    height: auto;
    padding: 12px 20px;
    flex-direction: column;
    gap: 10px;
  }
  .hub-worker-tabs, .hub-body {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   AVANT-GARDE MOBILE & TABLET RESPONSIVE OVERHAUL (WCAG AAA & TOUCH-FIRST)
   ========================================================================== */

/* Tablet & Mobile Navigation */
@media (max-width: 1024px) {
  .site-nav {
    height: auto !important;
    padding: 12px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .brand-link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .nav-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    display: flex !important;
    gap: 6px !important;
    padding: 4px !important;
    width: 100% !important;
    border-radius: 8px !important;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .nav-tab {
    padding: 8px 12px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }

  .nav-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .nav-actions a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 11px 16px !important;
    font-size: 13px !important;
  }

  .page-shell {
    padding: 24px 18px 60px 18px !important;
  }

  .hero-split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-bottom: 36px !important;
  }

  .portal-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .vm-spec-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .demo-banner {
    grid-template-columns: 1fr !important;
    padding: 28px 20px !important;
    gap: 24px !important;
  }

  .demo-banner .btn-emerald,
  .demo-banner .btn-demo,
  .demo-banner .btn-outline {
    width: 100% !important;
  }
}

/* Smartphone Strict Breakpoint (< 640px) */
@media (max-width: 640px) {
  .page-shell {
    padding: 16px 12px 48px 12px !important;
  }

  .page-title {
    font-size: 26px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
  }

  .page-subtitle {
    font-size: 14.5px !important;
    line-height: 1.55 !important;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 20px !important;
  }

  .metric-pill {
    padding: 10px 12px !important;
  }

  .metric-pill .val {
    font-size: 18px !important;
  }

  .metric-pill .lbl {
    font-size: 9px !important;
    letter-spacing: 0.02em !important;
  }

  .cinema-frame {
    border-radius: 12px !important;
  }

  .cinema-topbar {
    padding: 8px 12px !important;
    font-size: 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .cinema-topbar button {
    width: 100% !important;
    text-align: center !important;
    padding: 8px !important;
  }

  .portal-card {
    padding: 20px 16px !important;
  }

  .footer-inner {
    flex-direction: column !important;
    gap: 28px !important;
  }

  .footer-links {
    flex-direction: column !important;
    gap: 12px !important;
  }
}
