/* ════════════════════════════════════════════════════════════
   COLCON (كولكون) — Unified Communications & Business Solutions
   Luxury Design System v2.1
   Color Identity: Deep Cobalt, Electric Cyan & Pure Crystal
   ════════════════════════════════════════════════════════════ */

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

/* ── Variables & Color Palette ─────────────────────────────── */
:root {
  /* Brand Palette (Extracted directly from COLCON 3D Identity) */
  --colcon-blue:       #0284c7; /* Primary Vibrant Brand Blue */
  --colcon-blue-dark:  #0369a1;
  --colcon-blue-deep:  #004e7c;
  --colcon-cyan:       #38bdf8;
  --colcon-cyan-glow:  rgba(56, 189, 248, 0.35);
  --colcon-blue-glow:  rgba(2, 132, 199, 0.3);
  --colcon-accent:     #00b4d8;

  /* Status & Accents */
  --accent-emerald:    #10b981;
  --accent-wa:         #25d366;
  --accent-wa-dim:     rgba(37, 211, 102, 0.12);
  --accent-purple:     #8b5cf6;
  --accent-amber:      #f59e0b;
  --accent-rose:       #f43f5e;

  /* Dark Theme (Default Luxury Mode) */
  --bg:                #060c16; /* Deep Cosmic Navy */
  --bg-2:              #0a1424;
  --bg-3:              #0f1f36;
  --surface:           #11223b;
  --surface-2:         #172c4c;
  --glass:             rgba(15, 31, 54, 0.75);
  --glass-hi:          rgba(23, 44, 76, 0.88);
  --glass-hover:       rgba(28, 54, 92, 0.95);
  --border:            rgba(56, 189, 248, 0.12);
  --border-hi:         rgba(56, 189, 248, 0.28);
  --border-active:     rgba(2, 132, 199, 0.6);
  --text:              #f8fafc;
  --text-2:            #cbd5e1; /* Enhanced contrast slate-300 for crystal-clear readability */
  --text-3:            #94a3b8;

  /* Effects */
  --blur:              blur(20px) saturate(160%);
  --blur-strong:       blur(36px) saturate(190%);
  --shadow:            0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-card:       0 8px 24px rgba(2, 12, 27, 0.4), 0 0 0 1px var(--border);
  --shadow-hover:      0 16px 40px rgba(2, 132, 199, 0.22), 0 0 0 1px var(--border-hi);
  --shadow-glow:       0 0 45px rgba(2, 132, 199, 0.25);

  /* Typography */
  --font-ar: 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font: var(--font-ar);

  /* Layout */
  --r-sm:   8px;
  --r-md:   14px;
  --r-card: 20px;
  --r-pill: 999px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Light Theme ───────────────────────────────────────────── */
html[data-theme="light"] {
  --bg:                #f8fafc;
  --bg-2:              #ffffff;
  --bg-3:              #f0f7ff;
  --surface:           #ffffff;
  --surface-2:         #f1f5f9;
  --glass:             rgba(255, 255, 255, 0.85);
  --glass-hi:          rgba(255, 255, 255, 0.95);
  --glass-hover:       rgba(240, 249, 255, 0.98);
  --border:            rgba(2, 132, 199, 0.12);
  --border-hi:         rgba(2, 132, 199, 0.3);
  --border-active:     #0284c7;
  --text:              #0b192c;
  --text-2:            #334155; /* Enhanced deep slate-700 contrast for light mode */
  --text-3:            #64748b;
  --shadow:            0 8px 24px rgba(2, 132, 199, 0.08);
  --shadow-card:       0 4px 20px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(2, 132, 199, 0.1);
  --shadow-hover:      0 12px 36px rgba(2, 132, 199, 0.18), 0 0 0 1px var(--border-hi);
  --shadow-glow:       0 0 35px rgba(2, 132, 199, 0.15);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Sleek Global Scrollbar (Clean Modern UI across all browsers) ── */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--colcon-cyan);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.28) transparent;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  position: relative;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

/* Subtle Ambient Glow (Constrained so it never causes mobile overflow) */
.ambient-glow-1 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  max-width: 100%;
  height: 550px;
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.22) 0%, rgba(56, 189, 248, 0.06) 50%, transparent 80%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-glow-2 {
  position: absolute;
  top: 1400px;
  right: 0;
  width: min(700px, 100vw);
  max-width: 100%;
  height: 600px;
  background: radial-gradient(circle at center, rgba(0, 180, 216, 0.15) 0%, rgba(16, 185, 129, 0.05) 50%, transparent 75%);
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ── Scroll Progress Bar ───────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--colcon-cyan), var(--colcon-blue), var(--accent-emerald));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  box-shadow: 0 0 10px var(--colcon-cyan);
  transition: transform 0.1s linear;
}

