/* ==========================================================================
   TAQNAWY — High-End Design System & Motion Engine (v7.0)
   Vercel & Linear-inspired: neutral surfaces, hairline borders, Bento grid,
   Hologram cinema showcase, glowing border beams, interactive estimator.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root,
[data-theme="dark"] {
  --bg: #070709;
  --bg-elev: #0e0c15;
  --card: #0d0b14;
  --card-hover: #141120;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(168, 85, 247, 0.28);
  --text: #fafafa;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --accent: #a855f7;
  --accent-bright: #c084fc;
  --accent-deep: #7c3aed;
  --accent-soft: rgba(168, 85, 247, 0.14);
  --glow: rgba(168, 85, 247, 0.32);
  --glow-purple: rgba(192, 132, 252, 0.42);
  --glow-emerald: rgba(34, 197, 94, 0.2);
  --btn-bg: #fafafa;
  --btn-fg: #070709;
  --header-bg: rgba(10, 9, 15, 0.82);
  --spot: rgba(168, 85, 247, 0.06);
  --grid-line: rgba(255, 255, 255, 0.032);
  --live: #22c55e;
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 50px -10px var(--glow);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-elev: #f4f2f8;
  --card: #ffffff;
  --card-hover: #ffffff;
  --border: rgba(15, 12, 25, 0.08);
  --border-strong: rgba(124, 58, 237, 0.22);
  --text: #09090b;
  --muted: #4b5563;
  --subtle: #6b7280;
  --accent: #7c3aed;
  --accent-bright: #9333ea;
  --accent-deep: #6b21a8;
  --accent-soft: rgba(124, 58, 237, 0.09);
  --glow: rgba(124, 58, 237, 0.22);
  --glow-purple: rgba(124, 58, 237, 0.28);
  --glow-emerald: rgba(22, 163, 74, 0.18);
  --btn-bg: #09090b;
  --btn-fg: #fafafa;
  --header-bg: rgba(255, 255, 255, 0.88);
  --spot: rgba(124, 58, 237, 0.04);
  --grid-line: rgba(15, 12, 25, 0.04);
  --live: #16a34a;
  --shadow-lg: 0 24px 60px -28px rgba(15, 12, 25, 0.12);
  --shadow-glow: 0 0 50px -10px var(--glow);
  color-scheme: light;
}

:root {
  --font: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 0.18s var(--ease);
  --med: 0.35s var(--ease);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 2. Reset & Primitives ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--med), color var(--med);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { flex-shrink: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container.narrow { max-width: 760px; }

[dir="rtl"] .flip-rtl,
[dir="rtl"] .dir-arrow { transform: scaleX(-1); }
[dir="ltr"] .dir-arrow { transform: scaleX(-1); }

/* ---------- 3. Scroll Progress & Background Decor ---------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 1001;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc, #ffffff);
  width: 0%;
  transition: width 0.08s linear;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.95), 0 0 8px #fff;
  pointer-events: none;
}
.scroll-progress-bar::after {
  content: "";
  position: absolute;
  top: -3px;
  inset-inline-end: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 16px 4px #a855f7, 0 0 6px #ffffff;
}

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity var(--med);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 50% at 50% 0%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 50% at 50% 0%, #000 35%, transparent 75%);
}

.bg-glow {
  position: absolute;
  top: -240px;
  left: 50%;
  width: 1300px;
  height: 780px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 40%, rgba(168, 85, 247, 0.52) 0%, rgba(124, 58, 237, 0.32) 35%, transparent 70%),
              radial-gradient(circle at 25% 65%, rgba(192, 132, 252, 0.38) 0%, transparent 55%),
              radial-gradient(circle at 75% 65%, rgba(147, 51, 234, 0.35) 0%, transparent 55%);
  filter: blur(60px);
  opacity: 0.95;
  animation: auroraPulseMotion 7.5s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes auroraPulseMotion {
  0% {
    transform: translateX(-50%) scale(0.92) rotate(0deg);
    opacity: 0.8;
    filter: blur(60px);
  }
  50% {
    transform: translateX(-49%) scale(1.1) rotate(3deg);
    opacity: 1;
    filter: blur(48px);
  }
  100% {
    transform: translateX(-51%) scale(0.96) rotate(-3deg);
    opacity: 0.88;
    filter: blur(65px);
  }
}

/* Dynamic Interactive Ambient Cursor Aura */
.cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  margin-top: -300px;
  margin-left: -300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 90;
  background: radial-gradient(
    circle at center,
    rgba(168, 85, 247, 0.16) 0%,
    rgba(124, 58, 237, 0.08) 35%,
    rgba(192, 132, 252, 0.03) 55%,
    transparent 72%
  );
  filter: blur(28px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform;
}
[data-theme="light"] .cursor-aura {
  background: radial-gradient(
    circle at center,
    rgba(124, 58, 237, 0.1) 0%,
    rgba(147, 51, 234, 0.04) 40%,
    transparent 70%
  );
}
@media (pointer: coarse) {
  .cursor-aura { display: none !important; }
}

