/* ===== Muwakil — Design System ===== */

/* ---------- CSS Variables — Light (Default) ---------- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f9fc;
  --bg-tertiary: #eef2f7;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent-primary: #15E5FF;
  --accent-secondary: #CD2EC8;
  --accent-third: #FA5E21;
  --accent-hover: #0cc8e0;
  --accent-secondary-hover: #b025b0;
  --accent-primary-light: rgba(21, 229, 255, 0.08);
  --accent-secondary-light: rgba(205, 46, 200, 0.08);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-glass: rgba(255, 255, 255, 0.3);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 50px -10px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px -8px rgba(21, 229, 255, 0.25);
  --shadow-glow-secondary: 0 0 40px -8px rgba(205, 46, 200, 0.25);
  --gradient-primary: linear-gradient(135deg, #15E5FF 0%, #CD2EC8 100%);
  --gradient-secondary: linear-gradient(135deg, #CD2EC8 0%, #15E5FF 100%);
  --gradient-hero: linear-gradient(160deg, #0a0e1a 0%, #0e1726 30%, #1a0a2e 60%, #0a0e1a 100%);
  --gradient-mesh: radial-gradient(at 20% 80%, rgba(21, 229, 255, 0.12) 0%, transparent 50%), radial-gradient(at 80% 20%, rgba(205, 46, 200, 0.12) 0%, transparent 50%), radial-gradient(at 50% 50%, rgba(21, 229, 255, 0.04) 0%, transparent 70%);
  --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --noise: url(data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E);

  /* Backward-compatible aliases used throughout CSS */
  --cyan: #15E5FF;
  --purple: #CD2EC8;
  --black: #000000;
  --white: #FFFFFF;
  --primary: #15E5FF;
  --primary-rgb: 21, 229, 255;
  --secondary: #CD2EC8;
  --secondary-rgb: 205, 46, 200;
  --bg-input: #eef2f7;
  --bg-card-hover: #eef2f7;
  --navbar-bg: rgba(255, 255, 255, 0.75);
  --text-muted: #94a3b8;
  --border-light: rgba(15, 23, 42, 0.04);
  --gradient-brand: linear-gradient(135deg, #15E5FF 0%, #CD2EC8 100%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---------- Dark Mode Override ---------- */
[data-theme="dark"] {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-card: #1e293b;
  --bg-glass: rgba(10, 14, 26, 0.80);
  --text-primary: #f0f0f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent-primary-light: rgba(21, 229, 255, 0.12);
  --accent-secondary-light: rgba(205, 46, 200, 0.12);
  --border-color: rgba(21, 229, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.06);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 4px 10px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px -8px rgba(21, 229, 255, 0.2);
  --shadow-glow-secondary: 0 0 40px -8px rgba(205, 46, 200, 0.2);
  --gradient-subtle: linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
  --gradient-mesh: radial-gradient(at 20% 80%, rgba(21, 229, 255, 0.15) 0%, transparent 50%), radial-gradient(at 80% 20%, rgba(205, 46, 200, 0.15) 0%, transparent 50%), radial-gradient(at 50% 50%, rgba(21, 229, 255, 0.06) 0%, transparent 70%);

  --bg-input: #1e293b;
  --bg-card-hover: #334155;
  --navbar-bg: rgba(10, 14, 26, 0.85);
  --text-muted: #64748b;
  --border-light: rgba(255, 255, 255, 0.06);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --gradient-brand: linear-gradient(135deg, #15E5FF 0%, #CD2EC8 100%);
}

/* ---------- System Loader ---------- */
.site-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
.site-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary, #15E5FF);
  animation: loaderSpin .7s linear infinite;
}
.loader-brand {
  margin-top: 1rem; font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em;
  background: var(--gradient-primary, linear-gradient(135deg, #15E5FF, #CD2EC8));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

[dir="rtl"] body { direction: rtl; text-align: right; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-header p { font-size: 1.1rem; margin-top: .75rem; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem; border-radius: 50px;
  background: var(--gradient-subtle);
  border: 1px solid var(--border-color);
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary);
}
.badge i { font-size: .7rem; }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: 50px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none; transition: var(--transition); white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand); color: #fff;
  box-shadow: 0 4px 20px rgba(21, 229, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(21, 229, 255, 0.35); }

.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: rgba(21, 229, 255, .05); }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 1px solid rgba(21, 229, 255, .3);
}
.btn-outline:hover { background: rgba(21, 229, 255, .08); border-color: var(--primary); }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.25rem; font-size: .85rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 1.25rem 0; transition: padding .4s ease, background .4s ease;
}