html[dir="rtl"] #progress-bar {
  transform-origin: right;
}

/* ── Layout Containers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding-block: 5.5rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section {
    padding-block: 3.5rem;
  }
}

/* ── Typography & Gradients ────────────────────────────────── */
.t-hero {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.t-section {
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-align: center;
}

.t-card-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.45;
}

.t-body {
  font-size: 1.12rem;
  color: var(--text-2);
  line-height: 1.85;
}

.section-sub {
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--text-2);
  max-width: 640px;
  margin: 0.85rem auto 0;
}

.grad {
  background: linear-gradient(135deg, var(--colcon-cyan) 0%, var(--colcon-blue) 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ── Glassmorphism Cards ───────────────────────────────────── */
.glass {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease);
}

.glass:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.glass-hi {
  background: var(--glass-hi);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

/* ── Navbar & Brand ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 72px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}

.nav.compact {
  height: 60px;
  background: var(--glass-hi);
  box-shadow: var(--shadow);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-logo-img,
.foot-logo-img {
  height: 48px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s var(--ease), filter 0.3s ease;
}

.foot-logo-img {
  height: 46px;
}

.nav-brand:hover .nav-brand-logo-img,
.footer-brand:hover .foot-logo-img {
  transform: scale(1.05);
}

/* Luminous crystal glow in Dark Mode */
html[data-theme="dark"] .nav-brand-logo-img,
html[data-theme="dark"] .foot-logo-img,
html[data-theme="dark"] #navLogoImg,
html[data-theme="dark"] #footLogoImg {
  filter: brightness(1.65) drop-shadow(0 0 10px rgba(56, 189, 248, 0.45));
}

/* Crisp high contrast in Light Mode */
html[data-theme="light"] .nav-brand-logo-img,
html[data-theme="light"] .foot-logo-img,
html[data-theme="light"] #navLogoImg,
html[data-theme="light"] #footLogoImg {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.08));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  position: relative;
  padding-block: 0.3rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--colcon-cyan);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
  border-radius: var(--r-pill);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Icon Buttons */
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  color: var(--text-2);
}