/* ---------- 4. Buttons & Badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--fast), box-shadow var(--fast), background-color var(--fast), border-color var(--fast), color var(--fast);
}
.btn svg { width: 16px; height: 16px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary {
  position: relative;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 0 0 1px var(--border-strong), 0 8px 28px -10px var(--glow);
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.35), transparent);
  transform: skewX(-20deg);
  animation: btnSweep 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnSweep {
  0%, 40% { left: -100%; }
  75%, 100% { left: 200%; }
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 0 1px var(--accent), 0 16px 42px -6px var(--glow);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-ghost:hover {
  background: var(--spot);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-pill);
  color: var(--muted);
  transition: background-color var(--fast), color var(--fast), transform var(--fast);
}
.icon-btn:hover { background: var(--spot); color: var(--text); transform: scale(1.05); }
.icon-btn svg { width: 17px; height: 17px; }

.lang-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
[lang="en"] .lang-label { font-family: "Cairo", sans-serif; }

[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }
[data-theme="light"] .i-sun { display: none; }
[data-theme="light"] .i-moon { display: block; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--spot);
  box-shadow: inset 0 0 0 1px var(--border);
}
.pill svg { width: 13px; height: 13px; color: var(--accent); }

.dot-live {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 12px var(--live);
  flex-shrink: 0;
}
.dot-live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--live);
  animation: liveRadarPulse 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes liveRadarPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Linear Border Beam Effect */
.border-beam {
  position: relative;
}
.border-beam::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(var(--beam-angle, 0deg), transparent 50%, var(--accent) 80%, #c084fc 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
  animation: borderBeam 7s linear infinite;
}
@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes borderBeam {
  0% { --beam-angle: 0deg; }
  100% { --beam-angle: 360deg; }
}

/* ---------- 5. Floating Header ---------- */
.header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  padding-inline: 16px;
}

