@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #050811;
  --bg-elevated: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(22, 33, 58, 0.88);
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-glow: rgba(56, 189, 248, 0.38);
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8b9bb4;
  --accent-primary: #2563eb;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #03060e;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(37, 99, 235, 0.32), transparent 70%),
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.14), transparent 42%),
    radial-gradient(circle at 12% 75%, rgba(16, 185, 129, 0.1), transparent 45%),
    linear-gradient(to right, rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 54px 54px, 54px 54px;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

#adx-quantum-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.navbar,
main,
section,
footer,
.console-layout {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 17, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 15px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-text {
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.4px;
  display: block;
  line-height: 1.15;
}

.brand-motto {
  font-size: 0.73rem;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.2px;
  display: block;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 600;
  transition: color 0.18s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.42);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.65);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--border-glow);
}

/* Hero Section */
.hero {
  padding: 76px 0 64px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.motto-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.3px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, #60a5fa, #38bdf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-preview-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(9, 13, 22, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(37, 99, 235, 0.15);
}

/* Section Layout */
.section-block {
  padding: 76px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.22s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 18px;
}

.clean-list {
  list-style: none;
}

.clean-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.clean-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  flex-shrink: 0;
}

/* Scanner & Tables (Inside Console) */
.scanner-card,
.panel-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
}

.scanner-form {
  display: flex;
  gap: 12px;
}

.scanner-input,
.form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.18s;
}

.scanner-input:focus,
.form-control:focus {
  border-color: var(--accent-cyan);
}

.hidden {
  display: none !important;
}

/* Verifiable Telemetry Strip */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.telemetry-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}

.telemetry-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.telemetry-box strong {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--accent-cyan);
  word-break: break-all;
}

.score-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0 16px;
}

.score-number {
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.ai-summary-box {
  background: rgba(37, 99, 235, 0.12);
  border-left: 3px solid var(--accent-cyan);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 0.93rem;
}

.truth-table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}

.truth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.truth-table th,
.truth-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.truth-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.badge-true {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.14);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-false {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.14);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-warn {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cve-tag {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
}

.locked-patch-bar {
  margin-top: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

/* Chat & Forms */
.chat-log {
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  white-space: pre-line;
  max-width: 86%;
}

.chat-bot {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
}

.chat-user {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  align-self: flex-end;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

/* Corporate Multi-Column Footer */
.site-footer {
  background: #03060c;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 36px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* 2026 CVE Threat Intelligence Report Matrix (Inside Diagnostic Report) */
.cve-report-section {
  background: rgba(5, 8, 17, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cve-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.cve-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
}

.cve-report-card {
  background: rgba(13, 21, 38, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 13px 14px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.cve-report-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
}

.cve-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cve-id-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 8px;
  border-radius: 5px;
}

.cvss-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.score-gauge-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* AEGIS Neural Voice Speaker Pill & Animated Soundwave */
.adx-voice-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 22px rgba(56, 189, 248, 0.22);
  padding: 10px 16px;
  border-radius: 999px;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.adx-voice-widget:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 28px rgba(56, 189, 248, 0.38);
}

.voice-waves {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.voice-waves span {
  display: block;
  width: 3px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 99px;
  transition: height 0.15s ease;
}

.adx-voice-widget.speaking .voice-waves span:nth-child(1) {
  animation: adxWave 0.7s infinite ease-in-out 0.1s;
}
.adx-voice-widget.speaking .voice-waves span:nth-child(2) {
  animation: adxWave 0.7s infinite ease-in-out 0.25s;
}
.adx-voice-widget.speaking .voice-waves span:nth-child(3) {
  animation: adxWave 0.7s infinite ease-in-out 0.4s;
}
.adx-voice-widget.speaking .voice-waves span:nth-child(4) {
  animation: adxWave 0.7s infinite ease-in-out 0.15s;
}

@keyframes adxWave {
  0%, 100% { height: 5px; }
  50% { height: 16px; }
}

/* AI Thinking 3-Dot Indicator & Streaming Typewriter Cursor */
.ai-thinking-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-cyan);
  font-size: 0.84rem;
  font-weight: 600;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
  animation: aiDotBounce 1.25s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes aiDotBounce {
  0%, 80%, 100% {
    transform: scale(0.45);
    opacity: 0.35;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.ai-typing-cursor::after {
  content: "▍";
  display: inline-block;
  margin-left: 3px;
  color: var(--accent-cyan);
  animation: cursorBlink 0.75s infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Floating ADX's BFF / AEGIS Assistant Card (WIT-h Clean White & Royal Blue Design) */
.aegis-concierge-card {
  position: fixed;
  bottom: 84px;
  right: 26px;
  width: 326px;
  z-index: 9999;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.38), 0 4px 16px rgba(0, 24, 168, 0.16);
  overflow: hidden;
  font-family: var(--font-sans);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.aegis-concierge-card.closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.96);
}

.aegis-card-header {
  background: #0018a8;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.aegis-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aegis-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #60a5fa, #1d4ed8 65%, #091540);
  border: 2px solid #93c5fd;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.aegis-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.aegis-icon-btn,
.aegis-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.aegis-icon-btn:hover,
.aegis-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

.aegis-card-body {
  padding: 20px 20px 18px;
  background: #ffffff;
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.5;
}

.aegis-action-list {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.aegis-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  background: transparent;
  border: none;
  color: #1e293b;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.aegis-action-item:hover {
  color: #0018a8;
  transform: translateX(3px);
}

.aegis-cta-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: #0018a8;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 24, 168, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}

.aegis-cta-btn:hover {
  background: #001285;
  transform: translateY(-1px);
}

/* Inline Chat View inside the White Popup Card */
.aegis-chat-view {
  display: none;
  flex-direction: column;
  background: #ffffff;
}

.aegis-chat-view.active {
  display: flex;
}

.aegis-chat-topbar {
  padding: 8px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #475569;
}

.aegis-back-btn {
  background: none;
  border: none;
  color: #0018a8;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 2px 4px;
}

.aegis-mini-messages {
  height: 235px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

.aegis-msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-line;
}

.aegis-msg-bot {
  align-self: flex-start;
  background: #f1f5f9;
  color: #0f172a;
  border-bottom-left-radius: 4px;
}

.aegis-msg-user {
  align-self: flex-end;
  background: #0018a8;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.aegis-mini-form {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.aegis-mini-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  color: #0f172a;
  outline: none;
}

.aegis-mini-input:focus {
  border-color: #0018a8;
}

.aegis-mini-send {
  background: #0018a8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Circular Bottom-Right Robot Launcher Button (WIT-h style) */
.aegis-launcher-orb {
  position: fixed;
  bottom: 20px;
  right: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #0018a8;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aegis-launcher-orb:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(0, 24, 168, 0.42);
}

.aegis-launcher-orb.speaking {
  box-shadow: 0 0 0 6px rgba(0, 24, 168, 0.28), 0 10px 28px rgba(2, 6, 23, 0.4);
}

@media (max-width: 920px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .scanner-form {
    flex-direction: column;
  }
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
