/* ==========================================================================
   HexiQ TECHNOLOGIES — Premium Design System
   Hexagonal Geometry · Precision Engineering · Digital Craftsmanship
   ========================================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img, picture, video, canvas { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }
ul { list-style: none; }

/* ---------- CSS VARIABLES ---------- */
:root {
  --blue: #1D63FF;
  --blue-bright: #2D78FF;
  --cyan: #00C8FF;
  --cyan-dim: rgba(0, 200, 255, 0.12);
  --green: #00D68F;
  --wa-green: #25d366;
  --red: #FF4E6A;
  --yellow: #FFB020;

  --bg: #050C1A;
  --bg2: #081224;
  --bg3: #0B1A35;
  --card: rgba(8, 18, 40, 0.9);
  --card-border: rgba(0, 200, 255, 0.09);
  --card-border-hover: rgba(0, 200, 255, 0.28);

  --text: #DCE8FF;
  --text-muted: #7A94C0;
  --text-faint: #3B5280;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
  --shadow-cyan: 0 8px 32px rgba(0,200,255,0.15);
  --shadow-blue: 0 8px 32px rgba(29,99,255,0.25);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --gradient: linear-gradient(135deg, #1D63FF, #00C8FF);
  --gradient-text: linear-gradient(135deg, #2D78FF, #00C8FF);

  --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50Z' fill='none' stroke='rgba(0,200,255,0.04)' stroke-width='1'/%3E%3Cpath d='M28 100L0 84L0 50L28 66L56 50L56 84Z' fill='none' stroke='rgba(0,200,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a2e55; border-radius: 3px; }

/* ==========================================================================
   LIGHT THEME — Complete Override & Contrast Fixes
   ========================================================================== */
[data-theme="light"] {
  --bg: #F2F5FF;
  --bg2: #E8EEFF;
  --bg3: #DDE5FF;
  --card: rgba(255,255,255,0.98);
  --card-border: rgba(29, 99, 255,0.1);
  --card-border-hover: rgba(29, 99, 255,0.28);
  --text: #0D1B3E;
  --text-muted: #3A5080;
  --text-faint: #7A94C0;
  --shadow: 0 4px 24px rgba(29,99,255,0.07);
  --shadow-lg: 0 12px 48px rgba(29,99,255,0.1);
  --shadow-cyan: 0 8px 32px rgba(29,99,255,0.1);
  --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50Z' fill='none' stroke='rgba(29,99,255,0.05)' stroke-width='1'/%3E%3Cpath d='M28 100L0 84L0 50L28 66L56 50L56 84Z' fill='none' stroke='rgba(29,99,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
}

[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #b0c0e0; }

[data-theme="light"] .navbar::before { background: rgba(242, 245, 255,0); }
[data-theme="light"] .navbar.scrolled::before {
  background: rgba(242, 245, 255,0.97);
  -webkit-backdrop-filter: blur(20px);

  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(29, 99, 255,0.1);
}
[data-theme="light"] .navbar .logo-text { color: #0D1B3E; }
[data-theme="light"] .nav-link { color: #3A5080; }
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active { color: #0D1B3E; background: rgba(29, 99, 255,0.07); }
[data-theme="light"] .hamburger span { background: #0D1B3E; }
[data-theme="light"] .nav-overlay { background: rgba(29, 99, 255,0.15); }
[data-theme="light"] .nav-links {
  background: rgba(242, 245, 255,0.99);
  border-left-color: rgba(29, 99, 255,0.1);
}

[data-theme="light"] .section-badge {
  color: var(--blue);
  background: rgba(29, 99, 255,0.07);
  border-color: rgba(29, 99, 255,0.15);
}

[data-theme="light"] .section-title,
[data-theme="light"] .hero-title,
[data-theme="light"] .mv-card h4,
[data-theme="light"] .crm-text h3,
[data-theme="light"] .chat-name,
[data-theme="light"] .wa-info h3,
[data-theme="light"] .wa-step h5,
[data-theme="light"] .academy-card h3,
[data-theme="light"] .port-body h3,
[data-theme="light"] .t-name,
[data-theme="light"] .success-inner h3,
[data-theme="light"] .form-title,
[data-theme="light"] .ws-content h3,
[data-theme="light"] .cw-name,
[data-theme="light"] .faq-q,
[data-theme="light"] .ci-val,
[data-theme="light"] .hud-console { color: #0D1B3E !important; }

[data-theme="light"] .footer-links h5 { color: #EDF2FF; }

[data-theme="light"] .section-body,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .mv-card p,
[data-theme="light"] .spec-item span,
[data-theme="light"] .wa-step p,
[data-theme="light"] .wa-info p,
[data-theme="light"] .academy-card p,
[data-theme="light"] .port-body p,
[data-theme="light"] .t-text,
[data-theme="light"] .t-role,
[data-theme="light"] .success-inner p,
[data-theme="light"] .faq-a p,
[data-theme="light"] .ws-content p { color: #3A5080 !important; }

[data-theme="light"] .hero-glow.g1 { background: rgba(29, 99, 255,0.06); }
[data-theme="light"] .hero-glow.g2 { background: rgba(0,150,255,0.05); }
[data-theme="light"] .hero-badge {
  color: var(--blue);
  background: rgba(29, 99, 255,0.07);
  border-color: rgba(29, 99, 255,0.18);
}
[data-theme="light"] .badge-dot { background: var(--blue); }
[data-theme="light"] .hero-stats { border-top-color: rgba(29, 99, 255,0.1); }
[data-theme="light"] .stat-label { color: #7A94C0; -webkit-text-fill-color: #7A94C0; }
[data-theme="light"] .stat-divider { background: rgba(29, 99, 255,0.12); }

[data-theme="light"] .about-section { background: var(--bg); }
[data-theme="light"] .mv-card {
  background: rgba(255,255,255,0.9);
  border-color: rgba(29, 99, 255,0.1);
}
[data-theme="light"] .mv-icon {
  background: rgba(29, 99, 255,0.07);
  border-color: rgba(29, 99, 255,0.12);
  color: var(--blue);
}
[data-theme="light"] .spec-item svg { stroke: var(--blue); }
[data-theme="light"] .hud-card {
  background: rgba(255,255,255,0.97);
  border-color: rgba(29, 99, 255,0.12);
  box-shadow: 0 4px 24px rgba(29, 99, 255,0.08);
}
[data-theme="light"] .hud-titlebar {
  background: rgba(29, 99, 255,0.04);
  border-bottom-color: rgba(29, 99, 255,0.08);
}
[data-theme="light"] .hud-name { color: #3A5080; }
[data-theme="light"] .hud-dots span { background: rgba(29, 99, 255,0.15); }
[data-theme="light"] .hud-stat-label { color: #7A94C0; }
[data-theme="light"] .hud-stat-val.blue { color: var(--blue); }
[data-theme="light"] .hud-stat-val.cyan { color: #0088bb; }
[data-theme="light"] .load-btn {
  background: rgba(240,244,255,0.8);
  border-color: rgba(29, 99, 255,0.12);
  color: #3A5080;
}
[data-theme="light"] .load-btn.active {
  background: rgba(29, 99, 255,0.1);
  border-color: var(--blue);
  color: var(--blue);
}
[data-theme="light"] .hud-console {
  background: rgba(240,244,255,0.6);
  border-color: rgba(29, 99, 255,0.08);
}
[data-theme="light"] .hud-log { color: #3A5080; }
[data-theme="light"] .hud-log .ok { color: #00a878; }

[data-theme="light"] .services-section { background: var(--bg2); }
[data-theme="light"] .service-card {
  background: rgba(255,255,255,0.97);
  border-color: rgba(29, 99, 255,0.1);
  box-shadow: 0 2px 16px rgba(29, 99, 255,0.05);
}
[data-theme="light"] .service-card:hover {
  border-color: rgba(29, 99, 255,0.25);
  box-shadow: 0 8px 32px rgba(29, 99, 255,0.1);
}
[data-theme="light"] .service-card h3 { color: #0D1B3E; text-align: center; }
[data-theme="light"] .service-card p { color: #3A5080; }
[data-theme="light"] .hex-icon::before { background: rgba(29, 99, 255,0.07); }
[data-theme="light"] .hex-icon.accent2::before { background: rgba(29, 99, 255,0.1); }
[data-theme="light"] .hex-icon.accent3::before { background: rgba(0,180,120,0.08); }
[data-theme="light"] .card-metric {
  background: rgba(29, 99, 255,0.05);
  border-color: rgba(29, 99, 255,0.12);
  color: #3A5080;
}
[data-theme="light"] .crm-card {
  background: rgba(255,255,255,0.97);
  border-color: rgba(29, 99, 255,0.07);
  box-shadow: 0 4px 20px rgba(29, 99, 255,0.07);
}
[data-theme="light"] .crm-text h3 { color: #0D1B3E; }
[data-theme="light"] .metric-label { color: #7A94C0; }
[data-theme="light"] .metric-big.blue { color: var(--blue); }
[data-theme="light"] .metric-big.cyan { color: #0088bb; }
[data-theme="light"] .pipeline-title { color: #7A94C0; }
[data-theme="light"] .pipe-node {
  background: rgba(255,255,255,0.95);
  border-color: rgba(29, 99, 255,0.15);
}
[data-theme="light"] .pipe-node.active {
  background: rgba(29, 99, 255,0.07);
  border-color: rgba(29, 99, 255,0.25);
}
[data-theme="light"] .node-n { color: var(--blue); }
[data-theme="light"] .node-l { color: #0D1B3E; }
[data-theme="light"] .pipe-arrow { color: rgba(29, 99, 255,0.3); }
[data-theme="light"] .pipe-console {
  background: rgba(240,244,255,0.7);
  border-color: rgba(29, 99, 255,0.08);
  color: #3A5080;
}
[data-theme="light"] .pc-line { color: #3A5080; }

[data-theme="light"] .demo-section { background: var(--bg); }
[data-theme="light"] .demo-card {
  background: rgba(255,255,255,0.97);
  border-color: rgba(29, 99, 255,0.1);
  box-shadow: 0 4px 24px rgba(29, 99, 255,0.07);
}
[data-theme="light"] .demo-tabs { border-bottom-color: rgba(29, 99, 255,0.1); }
[data-theme="light"] .demo-tab { color: #3A5080; }
[data-theme="light"] .demo-tab:hover { color: #0D1B3E; background: rgba(29, 99, 255,0.05); }
[data-theme="light"] .demo-tab.active {
  color: var(--blue);
  background: rgba(29, 99, 255,0.08);
  border-bottom-color: var(--blue);
}
[data-theme="light"] .demo-panel { background: transparent; }
[data-theme="light"] .dash-ctrl {
  background: rgba(29, 99, 255, 0.04);
  border-color: rgba(29, 99, 255, 0.1);
}
[data-theme="light"] .dash-ctrl:hover {
  border-color: rgba(29, 99, 255, 0.25);
}
[data-theme="light"] .dash-ctrl.active {
  background: rgba(29, 99, 255, 0.08);
  border-color: var(--blue);
}
[data-theme="light"] .ctrl-label {
  color: #5A709E;
}
[data-theme="light"] .ctrl-val {
  color: #0D1B3E;
}
[data-theme="light"] .chat-window {
  background: #fff;
  border-color: rgba(29, 99, 255,0.1);
}
[data-theme="light"] .chat-top {
  background: rgba(29, 99, 255,0.04);
  border-bottom-color: rgba(29, 99, 255,0.08);
}
[data-theme="light"] .chat-status { color: #7A94C0; }
[data-theme="light"] .chat-msg.bot .chat-bubble {
  background: rgba(29, 99, 255,0.07);
  border-color: rgba(29, 99, 255,0.1);
  color: #3A5080;
}
[data-theme="light"] .chat-msg.user .chat-bubble { background: var(--blue); color: #fff; }
[data-theme="light"] .chat-msg.system { color: #7A94C0; }
[data-theme="light"] .chat-input-row {
  background: rgba(242, 245, 255,0.9);
  border-top-color: rgba(29, 99, 255,0.08);
}
[data-theme="light"] .chat-input-row input {
  background: #fff;
  border-color: rgba(29, 99, 255,0.15);
  color: #0D1B3E;
}
[data-theme="light"] .chat-input-row input::placeholder { color: #7A94C0; }
[data-theme="light"] .cw-input-row input:focus { border-color: rgba(29, 99, 255,0.35); }

[data-theme="light"] .moon-icon { display: block !important; }
[data-theme="light"] .sun-icon { display: none !important; }
[data-theme="dark"] .moon-icon, .moon-icon { display: none; }
[data-theme="dark"] .sun-icon, .sun-icon { display: block; }

[data-theme="light"] .theme-toggle {
  background: rgba(29, 99, 255,0.07);
  border-color: rgba(29, 99, 255,0.18);
  color: var(--blue);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(29, 99, 255,0.13);
  border-color: rgba(29, 99, 255,0.3);
}

[data-theme="light"] .live-dot { background: #00a878; }
[data-theme="light"] .arch-uptime { color: #7A94C0; }

/* ==========================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */
.theme-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.2);
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.04);
  transition: var(--transition);
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  border-color: var(--cyan);
  background: rgba(0, 200, 255, 0.08);
  transform: scale(1.05);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.07);
  border: 1px solid rgba(0, 200, 255, 0.18);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  font-family: Arial, Helvetica, sans-serif;
}

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header .section-badge { display: inline-flex; }

.section-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: #EDF2FF;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-body.center { margin: 0 auto; text-align: center; }

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover::after { transform: translateX(100%); }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(29, 99, 255,0.4), 0 0 20px rgba(0, 200, 255,0.2);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(0, 200, 255,0.3);
  color: var(--cyan);
}

.btn-outline:hover {
  background: rgba(0, 200, 255,0.07);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,0.2);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.35);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-right { transform: translateX(28px); }
.reveal.visible { opacity: 1; transform: none; }

.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }
.stagger-5 { transition-delay: 0.30s; }
.stagger-6 { transition-delay: 0.36s; }

.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hex-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  color: var(--cyan);
  flex-shrink: 0;
}

.hex-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 200, 255, 0.08);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: background var(--transition), transform var(--transition);
}

.hex-icon::after {
  content: '';
  position: absolute;
  inset: -1px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, rgba(0, 200, 255,0.2), rgba(29, 99, 255,0.1));
  z-index: -1;
}

.hex-icon svg { position: relative; z-index: 1; width: 22px; height: 22px; }

.hex-icon.accent2 { color: var(--blue); }
.hex-icon.accent2::before { background: rgba(29, 99, 255,0.1); }

.hex-icon.accent3 { color: var(--green); }
.hex-icon.accent3::before { background: rgba(0,214,143,0.08); }

.service-card:hover .hex-icon::before {
  background: rgba(0, 200, 255, 0.16);
  transform: scale(1.08);
}

.service-card:hover .hex-icon.accent2::before { background: rgba(29, 99, 255,0.18); }
.service-card:hover .hex-icon.accent3::before { background: rgba(0,214,143,0.14); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  gap: 2rem;
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 26, 0);
  -webkit-backdrop-filter: blur(0px);

  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  z-index: -1;
}

.navbar.scrolled::before {
  background: rgba(5, 12, 26, 0.96);
  -webkit-backdrop-filter: blur(20px);

  backdrop-filter: blur(20px);
  border-bottom-color: rgba(0, 200, 255, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #EDF2FF;
  letter-spacing: -0.03em;
}

.logo-subtext {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.logo-q {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-close { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(0, 200, 255,0.06);
}

.nav-cta {
  padding: 0.6rem 1.25rem;
  background: var(--gradient);
  color: #fff;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  margin-left: 0.5rem;
  font-family: Arial, Helvetica, sans-serif;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
  padding: 8rem clamp(1rem, 4vw, 2rem) 5rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow.g1 {
  width: 100%; max-width: 480px; aspect-ratio: 1;
  background: rgba(29, 99, 255, 0.09);
  top: -80px; left: -80px;
}

.hero-glow.g2 {
  width: 100%; max-width: 360px; aspect-ratio: 1;
  background: rgba(0, 200, 255, 0.07);
  bottom: 0; right: 5%;
}

.hero-grid > * { position: relative; z-index: 1; }
.hero-content { grid-column: 1; }
.hero-visual { grid-column: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 200, 255,0.07);
  border: 1px solid rgba(0, 200, 255,0.2);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-family: Arial, Helvetica, sans-serif;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.hero-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #EDF2FF;
  margin-bottom: 1.25rem;
}

.hero-anim-1 { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-anim-2 { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-anim-3 { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.hero-anim-4 { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.hero-anim-5 { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat { text-align: center; }

.stat-num {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-sym {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  -webkit-text-fill-color: var(--text-faint);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(0, 200, 255,0.1);
}

/* ==========================================================================
   HERO VIDEO
   ========================================================================== */
.hero-video-wrap {
  position: relative;
  width: 100%;
  max-width: 780px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0, 200, 255,0.15);
  animation: arch-appear 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-video {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 650px;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 12, 26,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-video-border {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 200, 255,0.2);
  border-radius: 20px;
  pointer-events: none;
}
.video-badge-1, .video-badge-2 {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  -webkit-backdrop-filter: blur(12px);

  backdrop-filter: blur(12px);
  animation: badge-float 3s ease-in-out infinite;
}

.video-badge-1 {
  top: 16px; left: 16px;
  background: rgba(0,214,143,0.15);
  border: 1px solid rgba(0,214,143,0.3);
  color: #00D68F;
  animation-delay: 0s;
}

.video-badge-2 {
  bottom: 16px; right: 16px;
  background: rgba(0, 200, 255,0.12);
  border: 1px solid rgba(0, 200, 255,0.25);
  color: var(--cyan);
  animation-delay: 1.5s;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

[data-theme="light"] .hero-video-wrap {
  box-shadow: 0 20px 60px rgba(29, 99, 255,0.15), 0 0 0 1px rgba(29, 99, 255,0.12);
}

[data-theme="light"] .hero-video-overlay {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
}

[data-theme="light"] .hero-video-border {
  border-color: rgba(29, 99, 255,0.15);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-diagram {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 340px;
  animation: arch-appear 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes arch-appear {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.arch-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0, 200, 255,0.07) 0%, rgba(29, 99, 255,0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: arch-glow-pulse 4s ease-in-out infinite;
}

@keyframes arch-glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.arch-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.arch-line {
  stroke-dasharray: 5 4;
  animation: dash-flow 3s linear infinite;
}

@keyframes dash-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -36; }
}

.arch-pkt {
  filter: drop-shadow(0 0 4px currentColor);
}

.pk1 { animation: pkt-move-1 4s ease-in-out infinite; }
.pk2 { animation: pkt-move-2 5s ease-in-out infinite 1.2s; }
.pk3 { animation: pkt-move-3 3.5s ease-in-out infinite 2.2s; }

@keyframes pkt-move-1 {
  0%   { cx: 96; cy: 72; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { cx: 190; cy: 150; opacity: 0; }
}

@keyframes pkt-move-2 {
  0%   { cx: 284; cy: 72; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { cx: 190; cy: 150; opacity: 0; }
}

@keyframes pkt-move-3 {
  0%   { cx: 190; cy: 150; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { cx: 190; cy: 256; opacity: 0; }
}

.arch-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.core-logo {
  width: 80px; height: 80px;
  background: rgba(8, 18, 40, 0.9);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.15), inset 0 0 15px rgba(0, 200, 255, 0.1);
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.core-logo-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  animation: logo-spin 15s linear infinite;
  filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.3));
}

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.core-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 200, 255, 0.2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.ring.r-outer {
  width: 130px; height: 130px;
  border-color: rgba(0, 200, 255, 0.15);
  border-style: dashed;
  animation: rotate-cw 24s linear infinite;
}

.ring.r-middle {
  width: 105px; height: 105px;
  border-color: rgba(29, 99, 255, 0.25);
  border-style: solid;
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: rotate-ccw 12s linear infinite;
}

.ring.r-inner {
  width: 86px; height: 86px;
  border-color: rgba(0, 200, 255, 0.4);
  border-style: dotted;
  animation: rotate-cw 8s linear infinite;
}

@keyframes rotate-cw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-ccw {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.arch-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.875rem 1rem;
  background: rgba(8, 18, 40, 0.92);
  border: 1px solid rgba(0, 200, 255,0.14);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(12px);

  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: default;
  min-width: 88px;
}

.arch-node:hover {
  border-color: rgba(0, 200, 255,0.35);
  box-shadow: 0 0 20px rgba(0, 200, 255,0.1);
  transform: translateY(-2px);
}

.arch-node span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-family: Arial, Helvetica, sans-serif;
}

.an-1 { top: 40px; left: 10px; }
.an-2 { top: 40px; right: 10px; }
.an-3 { bottom: 90px; left: 10px; }
.an-4 { bottom: 90px; right: 10px; }
.an-5 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.an-5:hover { transform: translateX(-50%) translateY(-2px); }

.arch-node-primary {
  border-color: rgba(0, 200, 255,0.28);
  background: rgba(0, 200, 255,0.05);
}

.arch-node-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(0, 200, 255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  transition: var(--transition);
}

.arch-node-icon.accent { background: rgba(29, 99, 255,0.1); color: var(--blue); }
.arch-node-icon.primary { background: rgba(0, 200, 255,0.12); color: var(--cyan); primary: ; }

.arch-node:hover .arch-node-icon { background: rgba(0, 200, 255,0.15); }

.arch-node-ping {
  position: absolute;
  top: 8px; right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.arch-node-ping::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: ping-ring 2s ease-out infinite;
  opacity: 0;
}

@keyframes ping-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.an-1 .arch-node-ping::before { animation-delay: 0s; }
.an-2 .arch-node-ping::before { animation-delay: 0.5s; }
.an-3 .arch-node-ping::before { animation-delay: 1s; }
.an-4 .arch-node-ping::before { animation-delay: 1.5s; }
.an-5 .arch-node-ping::before { animation-delay: 2s; }

.arch-status {
  position: absolute;
  bottom: -36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.arch-uptime {
  color: var(--green);
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
  background: var(--bg);
  background-image: var(--hex-pattern);
}

.about-text .section-badge { display: inline-flex; }
.about-text .section-title { text-align: left; margin-bottom: 1rem; }
.about-text .section-body { text-align: left; max-width: 100%; margin-bottom: 2rem; }

.mv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }

.mv-card {
  display: flex;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: border-color var(--transition);
}

.mv-card:hover { border-color: var(--card-border-hover); }

.mv-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0, 200, 255,0.08);
  border: 1px solid rgba(0, 200, 255,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.mv-icon.accent2 { background: rgba(29, 99, 255,0.08); border-color: rgba(29, 99, 255,0.16); color: var(--blue-bright); }

.mv-card h4 { font-size: 0.9rem; font-weight: 600; color: #EDF2FF; margin-bottom: 0.35rem; font-family: Arial, Helvetica, sans-serif; }
.mv-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; }

.spec-list { display: flex; flex-direction: column; gap: 0.75rem; }

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hud-card {
  background: linear-gradient(160deg, #080F20 0%, #050C1A 100%);
  border: 1px solid rgba(0, 200, 255,0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 200, 255,0.04);
}

.hud-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(0, 200, 255,0.08);
}

.hud-dots { display: flex; gap: 5px; }
.hud-dots span { width: 10px; height: 10px; border-radius: 50%; }
.hud-dots span:nth-child(1) { background: #ef4444; }
.hud-dots span:nth-child(2) { background: #f59e0b; }
.hud-dots span:nth-child(3) { background: var(--green); }

.hud-name { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-faint); text-transform: uppercase; flex: 1; font-family: Arial, Helvetica, sans-serif; }

.hud-live { display: flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: var(--green); }

.hud-load-row {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(0, 200, 255,0.05);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.load-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-faint); text-transform: uppercase; white-space: nowrap; }

.load-btns { display: flex; gap: 0.4rem; }

.load-btn {
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
  font-family: Arial, Helvetica, sans-serif;
}

.load-btn:hover { border-color: rgba(0, 200, 255,0.25); color: var(--cyan); }
.load-btn.active { background: rgba(0, 200, 255,0.1); border-color: rgba(0, 200, 255,0.3); color: var(--cyan); }

.hud-stats { display: grid; grid-template-columns: 1fr 1fr; padding: 1.25rem; gap: 1rem; }

.hud-stat {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(0, 200, 255,0.06);
  border-radius: 10px;
  padding: 1rem;
}

.hud-stat-label { display: block; font-size: 0.63rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-faint); text-transform: uppercase; margin-bottom: 0.4rem; }

.hud-stat-val { font-family: Arial, Helvetica, sans-serif; font-size: 1.5rem; font-weight: 800; }
.hud-stat-val.blue { color: var(--blue-bright); }
.hud-stat-val.cyan { color: var(--cyan); }
.hud-stat-val.purple { color: #7C8FFF; }

.hud-graph-area { padding: 0 1.25rem; }

.hud-svg { width: 100%; height: 70px; }

.hud-console {
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,0.3);
  max-height: 120px;
  overflow-y: auto;
}

.hud-log {
  font-size: 0.68rem;
  font-family: 'Courier New', monospace;
  color: #3d5a82;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.hud-log.pulse { color: #5a7aab; animation: pulse-text 2s infinite; }

@keyframes pulse-text { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.ok { color: var(--green); font-weight: 600; }

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
  background: var(--bg2);
  background-image: var(--hex-pattern);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 200, 255, 0.08);
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .service-card-img-wrap {
  border-bottom-color: rgba(29, 99, 255, 0.12);
  background: rgba(29, 99, 255, 0.03);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-card:hover .service-card-img {
  transform: scale(1.04);
}

.service-card-body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 200, 255,0.03) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hex-pattern);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-cyan);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; }

.service-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #EDF2FF;
  margin-bottom: 0.75rem;
  text-align: center;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card-metric {
  font-size: 0.78rem;
  color: var(--text-faint);
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0, 200, 255,0.08);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.metric-val {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 0.3rem;
}

.crm-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.crm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.6;
}

.crm-text h3 { font-family: Arial, Helvetica, sans-serif; font-size: 1.3rem; font-weight: 700; color: #EDF2FF; margin-bottom: 0.75rem; margin-top: 1.25rem; }
.crm-text p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.5rem; }

.crm-metrics { display: flex; gap: 2rem; }

.metric-label { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.3rem; font-family: Arial, Helvetica, sans-serif; }
.metric-big { font-family: Arial, Helvetica, sans-serif; font-size: 1.6rem; font-weight: 800; }
.metric-big.blue { color: var(--blue-bright); }
.metric-big.cyan { color: var(--cyan); }

.pipeline-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.25rem; font-family: Arial, Helvetica, sans-serif; }

.pipeline-nodes { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

.pipe-arrow { color: var(--cyan); font-size: 0.9rem; opacity: 0.5; }

.pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.3);
  transition: var(--transition);
  gap: 0.25rem;
}

.pipe-node:hover { border-color: rgba(0, 200, 255,0.25); }

.pipe-node.active {
  border-color: rgba(0, 200, 255,0.3);
  background: rgba(0, 200, 255,0.07);
}

.node-n { font-size: 0.65rem; font-weight: 800; color: var(--cyan); font-family: Arial, Helvetica, sans-serif; }
.node-l { font-size: 0.7rem; color: var(--text-muted); }

.pipe-console {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0, 200, 255,0.08);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.68rem;
  font-family: 'Courier New', monospace;
  color: #3d5a82;
  max-height: 100px;
  overflow-y: auto;
  margin-top: 0.75rem;
}

.pc-line { margin-bottom: 0.2rem; }
.pc-line.success { color: var(--green); }
.pc-line.info { color: #60a5fa; }

/* ==========================================================================
   DEMO SECTION
   ========================================================================== */
.demo-section { background: var(--bg); }

.demo-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  gap: 0;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(0, 200, 255,0.08);
  overflow-x: auto;
}

.demo-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-faint);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.demo-tab:hover { color: var(--text-muted); }

.demo-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(0, 200, 255,0.04);
}

.demo-body { min-height: 440px; }

.demo-panel { display: none; padding: 2rem; }
.demo-panel.active { display: block; }

.chatbot-demo-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  height: 400px;
}

.demo-prompts h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
  font-family: Arial, Helvetica, sans-serif;
}

.prompt-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.875rem 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0, 200, 255,0.1);
  border-radius: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: var(--transition);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.prompt-btn:hover {
  border-color: rgba(0, 200, 255,0.28);
  color: var(--text);
  background: rgba(0, 200, 255,0.05);
}

.prompt-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.chat-window {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0, 200, 255,0.08);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 200, 255,0.08);
}

.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.css-avatar {
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(0, 200, 255, 0.25);
  font-family: Arial, Helvetica, sans-serif;
}

.chat-name { font-size: 0.875rem; font-weight: 600; color: #EDF2FF; font-family: Arial, Helvetica, sans-serif; }
.chat-status { font-size: 0.72rem; color: var(--text-faint); display: flex; align-items: center; gap: 0.35rem; margin-top: 1px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg { max-width: 80%; }

.chat-msg.system {
  max-width: 100%;
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
  font-style: italic;
}

.chat-msg.bot p, .chat-msg.bot {
  background: rgba(0, 200, 255,0.06);
  border: 1px solid rgba(0, 200, 255,0.12);
  border-radius: 4px 14px 14px 14px;
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.chat-msg.user { align-self: flex-end; }

.chat-msg.user p, .chat-msg.user {
  background: linear-gradient(135deg, rgba(29, 99, 255,0.18), rgba(0, 200, 255,0.12));
  border: 1px solid rgba(0, 200, 255,0.2);
  border-radius: 14px 4px 14px 14px;
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: #b8d4ff;
  line-height: 1.55;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: rgba(0, 200, 255,0.06);
  border: 1px solid rgba(0, 200, 255,0.12);
  border-radius: 4px 14px 14px 14px;
  width: fit-content;
}

.typing-dots span {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.2; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid rgba(0, 200, 255,0.08);
}

.chat-input-row input {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0, 200, 255,0.12);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  transition: var(--transition);
}

.chat-input-row input:focus { border-color: rgba(0, 200, 255,0.35); }
.chat-input-row input::placeholder { color: var(--text-faint); }

.chat-send {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.chat-send:hover { transform: scale(1.05); }

.dash-demo-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
}

.dash-controls { display: flex; flex-direction: column; gap: 0.5rem; }

.dash-ctrl {
  text-align: left;
  padding: 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0, 200, 255,0.08);
  border-radius: 10px;
  transition: var(--transition);
}

.dash-ctrl:hover { border-color: rgba(0, 200, 255,0.2); }

.dash-ctrl.active {
  background: rgba(0, 200, 255,0.07);
  border-color: rgba(0, 200, 255,0.28);
}

.ctrl-label { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.35rem; font-family: Arial, Helvetica, sans-serif; }

.ctrl-val { font-family: Arial, Helvetica, sans-serif; font-size: 1.3rem; font-weight: 800; color: #EDF2FF; }

.dash-chart-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0, 200, 255,0.08);
  border-radius: 14px;
  overflow: hidden;
}

.dcc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 200, 255,0.06);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-family: Arial, Helvetica, sans-serif;
}

.live-time { font-family: Arial, Helvetica, sans-serif; color: var(--cyan); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; text-transform: none; }

.dash-chart { width: 100%; padding: 0.75rem; }

.dash-footer {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  border-top: 1px solid rgba(0, 200, 255,0.06);
}

.dash-foot-item { text-align: center; }
.dfi-label { display: block; font-size: 0.63rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.2rem; font-family: Arial, Helvetica, sans-serif; }
.dfi-val { font-family: Arial, Helvetica, sans-serif; font-size: 1rem; font-weight: 700; color: #EDF2FF; }
.dfi-val.green { color: var(--green); }

.wa-demo-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.wa-info h3 { font-family: Arial, Helvetica, sans-serif; font-size: 1.2rem; font-weight: 700; color: #EDF2FF; margin-bottom: 0.75rem; }
.wa-info > p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.wa-steps { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.wa-step { display: flex; align-items: flex-start; gap: 1rem; }

.ws-num {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(0, 200, 255,0.08);
  border: 1px solid rgba(0, 200, 255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--cyan);
  flex-shrink: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.wa-step h5 { font-size: 0.875rem; font-weight: 600; color: #EDF2FF; margin-bottom: 0.25rem; font-family: Arial, Helvetica, sans-serif; }
.wa-step p { font-size: 0.8rem; color: var(--text-muted); }

.wa-phone {
  background: #ece5dd;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 400px;
  height: auto;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #075e54;
  color: #fff;
}

.wa-avatar-sm {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #128c7e;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.wa-name { font-size: 0.875rem; font-weight: 600; }
.wa-sub { font-size: 0.7rem; opacity: 0.8; }

.wa-messages {
  padding: 1rem;
  min-height: 280px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wa-msg { max-width: 80%; }

.wa-msg.bot p, .wa-msg.bot {
  background: #fff;
  border-radius: 4px 12px 12px 12px;
  padding: 0.6rem 0.875rem;
  font-size: 0.82rem;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-msg.user { align-self: flex-end; }

.wa-msg.user p {
  background: #dcf8c6;
  border-radius: 12px 4px 12px 12px;
  padding: 0.6rem 0.875rem;
  font-size: 0.82rem;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.wa-card h5 { font-size: 0.875rem; font-weight: 700; color: #075e54; margin-bottom: 0.35rem; }
.wa-card p { font-size: 0.78rem; color: #555; margin-bottom: 0.75rem; }

.wa-card-btn {
  display: block;
  width: 100%;
  padding: 0.5rem;
  background: #075e54;
  color: #fff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
}

/* ==========================================================================
   ACADEMY SECTION
   ========================================================================== */
.academy-section { background: var(--bg2); }

.academy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.academy-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.academy-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.academy-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-cyan);
}

.academy-card:hover::before { opacity: 0.7; }

.academy-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(0, 200, 255,0.08);
  border: 1px solid rgba(0, 200, 255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.academy-icon.accent2 { background: rgba(29, 99, 255,0.08); border-color: rgba(29, 99, 255,0.15); color: var(--blue-bright); }

.ac-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  font-family: Arial, Helvetica, sans-serif;
}

/* ==========================================================================
   WHY CHOOSE US (SECTION 7) LAYOUT
   ========================================================================== */
.why-statements {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.why-statement {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.why-statement:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-cyan);
}

.ws-img-wrap {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 200, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.ws-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-content {
  flex: 1;
}

.ws-content h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #EDF2FF;
  margin-bottom: 1rem;
}

.ws-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.ws-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ws-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.07);
  border: 1px solid rgba(0, 200, 255, 0.16);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
}

/* ==========================================================================
   FAQS SECTION (SECTION 8) LAYOUT
   ========================================================================== */
.faqs-container {
  max-width: 900px !important;
}

.faqs-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-group-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 200, 255, 0.1);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: #EDF2FF;
  padding: 0.5rem 0;
  transition: color var(--transition);
}

.faq-q:hover {
  color: var(--cyan);
}

.faq-ico {
  color: var(--text-faint);
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.faq-a p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0.5rem 0;
}

.faq-item.active .faq-a {
  max-height: 500px;
}

.faq-item.active .faq-ico {
  transform: rotate(45deg);
  color: var(--cyan);
}

/* ==========================================================================
   CONTACT SECTION (SECTION 9) LAYOUT
   ========================================================================== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  transition: border-color var(--transition);
}

.contact-item:hover {
  border-color: var(--card-border-hover);
}

.ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.ci-icon.green {
  color: var(--wa-green);
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.16);
}

.ci-icon svg {
  width: 20px;
  height: 20px;
}

.ci-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.ci-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #EDF2FF;
}

.social-row {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(8, 18, 40, 0.5);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.social-btn:hover {
  color: var(--cyan);
  border-color: var(--card-border-hover);
  background: rgba(8, 18, 40, 0.9);
}

.contact-form-wrap {
  width: 100%;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #EDF2FF;
  margin-bottom: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(5, 12, 26, 0.4);
  border: 1px solid rgba(0, 200, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #EDF2FF;
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  background: rgba(5, 12, 26, 0.8);
}

.form-field select option {
  background: var(--bg2);
  color: #EDF2FF;
}

/* ==========================================================================
   FOOTER LAYOUT
   ========================================================================== */
.footer {
  background: #040A17;
  border-top: 1px solid rgba(0, 200, 255, 0.05);
  padding-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  padding-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo .logo-text {
  color: #EDF2FF !important;
}

.footer-logo .logo-subtext {
  color: #7A94C0 !important;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #7A94C0 !important;
  line-height: 1.6;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links h5 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #EDF2FF !important;
}

.footer-links a {
  font-size: 0.9rem;
  color: #7A94C0 !important;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--cyan) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: #6B82B1 !important;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   CHATBOT WIDGET LAYOUT — Multi-Device & Browser Compatible
   ========================================================================== */
.chatbot-widget {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  z-index: 9999 !important;
  display: block;
}

.chatbot-fab {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: var(--gradient) !important;
  box-shadow: var(--shadow-blue) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  cursor: pointer !important;
  padding: 0 !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-fab:hover {
  transform: scale(1.05);
}

.fab-gif {
  width: 32px !important;
  height: 32px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  pointer-events: none;
  border-radius: 4px;
}

.fab-ring {
  position: absolute !important;
  inset: -4px !important;
  border: 1px solid rgba(0, 200, 255, 0.3) !important;
  border-radius: 50% !important;
  pointer-events: none;
  animation: rotate-cw 10s linear infinite;
}

.chatbot-window {
  position: absolute !important;
  bottom: 4.5rem !important;
  right: 0 !important;
  width: 360px !important;
  max-width: 360px !important;
  height: 500px !important;
  max-height: calc(100vh - 8rem) !important;
  background: var(--bg2) !important;
  border: 1px solid rgba(0, 200, 255, 0.15) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  transform-origin: bottom right !important;
}

.chatbot-window.hidden {
  transform: scale(0.85) translateY(30px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cw-header {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 200, 255, 0.08);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cw-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cw-avatar {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.cw-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #EDF2FF;
}

.cw-status {
  font-size: 0.68rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cw-close {
  color: var(--text-muted);
  padding: 4px;
}

.cw-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.cw-bubble {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 85%;
}

.cw-msg.bot .cw-bubble {
  background: rgba(0, 200, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.1);
  border-radius: 4px 12px 12px 12px;
  color: var(--text-muted);
}

.cw-msg.user {
  display: flex;
  justify-content: flex-end;
}

.cw-msg.user .cw-bubble {
  background: var(--blue);
  border-radius: 12px 4px 12px 12px;
  color: #fff;
}

.cw-input-row {
  padding: 1rem;
  border-top: 1px solid rgba(0, 200, 255, 0.08);
  display: flex;
  gap: 0.5rem;
  background: var(--bg2);
}

.cw-input-row input {
  flex: 1;
  background: rgba(5, 12, 26, 0.4);
  border: 1px solid rgba(0, 200, 255, 0.12);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: #EDF2FF;
  font-size: 16px; 
}

.cw-send {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Multi-Device Dynamic Scaling (Mobiles, Tablets, iPads) */
@media (max-width: 768px) {
  .chatbot-widget {
    bottom: 1.25rem !important;
    right: 1.25rem !important;
  }

  .chatbot-fab {
    width: 54px !important;
    height: 54px !important;
  }

  .fab-gif {
    width: 28px !important;
    height: 28px !important;
  }

  .chatbot-window {
    position: fixed !important;
    bottom: 5.5rem !important;
    right: 1.25rem !important;
    left: 1.25rem !important;
    width: auto !important;
    height: auto !important;
    max-height: calc(100vh - 7.5rem) !important;
    border-radius: 16px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .chatbot-window {
    width: 340px !important;
    height: 460px !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .chatbot-fab:hover {
    transform: none !important;
  }
}

/* ---------- MARQUEE & PORTFOLIO COMPONENTS ---------- */
.testimonials-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0 1.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.testimonials-marquee-row {
  position: relative;
  overflow: hidden;
}

.testimonials-marquee-track {
  display: flex;
  width: max-content;
}

.testimonials-marquee-group {
  display: flex;
  gap: 1.5rem; 
  padding: 0 0.625rem;
  flex-shrink: 0;
}

.testimonial-card {
  width: 100%; max-width: 380px; 
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), transform var(--transition);
}

.testimonial-card {
  width: 100%; max-width: 380px; 
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-3px);
}

.t-stars {
  font-size: 0.95rem;
  color: var(--yellow);
  letter-spacing: 0.15em;
}

.testimonial-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.t-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.t-avatar.a1 { background: var(--gradient); }
.t-avatar.a2 { background: linear-gradient(135deg, var(--green), var(--cyan)); }
.t-avatar.a3 { background: linear-gradient(135deg, #FFB020, #FF4E6A); }

.t-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #EDF2FF;
  font-family: Arial, Helvetica, sans-serif;
}

.testimonial-controls button svg {
  display: block;
}

#test-prev, #test-next {
  border-radius: 50%;
  border: 1.5px solid rgba(0, 200, 255, 0.25);
  color: var(--cyan);
  transition: var(--transition);
}

#test-prev:hover, #test-next:hover {
  border-color: var(--cyan);
  background: rgba(0, 200, 255, 0.08);
  transform: translateY(-1px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.portfolio-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-cyan);
}

.port-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.port-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .port-img img {
  transform: scale(1.06);
}

.port-tag {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(5, 12, 26, 0.85);
  border: 1px solid rgba(0, 200, 255, 0.25);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  -webkit-backdrop-filter: blur(8px);

  backdrop-filter: blur(8px);
  z-index: 2;
  font-family: Arial, Helvetica, sans-serif;
}

.port-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(5, 12, 26,0.75), rgba(29, 99, 255,0.45));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.portfolio-card:hover .port-overlay {
  opacity: 1;
}

.port-overlay svg {
  transition: transform var(--transition);
}

.portfolio-card:hover .port-overlay svg {
  transform: translateX(4px);
}

.port-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.port-body h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #EDF2FF;
  margin-bottom: 0.6rem;
}

.port-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.port-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.port-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.07);
  border: 1px solid rgba(0, 200, 255, 0.16);
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
}

[data-theme="light"] .port-tag {
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  border-color: rgba(29, 99, 255, 0.2);
}

[data-theme="light"] .port-overlay {
  background: linear-gradient(135deg, rgba(13,27,62,0.7), rgba(29, 99, 255,0.55));
}

/* ---------- SUCCESS MODAL ---------- */
.success-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background: rgba(5, 12, 26, 0.7);
  -webkit-backdrop-filter: blur(6px);

  backdrop-filter: blur(6px);
  padding: 1.5rem;
}

.success-modal.active {
  display: flex;
}

.success-inner {
  width: 100%;
  max-width: 380px;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: success-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes success-pop {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.success-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.1);
  border: 1.5px solid rgba(0, 200, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--cyan);
}

.success-inner h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #EDF2FF;
  margin-bottom: 0.75rem;
}

.success-inner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* ---------- CUSTOM VIEWPORT SCALING OVERRIDES (HEXIQ) ---------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding-top: 7rem !important;
    padding-bottom: 3.5rem !important;
    text-align: center !important;
  }
  .hero-content {
    grid-column: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    order: 0 !important;
  }
  .hero-visual {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 540px !important;
    margin: 0 auto 1.5rem !important;
    order: -1 !important;
  }
  .hero-actions {
    justify-content: center !important;
    width: 100% !important;
  }
  .hero-stats {
    justify-content: center !important;
    width: 100% !important;
  }
  .hero-badge {
    margin-inline: auto !important;
  }
  .split-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .hero-stats {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: center !important;
    text-align: center !important;
  }
  .stat-divider {
    display: none !important;
  }
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-controls {
    padding: 0 0.25rem !important;
  }

  #test-prev, #test-next {
    width: 44px !important;
    height: 44px !important;
  }

  .port-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(5, 12, 26,0.85) 0%, transparent 55%);
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
    font-size: 0.8rem;
  }

  .success-inner {
    padding: 2rem 1.5rem;
  }
}

/* ---------- 1. MOBILE NAV DRAWER ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 5.5rem 1.5rem 2rem;
    background: rgba(5, 12, 26, 0.99);
    -webkit-backdrop-filter: blur(20px);

    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 200, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-link {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .nav-cta {
    margin: 1rem 0 0 0;
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  .nav-close {
    display: none !important;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text);
  }

  .nav-overlay.open {
    display: block;
  }

  .theme-toggle {
    margin-right: 0.25rem;
  }
}

[data-theme="light"] .nav-links { background: rgba(242, 245, 255,0.99); }

/* ---------- 2. DEMO SECTION LAYOUTS ---------- */
@media (max-width: 768px) {
  .chatbot-demo-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .demo-prompts { order: 2; }
  .chat-window { order: 1; height: 420px; }

  .dash-demo-layout {
    grid-template-columns: 1fr;
  }

  .dash-controls {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.6rem;
    padding-bottom: 0.25rem;
  }

  .dash-ctrl {
    flex-shrink: 0;
    min-width: 140px;
  }

  .wa-demo-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wa-phone {
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    height: auto !important;
    min-height: 380px;
  }

  .demo-panel { padding: 1.25rem; }
  .demo-body { min-height: auto; }
  .demo-card { overflow-x: auto; }

  .demo-tab {
    padding: 0.85rem 1.1rem;
    font-size: 0.82rem;
  }
}

/* ---------- 3. CRM CARD & ACADEMY GRID ---------- */
@media (max-width: 1024px) {
  .crm-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .academy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .crm-card {
    padding: 1.5rem;
  }

  .crm-metrics {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .pipeline-nodes {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
  }

  .pipe-arrow {
    display: none !important;
  }

  .pipe-node {
    width: 100% !important;
    padding: 0.8rem 0.5rem !important;
  }

  .academy-card {
    padding: 1.75rem 1.5rem;
  }
}

/* ---------- 4. HERO DIAGRAM ---------- */
@media (max-width: 480px) {
  .arch-diagram {
    max-width: 320px;
    height: 280px;
    transform: scale(0.88);
    transform-origin: top center;
  }

  .arch-node {
    padding: 0.6rem 0.7rem;
    min-width: 70px;
  }

  .arch-node span {
    font-size: 0.6rem;
  }

  .arch-node-icon {
    width: 28px;
    height: 28px;
  }

  .arch-core {
    width: 110px;
    height: 110px;
  }

  .core-logo {
    width: 64px;
    height: 64px;
  }

  .ring.r-outer { width: 105px; height: 105px; }
  .ring.r-middle { width: 84px; height: 84px; }
  .ring.r-inner { width: 68px; height: 68px; }
}

/* ---------- 5. BADGE CENTERING ---------- */
@media (max-width: 768px) {
  .section-header .section-badge {
    margin-inline: auto;
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
    gap: 0.4rem;
    white-space: nowrap;
    letter-spacing: 0.08em;
  }

  .section-header .badge-dot {
    width: 6px;
    height: 6px;
  }

  .about-text .section-badge {
    margin-inline: auto;
    display: flex;
    justify-content: center;
    width: fit-content;
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
    gap: 0.4rem;
    white-space: nowrap;
    letter-spacing: 0.08em;
  }

  .about-text .badge-dot {
    width: 6px;
    height: 6px;
  }

  .about-text .section-title,
  .about-text .section-body {
    text-align: center;
    margin-inline: auto;
  }
}

/* ---------- 6. FORM INPUT ZOOM FIX ---------- */
@media (max-width: 768px) {
  .chat-input-row input,
  .cw-input-row input,
  .form-field input,
  .form-field select,
  .form-field textarea,
  #chat-input,
  #cw-input {
    font-size: 16px;
  }
}

/* ---------- 7. HERO VIDEO HEIGHT ---------- */
@media (max-width: 768px) {
  .hero-video {
    max-height: 320px;
  }
}

@media (max-width: 480px) {
  .hero-video {
    max-height: 260px;
  }
}

/* ---------- 8. TOUCH TARGET SAFETY NET ---------- */
@media (max-width: 768px) {
  .nav-link,
  .ci-icon {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .load-btn,
  .demo-tab,
  .dash-ctrl,
  .prompt-btn {
    min-height: 44px;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .hamburger {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .social-btn {
    width: 44px;
    height: 44px;
    justify-content: center;
  }
}

/* ---------- 9. DISABLE HOVER TRANSFORMS ---------- */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .academy-card:hover,
  .why-statement:hover,
  .contact-item:hover,
  .portfolio-card:hover,
  .testimonial-card:hover {
    transform: none;
  }

  .service-card:hover .service-card-img {
    transform: none;
  }

  .portfolio-card:hover .port-img img {
    transform: none;
  }
}

/* ---------- 10. WRAPPING & ELEMENT RESETS ---------- */
@media (max-width: 480px) {
  .pipe-node {
    padding: 0.5rem 0.6rem;
  }

  .pipe-arrow {
    font-size: 0.75rem;
  }

  .load-btns {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   TARGETED MOBILE VIEW FIXES (DO NOT AFFECT DESKTOP)
   ========================================================================== */

/* Universal Overrides to Prevent Horizontal Overflow on Mobile */
@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
  }
  
  .container, section, div, main, header, footer {
    max-width: 100vw !important;
  }
  
  *, *::before, *::after {
    box-sizing: border-box !important;
  }
  
  [style*="min-width"] {
    min-width: 0 !important;
  }

  /* Issue 1: About Page Cards Too Narrow */
  .about-grid, .mv-cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .about-card, .mv-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Issue 2: Reviews Section Cards Merging Together */
  .reviews-grid, .testimonials-marquee-group, .testimonials-marquee-track, #testimonial-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
    animation: none !important;
    transform: none !important;
  }
  .testimonials-marquee-group:last-child {
    display: none !important;
  }
  .testimonial-controls {
    display: none !important;
  }
  .review-card, .testimonial-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin-right: 0 !important;
  }

  /* Issue 3: HexiQ Showcase / Featured Services Content Hidden */
  .showcase-card, .portfolio-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
  }
  .showcase-content, .port-overlay {
    width: 100% !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1 !important;
    background: var(--card) !important;
    padding: 1.5rem !important;
  }

  /* Issue 4: Contact Section Looks Collapsed */
  .contact-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }
  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  .contact-form .input-group input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .contact-form button, .btn {
    width: 100% !important;
  }

  /* Issue 5: Footer Connect Section Cut Off */
  .footer-grid, .footer-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .footer-connect, .footer-links, .footer-brand {
    width: 100% !important;
    min-width: 0 !important;
  }
  .social-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  /* Additional Grid Collapsing Safeties */
  .services-grid, .features-grid, .stats-grid, .pricing-grid, .demo-panel-grid, .wa-steps-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}


/* ==========================================================================
   DROPDOWN & CHATBOT THEME FIXES
   ========================================================================== */

/* Navbar Dropdown styling */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 250px;
  padding: 0.5rem 0;
  z-index: 1000;
  animation: dropdown-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdown-fade-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-align: left;
}

.dropdown-menu a:hover, .dropdown-menu a.active {
  color: var(--text);
  background: rgba(29, 99, 255, 0.08);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.nav-dropdown .arrow {
  font-size: 0.7rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* Light Theme Chatbot & Dropdown Premium Overrides */
[data-theme="light"] .dropdown-menu {
  background: #FFFFFF !important;
  border: 1px solid rgba(29, 99, 255, 0.12) !important;
  box-shadow: var(--shadow-lg) !important;
}
[data-theme="light"] .dropdown-menu a {
  color: #3A5080 !important;
}
[data-theme="light"] .dropdown-menu a:hover, [data-theme="light"] .dropdown-menu a.active {
  color: #0D1B3E !important;
  background: rgba(29, 99, 255, 0.05) !important;
}

[data-theme="light"] .chatbot-window {
  background: #FFFFFF !important;
  border: 1px solid rgba(29, 99, 255, 0.15) !important;
  box-shadow: 0 10px 30px rgba(29, 99, 255, 0.08) !important;
}
[data-theme="light"] .cw-header {
  background: #F2F5FF !important;
  border-bottom: 1px solid rgba(29, 99, 255, 0.08) !important;
}
[data-theme="light"] .cw-name {
  color: #0D1B3E !important;
}
[data-theme="light"] .cw-status {
  color: #7A94C0 !important;
}
[data-theme="light"] .cw-close {
  color: #7A94C0 !important;
}
[data-theme="light"] .cw-close:hover {
  color: #0D1B3E !important;
}
[data-theme="light"] .cw-msg.bot .cw-bubble {
  background: #F2F5FF !important;
  border: 1px solid rgba(29, 99, 255, 0.08) !important;
  color: #3A5080 !important;
}
[data-theme="light"] .cw-input-row {
  background: #F2F5FF !important;
  border-top: 1px solid rgba(29, 99, 255, 0.08) !important;
}
[data-theme="light"] .cw-input-row input {
  background: #FFFFFF !important;
  color: #0D1B3E !important;
  border: 1px solid rgba(29, 99, 255, 0.15) !important;
}
[data-theme="light"] .cw-input-row input::placeholder {
  color: #7A94C0 !important;
}
[data-theme="light"] .cw-input-row input:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(29, 99, 255, 0.1) !important;
}

@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
    display: block;
  }
  
  .nav-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    border-left: 2px solid var(--cyan) !important;
    margin-left: 1rem !important;
    min-width: auto !important;
    padding-left: 0.5rem !important;
    display: none;
  }
  
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  [data-theme="light"] .dropdown-menu {
    background: rgba(29, 99, 255, 0.04) !important;
    border: none !important;
    border-left: 2px solid var(--blue) !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   LEGAL PAGES — Typography & Layout
   ========================================================================== */
.legal-section {
  padding: 120px 0 80px;
  background: var(--bg);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--text-muted);
}


.legal-content h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-content h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

.legal-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.effective-date {
  display: block;
  font-size: 0.88rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ==========================================================================
   BLOG MODAL STYLING
   ========================================================================== */
#blog-modal .success-inner {
  max-width: 800px;
  width: 90%;
  text-align: left;
  overflow-y: auto;
  max-height: 85vh;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
}

@media (max-width: 768px) {
  #blog-modal .success-inner {
    padding: 1.5rem !important;
  }
  
  #blog-modal .btn {
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

#blog-modal h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.2rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.25;
}

#blog-modal .blog-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
}

#blog-modal .blog-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

#blog-modal .blog-content h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#blog-modal .blog-content p {
  margin-bottom: 1.5rem;
}

#blog-modal .blog-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

#blog-modal .blog-content li {
  margin-bottom: 0.5rem;
}

#close-blog-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition);
}

#close-blog-modal:hover {
  color: var(--text);
}

#legal-modal .success-inner {
  max-width: 800px;
  width: 90%;
  text-align: left;
  overflow-y: auto;
  max-height: 85vh;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
}

@media (max-width: 768px) {
  #legal-modal .success-inner {
    padding: 1.5rem !important;
  }
}

#close-legal-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition);
}

#close-legal-modal:hover {
  color: var(--text);
}