.header-pill {
  max-width: 1060px;
  margin-inline: auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 10px;
  padding-inline-start: 16px;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: box-shadow var(--med), border-color var(--med);
}
.header.scrolled .header-pill {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--fast);
}
.brand:hover .brand-logo {
  transform: scale(1.04);
}
[data-theme="dark"] .logo-light {
  display: none !important;
}
[data-theme="dark"] .logo-dark {
  display: block !important;
}
[data-theme="light"] .logo-dark {
  display: none !important;
}
[data-theme="light"] .logo-light {
  display: block !important;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform var(--fast);
}
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-size: 16px; letter-spacing: -0.01em; font-weight: 800; }

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  transition: color var(--fast), background-color var(--fast);
}
.nav-link:hover,
.nav-link.active { color: var(--text); background: var(--spot); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-cta { margin-inline-start: 6px; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.header.open .menu-btn .i-menu { display: none; }
.header.open .menu-btn .i-close { display: block; }

.mobile-menu {
  display: none;
  max-width: 1060px;
  margin: 8px auto 0;
  padding: 12px;
  flex-direction: column;
  gap: 4px;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s var(--ease);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu a:not(.btn) {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.mobile-menu a:not(.btn):hover { background: var(--spot); color: var(--text); }
.mobile-menu .btn { margin-top: 8px; height: 46px; }

/* ---------- 6. Hero Section ---------- */
.hero {
  position: relative;
  padding-top: 156px;
  padding-bottom: 20px;
  overflow: hidden;
}

.hero-floats {
  position: absolute;
  inset: 0;
  max-width: 1240px;
  margin-inline: auto;
  pointer-events: none;
  z-index: 2;
}

.hero-float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: rgba(13, 11, 20, 0.76);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(168, 85, 247, 0.38);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: #fafafa;
  box-shadow: 0 14px 38px -8px rgba(0, 0, 0, 0.8), 0 0 24px -4px rgba(168, 85, 247, 0.45);
  pointer-events: auto;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}
.hero-float-chip:hover {
  transform: scale(1.08) translateY(-4px) !important;
  border-color: var(--accent);
  box-shadow: 0 18px 48px -4px rgba(168, 85, 247, 0.65);
}
.hero-float-chip svg { width: 15px; height: 15px; color: var(--accent); }

.chip-glow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
  animation: chipDotPulse 1.8s ease-in-out infinite alternate;
}
@keyframes chipDotPulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #c084fc; }
}

.hero-float-chip.chip-1 {
  top: 175px;
  inset-inline-start: 40px;
  animation: floatChipA 5.5s ease-in-out infinite alternate;
}
.hero-float-chip.chip-2 {
  top: 310px;
  inset-inline-start: 20px;
  animation: floatChipB 6.2s ease-in-out infinite alternate 0.8s;
}
.hero-float-chip.chip-3 {
  top: 195px;
  inset-inline-end: 35px;
  animation: floatChipB 5.8s ease-in-out infinite alternate 0.4s;
}
.hero-float-chip.chip-4 {
  top: 330px;
  inset-inline-end: 25px;
  animation: floatChipA 6.5s ease-in-out infinite alternate 1.2s;
}

@keyframes floatChipA {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
  100% { transform: translateY(-4px) rotate(-1deg); }
}
@keyframes floatChipB {
  0% { transform: translateY(-6px) rotate(-1.5deg); }
  50% { transform: translateY(8px) rotate(1deg); }
  100% { transform: translateY(-10px) rotate(0.5deg); }
}

@media (max-width: 1040px) {
  .hero-floats { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px 0 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 22px -3px rgba(168, 85, 247, 0.45);
  animation: heroBadgeFloat 3.8s ease-in-out infinite alternate;
  transition: all var(--fast);
}
@keyframes heroBadgeFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); box-shadow: 0 0 32px -1px rgba(168, 85, 247, 0.7); }
}
.hero-badge:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent-deep);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px -5px rgba(124, 58, 237, 0.5);
}
[data-theme="light"] .hero-badge {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(124, 58, 237, 0.28);
  color: #09090b;
  box-shadow: 0 4px 20px -4px rgba(124, 58, 237, 0.15);
}
[data-theme="light"] .hero-badge:hover {
  background: #7c3aed;
  color: #ffffff !important;
  border-color: #6b21a8;
  box-shadow: 0 12px 30px -6px rgba(124, 58, 237, 0.45);
}
[data-theme="light"] .hero-badge:hover svg {
  color: #ffffff !important;
}
.hero-badge svg { width: 14px; height: 14px; color: var(--accent); }

/* High-End World-Class Animated Hero Headline */
.hero-title {
  margin-top: 28px;
  max-width: 960px;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.035em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-wrap: balance;
}
[lang="ar"] .hero-title {
  letter-spacing: -0.015em;
  line-height: 1.32;
}

.hero-line {
  display: block;
  width: 100%;
}