.icon-btn:hover {
  border-color: var(--border-hi);
  color: var(--colcon-cyan);
  background: var(--surface);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.lang-btn {
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0 0.95rem;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
  backdrop-filter: var(--blur);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-btn:hover {
  border-color: var(--border-hi);
  color: var(--colcon-cyan);
  background: var(--surface);
}

/* Platform Login Button */
.btn-login-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  height: 38px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--colcon-blue) 0%, var(--colcon-blue-dark) 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.25s var(--ease);
  box-shadow: 0 2px 14px rgba(2, 132, 199, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;
  white-space: nowrap;
}

.btn-login-nav svg {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
  transition: transform 0.25s var(--ease);
}

html[dir="rtl"] .btn-login-nav svg {
  transform: scaleX(-1);
}

.btn-login-nav:hover {
  background: linear-gradient(135deg, #0299e6 0%, var(--colcon-blue) 100%);
  box-shadow: 0 4px 22px rgba(2, 132, 199, 0.65);
  transform: translateY(-2px);
}

/* Primary CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.85rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--colcon-blue) 0%, #0077b6 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.96rem;
  text-decoration: none;
  font-family: inherit;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0299e6 0%, var(--colcon-blue) 100%);
  box-shadow: 0 6px 30px rgba(2, 132, 199, 0.6);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.7rem;
  border-radius: var(--r-md);
  background: var(--glass);
  color: var(--text);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  font-family: inherit;
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-hi);
  color: var(--colcon-cyan);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  background: var(--glass);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  border-radius: var(--r-md);
  transition: all 0.25s var(--ease);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger:hover,
.hamburger.active {
  background: var(--surface-2);
  border-color: var(--border-hi);
  color: var(--colcon-cyan);
}

.hamburger svg {
  width: 22px;
  height: 22px;
}

/* ── Disable transitions temporarily during language switch to prevent layout glitch ── */
html.no-lang-transition,
html.no-lang-transition *,
html.no-lang-transition *::before,
html.no-lang-transition *::after {
  transition: none !important;
}

/* ── Mobile Navigation Drawer (Luxury Off-Canvas Side Sheet) ── */
/* Strictly hide on desktop / laptop screens */
@media (min-width: 769px) {
  .mobile-nav-backdrop,
  .mobile-nav-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 20, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.35s;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: var(--bg-2);
  border-inline-start: 1px solid var(--border-hi);
  z-index: 199;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 0 50px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(2, 132, 199, 0.15);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.35s;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-nav-drawer::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Slide in from right for RTL */
html[dir="rtl"] .mobile-nav-drawer {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

/* Slide in from left for LTR */
html[dir="ltr"] .mobile-nav-drawer {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

.mobile-nav-drawer.open {
  transform: translateX(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}

/* Header inside drawer */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-drawer-brand img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.mobile-drawer-close:hover {
  color: var(--colcon-cyan);
  border-color: var(--border-hi);
  background: var(--surface-2);
  transform: rotate(90deg);
}

.mobile-drawer-close svg {
  width: 18px;
  height: 18px;
}

/* Body inside drawer (Completely Hidden Scrollbar & Fluid Scrolling) */
.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.95rem 1.15rem 1.6rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}

.mobile-drawer-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.mobile-nav-heading {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  padding-inline: 0.25rem;
}

.mobile-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.62rem 0.85rem;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s var(--ease);
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  background: var(--surface-2);
  border-color: var(--border-hi);
  transform: translateX(calc(var(--dir-sign, 1) * -4px));
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.15);
}

html[dir="rtl"] { --dir-sign: 1; }
html[dir="ltr"] { --dir-sign: -1; }

.mob-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(2, 132, 199, 0.14);
  border: 1px solid var(--border-hi);
  color: var(--colcon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s var(--ease);
}

.mobile-nav-item:hover .mob-item-icon {
  transform: scale(1.06);
  background: var(--colcon-blue);
  color: #fff;
}

.mob-item-icon svg {
  width: 18px;
  height: 18px;
}

.mob-item-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mob-item-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.mob-item-desc {
  font-size: 0.74rem;
  color: var(--text-2);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-item-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), color 0.25s ease;
}

html[dir="ltr"] .mob-item-arrow {
  transform: scaleX(-1);
}

.mobile-nav-item:hover .mob-item-arrow {
  color: var(--colcon-cyan);
  transform: translateX(calc(var(--dir-sign, 1) * -3px));
}
html[dir="ltr"] .mobile-nav-item:hover .mob-item-arrow {
  transform: scaleX(-1) translateX(3px);
}

/* Quick contact chips */
.mobile-drawer-contact-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.mob-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 0.5rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.mob-chip svg {
  width: 16px;
  height: 16px;
  color: var(--colcon-cyan);
}

.mob-chip:hover {
  border-color: var(--border-hi);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.mob-chip-wa svg {
  color: var(--accent-wa);
}

.mob-chip-wa:hover {
  border-color: rgba(37, 211, 102, 0.4);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

/* Mobile Platform Login Button */
.mobile-drawer-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 0.85rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  color: var(--colcon-cyan);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

.mobile-drawer-login-btn:hover {
  background: rgba(2, 132, 199, 0.2);
  border-color: var(--colcon-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.mobile-drawer-login-btn svg {
  width: 16px;
  height: 16px;
}
html[dir="rtl"] .mobile-drawer-login-btn svg {
  transform: scaleX(-1);
}

/* Mobile CTA Button */
.mobile-drawer-cta {
  width: 100%;
  padding: 0.82rem 1.15rem;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

/* Status badge */
.mobile-drawer-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 0.25rem;
  text-align: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
}

/* ── Hero Section ──────────────────────────────────────────── */
#hero {
  padding-top: 6.75rem;
  padding-bottom: 5.5rem;
}

#hero .container {
  max-width: 1280px;
}

/* ── Grand Hero Slider Showcase (First / Showcase on Top) ──── */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 1.25rem auto 0 auto;
}

.hero-slider-glow {
  position: absolute;
  inset: -22px;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.32), rgba(2, 132, 199, 0.12) 50%, transparent 75%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
  border-radius: 40px;
  transition: background 0.3s ease;
}

/* ── Hero Intro & Typography (Positioned below the Slider Images) ── */
.hero-intro {
  text-align: center;
  max-width: 860px;
  margin: 3.5rem auto 0 auto;
}

.hero-intro .hero-desc {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.88;
  color: var(--text-2);
  margin-top: 1.35rem;
  max-width: 760px;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-slider-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: #060a12;
  box-shadow: 
    0 35px 90px -15px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(56, 189, 248, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slide Caption Badge */
.slide-caption {
  position: absolute;
  bottom: 1.35rem;
  right: 1.75rem;
  z-index: 4;
}

html[dir="ltr"] .slide-caption {
  right: auto;
  left: 1.75rem;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 10, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 1.15rem;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  z-index: 5;
}

.slider-arrow svg {
  width: 22px;
  height: 22px;
}

.slider-arrow.prev {
  left: 1.25rem;
}

.slider-arrow.next {
  right: 1.25rem;
}

.slider-arrow:hover {
  background: var(--colcon-blue);
  border-color: var(--colcon-cyan);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px var(--colcon-cyan-glow);
}

/* Pagination Dots */
.slider-dots {
  position: absolute;
  bottom: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 5;
  background: rgba(15, 23, 42, 0.65);
  padding: 0.45rem 0.9rem;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--colcon-cyan);
  box-shadow: 0 0 12px var(--colcon-cyan);
}

/* ── Hero Stats Row (Positioned below the Slider) ── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  max-width: 1060px;
  margin-inline: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.stat-val {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--colcon-cyan);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.92rem;
  color: var(--text-2);
  font-weight: 600;
  margin-top: 0.35rem;
}

/* ── Dual Theme Support (Automatic Switch for all slides) ── */
.slide-img.hero-img-dark {
  display: block;
}
.slide-img.hero-img-light {
  display: none;
}

html[data-theme="light"] .slide-img.hero-img-dark {
  display: none !important;
}
html[data-theme="light"] .slide-img.hero-img-light {
  display: block !important;
}

html[data-theme="dark"] .slide-img.hero-img-dark {
  display: block !important;
}
html[data-theme="dark"] .slide-img.hero-img-light {
  display: none !important;
}

html[data-theme="light"] .hero-slider-glow {
  background: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.28), rgba(56, 189, 248, 0.1) 50%, transparent 75%);
}

html[data-theme="light"] .hero-slider-frame {
  border-color: rgba(2, 132, 199, 0.26);
  background: #f8fafc;
  box-shadow: 
    0 35px 85px -15px rgba(2, 132, 199, 0.26),
    0 8px 30px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .slide-badge {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0f172a;
}

html[data-theme="light"] .slider-arrow {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(2, 132, 199, 0.28);
  color: #0f172a;
}

html[data-theme="light"] .slider-arrow:hover {
  background: var(--colcon-blue);
  color: #ffffff;
}

html[data-theme="light"] .slider-dots {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(2, 132, 199, 0.22);
}

html[data-theme="light"] .dot {
  background: rgba(15, 23, 42, 0.24);
}

html[data-theme="light"] .dot.active {
  background: var(--colcon-blue);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
}





/* ── 4 Strategic Pillars ───────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.25rem;
}

.pillar-card {
  padding: 2.25rem 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--colcon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--colcon-cyan);
  transition: all 0.3s var(--ease);
}

.pillar-card:hover .pillar-icon-box {
  background: var(--colcon-blue);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 25px var(--colcon-cyan-glow);
}

.pillar-icon-box svg {
  width: 30px;
  height: 30px;
}

.pillar-card .t-body,
.pillar-card p {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-2);
  margin-top: 0.75rem;
  font-weight: 500;
}

/* ── Features Grid ─────────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3.25rem;
}

.feat-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.feat-card .t-body,
.feat-card p {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-2);
  margin-top: 0.65rem;
  font-weight: 500;
}

.feat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colcon-cyan);
  margin-bottom: 1.35rem;
  transition: all 0.3s var(--ease);
}

.feat-card:hover .feat-icon-wrap {
  background: var(--colcon-blue);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--colcon-cyan-glow);
}

/* ── Platform Login Triggers (Hidden per request) ────────── */
.btn-login-nav,
.mobile-drawer-login-btn,
.btn-portal-trigger {
  display: none !important;
}

.feat-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px dashed rgba(56, 189, 248, 0.16);
}

.feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.2px;
  transition: all 0.25s var(--ease);
}

