/* --- VARIABLES & RESET --- */
:root {
  --bg: #ffffff;
  --bg-dots: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.4);
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  
  --border: #e2e8f0;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --radius: 12px;
  
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; outline: none; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-ui);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.gradient-text {
  background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800;
}
.bg-dots {
  background: #0f172a;
  color: white;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.bg-dots .section-header h2,
.bg-dots .section-header p { color: white; }
.bg-dots .badge { background: rgba(255,255,255,0.12); color: white; }
/* Dark Mode Overrides for Architecture in bg-dots */
.bg-dots .arch-node { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.14); color: white; }
.bg-dots .node-label, .bg-dots .node-sub { color: white; }
.bg-dots .node-icon { background: rgba(255,255,255,0.08); color: #e2e8f0; }
.bg-dots .node-icon-main { background: white; color: var(--primary); border-color: rgba(255,255,255,0.2); }
.bg-slate { background: #0f172a; color: white; }

/* --- NAVIGATION --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: 72px; z-index: 100;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text-main); letter-spacing: -0.02em; }
.logo-icon { 
  width: 32px; height: 32px;
  background: var(--bg-dots);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; 
}
.logo-icon img { width: 18px; height: 18px; object-fit: contain; display: block; }
.logo-icon svg { width: 18px; height: 18px; }
.logo-icon.small { width: 24px; height: 24px; }
.logo-icon.small img { width: 14px; height: 14px; }
.logo-icon.small svg { width: 14px; height: 14px; }

.nav-links { display: none; gap: 32px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-main); }
@media(min-width: 768px) { .nav-links { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.link-secondary { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; display: none; }
@media(min-width: 640px) { .link-secondary { display: block; } }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: all 0.2s ease; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--text-main); color: white; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15); border: 1px solid transparent; }
.btn-primary:hover { background: #334155; transform: translateY(-1px); }
.btn-primary.white { background: white; color: var(--text-main); }
.btn-primary.white:hover { background: #f1f5f9; }

.btn-ghost { color: var(--text-main); background: transparent; border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); background: var(--bg-dots); }
.btn-ghost.white { color: white; border-color: rgba(255,255,255,0.2); }
.btn-ghost.white:hover { background: rgba(255,255,255,0.1); }

/* --- HERO SECTION --- */
.hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center; }
@media(min-width: 992px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: white; border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.dot-pulse { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(34,197,94,0.15); }

.hero h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 24px 0; color: var(--text-main); }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; max-width: 540px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-features { display: flex; flex-direction: column; gap: 12px; font-size: 0.95rem; color: var(--text-muted); }
.check-item { display: flex; align-items: center; gap: 10px; }
.check-item i { color: var(--primary); width: 20px; height: 20px; flex-shrink: 0; }

/* --- TERMINAL VISUAL --- */
.terminal-wrapper { position: relative; perspective: 1000px; }
.terminal-window {
  background: #0f172a; border-radius: 12px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden; position: relative; z-index: 2;
  transform: rotateY(-2deg) rotateX(2deg); transition: transform 0.5s ease;
}
.terminal-wrapper:hover .terminal-window { transform: rotateY(0) rotateX(0); }

.terminal-header {
  background: #1e293b; padding: 12px 16px; display: flex; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.traffic-lights { display: flex; gap: 6px; }
.traffic-dot { width: 10px; height: 10px; border-radius: 50%; }
.traffic-dot.red { background: #ef4444; }
.traffic-dot.yellow { background: #f59e0b; }
.traffic-dot.green { background: #22c55e; }
.terminal-title { 
  margin: 0 auto; color: #64748b; font-size: 0.8rem; font-family: var(--font-mono); 
  display: flex; align-items: center; padding-right: 40px;
}

.terminal-body { 
  padding: 20px; font-family: var(--font-mono); font-size: 0.85rem; 
  color: #e2e8f0; line-height: 1.7; height: 320px; overflow-y: auto;
  scrollbar-width: none; 
}
.log-line { margin-bottom: 6px; display: flex; gap: 8px; }
.log-line.hidden { display: none; }
.t-dim { color: #475569; user-select: none; }
.t-blue { color: #60a5fa; font-weight: bold; }
.t-yellow { color: #fbbf24; font-weight: bold; }
.t-red { color: #f87171; font-weight: bold; }
.t-green { color: #4ade80; font-weight: bold; }
.t-highlight { color: #a5b4fc; background: rgba(99, 102, 241, 0.1); padding: 0 4px; border-radius: 4px; }
.log-cursor { display: inline-block; width: 8px; height: 14px; background: #94a3b8; animation: blink 1s infinite; vertical-align: middle; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- LOGOS --- */
.logos-section { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 30px 0; background: #0f172a; }
.logos-label { text-align: center; font-size: 0.75rem; color: #cbd5e1; margin: 0 0 20px 0; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.logo-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.7; filter: grayscale(80%); transition: opacity 0.3s, filter 0.3s; }
.logo-grid:hover { opacity: 1; filter: grayscale(0%); }
.logo-item { font-weight: 700; font-size: 1.1rem; color: #e2e8f0; display: flex; align-items: center; gap: 8px; }

/* -----------------------------------------------------
   ARCHITECTURE DIAGRAM (BIGGER, BOLDER & STORYTELLING)
   ----------------------------------------------------- */

/* -----------------------------------------------------
   ARCHITECTURE DIAGRAM (FIXED LAYOUT & PULSE)
   ----------------------------------------------------- */

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

/* Main Container - Adjusted gap to fit everything */
.architecture-diagram.bidirectional {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 12px; /* Tighter gap */
  flex-wrap: wrap; 
  padding: 40px 0;
}

/* Nodes (The Boxes) */
.arch-node {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 20px;
  width: 220px; /* Slightly narrower to fit */
  text-align: center; box-shadow: var(--shadow-md);
  position: relative; z-index: 2;
  /* Ensure cards don't shrink */
  flex-shrink: 0;
}

/* Sentix Node (Middle) */
.arch-node.sentix {
  width: 300px; /* Optimized width */
  border-color: var(--primary); 
  box-shadow: 0 0 0 1px var(--primary-glow);
  z-index: 10;
}

/* Node Icons */
.node-icon, .node-icon-main {
  width: 56px; height: 56px; 
  margin: 0 auto 16px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.node-icon { background: #f1f5f9; color: #64748b; }
.node-icon-main { 
  background: white; color: var(--primary); 
  border: 1px solid var(--border); 
  box-shadow: 0 8px 16px rgba(37,99,235,0.15); 
  position: relative; /* Needed for pulse */
}
.node-icon svg, .node-icon i { width: 28px; height: 28px; }
.node-icon-main img { width: 32px; height: 32px; object-fit: contain; display: block; position: relative; z-index: 2; }

/* Text Sizing */
.node-label { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.node-sub { font-size: 0.8rem; color: var(--text-muted); opacity: 0.9; }

/* Node Badge */
.node-badge { 
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); 
  background: var(--text-main); color: white; 
  font-size: 0.75rem; padding: 4px 10px; border-radius: 100px;
  font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Pipeline Steps (Inside Middle Node) */
.node-internal-pipeline {
  margin-top: 16px; display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 0.75rem; color: #94a3b8;
  background: rgba(255,255,255,0.05); padding: 8px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}
.pipe-step { font-weight: 600; color: white; }
.pipe-arrow { color: #64748b; }

/* --- CONNECTORS (The fix for the wrapping issue) --- */
.arch-connector.dual-lane {
  width: 80px; /* Reduced from 200px to fit */
  height: 100px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 24px;
  position: relative;
  flex-shrink: 0; /* Prevent squishing */
}

.track-line {
  width: 100%; height: 3px; 
  background: rgba(255,255,255,0.15); 
  position: relative; overflow: hidden; border-radius: 2px;
}
.track-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #94a3b8; font-weight: 700; text-align: center; width: 100%;
}
.connector-track:first-child .track-label { margin-bottom: 6px; }
.connector-track:last-child .track-label { margin-top: 6px; }

/* Animated Packets */
.data-packet { position: absolute; top: 0; width: 30px; height: 100%; border-radius: 4px; }
.track-line.right .data-packet { left: 0; animation: flowRight 2s infinite linear; }
.data-packet.return { right: 0; animation: flowLeft 2s infinite linear; }
.data-packet.delay { animation-delay: 1s; }

/* --- PULSE ANIMATION (FIXED) --- */
/* We animate box-shadow instead of a pseudo-element to avoid clipping issues */
.radar-pulse {
  animation: radarGlow 3s infinite;
}

@keyframes radarGlow {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

@keyframes flowRight {
  0% { left: -40%; opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes flowLeft {
  0% { right: -40%; opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { right: 100%; opacity: 0; }
}

/* Mobile Responsive */
@media(max-width: 992px) {
  .architecture-diagram.bidirectional { flex-direction: column; gap: 40px; }
  .arch-connector.dual-lane {
    width: 100px; height: 140px;
    transform: rotate(90deg);
  }
  .track-label { transform: rotate(-90deg); }
  .arch-node { width: 100%; max-width: 320px; }
  .arch-node.sentix { width: 100%; max-width: 360px; }
}

/* --- SEMANTIC COLORING PRESERVED --- */
.arch-connector:nth-child(2) .track-line.right .data-packet { background: linear-gradient(90deg, transparent, #f59e0b, transparent); }
.arch-connector:nth-child(4) .track-line.right .data-packet { background: linear-gradient(90deg, transparent, #3b82f6, transparent); }
.arch-connector:nth-child(4) .data-packet.return { background: linear-gradient(-90deg, transparent, #3b82f6, transparent); }
.arch-connector:nth-child(2) .data-packet.return { background: linear-gradient(-90deg, transparent, #10b981, transparent); box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }

/* Radar Pulse for the Central Logo */
.radar-pulse { position: relative; overflow: hidden; }
.radar-pulse::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  animation: radarPing 3s infinite;
}
@keyframes radarPing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Mobile Responsive */
@media(max-width: 900px) {
  .architecture-diagram.bidirectional { flex-direction: column; gap: 40px; }
  .arch-connector.dual-lane {
    width: 100px; height: 160px;
    transform: rotate(90deg);
  }
  .track-label { transform: rotate(-90deg); }
  .arch-node { width: 100%; max-width: 320px; }
  .arch-node.sentix { width: 100%; max-width: 360px; }
}

/* --- CARDS & GRID --- */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: #bfdbfe; }
.card-icon { 
  width: 44px; height: 44px; background: #eff6ff; color: var(--primary); 
  border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; 
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; flex-grow: 1; margin-bottom: 24px; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.meta-tag { 
  font-size: 0.75rem; background: #f1f5f9; color: #475569; padding: 4px 8px; border-radius: 6px; font-weight: 500; 
}

/* --- INTEGRATION SECTION (SPLIT) --- */
.split-layout { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center; }
@media(min-width: 992px) { .split-layout { grid-template-columns: 0.8fr 1fr; } }

.feature-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.feature-list li { display: flex; align-items: center; gap: 12px; color: #cbd5e1; }
.feature-list i { color: #4ade80; width: 20px; height: 20px; }

.code-window { background: #1e293b; border-radius: 10px; overflow: hidden; font-family: var(--font-mono); border: 1px solid #334155; box-shadow: var(--shadow-xl); }
.code-header { background: #334155; color: #94a3b8; font-size: 0.75rem; padding: 8px 16px; display: flex; align-items: center; gap: 6px; }
.code-header .dot { width: 10px; height: 10px; border-radius: 50%; }
.code-content { padding: 20px; font-size: 0.85rem; line-height: 1.6; color: #e2e8f0; }
.code-content pre { margin: 0; white-space: pre; font-family: var(--font-mono); font-size: 0.85rem; color: #e2e8f0; }
.c-kwd { color: #c084fc; } /* purple */
.c-str { color: #86efac; } /* green */
.c-prop { color: #93c5fd; } /* blue */
.c-func { color: #fcd34d; } /* yellow */
.c-comment { color: #64748b; font-style: italic; }

/* --- DETAILED GRID --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 40px; }
.feature-item i { color: var(--primary); width: 24px; height: 24px; margin-bottom: 12px; }
.feature-item h4 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* --- CTA --- */
.cta-box {
  background: var(--text-main); color: white; border-radius: 20px; padding: 60px 24px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.cta-box::after {
  content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.4), transparent 70%); pointer-events: none;
}
.cta-box h2 { font-size: 2.2rem; margin-bottom: 16px; }
.cta-box p { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 32px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; }

/* --- FOOTER --- */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 60px; background: white; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-text { font-size: 0.9rem; color: var(--text-muted); }

/* --- ANIMATIONS --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.2, 1, 0.2, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

/* --- INTEGRATION TABS --- */
.integration-tabs {
  display: flex; gap: 12px; margin-bottom: 24px;
}
.tab-btn {
  background: rgba(255,255,255,0.05); color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 16px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.9rem;
  transition: all 0.2s;
}
.tab-btn:hover { background: rgba(255,255,255,0.1); color: white; }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.tab-btn i { width: 16px; height: 16px; }

/* Utilities for toggling */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* --- MOCK CHAT UI WINDOW --- */
.chat-ui-window {
  background: #ffffff; border-radius: 12px; overflow: hidden;
  height: 360px; display: flex;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid #334155;
  font-family: var(--font-ui);
}

/* Sidebar */
.chat-sidebar {
  width: 60px; background: #f1f5f9; border-right: 1px solid #e2e8f0;
  display: flex; flex-direction: column; align-items: center; padding-top: 20px; gap: 12px;
}
.chat-brand-icon { width: 32px; height: 32px; background: var(--primary); border-radius: 6px; }
.chat-line { background: #cbd5e1; height: 4px; border-radius: 4px; }
.chat-line.long { width: 30px; }
.chat-line.medium { width: 20px; }
.chat-line.short { width: 12px; }

/* Main Chat Area */
.chat-main { flex: 1; display: flex; flex-direction: column; background: white; }
.chat-header {
  height: 48px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center;
  justify-content: space-between; padding: 0 20px;
}
.chat-title { font-weight: 600; font-size: 0.85rem; color: #334155; }
.chat-badge { 
  background: #ecfdf5; color: #059669; font-size: 0.7rem; padding: 2px 8px; 
  border-radius: 100px; font-weight: 700; border: 1px solid #a7f3d0;
}

.chat-messages { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; background: #fafafa; }
.msg-bubble { max-width: 80%; padding: 12px 16px; border-radius: 12px; font-size: 0.85rem; line-height: 1.5; position: relative; }
.msg-bubble.user { align-self: flex-end; background: #3b82f6; color: white; border-bottom-right-radius: 2px; }
.msg-bubble.system { align-self: flex-start; background: white; border: 1px solid #e2e8f0; color: #334155; border-bottom-left-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

.scan-tag { 
  display: inline-flex; align-items: center; gap: 4px; color: #64748b; font-size: 0.7rem; 
  margin-bottom: 6px; display: block; font-weight: 600; text-transform: uppercase;
}
.thinking-line { height: 2px; width: 40px; background: #e2e8f0; margin-bottom: 8px; border-radius: 2px; }

/* Input Area */
.chat-input-area {
  padding: 16px; border-top: 1px solid #e2e8f0; display: flex; gap: 10px; align-items: center;
}
.chat-input-placeholder {
  flex: 1; color: #94a3b8; font-size: 0.85rem; background: #f8fafc; 
  padding: 10px 14px; border-radius: 8px;
}
.chat-send-btn {
  width: 36px; height: 36px; background: #e2e8f0; color: white; 
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
/* --- BADGES (SECTION TITLES) --- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;       /* Wider padding */
  border-radius: 100px;    /* Full Pill Shape */
  font-size: 0.75rem;
  font-weight: 800;        /* Bolder */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 20px;
}

/* Light Theme Badge (Blue) */
.badge.blue {
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Light Theme Badge (Green) */
.badge.green {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* DARK MODE OVERRIDES (Architecture Section) */

/* 1. Generic White Badge (Fallback) */
.bg-dots .badge {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* 2. Electric Blue Badge (This fixes your issue) */
.bg-dots .badge.blue {
  background: rgba(37, 99, 235, 0.25); /* Transparent Blue */
  color: #93c5fd; /* Light Blue Text */
  border: 1px solid rgba(59, 130, 246, 0.5); /* Bright Blue Border */
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4); /* Blue Glow */
}