/* Line 1: Silvery Specular Light Wave */
.hero-line-1 {
  display: inline-block;
  background: linear-gradient(
    110deg,
    #fafafa 0%,
    #ffffff 20%,
    #e9d5ff 40%,
    #ffffff 60%,
    #fafafa 80%,
    #e9d5ff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shineSilverSweep 4.2s linear infinite;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.6));
  will-change: background-position;
}

@keyframes shineSilverSweep {
  0% { background-position: 0% center; }
  100% { background-position: -200% center; }
}

/* Line 2: Hypnotic Electric Amethyst & Purple Kinetic Wave */
.hero-line-2 {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    90deg,
    #c084fc 0%,
    #a855f7 16%,
    #f472b6 32%,
    #38bdf8 50%,
    #c084fc 68%,
    #a855f7 84%,
    #c084fc 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: purpleGradientFlow 3.2s linear infinite;
  filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.8)) drop-shadow(0 0 50px rgba(192, 132, 252, 0.5));
  will-change: background-position;
}

@keyframes purpleGradientFlow {
  0% { background-position: 0% center; }
  100% { background-position: -200% center; }
}

[data-theme="light"] .hero-line-2 {
  background: linear-gradient(
    90deg,
    #7c3aed 0%,
    #9333ea 20%,
    #c026d3 40%,
    #2563eb 60%,
    #7c3aed 80%,
    #9333ea 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: purpleGradientFlow 3.2s linear infinite;
  filter: drop-shadow(0 4px 18px rgba(124, 58, 237, 0.35));
}

/* Hero Laser Dynamic Track & Beam */
.hero-laser-track {
  position: relative;
  width: 260px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
  overflow: hidden;
  border-radius: 2px;
}
.hero-laser-beam {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #c084fc 40%, #ffffff 80%, transparent);
  box-shadow: 0 0 16px 2px #a855f7, 0 0 6px #ffffff;
  animation: heroLaserSweep 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes heroLaserSweep {
  0% { left: -40%; }
  100% { left: 140%; }
}

@keyframes heroLineOneIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroLineTwoIn {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.text-muted-grad {
  background: linear-gradient(180deg, var(--muted), var(--subtle));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 24px;
  max-width: 680px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  line-height: 1.85;
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-meta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 13.5px;
  color: var(--subtle);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent); }

/* Stats Strip */
.stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px -15px var(--glow);
}
.stat {
  padding: 28px 24px;
  text-align: center;
}
.stat + .stat { border-inline-start: 1px solid var(--border); }
.stat-value {
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  direction: ltr;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}
.stat-value span {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82em;
  color: inherit;
  margin-inline-start: 1px;
  vertical-align: baseline;
  opacity: 0.85;
}
.stat-label { margin-top: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); }

/* ---------- 8. Sovereign Marquee Strip ---------- */
.marquee-strip {
  margin-top: 48px;
  padding: 24px 0 10px;
}
.marquee-header {
  margin-bottom: 24px;
  text-align: center;
}
.marquee-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: ltr !important;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
  will-change: transform;
}
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--border);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: border-color var(--fast), transform var(--fast), background-color var(--fast);
}
.marquee-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: var(--card-hover);
}
.marquee-item svg { width: 16px; height: 16px; color: var(--accent); }
.marquee-item em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--subtle);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--spot);
}