/* Floating pill on scroll */
.navbar.scrolled {
  padding: .5rem 1rem;
}
.navbar.scrolled > .container {
  background: var(--navbar-bg);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-radius: 60px; padding: .35rem .5rem .35rem 1.25rem;
  border: 1px solid rgba(21,229,255,.06);
  box-shadow:
    0 8px 32px rgba(0,0,0,.25),
    0 0 0 1px rgba(21,229,255,.04),
    inset 0 1px 0 rgba(255,255,255,.03);
  max-width: 1100px;
}
[data-theme="light"] .navbar.scrolled > .container {
  box-shadow: 0 8px 32px rgba(26,26,46,.08), 0 0 0 1px rgba(21,229,255,.06);
  border-color: rgba(21,229,255,.08);
}

.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  border-radius: 60px; border: 1px solid transparent;
}

/* ---- Logo ---- */
.nav-logo { display: flex; align-items: center; z-index: 1001; text-decoration: none; }
.nav-logo-img { height: 38px; width: auto; transition: var(--transition); }
.nav-logo:hover .nav-logo-img { transform: scale(1.04); }

/* ---- Nav Links ---- */
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links > li > a {
  font-weight: 500; font-size: .82rem; position: relative;
  padding: .4rem .7rem; border-radius: 8px;
  color: var(--text-tertiary); transition: var(--transition);
}
.nav-links > li > a:hover { color: var(--text-primary); background: rgba(21,229,255,.04); }
.nav-links > li > a.active {
  color: var(--primary);
  background: rgba(21,229,255,.06);
}

/* Active glow dot under link */
.nav-links > li > a.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(21,229,255,.3);
  animation: navDotPulse 2s ease-in-out infinite;
}
@keyframes navDotPulse { 0%,100% { opacity: 1; transform: translateX(-50%) scale(1); } 50% { opacity: .5; transform: translateX(-50%) scale(.7); } }

[dir="rtl"] .nav-links > li > a.active::after { left: 50%; right: auto; }

/* ---- Dropdown ---- */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { display: none; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: .35rem; }
.nav-dropdown-toggle i { font-size: .55rem; transition: var(--transition); opacity: .5; }
.nav-dropdown:hover .nav-dropdown-toggle i { transform: rotate(180deg); opacity: 1; color: var(--primary); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: var(--bg-card);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(21,229,255,.08); border-radius: 16px;
  padding: .5rem; opacity: 0; visibility: hidden;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 16px 48px rgba(0,0,0,.3), 0 0 0 1px rgba(21,229,255,.04);
  z-index: 100;
}
[dir="rtl"] .nav-dropdown-menu { left: 50%; right: auto; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Dropdown arrow */
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: var(--bg-card); border-top: 1px solid rgba(21,229,255,.08);
  border-left: 1px solid rgba(21,229,255,.08);
}

.nav-dropdown-menu a {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .875rem; font-size: .82rem; color: var(--text-secondary);
  border-radius: 10px; transition: var(--transition);
}
.nav-dropdown-menu a:hover {
  color: var(--primary); background: rgba(21,229,255,.05);
  transform: translateX(3px);
}
[dir="rtl"] .nav-dropdown-menu a:hover { transform: translateX(-3px); }
.nav-dropdown-menu a i {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: .75rem; background: rgba(21,229,255,.06); color: var(--primary);
  transition: var(--transition); flex-shrink: 0;
}
.nav-dropdown-menu a:hover i {
  background: var(--gradient-brand); color: #fff;
}

/* ---- CTA / Actions ---- */
.nav-cta { display: flex; align-items: center; gap: .5rem; }
.nav-cta .btn {
  padding: 0 1.25rem; font-size: .78rem; height: 34px; border-radius: 50px;
  position: relative; overflow: hidden;
}
.nav-cta .btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .5s;
}
.nav-cta .btn-primary:hover::before { left: 100%; }

.theme-toggle, .lang-toggle {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .82rem; transition: var(--transition);
  background: rgba(21,229,255,.04); border: 1px solid rgba(21,229,255,.08);
  color: var(--text-tertiary);
}
.theme-toggle:hover, .lang-toggle:hover {
  background: rgba(21,229,255,.1); color: var(--primary);
  border-color: rgba(21,229,255,.2);
  box-shadow: 0 0 12px rgba(21,229,255,.08);
}
.theme-toggle:active, .lang-toggle:active { transform: scale(.92); }

.lang-toggle {
  width: auto; padding: 0 .625rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .5px; gap: .25rem;
}

/* ---- Mobile Toggle ---- */
.nav-toggle {
  display: none; width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  cursor: pointer; z-index: 1001; padding: 0;
  background: rgba(21,229,255,.04); border: 1px solid rgba(21,229,255,.08);
  border-radius: 10px; transition: var(--transition);
}
.nav-toggle:hover { border-color: rgba(21,229,255,.2); }
.nav-toggle span {
  width: 18px; height: 2px; border-radius: 2px;
  background: var(--text-primary); transition: all .35s cubic-bezier(.68,-.55,.27,1.55);
}
.nav-toggle.active { background: rgba(21,229,255,.08); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); width: 20px; background: var(--primary); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); width: 20px; background: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--bg-primary); overflow: hidden; padding-top: 80px;
}