.feat-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--colcon-cyan);
  box-shadow: 0 0 6px var(--colcon-cyan);
  display: inline-block;
  flex-shrink: 0;
}

.feat-tag:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--colcon-cyan);
  color: var(--colcon-cyan);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.18);
}

[data-theme="light"] .feat-tags {
  border-top-color: rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .feat-tag {
  background: rgba(2, 132, 199, 0.05);
  border-color: rgba(2, 132, 199, 0.22);
  color: #0f172a;
}

/* ── Pricing Section ───────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 3.25rem;
}

.price-card {
  padding: 2.75rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s var(--ease);
}

.price-card.featured {
  border-color: var(--colcon-cyan);
  box-shadow: 0 15px 45px rgba(2, 132, 199, 0.3), 0 0 0 1px var(--colcon-cyan);
  transform: translateY(-8px);
}

.featured-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--colcon-cyan), var(--colcon-blue));
  color: #fff;
  padding: 0.35rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.5);
  white-space: nowrap;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--text);
  margin-block: 1.25rem;
}

.price-card .t-body,
.price-card p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-top: 0.5rem;
}

.price-period {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-2);
}

.price-features-list {
  list-style: none;
  margin-block: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  flex-grow: 1;
}

.price-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.04rem;
  line-height: 1.5;
  color: var(--text);
}

.price-feature-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-emerald);
  flex-shrink: 0;
}

/* ── Contact Section ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 2rem;
}

.c-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  text-decoration: none;
  color: var(--text);
}

.c-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--colcon-cyan);
  flex-shrink: 0;
}

.c-label {
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 600;
}

.c-val {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 0.15rem;
}

/* Contact Form */
.contact-form {
  padding: 2.5rem 2.25rem;
}

.contact-form .t-body,
.contact-desc {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.25s var(--ease);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--colcon-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
  background: var(--surface-2);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.footer-bio {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 360px;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav a {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--colcon-cyan);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  font-size: 0.96rem;
  color: var(--text-2);
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

/* ── Legal Modal ───────────────────────────────────────────── */
.terms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 10, 20, 0.85);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.terms-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.terms-modal-card {
  width: 100%;
  max-width: 880px;
  max-height: 85vh;
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-card);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terms-modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terms-modal-tabs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}

.terms-modal-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.terms-doc-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.terms-doc-tab:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-hi);
  transform: translateY(-1px);
}