/* Partners Marquee Strip */
.partners-strip {
  padding-top: 100px;
  padding-bottom: 24px;
}
.partners-strip .marquee-header {
  margin-bottom: 34px;
}
.partners-strip .marquee-sub {
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.8;
}
.partners-strip .marquee-item {
  height: 48px;
  padding: 0 18px;
  gap: 10px;
  font-size: 13.5px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.25);
}
.partners-strip .marquee-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 26px -4px var(--glow);
}
.partners-strip .marquee-item svg {
  width: 17px;
  height: 17px;
}
.partners-strip .marquee-item em {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- 9. Sections & Common ---------- */
.section { padding: 110px 0 0; }
#contact { padding-bottom: 110px; }

.section-head {
  max-width: 660px;
  margin-bottom: 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 1.5px;
  background: currentColor;
}

.section-title {
  margin-top: 14px;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
[lang="ar"] .section-title { letter-spacing: 0; }

.section-desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- 10. Cards & Bento Grid ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: border-color var(--fast), transform var(--med), background-color var(--med), box-shadow var(--med);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(550px circle at var(--mx, 50%) var(--my, 50%), rgba(168, 85, 247, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.card:hover {
  border-color: rgba(168, 85, 247, 0.48);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8),
              0 0 35px -5px rgba(168, 85, 247, 0.35);
  transform: translateY(-6px) scale(1.008);
}
.card:hover::before { opacity: 1; }

/* Continuous Magic UI Traveling Laser Border Beam */
.card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent 0deg,
    transparent 65deg,
    rgba(168, 85, 247, 0.75) 82deg,
    #ffffff 90deg,
    rgba(192, 132, 252, 0.8) 98deg,
    transparent 115deg,
    transparent 360deg
  );
  animation: borderRaySpin 5.5s linear infinite;
  opacity: 0.35;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1.5px;
  border-radius: var(--r-lg);
}
.card:hover::after,
.work-card:hover::after {
  opacity: 1;
  animation-duration: 2.8s;
}
@keyframes borderRaySpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

/* Work cards */
.work-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
}
.work-card.wide {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 28px;
  padding: 28px;
}
.work-card.wide.reverse .shot { order: -1; }

.work-body { display: flex; flex-direction: column; }
.work-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.work-actions-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-link {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: color var(--fast), background-color var(--fast), box-shadow var(--fast), transform var(--fast);
}
.icon-link svg { width: 15px; height: 15px; }
.icon-link:hover { color: var(--btn-fg); background: var(--btn-bg); box-shadow: none; transform: scale(1.06); }

.work-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.work-card.wide .work-title { font-size: 25px; }

.work-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags li {
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--subtle);
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.shot {
  margin-top: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.work-card.wide .shot { margin-top: 0; }

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity var(--fast);
  pointer-events: none;
}
.shot:hover::after { opacity: 1; }

.shot-bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--border);
  direction: ltr;
}
.shot-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}
.shot-bar em {
  margin-left: auto;
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-size: 11px;
  color: var(--subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.shot:hover img { transform: scale(1.035); }

/* ---------- 11. Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service { padding: 26px; }
.service h3,
.why-card h3 {
  margin-top: 18px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service p,
.why-card p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.service-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: color var(--fast), border-color var(--fast), background-color var(--fast), transform var(--fast);
}
.service-icon svg { width: 19px; height: 19px; }
.service-icon.sm { width: 34px; height: 34px; }
.service-icon.sm svg { width: 16px; height: 16px; }
.card:hover .service-icon {
  color: var(--accent);
  border-color: var(--border-strong);
  background: var(--accent-soft);
  transform: scale(1.06);
}

/* ---------- 12. Process with Laser Pulse ---------- */
.process-wrapper {
  position: relative;
  width: 100%;
}
.laser-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  overflow: hidden;
  border-radius: 2px;
}
.laser-pulse {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 220px;
  background: linear-gradient(90deg, transparent, #a855f7 35%, #ffffff 75%, #c084fc 95%, transparent);
  box-shadow: 0 0 20px 4px rgba(168, 85, 247, 0.95), 0 0 8px #ffffff;
  animation: laserPulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes laserPulse {
  0% { left: -220px; }
  100% { left: 100%; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  transition: transform var(--med), border-color var(--med);
}
.step:hover {
  transform: translateY(-5px);
  border-top-color: var(--accent);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #c084fc);
  box-shadow: 0 0 12px var(--accent);
  transition: width 0.45s var(--ease);
}
.step:hover::before { width: 100%; }
.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.step-num {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.step-dur {
  font-size: 12px;
  color: var(--subtle);
  padding: 2px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}
.step h3 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- 13. Institutional Comparison & Standards Section ---------- */
.comparison-section {
  position: relative;
  overflow: hidden;
  padding-block: 100px;
}

.comparison-ambient-mesh {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 650px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(124, 58, 237, 0.1) 45%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: compMeshPulse 8s ease-in-out infinite alternate;
}

@keyframes compMeshPulse {
  0% { transform: translateX(-50%) scale(0.92); opacity: 0.75; }
  100% { transform: translateX(-50%) scale(1.12); opacity: 1; }
}

[data-theme="light"] .comparison-ambient-mesh {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, rgba(147, 51, 234, 0.12) 50%, transparent 70%);
}

.comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 20px -5px var(--glow);
}

[data-theme="light"] .comparison-badge {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.3);
}

/* Master Comparison Card */
.comparison-card {
  position: relative;
  z-index: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  background: linear-gradient(170deg, rgba(18, 14, 30, 0.94) 0%, rgba(10, 8, 18, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 30px 80px -25px rgba(0, 0, 0, 0.8), 0 0 60px -20px var(--glow);
}

[data-theme="light"] .comparison-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 245, 254, 0.98) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.28);
  box-shadow: 0 25px 70px -25px rgba(124, 58, 237, 0.25), 0 0 50px -15px rgba(168, 85, 247, 0.2);
}

.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: right;
}