/* Animated mesh gradient background */
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background:
    conic-gradient(from 0deg at 30% 40%, rgba(21,229,255,.12), transparent 120deg),
    conic-gradient(from 180deg at 70% 60%, rgba(205,46,200,.1), transparent 120deg),
    conic-gradient(from 90deg at 50% 80%, rgba(205,46,200,.08), transparent 120deg);
  animation: heroMesh 20s linear infinite;
  pointer-events: none;
}

/* Grid overlay */
.hero::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(21,229,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,229,255,.03) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black 20%, transparent 100%);
}

.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-content { animation: fadeInUp .8s ease-out; }

/* Animated pill badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 50px;
  background: rgba(21,229,255,.06);
  border: 1px solid rgba(21,229,255,.12);
  color: var(--primary); font-size: .65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.5rem;
  position: relative; overflow: hidden;
}
.hero-badge::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(21,229,255,.1), transparent);
  animation: badgeShine 3s ease-in-out infinite;
}
.hero-badge i { font-size: .65rem; }
.hero-badge .badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  animation: pulseDot 2s ease-in-out infinite; flex-shrink: 0;
}

.hero h1 {
  margin-bottom: 1.25rem; letter-spacing: -.03em; line-height: 1.1;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
}
.hero h1 .line-2 { display: block; margin-top: .15em; }
.hero h1 .highlight {
  position: relative; display: inline-block;
  background: var(--gradient-brand); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200% 200%; animation: gradientShift 4s ease-in-out infinite;
}
.hero h1 .highlight::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 6px;
  background: var(--gradient-brand); border-radius: 3px; opacity: .35;
  filter: blur(4px);
}

/* Typing cursor on subtitle */
.hero-subtitle {
  font-size: .92rem; margin-bottom: 2rem; max-width: 520px; line-height: 1.75;
  color: var(--text-secondary);
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.hero-btns .btn { font-size: .82rem; padding: .75rem 1.6rem; position: relative; }
.hero-btns .btn-primary { overflow: hidden; }
.hero-btns .btn-primary::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); transform: translate(-50%,-50%);
  transition: width .5s, height .5s;
}
.hero-btns .btn-primary:hover::after { width: 300px; height: 300px; }

/* Stats with glow cards */
.hero-stats { display: flex; gap: 1.25rem; }
.hero-stat {
  text-align: center; position: relative;
  background: rgba(21,229,255,.03); border: 1px solid rgba(21,229,255,.06);
  border-radius: var(--radius); padding: .75rem 1.25rem;
  transition: var(--transition);
}
.hero-stat:hover {
  border-color: rgba(21,229,255,.15);
  box-shadow: 0 0 20px rgba(21,229,255,.06);
}

.hero-stat .number {
  display: block; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800;
  background: var(--gradient-brand); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.2;
}
.hero-stat .label {
  font-size: .68rem; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: .5px; margin-top: .15rem;
}

/* Hero Visual — Floating Terminal + Orbs */
.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  animation: fadeInRight 1s ease-out;
}
.hero-graphic { position: relative; width: 100%; max-width: 500px; }

/* Glowing ring */
.hero-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(21,229,255,.08);
  box-shadow:
    0 0 60px rgba(21,229,255,.05),
    inset 0 0 60px rgba(21,229,255,.03);
  animation: ringRotate 30s linear infinite;
}
.hero-ring::before, .hero-ring::after {
  content: ''; position: absolute; border-radius: 50%;
}
.hero-ring::before {
  width: 10px; height: 10px; background: var(--cyan);
  top: -5px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 12px var(--cyan), 0 0 30px var(--cyan);
}
.hero-ring::after {
  width: 8px; height: 8px; background: var(--purple);
  bottom: 20px; right: 20px;
  box-shadow: 0 0 10px var(--purple), 0 0 25px var(--purple);
}

