/* ==========================================================================
   GUARD IRANIAN (گارد ایرانیان) - OFFICIAL STYLESHEET
   Pure CSS3 • RTL Architecture • 3D Transforms • Security & Engineering UI
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Professional Polish Design Tokens */
  --accent: #00f2ff;
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Color Palette: Cyber Security & Deep Obsidian */
  --color-bg-base: #05070a;
  --color-bg-surface: rgba(255, 255, 255, 0.035);
  --color-bg-elevated: rgba(255, 255, 255, 0.065);
  --color-bg-glass: var(--glass);
  --color-bg-card-hover: rgba(255, 255, 255, 0.09);

  /* Primary Brand: Electric Cyan */
  --color-primary: #00f2ff;
  --color-primary-hover: #33f5ff;
  --color-primary-glow: rgba(0, 242, 255, 0.35);

  /* Secondary: Industrial Glass & Steel */
  --color-secondary: rgba(255, 255, 255, 0.05);
  --color-secondary-hover: rgba(255, 255, 255, 0.1);

  /* Accent: Cyber Security Cyan & Surveillance Pulse */
  --color-accent: #00f2ff;
  --color-accent-dim: rgba(0, 242, 255, 0.12);
  --color-accent-glow: rgba(0, 242, 255, 0.45);
  --color-accent-emerald: #00d2b4;
  --color-accent-amber: #f59e0b;

  /* Text & Readability */
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.45);
  --color-text-inverse: #05070a;

  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Borders & Separators */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-bright: rgba(0, 242, 255, 0.35);
  --color-border-subtle: rgba(255, 255, 255, 0.06);

  /* Typography */
  --font-main: 'Vazirmatn', 'Tahoma', 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Consolas', 'Fira Code', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 50px -8px rgba(0, 0, 0, 0.75);
  --shadow-accent-glow: 0 0 25px rgba(0, 242, 255, 0.3);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-Index Hierarchy */
  --z-bg: -1;
  --z-normal: 1;
  --z-header: 100;
  --z-modal: 500;
  --z-chatbot: 1000;
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
  background-color: var(--color-bg-base);
  position: relative;
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

/* Links & Buttons Reset */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

img, svg {
  vertical-align: middle;
  display: inline-block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   3. BACKGROUND VISUAL AMBIENCE (GRID & GLOWS) & THEME CLASSES
   -------------------------------------------------------------------------- */
.font-farsi {
  font-family: var(--font-main);
}

.hero-gradient {
  background: radial-gradient(circle at 70% 30%, rgba(0, 242, 255, 0.15) 0%, transparent 70%);
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.security-grid {
  background-image: 
    linear-gradient(rgba(0, 242, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.scan-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.35;
}

.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-bg);
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 242, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 30%, black 20%, transparent 80%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}

.bg-glow-1 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle at 70% 30%, rgba(0, 242, 255, 0.16) 0%, transparent 70%);
  top: -140px;
  right: -100px;
}

.bg-glow-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  top: 40%;
  left: -150px;
  opacity: 0.2;
}

.bg-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.25) 51%
  );
  background-size: 100% 4px;
  opacity: 0.35;
}

/* --------------------------------------------------------------------------
   4. LAYOUT CONTAINERS & COMMON COMPONENTS
   -------------------------------------------------------------------------- */
.section-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #00f2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.w-full {
  width: 100%;
}

/* Section Header Typography */
.section-header {
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 242, 255, 0.3);
  box-shadow: 0 0 16px rgba(0, 242, 255, 0.1);
  margin-bottom: 18px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-weight: 700;
  border: 1px solid rgba(0, 242, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 242, 255, 0.28);
  border-radius: var(--radius-pill);
}

.btn-primary:hover {
  background: #33f5ff;
  color: var(--color-text-inverse);
  box-shadow: 0 0 25px rgba(0, 242, 255, 0.5);
  transform: scale(1.03);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 242, 255, 0.35);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: var(--radius-pill);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  width: 100%;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(5, 7, 10, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(0, 242, 255, 0.25);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-symbol {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.logo-pulse {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.8); opacity: 0.3; }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-accent);
  opacity: 0.9;
}