[dir="ltr"] .comparison-table {
  text-align: left;
}

/* Table Headers */
.comparison-table thead th {
  padding: 26px 28px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

[data-theme="light"] .comparison-table thead th {
  border-bottom-color: rgba(15, 12, 25, 0.08);
}

.th-criterion {
  width: 28%;
  color: var(--muted);
  font-size: 14px;
}

/* Taqnawy Column Header */
.th-taqnawy {
  width: 40%;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.2) 0%, rgba(124, 58, 237, 0.08) 100%);
  border-inline: 1px solid rgba(168, 85, 247, 0.35);
  position: relative;
}

[data-theme="light"] .th-taqnawy {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.12) 0%, rgba(168, 85, 247, 0.04) 100%);
  border-inline-color: rgba(124, 58, 237, 0.25);
}

.th-taqnawy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc);
  box-shadow: 0 0 16px #a855f7;
}

.taqnawy-th-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.th-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
}

[data-theme="light"] .th-logo-badge {
  color: #09090b;
}

.th-logo-badge svg {
  width: 20px;
  height: 20px;
  color: var(--accent-bright);
  filter: drop-shadow(0 0 8px var(--glow));
}

.th-sub-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: "Inter", monospace;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(168, 85, 247, 0.25);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

[data-theme="light"] .th-sub-badge {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.3);
}

.th-traditional {
  width: 32%;
  color: var(--subtle);
}

.traditional-th-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.traditional-th-inner span {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.traditional-th-inner small {
  font-size: 12px;
  color: var(--subtle);
  font-weight: 500;
}

/* Rows Styling */
.comp-row {
  transition: all 0.25s var(--ease);
}

.comp-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

[data-theme="light"] .comp-row:hover {
  background: rgba(124, 58, 237, 0.03);
}

.comp-row td {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

[data-theme="light"] .comp-row td {
  border-bottom-color: rgba(15, 12, 25, 0.06);
}

.comp-row:last-child td {
  border-bottom: none;
}

/* Criterion Head */
.crit-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.crit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c084fc;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

[data-theme="light"] .crit-icon {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
}

.comp-row:hover .crit-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent);
  box-shadow: 0 0 16px -2px var(--glow);
}

.crit-icon svg {
  width: 18px;
  height: 18px;
}

.crit-head strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.crit-head small {
  display: block;
  font-size: 12px;
  color: var(--subtle);
  margin-top: 3px;
}

/* Taqnawy Column Cells */
.td-taqnawy {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, rgba(124, 58, 237, 0.04) 100%);
  border-inline: 1px solid rgba(168, 85, 247, 0.3);
  position: relative;
  transition: background-color 0.25s var(--ease);
}

[data-theme="light"] .td-taqnawy {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.05) 0%, rgba(168, 85, 247, 0.02) 100%);
  border-inline-color: rgba(124, 58, 237, 0.2);
}

.comp-row:hover .td-taqnawy {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.14) 0%, rgba(124, 58, 237, 0.07) 100%);
}