/* Code terminal */
.hero-terminal {
  position: relative; z-index: 2;
  background: rgba(10,10,26,.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(21,229,255,.1); border-radius: 16px;
  overflow: hidden; width: 100%; max-width: 420px; margin: 0 auto;
  box-shadow:
    0 20px 60px rgba(0,0,0,.4),
    0 0 40px rgba(21,229,255,.05);
}
[data-theme="light"] .hero-terminal {
  background: rgba(255,255,255,.9); border-color: rgba(21,229,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.1), 0 0 40px rgba(21,229,255,.04);
}

.terminal-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1rem; border-bottom: 1px solid rgba(21,229,255,.06);
  background: rgba(21,229,255,.02);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #FF5F57; }
.terminal-dots span:nth-child(2) { background: #FFBD2E; }
.terminal-dots span:nth-child(3) { background: #28CA42; }
.terminal-title {
  flex: 1; text-align: center; font-size: .7rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: .5px;
}

.terminal-body {
  padding: 1.25rem 1.25rem 1.5rem; font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .78rem; line-height: 1.85;
}
.terminal-line { display: flex; gap: .5rem; margin-bottom: .25rem; }
.terminal-prompt { color: var(--cyan); font-weight: 600; white-space: nowrap; user-select: none; }
.terminal-cmd { color: var(--text-primary); }
.terminal-comment { color: var(--text-muted); font-style: italic; }
.terminal-output { color: var(--purple); }
.terminal-success { color: #28CA42; }
.terminal-accent { color: var(--purple); }
.terminal-cursor {
  display: inline-block; width: 8px; height: 15px; background: var(--cyan);
  animation: cursorBlink 1s step-end infinite; vertical-align: text-bottom;
  margin-left: 2px;
}

/* Floating service pills around the terminal */
.hero-pill {
  position: absolute; z-index: 3;
  background: rgba(17,17,40,.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(21,229,255,.1); border-radius: 50px;
  padding: .5rem 1rem; display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 500; color: var(--text-secondary);
  animation: pillFloat 6s ease-in-out infinite;
  white-space: nowrap;
}
[data-theme="light"] .hero-pill { background: rgba(255,255,255,.85); border-color: rgba(21,229,255,.12); }
.hero-pill i { font-size: .7rem; }
.hero-pill-1 { top: 5%; right: -5%; animation-delay: 0s; }
.hero-pill-1 i { color: var(--cyan); }
.hero-pill-2 { bottom: 25%; left: -10%; animation-delay: -2s; }
.hero-pill-2 i { color: var(--purple); }
.hero-pill-3 { bottom: 0; right: 5%; animation-delay: -4s; }
.hero-pill-3 i { color: var(--purple); }

/* Orbs behind terminal */
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite; z-index: 0;
}
.hero-orb-1 { width: 300px; height: 300px; background: rgba(21,229,255,.12); top: 5%; left: 0; }
.hero-orb-2 { width: 220px; height: 220px; background: rgba(205,46,200,.1); bottom: 10%; right: -5%; animation-delay: -4s; }
.hero-orb-3 { width: 160px; height: 160px; background: rgba(205,46,200,.08); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -2s; }

/* Particles */
.hero-particles { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.particle { position: absolute; border-radius: 50%; opacity: 0; animation: particleDrift linear infinite; }
.particle-1 { width: 3px; height: 3px; background: var(--cyan); top: 15%; left: 8%; animation-duration: 14s; }
.particle-2 { width: 2px; height: 2px; background: var(--purple); top: 55%; left: 78%; animation-duration: 18s; animation-delay: -4s; }
.particle-3 { width: 4px; height: 4px; background: var(--purple); top: 75%; left: 20%; animation-duration: 20s; animation-delay: -7s; }
.particle-4 { width: 2px; height: 2px; background: var(--cyan); top: 30%; left: 90%; animation-duration: 16s; animation-delay: -2s; }
.particle-5 { width: 3px; height: 3px; background: var(--purple); top: 65%; left: 45%; animation-duration: 22s; animation-delay: -10s; }
.particle-6 { width: 2px; height: 2px; background: var(--purple); top: 10%; left: 55%; animation-duration: 17s; animation-delay: -5s; }
.particle-7 { width: 3px; height: 3px; background: var(--cyan); top: 85%; left: 65%; animation-duration: 19s; animation-delay: -8s; }

/* Hero-specific keyframes */
@keyframes heroMesh { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes badgeShine { 0%,70%,100% { left: -100%; } 50% { left: 100%; } }
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes ringRotate { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pillFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Service Cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.service-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 2rem; transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-brand); opacity: 0; transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(21,229,255,.15); box-shadow: var(--shadow-glow); }
.service-card:hover::before { opacity: 1; }

.service-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.25rem;
  background: rgba(21, 229, 255, .08); color: var(--primary);
}

.service-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.service-card p { font-size: .9rem; margin-bottom: 1rem; }
.service-card .card-link { font-size: .85rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .35rem; }
.service-card .card-link:hover { gap: .625rem; }

/* ---------- Product Showcase ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 2rem; }

.product-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl);
  padding: 2.5rem; position: relative; overflow: hidden; transition: var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.product-card .product-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.5rem;
}
.product-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.product-card .product-tagline { font-size: .9rem; color: var(--text-tertiary); margin-bottom: 1.25rem; }
.product-card .features-list { margin-bottom: 1.5rem; }
.product-card .features-list li {
  display: flex; align-items: center; gap: .5rem; padding: .35rem 0;
  font-size: .9rem; color: var(--text-secondary);
}
.product-card .features-list li i { color: var(--primary); font-size: .7rem; }

/* ---------- Why Choose ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
  padding: 1.75rem; text-align: center; transition: var(--transition);
}
.feature-card:hover { border-color: rgba(21,229,255,.15); transform: translateY(-3px); }
.feature-card-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  background: rgba(21,229,255,.08); color: var(--primary);
}
.feature-card h4 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature-card p { font-size: .85rem; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 2rem; transition: var(--transition);
}
.testimonial-card:hover { border-color: rgba(21,229,255,.12); }
.testimonial-card .quote { font-size: .95rem; font-style: italic; margin-bottom: 1.25rem; line-height: 1.7; color: var(--text-secondary); }
.testimonial-card .author { display: flex; align-items: center; gap: .75rem; }
.testimonial-card .author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; color: #fff;
}
.testimonial-card .author-name { font-weight: 600; font-size: .9rem; }
.testimonial-card .author-role { font-size: .78rem; color: var(--text-tertiary); }
.testimonial-card .stars { color: #F8B334; font-size: .8rem; margin-bottom: .75rem; }

/* ---------- Portfolio ---------- */
.portfolio-filters { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: .45rem 1.25rem; border-radius: 50px; border: 1px solid var(--border-color);
  background: transparent; color: var(--text-secondary); font-size: .82rem; font-weight: 500;
  cursor: pointer; transition: var(--transition); font-family: var(--font-body);
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.portfolio-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.portfolio-card-img {
  height: 200px; background: var(--gradient-subtle);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--text-muted);
}
.portfolio-card-body { padding: 1.5rem; }
.portfolio-card-body .card-tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: .5rem; }
.portfolio-card-body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.portfolio-card-body p { font-size: .85rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
}
.blog-card:hover { transform: translateY(-3px); border-color: rgba(21,229,255,.12); }
.blog-card-img {
  height: 180px; background: var(--gradient-subtle);
  display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-muted);
}
.blog-card-body { padding: 1.5rem; }
.blog-card-body .card-tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--secondary); margin-bottom: .5rem; }
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.blog-card-body p { font-size: .85rem; margin-bottom: .75rem; }
.blog-card-body .card-meta { font-size: .75rem; color: var(--text-muted); }