.terms-doc-tab.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--colcon-blue), var(--colcon-cyan)) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.terms-doc-tab svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.terms-doc-tab.active svg {
  opacity: 1;
}

.terms-modal-body {
  padding: 1.85rem 2.25rem;
  overflow-y: auto;
  line-height: 1.85;
  color: var(--text-2);
  font-size: 1.02rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.terms-modal-body::-webkit-scrollbar {
  width: 6px;
}

.terms-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.terms-modal-body::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.28);
  border-radius: 999px;
}

.terms-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--colcon-cyan);
}

.terms-modal-footer {
  padding: 1.15rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Platform Login Modal / Toast ──────────────────────────── */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 10, 20, 0.85);
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.login-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.login-modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-card);
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  text-align: center;
  position: relative;
}

/* ── Section Animations (Bidirectional Continuous — Like SanadChat) ── */
.anim {
  opacity: 0;
  transform: translateY(45px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
  will-change: opacity, transform;
}

.anim.from-top {
  transform: translateY(-45px);
}

.anim.visible,
.anim.in-view {
  opacity: 1;
  transform: translateY(0);
}

.anim.delay-1 { transition-delay: 0.08s; }
.anim.delay-2 { transition-delay: 0.16s; }
.anim.delay-3 { transition-delay: 0.24s; }
.anim.delay-4 { transition-delay: 0.32s; }
.anim.delay-5 { transition-delay: 0.40s; }

/* ── Floating Scroll-To-Top Button ─────────────────────────── */
.btn-scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  color: var(--colcon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: all 0.35s var(--ease);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(2, 132, 199, 0.25);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

html[dir="ltr"] .btn-scroll-top {
  left: auto;
  right: 2rem;
}

.btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.btn-scroll-top:hover {
  background: var(--colcon-blue);
  color: #ffffff;
  border-color: var(--colcon-cyan);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.65);
  transform: translateY(-4px) scale(1.06);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive Queries (Flawless Mobile, Tablet & Desktop) ─ */
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 650px; margin-inline: auto; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .price-card.featured { transform: none; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow on mobile from background glow */
  .ambient-glow-1, 
  .ambient-glow-2 { 
    display: none !important; 
  }

  /* Global section & container spacing */
  .section { 
    padding-block: 3rem; 
    overflow-x: hidden; 
  }
  .container { 
    padding-inline: 1rem; 
    max-width: 100%; 
    box-sizing: border-box; 
  }

  /* Navigation Bar - Streamlined Mobile Header */
  .nav {
    height: 64px;
    padding-inline: 1rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .nav-links { display: none !important; }
  .nav .btn-login-nav { display: none !important; }
  .nav-brand-logo-img { height: 38px; max-width: 160px; }
  .nav-actions { 
    gap: 0.5rem; 
    flex-shrink: 0;
  }
  .hamburger { 
    display: flex !important; 
    width: 36px; 
    height: 36px; 
    padding: 6px;
    align-items: center; 
    justify-content: center; 
  }
  .icon-btn { 
    width: 36px; 
    height: 36px; 
  }
  .lang-btn { 
    height: 36px; 
    padding: 0 0.75rem; 
    font-size: 0.78rem; 
  }

  /* Hero Section - Balanced Mobile Spacing */
  #hero {
    padding-top: calc(64px + 1rem);
    padding-bottom: 2.75rem;
  }
  .hero-slider-wrap { 
    margin: 0.5rem auto 1.5rem auto; 
    max-width: 100%; 
    box-sizing: border-box; 
  }
  .hero-slider-glow { 
    inset: 0; 
    filter: blur(25px); 
    opacity: 0.5; 
  }
  .hero-slider-frame { 
    border-radius: 16px; 
    aspect-ratio: 16 / 9; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65); 
  }
  .slider-arrow { 
    width: 34px; 
    height: 34px; 
    background: rgba(6, 10, 18, 0.72); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
  }
  .slider-arrow.prev { left: 0.45rem; }
  .slider-arrow.next { right: 0.45rem; }
  .slider-arrow svg { width: 16px; height: 16px; }
  .slider-dots { bottom: 0.65rem; gap: 0.4rem; }
  .dot { width: 8px; height: 8px; }
  .dot.active { width: 22px; }

  /* Hero Typography & CTAs */
  .hero-intro { 
    margin: 1.25rem auto 0 auto; 
    padding-inline: 0.25rem; 
  }
  .t-hero { 
    font-size: clamp(1.5rem, 5.8vw, 2.15rem); 
    line-height: 1.35; 
  }
  .hero-intro .hero-desc { 
    font-size: 0.95rem; 
    line-height: 1.8; 
    margin-top: 0.85rem; 
    padding-inline: 0.25rem; 
  }
  .hero-cta { 
    flex-direction: column; 
    width: 100%; 
    gap: 0.75rem; 
    margin-top: 1.5rem; 
    align-items: center; 
  }
  .hero-cta .btn-primary, 
  .hero-cta .btn-ghost { 
    width: 100%; 
    max-width: 320px; 
    padding: 0.8rem 1.25rem; 
    font-size: 0.94rem; 
    justify-content: center; 
  }

  /* Stats Grid */
  .hero-stats { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.85rem; 
    margin-top: 2rem; 
    padding: 1.25rem 0.85rem; 
    border-radius: 16px; 
  }
  .stat-val { font-size: 1.45rem; }
  .stat-lbl { font-size: 0.78rem; line-height: 1.45; }

  /* Grids & Cards */
  .pillars-grid { grid-template-columns: 1fr; gap: 1rem; }
  .pillar-card { padding: 1.5rem 1.25rem; }
  .feat-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feat-card { padding: 1.5rem 1.25rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; gap: 1.25rem; }
  .price-card { padding: 1.75rem 1.25rem; }

  /* Contact & Form */
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-form-wrap { padding: 1.5rem 1.15rem; border-radius: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-brand { align-items: center; justify-content: center; margin-inline: auto; }
  .foot-social { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .btn-scroll-top { bottom: 1.25rem; left: 1.25rem; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .nav { 
    padding-inline: 0.75rem; 
    height: 60px; 
  }
  .nav-brand-logo-img { height: 34px; max-width: 140px; }
  .nav-actions { gap: 0.35rem; }
  .icon-btn { width: 34px; height: 34px; }
  .lang-btn { height: 34px; padding: 0 0.6rem; font-size: 0.74rem; }
  .hamburger { width: 34px; height: 34px; padding: 6px; }

  #hero {
    padding-top: calc(60px + 0.75rem);
  }
  .hero-slider-frame { border-radius: 14px; }
  .slider-arrow { width: 30px; height: 30px; }
  .slider-arrow svg { width: 14px; height: 14px; }
  .slider-arrow.prev { left: 0.35rem; }
  .slider-arrow.next { right: 0.35rem; }
  .slider-dots { bottom: 0.5rem; }
  .t-hero { font-size: 1.5rem; }
  .stat-val { font-size: 1.35rem; }
  .stat-lbl { font-size: 0.74rem; }

  .mobile-nav-drawer { width: 100vw; max-width: 100vw; }
}