.cell-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-pill {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--live);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
  margin-top: 2px;
}

.check-pill svg {
  width: 20px;
  height: 20px;
}

.td-taqnawy strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}

.td-taqnawy p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Traditional Column Cells */
.td-traditional {
  opacity: 0.82;
  transition: opacity 0.25s var(--ease);
}

.comp-row:hover .td-traditional {
  opacity: 1;
}

.cross-pill {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #ef4444;
  flex-shrink: 0;
  opacity: 0.85;
  margin-top: 2px;
}

.cross-pill svg {
  width: 20px;
  height: 20px;
}

.td-traditional strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 4px;
}

.td-traditional p {
  font-size: 12.5px;
  color: var(--subtle);
  line-height: 1.6;
}

/* Bottom Conversion Banner */
.comparison-footer-banner {
  padding: 30px 36px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.16) 0%, rgba(124, 58, 237, 0.28) 100%);
  border-top: 1.5px solid rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

[data-theme="light"] .comparison-footer-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(168, 85, 247, 0.16) 100%);
  border-top-color: rgba(124, 58, 237, 0.25);
}

.comp-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner-sparkle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #9333ea, #6b21a8);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--glow);
  animation: pulseSparkle 2.5s ease-in-out infinite alternate;
}

@keyframes pulseSparkle {
  0% { transform: scale(0.96) rotate(0deg); }
  100% { transform: scale(1.08) rotate(8deg); }
}

.banner-sparkle svg {
  width: 22px;
  height: 22px;
}

.comp-banner-content strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.comp-banner-content p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}

.comp-cta-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  font-weight: 700;
  font-size: 15px;
}

.comp-cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 45px rgba(168, 85, 247, 0.75), 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Mobile & Tablet Responsive for Comparison Table */
@media (max-width: 860px) {
  .comparison-table-wrap {
    overflow-x: auto;
  }
  .comparison-table {
    min-width: 680px;
  }
  .comparison-footer-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 24px 20px;
  }
  .comp-banner-content {
    flex-direction: column;
    text-align: center;
  }
  .comp-cta-btn {
    width: 100%;
  }
}