/* ---------- Pricing ---------- */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.pricing-toggle span { font-size: .9rem; font-weight: 500; color: var(--text-tertiary); cursor: pointer; transition: var(--transition); }
.pricing-toggle span.active { color: var(--primary); }
.toggle-switch {
  width: 50px; height: 28px; border-radius: 50px; background: var(--bg-card); border: 1px solid var(--border-color);
  position: relative; cursor: pointer; transition: var(--transition);
}
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--primary); transition: var(--transition);
}
.toggle-switch.active::after { left: calc(100% - 23px); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl);
  padding: 2.5rem 2rem; text-align: center; transition: var(--transition); position: relative;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.pricing-card.featured .popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: .3rem 1rem; border-radius: 50px; background: var(--gradient-brand);
  font-size: .7rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px;
}
.pricing-card .plan-name { font-size: 1rem; font-weight: 600; color: var(--text-tertiary); margin-bottom: .5rem; }
.pricing-card .price { font-size: 2.75rem; font-weight: 800; font-family: var(--font-heading); margin-bottom: .25rem; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-tertiary); }
.pricing-card .price-desc { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-card .features-list { text-align: left; margin-bottom: 2rem; }
[dir="rtl"] .pricing-card .features-list { text-align: right; }
.pricing-card .features-list li {
  display: flex; align-items: center; gap: .5rem; padding: .4rem 0; font-size: .88rem; color: var(--text-secondary);
}
.pricing-card .features-list li i { color: var(--primary); font-size: .7rem; width: 16px; text-align: center; }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
  margin-bottom: .75rem; overflow: hidden;
}
.faq-question {
  padding: 1.25rem 1.5rem; font-weight: 600; font-size: .95rem;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; color: var(--text-primary); transition: var(--transition); width: 100%;
  background: none; border: none; text-align: left; font-family: var(--font-body);
}
[dir="rtl"] .faq-question { text-align: right; }
.faq-question i { transition: var(--transition); color: var(--primary); font-size: .8rem; flex-shrink: 0; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.active .faq-answer { padding: 0 1.5rem 1.25rem; max-height: 300px; }
.faq-answer p { font-size: .9rem; line-height: 1.7; }

/* ---------- CTA Section ---------- */
.cta-section {
  padding: 5rem 0; text-align: center;
  background: var(--gradient-subtle); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.cta-section h2 { margin-bottom: .75rem; }
.cta-section p { max-width: 560px; margin: 0 auto 2rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Page Hero (Inner Pages) ---------- */
.page-hero {
  padding: 10rem 0 4rem; text-align: center;
  background: var(--bg-primary); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(21,229,255,.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(205,46,200,.05) 0%, transparent 45%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

.breadcrumb { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 1rem; font-size: .85rem; }
.breadcrumb a { color: var(--text-tertiary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--primary); }

/* ---------- Contact Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }

.contact-info-card, .contact-form-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 2.5rem;
}

.contact-info-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(21,229,255,.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.contact-info-item h4 { font-size: .9rem; margin-bottom: .15rem; }
.contact-info-item p, .contact-info-item a { font-size: .85rem; color: var(--text-secondary); }
.contact-info-item a:hover { color: var(--primary); }

.contact-social { display: flex; gap: .625rem; margin-top: 1.5rem; }
.contact-social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(21,229,255,.06); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: .9rem; transition: var(--transition);
}
.contact-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--border-color); background: var(--bg-input);
  color: var(--text-primary); font-family: var(--font-body); font-size: .9rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,229,255,.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { cursor: pointer; }

/* ---------- Team Grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.team-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2rem; text-align: center; transition: var(--transition); }
.team-card:hover { transform: translateY(-3px); border-color: rgba(21,229,255,.12); }
.team-card-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
}
.team-card h4 { font-size: 1rem; margin-bottom: .2rem; }
.team-card .role { font-size: .82rem; color: var(--primary); margin-bottom: .5rem; }
.team-card p { font-size: .82rem; }

/* ---------- Careers ---------- */
.job-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
  padding: 1.75rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; transition: var(--transition); margin-bottom: 1rem;
}
.job-card:hover { border-color: rgba(21,229,255,.15); }
.job-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.job-card .job-meta { font-size: .82rem; color: var(--text-tertiary); display: flex; gap: 1rem; flex-wrap: wrap; }
.job-card .job-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.job-card .job-meta i { color: var(--primary); font-size: .7rem; }

/* ---------- Process Steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: step; }
.process-step {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
  padding: 1.75rem; text-align: center; position: relative; transition: var(--transition);
}
.process-step:hover { border-color: rgba(21,229,255,.15); }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800;
  background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: .75rem; line-height: 1;
}
.process-step h4 { font-size: .95rem; margin-bottom: .35rem; }
.process-step p { font-size: .82rem; }

/* ---------- Tech Stack Tags ---------- */
.tech-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.tech-tag {
  padding: .35rem .875rem; border-radius: 50px; font-size: .78rem; font-weight: 500;
  background: rgba(21,229,255,.06); border: 1px solid var(--border-color);
  color: var(--text-secondary); transition: var(--transition);
}
.tech-tag:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-secondary); padding: 4rem 0 1.5rem; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-tertiary); font-size: .9rem; margin: .75rem 0 1.25rem; max-width: 320px; }
.footer-brand .nav-logo { margin-bottom: .25rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(21,229,255,.06); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: .85rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.footer-col h4 { font-size: .9rem; margin-bottom: 1rem; color: var(--text-primary); }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .85rem; color: var(--text-tertiary); display: flex; align-items: center; gap: .5rem; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-col ul li a i { font-size: .6rem; color: var(--primary); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; border-top: 1px solid var(--border-color);
}
.footer-bottom p { font-size: .82rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: .82rem; color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed; bottom: 2rem; left: 2rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1rem; z-index: 998;
  opacity: 0; visibility: hidden; transition: var(--transition); box-shadow: var(--shadow);
}
[dir="rtl"] .back-to-top { left: auto; right: 2rem; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ---------- Keyframes ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes orbFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-20px) scale(1.05); } }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes particleDrift {
  0% { opacity: 0; transform: translateY(0) translateX(0) scale(0); }
  10% { opacity: .6; transform: scale(1); }
  90% { opacity: .4; }
  100% { opacity: 0; transform: translateY(-120px) translateX(40px) scale(.5); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }

  /* Full-screen mobile menu */
  .nav-links.active {
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; width: 100%; height: 100dvh;
    background: var(--bg-primary);
    background-image:
      radial-gradient(circle at 20% 30%, rgba(21,229,255,.06), transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(205,46,200,.05), transparent 50%);
    justify-content: center; align-items: center;
    gap: .5rem; z-index: 1000; padding: 2rem;
    animation: mobileMenuIn .35s ease-out;
  }
  @keyframes mobileMenuIn {
    from { opacity: 0; clip-path: circle(0% at calc(100% - 2.5rem) 2rem); }
    to { opacity: 1; clip-path: circle(150% at calc(100% - 2.5rem) 2rem); }
  }
  .nav-links.active > li { animation: mobileItemIn .4s ease-out both; }
  .nav-links.active > li:nth-child(1) { animation-delay: .05s; }
  .nav-links.active > li:nth-child(2) { animation-delay: .1s; }
  .nav-links.active > li:nth-child(3) { animation-delay: .15s; }
  .nav-links.active > li:nth-child(4) { animation-delay: .2s; }
  .nav-links.active > li:nth-child(5) { animation-delay: .25s; }
  .nav-links.active > li:nth-child(6) { animation-delay: .3s; }
  .nav-links.active > li:nth-child(7) { animation-delay: .35s; }
  .nav-links.active > li:nth-child(8) { animation-delay: .4s; }
  @keyframes mobileItemIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

  .nav-links.active > li > a {
    font-size: 1.3rem !important; font-weight: 600 !important;
    color: var(--text-primary) !important;
    padding: .6rem 1.25rem !important; border-radius: 12px !important;
  }
  .nav-links.active > li > a:hover,
  .nav-links.active > li > a.active {
    background: rgba(21,229,255,.06) !important;
    color: var(--primary) !important;
  }
  .nav-links.active > li > a.active::after { bottom: 50%; transform: translate(-50%,-50%); left: .5rem; }
  [dir="rtl"] .nav-links.active > li > a.active::after { left: auto; right: .5rem; }

  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none; padding: 0 0 0 1rem; min-width: 0;
  }
  [dir="rtl"] .nav-dropdown-menu { padding: 0 1rem 0 0; }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu a {
    justify-content: flex-start; padding: .45rem .75rem;
    font-size: .95rem !important;
  }
  .nav-dropdown-menu a i { width: 28px; height: 28px; border-radius: 7px; font-size: .7rem; }
  .services-grid, .features-grid, .testimonials-grid, .blog-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero { padding: 8rem 0 3rem; }
  .cta-btns { flex-direction: column; align-items: center; }
  .job-card { flex-direction: column; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding-top: 60px; }
  .btn { padding: .75rem 1.5rem; font-size: .9rem; }
  .back-to-top { left: 1.25rem; bottom: 1.25rem; }
  [dir="rtl"] .back-to-top { left: auto; right: 1.25rem; }
}