/* Desktop Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--color-accent);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hotline-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
  direction: ltr;
}

.hotline-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 2px;
}

.menu-bar {
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: #090e1c;
  border-left: 1px solid var(--color-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  padding: 24px;
  z-index: 1001;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
}

.drawer-close-btn {
  font-size: 28px;
  color: var(--color-text-secondary);
  line-height: 1;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: auto;
}

.drawer-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-surface);
}

.drawer-link:hover {
  background: var(--color-bg-elevated);
  color: var(--color-accent);
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.drawer-phone {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  direction: ltr;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 80px 0 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 242, 255, 0.1);
  border: 1px solid rgba(0, 242, 255, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.12);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #00f2ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00f2ff;
  animation: pulse-dot 1.5s infinite;
}

.badge-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #00f2ff;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  width: 100%;
  max-width: 580px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-size: 24px;
  font-weight: 800;
  color: #00f2ff;
  line-height: 1.2;
}

.metric-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.metric-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   7. 3D SURVEILLANCE CAMERA & RADAR HUD VISUAL
   -------------------------------------------------------------------------- */
.hero-visual-wrapper {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.surveillance-3d-card {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 60% 40%, #0c1424 0%, #05070a 90%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 255, 0.12);
  transform-style: preserve-3d;
  transition: transform var(--transition-normal);
  backdrop-filter: blur(12px);
}

/* Corner HUD Brackets */
.hud-bracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--color-accent);
  border-style: solid;
  pointer-events: none;
  z-index: 10;
}
.hud-bracket-tl { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.hud-bracket-tr { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.hud-bracket-bl { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }
.hud-bracket-br { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }

/* Camera Scene */
.camera-core-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radar Scan Rings */
.radar-scan-circle {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 229, 255, 0.15);
}
.ring-1 { width: 140px; height: 140px; }
.ring-2 { width: 240px; height: 240px; }
.ring-3 { width: 330px; height: 330px; border-style: solid; border-color: rgba(0, 229, 255, 0.08); }

.radar-axis {
  position: absolute;
  background: rgba(0, 229, 255, 0.1);
}
.axis-x { width: 100%; height: 1px; }
.axis-y { height: 100%; width: 1px; }

.radar-sweep {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0, 229, 255, 0.25) 0deg, transparent 65deg, transparent 360deg);
  animation: radar-spin 6s linear infinite;
}

@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Camera Lens Graphic */
.camera-lens-graphic {
  position: relative;
  width: 240px;
  height: 240px;
  z-index: 5;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6));
}

.lens-svg {
  width: 100%;
  height: 100%;
}

.rotating-iris {
  transform-origin: center;
  animation: iris-spin 20s linear infinite;
}

@keyframes iris-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sensor-center-glow {
  filter: drop-shadow(0 0 8px #00e5ff);
  animation: sensor-pulse 2s infinite ease-in-out;
}

@keyframes sensor-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* FOV Laser Cone */
.fov-laser-cone {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 200px;
  height: 120px;
  background: linear-gradient(to left, rgba(0, 229, 255, 0.18), transparent);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  transform-origin: right center;
  animation: fov-sway 5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes fov-sway {
  0% { transform: translateY(-50%) rotate(-15deg); }
  100% { transform: translateY(-50%) rotate(15deg); }
}

/* HUD Telemetry Labels */
.hud-telemetry {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.hud-telemetry.top-left {
  top: 20px;
  right: 24px;
}

.hud-telemetry.top-right {
  top: 20px;
  left: 24px;
}

.hud-telemetry.bottom-left {
  bottom: 20px;
  right: 24px;
}

.hud-telemetry.bottom-right {
  bottom: 20px;
  left: 24px;
  text-align: left;
}

.telemetry-tag {
  color: var(--color-accent);
  font-weight: bold;
}

.telemetry-val {
  color: #e2e8f0;
}

.telemetry-val.highlight {
  color: var(--color-accent);
  font-weight: 700;
}

.telemetry-label {
  color: var(--color-text-muted);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
}

.status-pulse {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 1.2s infinite;
}

/* Target Detection Lock Box */
.target-detection-box {
  position: absolute;
  top: 40%;
  left: 30%;
  width: 110px;
  height: 50px;
  border: 1px solid rgba(0, 229, 255, 0.7);
  background: rgba(0, 229, 255, 0.05);
  z-index: 8;
  display: flex;
  align-items: flex-end;
  padding: 3px;
  animation: lock-box-pulse 3s infinite ease-in-out;
}

.target-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--color-accent);
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  border-radius: 2px;
}

@keyframes lock-box-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 1; border-color: #00e5ff; }
}