/* ---------- 15. FAQ ---------- */
.faq {
  border-top: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary svg {
  width: 18px;
  height: 18px;
  color: var(--subtle);
  transition: transform var(--med);
}
.faq-item[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq-item p {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}

/* ---------- 16. Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px;
}
.contact:hover { transform: none; }

.contact-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-list small {
  display: block;
  font-size: 12px;
  color: var(--subtle);
}
.contact-list a,
.contact-list span:not(.service-icon) {
  font-size: 15px;
  font-weight: 600;
}
.contact-list a:hover { color: var(--accent); }
[dir="rtl"] .contact-list a[dir="ltr"] { text-align: right; display: block; }

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font-size: 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.field input::placeholder,
.field textarea::placeholder { color: var(--subtle); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--border-strong); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field .invalid { border-color: #ef4444; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 40px;
  cursor: pointer;
}
.select-wrap svg {
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--subtle);
  pointer-events: none;
}
.select-wrap option { background: var(--card); color: var(--text); }

.form-error { font-size: 13px; color: #ef4444; }
.form-note {
  font-size: 12.5px;
  color: var(--subtle);
  text-align: center;
}

/* ---------- 17. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--fast);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--subtle);
}
.footer-crafted {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.heart-pulse {
  display: inline-block;
  animation: heartBeat 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.95)) drop-shadow(0 0 4px #c084fc);
  will-change: transform;
}
.purple-heart {
  color: #a855f7;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.95)) drop-shadow(0 0 4px #c084fc);
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.24); }
  70% { transform: scale(1); }
}
.footer-status { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- 18. Platform Lightbox Modal ---------- */
.platform-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.platform-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 840px;
  z-index: 1;
  transform: scale(0.95) translateY(14px);
  transition: transform 0.35s var(--bounce);
}
.platform-modal.open .modal-dialog {
  transform: scale(1) translateY(0);
}
.modal-card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.85);
}
.modal-header {
  height: 46px;
  padding: 0 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-controls { display: flex; gap: 6px; }
.modal-dot { width: 10px; height: 10px; border-radius: 50%; }
.modal-dot.red { background: #ef4444; }
.modal-dot.yellow { background: #eab308; }
.modal-dot.green { background: #22c55e; }
.modal-title { font-size: 13px; font-weight: 600; color: var(--subtle); }
.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all var(--fast);
}
.modal-close-btn:hover { background: var(--spot); color: var(--text); }
.modal-close-btn svg { width: 16px; height: 16px; }

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-img-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.modal-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.modal-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-live-beacon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--live);
}
.modal-heading {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.modal-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}
.modal-telemetry {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-tele-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text);
  font-weight: 600;
}
.modal-tele-chip svg { width: 14px; height: 14px; color: var(--accent); }
.modal-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 19. Floating WhatsApp Widget ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 950;
}
.wa-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px -4px rgba(37, 211, 102, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform var(--fast), box-shadow var(--fast);
}
.wa-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 16px 32px -4px rgba(37, 211, 102, 0.6);
}
.wa-icon { width: 28px; height: 28px; }
.wa-ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulseRipple 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}
.wa-ripple-delayed { animation-delay: 1.4s; }
@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}
.wa-tooltip {
  position: absolute;
  top: 50%;
  inset-inline-end: 66px;
  transform: translateY(-50%) translateX(10px);
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--fast);
}
.wa-btn:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---------- 20. Reveal Motion & Transitions ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), border-color var(--med), box-shadow var(--med), background-color var(--med);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js .hero .reveal,
.js .reveal.in { opacity: 1; transform: none; }
.js .contact.reveal.in:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 21. Responsive Media Queries ---------- */
@media (max-width: 1040px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header.open .mobile-menu { display: flex; }

  .work-card.wide { grid-template-columns: 1fr; gap: 22px; }
  .work-card.wide.reverse .shot { order: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .estimator-grid { grid-template-columns: 1fr; }
  .estimator-summary { position: static; }
}

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2 { grid-column: span 1; }
  .span-3, .span-4, .span-6 { grid-column: span 2; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }

  .est-options-grid { grid-template-columns: 1fr; }
  .est-checks-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; padding: 32px; gap: 36px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .header { top: 10px; padding-inline: 8px; }
  .header-pill { height: 50px; padding-inline: 12px; }
  .header-cta { display: none; }

  .hero { padding-top: 104px; }
  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.25;
    margin-top: 18px;
    word-break: break-word;
  }
  .hero-sub { font-size: 14.5px; line-height: 1.7; margin-top: 14px; }
  .hero-ctas { width: 100%; flex-direction: column; margin-top: 26px; }
  .hero-ctas .btn { width: 100%; }
  .hero-meta { margin-top: 26px; gap: 8px 16px; }


  .stats { margin-top: 44px; }
  .stat { padding: 18px 10px; }
  .stat-value { font-size: 1.75rem; }

  .marquee-strip { margin-top: 36px; }
  .marquee-item { height: 38px; font-size: 12px; padding: 0 12px; }
  .partners-strip { padding-top: 60px; padding-bottom: 16px; }
  .partners-strip .marquee-item { height: 40px; font-size: 12px; padding: 0 14px; }

  .section { padding-top: 72px; }
  #contact { padding-bottom: 72px; }
  .section-head { margin-bottom: 32px; }
  .section-title { font-size: 1.75rem; }

  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; }
  .work-card, .work-card.wide { padding: 18px; }
  .work-card.wide .work-title { font-size: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .estimator-controls { padding: 20px; }
  .estimator-summary { padding: 20px; }
  .why-card { padding: 20px; }

  .contact { padding: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .floating-whatsapp { bottom: 20px; inset-inline-end: 20px; }
  .wa-btn { width: 48px; height: 48px; }
  .wa-icon { width: 24px; height: 24px; }
  .wa-tooltip { display: none; }
}