/* ---------- AI Chat Widget ---------- */
#muw-chat { position: fixed; bottom: 0; right: 0; z-index: 9999; }
[dir="rtl"] #muw-chat { right: auto; left: 0; }

.chat-fab {
  position: fixed; bottom: 2rem; right: 2rem; width: 56px; height: 56px;
  border-radius: 16px; background: var(--gradient-brand); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 1.3rem; z-index: 10001; box-shadow: 0 6px 24px rgba(21,229,255,.35);
  transition: var(--transition);
}
[dir="rtl"] .chat-fab { right: auto; left: 2rem; }
.chat-fab:hover { transform: scale(1.06) translateY(-2px); box-shadow: 0 8px 32px rgba(21,229,255,.45); }
.chat-fab .fab-icon { position: absolute; transition: opacity .25s, transform .25s; }
.chat-fab .fab-icon-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-fab.active .fab-icon-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-fab.active .fab-icon-close { opacity: 1; transform: rotate(0) scale(1); }

.fab-pulse {
  position: absolute; width: 100%; height: 100%; border-radius: 16px;
  background: var(--gradient-brand); animation: chatPulse 3s ease-in-out infinite; z-index: -1;
}
.chat-fab.active .fab-pulse { animation: none; opacity: 0; }
@keyframes chatPulse { 0%,100% { transform: scale(1); opacity: .25; } 50% { transform: scale(1.35); opacity: 0; } }