/* --------------------------------------------------------------------------
   8. TRUST SECTION
   -------------------------------------------------------------------------- */
.trust-section {
  padding: 90px 0;
  background: rgba(5, 7, 10, 0.6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.trust-card:hover {
  background: var(--color-bg-elevated);
  border-color: rgba(0, 242, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 255, 0.1);
}

.trust-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid rgba(0, 242, 255, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f2ff;
  margin-bottom: 20px;
}

.trust-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.trust-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   9. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-section {
  padding: 100px 0;
}

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

.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  transform-style: preserve-3d;
}

.service-card:hover {
  background: var(--color-bg-elevated);
  border-color: rgba(0, 242, 255, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 242, 255, 0.15);
  transform: translateY(-4px);
}

.service-number {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: rgba(0, 242, 255, 0.25);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f2ff;
  margin-bottom: 20px;
}

.service-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-desc {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #00f2ff;
  padding: 0;
  transition: gap var(--transition-fast);
}

.service-action-btn:hover {
  gap: 12px;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. PRODUCTS SECTION
   -------------------------------------------------------------------------- */
.products-section {
  padding: 90px 0;
  background: rgba(5, 7, 10, 0.6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.product-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.filter-tab {
  padding: 8px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: #ffffff;
  border-color: rgba(0, 242, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.filter-tab.active {
  background: #00f2ff;
  color: #05070a;
  font-weight: 700;
  border-color: #00f2ff;
  box-shadow: 0 4px 18px rgba(0, 242, 255, 0.35);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: rgba(0, 242, 255, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 255, 0.12);
  transform: translateY(-4px);
}

.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 242, 255, 0.15);
  border: 1px solid rgba(0, 242, 255, 0.4);
  color: #00f2ff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  z-index: 5;
  backdrop-filter: blur(8px);
}

.product-visual {
  height: 180px;
  background: radial-gradient(circle at center, rgba(0, 242, 255, 0.06) 0%, rgba(5, 7, 10, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
}

.prod-svg {
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-normal);
}

.product-card:hover .prod-svg {
  transform: scale(1.06);
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-type {
  font-size: 12px;
  font-weight: 700;
  color: #00f2ff;
  margin-bottom: 6px;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.4;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
  flex-grow: 1;
}

.product-specs li {
  font-size: 12.5px;
  color: var(--color-text-secondary);
  position: relative;
  padding-right: 14px;
}

.product-specs li::before {
  content: "•";
  color: #00f2ff;
  position: absolute;
  right: 0;
  font-size: 16px;
  line-height: 1;
}

.product-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.product-status {
  font-size: 11px;
  font-weight: 700;
}

.product-status.in-stock {
  color: var(--color-success);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   11. ENGINEERING & PLAN ANALYSIS SECTION
   -------------------------------------------------------------------------- */
.engineering-section {
  padding: 100px 0;
}

.engineering-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 48px;
}

.step-card {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  position: relative;
}

.step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #00f2ff;
  background: rgba(0, 242, 255, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 242, 255, 0.25);
  margin-bottom: 12px;
}

.step-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid rgba(0, 242, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f2ff;
  margin: 0 auto 12px auto;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-arrow {
  font-size: 20px;
  color: var(--color-text-muted);
  font-weight: bold;
}

/* Blueprint Simulator Card */
.blueprint-simulator-card {
  background: #05070a;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.simulator-header {
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.sim-tag {
  font-size: 11px;
  font-weight: 700;
  color: #00f2ff;
  letter-spacing: 0.5px;
}

.sim-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.sim-layers-control {
  display: flex;
  align-items: center;
  gap: 18px;
}

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
}

.layer-toggle input {
  display: none;
}

.toggle-box {
  width: 17px;
  height: 17px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  transition: all var(--transition-fast);
}

.layer-toggle input:checked + .toggle-box {
  background: #00f2ff;
  border-color: #00f2ff;
}

.layer-toggle input:checked + .toggle-box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05070a;
  font-size: 11px;
  font-weight: 900;
}

.blueprint-canvas-container {
  width: 100%;
  background: radial-gradient(circle at center, #0a1120 0%, #05070a 100%);
  overflow-x: auto;
}

.blueprint-svg {
  width: 100%;
  height: auto;
  min-width: 650px;
  display: block;
}

/* Upload Dropzone Section */
.blueprint-upload-section {
  padding: 26px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}

.upload-box-inner {
  border: 2px dashed rgba(0, 242, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 34px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: rgba(0, 242, 255, 0.02);
}

.upload-box-inner:hover, .upload-box-inner.dragover {
  border-color: #00f2ff;
  background: rgba(0, 242, 255, 0.06);
}

.file-input-hidden {
  display: none;
}

.upload-icon {
  color: #00f2ff;
}

.upload-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.upload-hint {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Selected Preview Bar */
.plan-selected-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid rgba(0, 242, 255, 0.35);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 12px;
  backdrop-filter: blur(12px);
}

.preview-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.thumb-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.preview-meta {
  display: flex;
  flex-direction: column;
}

.preview-filename {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  direction: ltr;
  text-align: right;
}

.preview-filesize {
  font-size: 12px;
  color: var(--color-text-secondary);
  direction: ltr;
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   12. CONTACT & CONSULTATION SECTION
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 90px 0;
  background: rgba(5, 7, 10, 0.6);
  border-top: 1px solid var(--color-border);
}

.contact-card-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-heading {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 16px;
}

.contact-lead {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ci-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 242, 255, 0.08);
  border: 1px solid rgba(0, 242, 255, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f2ff;
  flex-shrink: 0;
}

.ci-content {
  display: flex;
  flex-direction: column;
}

.ci-label {
  font-size: 12px;
  color: var(--color-text-muted);
}

.ci-val {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Consultation Form */
.engineering-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-sub {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #ffffff;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #00f2ff;
  box-shadow: 0 0 14px rgba(0, 242, 255, 0.25);
  outline: none;
}

.form-textarea {
  resize: vertical;
}

.form-feedback {
  margin-top: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid #10b981;
}

/* --------------------------------------------------------------------------
   13. PRODUCT SPECIFICATION MODAL
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-bright);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.modal-close-btn {
  font-size: 26px;
  color: var(--color-text-secondary);
  line-height: 1;
}

.modal-body {
  padding: 24px;
  line-height: 1.8;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.modal-body ul {
  margin: 14px 0;
  padding-right: 20px;
  list-style: disc;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #04070e;
  border-top: 1px solid var(--color-border);
  padding: 70px 0 30px 0;
}

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

.brand-col .brand-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.brand-col .brand-slogan {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.footer-about {
  font-size: 13.5px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cert-pill {
  font-size: 11px;
  font-weight: 600;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary);
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--color-text-secondary);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-right: 4px;
}

.footer-contact-item {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.copyright-text {
  font-size: 12.5px;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   15. FLOATING AI CHATBOT COMPONENT STYLING
   -------------------------------------------------------------------------- */
.chatbot-launcher {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: var(--z-chatbot);
}

.launcher-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #00f2ff;
  color: #05070a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 242, 255, 0.45);
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.launcher-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 242, 255, 0.65);
}

.launcher-btn svg {
  color: #05070a;
  stroke: #05070a;
}

.launcher-pulse {
  position: absolute;
  inset: -6px;
  border: 2px solid #00f2ff;
  border-radius: 50%;
  opacity: 0.6;
  animation: launcher-pulse-fx 2.5s infinite;
}

@keyframes launcher-pulse-fx {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.launcher-tooltip {
  position: absolute;
  right: 76px;
  background: rgba(5, 7, 10, 0.92);
  border: 1px solid rgba(0, 242, 255, 0.35);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  opacity: 0.95;
}

/* Chatbot Floating Window */
.chatbot-window {
  position: fixed;
  bottom: 104px;
  left: 28px;
  width: 410px;
  height: 600px;
  max-height: calc(100vh - 120px);
  background: rgba(5, 7, 10, 0.96);
  border: 1px solid rgba(0, 242, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 242, 255, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: var(--z-chatbot);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-normal);
}

.chatbot-window.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  background: rgba(0, 242, 255, 0.12);
  border: 1px solid rgba(0, 242, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #00f2ff;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--color-success);
  border: 2px solid #05070a;
  border-radius: 50%;
}

.chat-title-info {
  display: flex;
  flex-direction: column;
}

.chat-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.chat-status {
  font-size: 11px;
  color: #00f2ff;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-h-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: all var(--transition-fast);
}

.chat-h-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Page Context Bar */
.chat-context-bar {
  padding: 6px 14px;
  background: rgba(0, 242, 255, 0.1);
  border-bottom: 1px solid rgba(0, 242, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #00f2ff;
}

.context-clear-btn {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Chat Messages Scroll Container */
.chat-messages {
  flex-grow: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.chat-msg.user-msg {
  align-self: flex-start; /* RTL: right side */
}

.chat-msg.ai-msg {
  align-self: flex-end; /* RTL: left side */
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.65;
  position: relative;
  word-break: break-word;
}

.user-msg .msg-bubble {
  background: #00f2ff;
  color: #05070a;
  font-weight: 600;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 242, 255, 0.25);
}

.ai-msg .msg-bubble {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
  backdrop-filter: blur(10px);
}

.msg-author {
  font-size: 11px;
  font-weight: 700;
  color: #00f2ff;
  margin-bottom: 4px;
}

.msg-time {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 6px;
  text-align: left;
}

.user-msg .msg-time {
  color: rgba(5, 7, 10, 0.7);
  text-align: right;
}

/* Attached Image in Message */
.msg-image-wrap {
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 100%;
}

.msg-image {
  max-width: 100%;
  max-height: 160px;
  border-radius: var(--radius-sm);
  display: block;
}

/* Formatted AI Message Elements */
.msg-content ul, .msg-content ol {
  margin: 6px 0;
  padding-right: 18px;
}

.msg-content li {
  margin-bottom: 4px;
}

.msg-content strong {
  color: #ffffff;
}

.msg-content pre {
  background: #090e1c;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
  margin: 8px 0;
  direction: ltr;
  text-align: left;
}

/* Quick Prompt Suggestions */
.quick-prompts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.quick-prompt-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: right;
  transition: all var(--transition-fast);
}

.quick-prompt-chip:hover {
  background: rgba(0, 242, 255, 0.12);
  border-color: #00f2ff;
  color: #00f2ff;
}

/* Loading Dots Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  align-self: flex-end;
  width: fit-content;
  backdrop-filter: blur(8px);
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #00f2ff;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* Attachment Preview Bar */
.chat-attachment-preview {
  padding: 8px 14px;
  background: rgba(0, 242, 255, 0.04);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.attachment-thumb-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}

.attachment-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.attachment-remove-btn {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 18px;
  height: 18px;
  background: var(--color-danger);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attachment-meta {
  display: flex;
  flex-direction: column;
}

.attachment-filename {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  direction: ltr;
}

.attachment-filesize {
  font-size: 10.5px;
  color: var(--color-text-muted);
}

/* Chat Input Area */
.chat-input-area {
  padding: 14px 16px;
  background: rgba(5, 7, 10, 0.98);
  border-top: 1px solid var(--border);
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-text-field {
  flex-grow: 1;
  padding: 11px 16px;
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: #ffffff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.chat-text-field:focus {
  border-color: #00f2ff;
  box-shadow: 0 0 14px rgba(0, 242, 255, 0.2);
  outline: none;
}

.chat-input-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-attach {
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.btn-attach:hover {
  color: #00f2ff;
  border-color: #00f2ff;
}

.btn-send {
  background: #00f2ff;
  color: #05070a;
  box-shadow: 0 2px 10px rgba(0, 242, 255, 0.35);
}

.btn-send:hover:not(:disabled) {
  background: #33f5ff;
  box-shadow: 0 0 16px rgba(0, 242, 255, 0.55);
}

.btn-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-metrics {
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-drawer {
    display: flex;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .engineering-steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Chatbot Mobile Fullscreen */
  .chatbot-window {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    bottom: 0;
    left: 0;
    border-radius: 0;
    border: none;
  }

  .chatbot-launcher {
    bottom: 20px;
    left: 20px;
  }

  .launcher-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 12px;
  }

  .metric-divider {
    display: none;
  }

  .contact-card-wrapper {
    padding: 24px;
  }

  .engineering-form {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