.chat-panel {
  position: fixed; bottom: 6.5rem; right: 2rem; width: 400px; max-height: calc(100dvh - 9rem);
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-color);
  display: flex; flex-direction: column; overflow: hidden; z-index: 10000;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.96);
  transform-origin: bottom right; transition: opacity .3s, visibility .3s, transform .3s cubic-bezier(.4,0,.2,1);
}
[dir="rtl"] .chat-panel { right: auto; left: 2rem; transform-origin: bottom left; }
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 1.25rem; background: var(--gradient-brand); color: #fff; flex-shrink: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.chat-header-info { display: flex; align-items: center; gap: .75rem; }
.chat-header-info h4 { font-size: .95rem; font-weight: 700; color: #fff; margin: 0; }
.chat-header-info .chat-status-text { font-size: .7rem; opacity: .8; color: rgba(255,255,255,.85); }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.chat-header-actions { display: flex; gap: .375rem; }
.chat-header-btn {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: rgba(255,255,255,.15); color: rgba(255,255,255,.8); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: .8rem; transition: var(--transition);
}
.chat-header-btn:hover { background: rgba(255,255,255,.25); color: #fff; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column;
  gap: .75rem; min-height: 300px; max-height: 400px; scroll-behavior: smooth; background: var(--bg-secondary);
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

.chat-welcome { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem .5rem; gap: .75rem; }
.chat-welcome-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--gradient-subtle); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); }
.chat-welcome h3 { font-size: 1.1rem; color: var(--text-primary); margin: 0; }
.chat-welcome p { font-size: .85rem; color: var(--text-secondary); margin: 0; }
.chat-suggestions { display: flex; flex-direction: column; gap: .5rem; width: 100%; margin-top: .5rem; }
.chat-suggestion {
  padding: .625rem 1rem; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border-color);
  font-size: .8rem; color: var(--text-primary); cursor: pointer; text-align: left; transition: var(--transition); font-family: var(--font-body);
}
.chat-suggestion:hover { border-color: var(--primary); color: var(--primary); background: rgba(21,229,255,.04); }
[dir="rtl"] .chat-suggestion { text-align: right; }

.chat-msg { display: flex; gap: .5rem; max-width: 88%; }
.chat-msg-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-bot { align-self: flex-start; }
.chat-msg-avatar { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--gradient-subtle); display: flex; align-items: center; justify-content: center; margin-top: 4px; font-size: .7rem; color: var(--primary); }
.chat-msg-bubble { padding: .75rem 1rem; border-radius: 16px; font-size: .875rem; line-height: 1.55; position: relative; }
.chat-msg-user .chat-msg-bubble { background: var(--gradient-brand); color: #fff; border-bottom-right-radius: 4px; }
[dir="rtl"] .chat-msg-user .chat-msg-bubble { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
.chat-msg-bot .chat-msg-bubble { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); border-bottom-left-radius: 4px; }
[dir="rtl"] .chat-msg-bot .chat-msg-bubble { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.chat-msg-text { word-break: break-word; }
.chat-msg-text code { background: rgba(21,229,255,.08); padding: .1em .35em; border-radius: 4px; font-size: .8em; color: var(--primary); }
.chat-msg-text pre { background: var(--bg-secondary); padding: .75rem; border-radius: 8px; overflow-x: auto; margin: .5rem 0; font-size: .78rem; }
.chat-msg-text pre code { background: none; padding: 0; color: var(--text-primary); }
.chat-msg-time { display: block; font-size: .65rem; opacity: .5; margin-top: .375rem; }
.chat-msg-file { font-size: .75rem; opacity: .8; margin-bottom: .25rem; }
.chat-error { color: #ef4444 !important; }

.chat-typing { display: flex; gap: 4px; padding: .25rem 0; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .4; animation: typingDot 1.4s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%,60%,100% { opacity: .4; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-input-area { padding: .75rem 1rem; border-top: 1px solid var(--border-color); background: var(--bg-card); flex-shrink: 0; }
.chat-input-row {
  display: flex; align-items: flex-end; gap: .5rem; background: var(--bg-secondary);
  border-radius: 14px; border: 1px solid var(--border-color); padding: .375rem .5rem; transition: var(--transition);
}
.chat-input-row:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,229,255,.08); }
.chat-input-row textarea {
  flex: 1; border: none; background: transparent; resize: none;
  font-family: var(--font-body); font-size: .875rem; color: var(--text-primary);
  padding: .375rem .25rem; line-height: 1.45; outline: none; max-height: 120px;
}
.chat-input-row textarea::placeholder { color: var(--text-muted); }
.chat-attach-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; color: var(--text-muted); transition: var(--transition); flex-shrink: 0; }
.chat-attach-btn:hover { color: var(--primary); background: rgba(21,229,255,.06); }
.chat-send-btn {
  width: 34px; height: 34px; border-radius: 10px; background: var(--gradient-brand); border: none;
  color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: .85rem; transition: var(--transition); flex-shrink: 0;
}
.chat-send-btn:disabled { opacity: .3; cursor: not-allowed; }
.chat-send-btn:not(:disabled):hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(21,229,255,.25); }
.chat-file-preview { display: flex; align-items: center; gap: .5rem; padding: .375rem .75rem; margin-bottom: .5rem; background: rgba(21,229,255,.06); border-radius: 10px; font-size: .78rem; color: var(--primary); }
.chat-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-file-remove { width: 22px; height: 22px; border: none; background: rgba(21,229,255,.12); border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .65rem; color: var(--primary); }
.chat-file-remove:hover { background: var(--primary); color: #fff; }
.chat-powered { text-align: center; font-size: .65rem; color: var(--text-muted); margin-top: .5rem; }
.chat-toast { position: fixed; bottom: 7rem; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--bg-card); color: var(--text-primary); padding: .625rem 1.25rem; border-radius: 10px; font-size: .8rem; z-index: 10002; opacity: 0; visibility: hidden; transition: all .3s; border: 1px solid var(--border-color); }
.chat-toast.visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 1rem); right: .5rem; bottom: 5.5rem; max-height: calc(100dvh - 7rem); border-radius: var(--radius); }
  [dir="rtl"] .chat-panel { right: auto; left: .5rem; }
  .chat-fab { bottom: 1.25rem; right: 1.25rem; width: 54px; height: 54px; }
  [dir="rtl"] .chat-fab { right: auto; left: 1.25rem; }
  .chat-messages { min-height: 250px; max-height: 50vh; }
}
