/* ============================================================
   QDCL LANDING — MASTER STYLESHEET
   Cinematic dark theme · RTL-safe · Mobile-first responsive
   ============================================================ */

/* ── 1. DESIGN TOKENS ────────────────────────────────────── */
:root {
  --clr-bg: #0a0a0f;
  --clr-surface: #12121a;
  --clr-surface2: #1a1a26;
  --clr-border: rgba(255, 255, 255, .06);
  --clr-text: #e8e6ef;
  --clr-text-muted: rgba(232, 230, 239, .48);
  --clr-accent: #c45b8a;
  /* warm magenta */
  --clr-accent2: #8c69b0;
  /* muted violet */
  --clr-accent3: #d4a07a;
  /* warm gold */
  --clr-white: #ffffff;

  --grad-accent: linear-gradient(135deg, #c45b8a 0%, #8c69b0 60%, #6b8fd4 100%);
  --grad-gold: linear-gradient(135deg, #d4a07a, #c45b8a);
  --grad-video-overlay: linear-gradient(180deg,
      rgba(10, 10, 15, .55) 0%,
      rgba(10, 10, 15, .25) 40%,
      rgba(10, 10, 15, .55) 70%,
      rgba(10, 10, 15, .92) 100%);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --font-body-ar: 'Cairo', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --z-canvas: 0;
  --z-content: 2;
  --z-float: 4;
  --z-nav: 100;
  --z-loader: 200;
  --z-cursor: 300;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
}

html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] span,
html[dir="rtl"] li,
html[dir="rtl"] button {
  font-family: var(--font-body-ar) !important;
}

/* ── 3. SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-accent);
  border-radius: 3px;
}

/* ── 4. LOADER ────────────────────────────────────────────── */
.qdcl-loader {
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity .7s var(--ease-out), visibility .7s;
}

.qdcl-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.qdcl-loader__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.qdcl-loader__ring--1 {
  width: 90px;
  height: 90px;
  border-top-color: var(--clr-accent);
  animation: spin .9s linear infinite;
}

.qdcl-loader__ring--2 {
  width: 68px;
  height: 68px;
  border-top-color: var(--clr-accent2);
  animation: spin 1.2s linear infinite reverse;
}

.qdcl-loader__ring--3 {
  width: 46px;
  height: 46px;
  border-top-color: var(--clr-accent3);
  animation: spin 1.5s linear infinite;
}

.qdcl-loader__logo {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── 5. CUSTOM CURSOR ────────────────────────────────────── */
.qdcl-cursor {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--clr-accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform .12s var(--ease-out), width .2s, height .2s, border-color .2s;
  will-change: transform;
}

.qdcl-cursor.hover {
  width: 40px;
  height: 40px;
  border-color: var(--clr-accent3);
  background: rgba(196, 91, 138, .12);
}

.qdcl-cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--clr-accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: background .2s;
  will-change: transform;
}

/* ── 6. NAVIGATION ───────────────────────────────────────── */
.qdcl-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-nav);
  transition: background .5s, padding .4s, box-shadow .4s;
}

.qdcl-nav.glass {
  background: rgba(10, 10, 15, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 40px;
  box-shadow: 0 1px 0 var(--clr-border);
}

.qdcl-nav__logo img {
  height: 44px;
}

.qdcl-nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.qdcl-nav__links a {
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  transition: color .3s;
}

.qdcl-nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-accent);
  transition: width .35s var(--ease-out);
}

html[dir="rtl"] .qdcl-nav__links a::after {
  left: auto;
  right: 0;
}

.qdcl-nav__links a:hover {
  color: var(--clr-white);
}

.qdcl-nav__links a:hover::after {
  width: 100%;
}

.qdcl-nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qdcl-btn--nav-ghost {
  color: var(--clr-text-muted);
  background: transparent;
  border: 1px solid var(--clr-border);
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .3s, color .3s;
}

.qdcl-btn--nav-ghost:hover {
  border-color: var(--clr-accent);
  color: var(--clr-white);
}

.qdcl-btn--nav-fill {
  background: var(--grad-accent);
  color: var(--clr-white);
  border: none;
  padding: 9px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(196, 91, 138, .3);
}

.qdcl-btn--nav-fill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(196, 91, 138, .4);
}

/* iOS-style language switcher */
.qdcl-lang {
  width: 80px;
  height: 34px;
  background: rgba(255, 255, 255, .07);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  display: flex;
  direction: ltr !important;
  user-select: none;
}

.qdcl-lang__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 38px;
  height: 30px;
  background: var(--clr-white);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  transition: transform .3s cubic-bezier(.2, 0, 0, 1);
  z-index: 1;
}

.qdcl-lang__label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--clr-text-muted);
  z-index: 2;
  pointer-events: none;
  transition: color .25s;
}

.qdcl-lang__label.active {
  color: var(--clr-bg);
}

/* Hamburger */
.qdcl-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 1);
  background: none;
  border: none;
  padding: 6px;
}

.qdcl-nav__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .3s;
}

/* Hamburger → X morph */
.qdcl-nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.qdcl-nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.qdcl-nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.qdcl-mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
}

html[dir="rtl"] .qdcl-mobile-menu {
  transform: translateX(-100%);
}

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

.qdcl-mobile-menu a {
  color: var(--clr-text);
  text-decoration: none;
  font-size: 26px;
  font-weight: 700;
  transition: color .25s;
}

.qdcl-mobile-menu a:hover {
  color: var(--clr-accent);
}

/* ── 7. HERO ─────────────────────────────────────────────── */
.qdcl-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Three.js canvas sits behind everything */
#qdcl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-canvas);
}

/* Video layer */
.qdcl-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.qdcl-hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
}

/* Cinematic overlay: vignette + bottom fade for text legibility */
.qdcl-hero__video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-video-overlay);
  mix-blend-mode: normal;
}

/* Noise grain for cinematic texture */
.qdcl-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .6;
}

/* Hero content */
.qdcl-hero__body {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.qdcl-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(196, 91, 138, .35);
  background: rgba(196, 91, 138, .1);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal .8s .15s var(--ease-out) forwards;
}

.qdcl-hero__pill-dot {
  width: 7px;
  height: 7px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.qdcl-hero__pill span {
  color: var(--clr-accent);
  font-size: 13px;
  font-weight: 600;
}

.qdcl-hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--clr-white);
  margin-bottom: 26px;
  max-width: 760px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal .9s .3s var(--ease-out) forwards;
}

.qdcl-hero__title em {
  font-style: italic;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qdcl-hero__sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--clr-text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal .85s .48s var(--ease-out) forwards;
}

.qdcl-hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal .8s .6s var(--ease-out) forwards;
}

/* Primary CTA */
.qdcl-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad-accent);
  color: var(--clr-white);
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(196, 91, 138, .35);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}

.qdcl-btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  transition: left .5s;
}

.qdcl-btn--primary:hover::before {
  left: 140%;
}

.qdcl-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(196, 91, 138, .45);
}

/* Secondary CTA */
.qdcl-btn--secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(8px);
  color: var(--clr-text);
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--clr-border);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s, transform .25s;
}

.qdcl-btn--secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--clr-accent);
  color: var(--clr-white);
  transform: translateY(-2px);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll hint */
.qdcl-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroReveal .8s 1.1s var(--ease-out) forwards;
}

.qdcl-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--clr-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: .3;
    transform: scaleY(.6);
  }
}

/* ── 8. MARQUEE BAR ──────────────────────────────────────── */
.qdcl-marquee {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.qdcl-marquee__track {
  display: inline-flex;
  gap: 72px;
  animation: marquee 28s linear infinite;
}

.qdcl-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--clr-text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.qdcl-marquee__item svg {
  width: 16px;
  height: 16px;
  stroke: var(--clr-accent);
  fill: none;
  stroke-width: 2.5;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── 9. FEATURES (3 cards) ───────────────────────────────── */
.qdcl-features {
  padding: 140px 40px;
  background: var(--clr-bg);
  position: relative;
}

/* Subtle ambient glow */
.qdcl-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(140, 105, 176, .08) 0%, transparent 70%);
  pointer-events: none;
}

.qdcl-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.qdcl-section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.qdcl-section-label span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.qdcl-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 80px;
}

.qdcl-section-header .qdcl-section-label {
  justify-content: center;
}

.qdcl-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -.015em;
}

html[dir="rtl"] .qdcl-section-header h2 {
  font-family: var(--font-body-ar) !important;
}

.qdcl-section-header p {
  font-size: 17px;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.qdcl-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.qdcl-feature {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .4s;
  opacity: 0;
  transform: translateY(44px);
  text-align: left;
}

html[dir="rtl"] .qdcl-feature {
  text-align: right;
}

/* stagger animation via JS data-delay */
.qdcl-feature.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

/* top-edge accent bar */
.qdcl-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}

html[dir="rtl"] .qdcl-feature::before {
  transform-origin: right;
}

.qdcl-feature:hover::before {
  transform: scaleX(1);
}

.qdcl-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  border-color: rgba(196, 91, 138, .2);
}

.qdcl-feature__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(196, 91, 138, .1);
  border: 1px solid rgba(196, 91, 138, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: background .3s, transform .35s var(--ease-spring);
}

.qdcl-feature:hover .qdcl-feature__icon {
  background: rgba(196, 91, 138, .18);
  transform: scale(1.08) rotate(3deg);
}

.qdcl-feature__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--clr-accent);
  fill: none;
  stroke-width: 1.8;
}

.qdcl-feature__num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 64px;
  font-weight: 800;
  color: rgba(255, 255, 255, .035);
  line-height: 1;
  font-family: var(--font-display);
}

html[dir="rtl"] .qdcl-feature__num {
  right: auto;
  left: 28px;
}

.qdcl-feature h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 12px;
}

.qdcl-feature p {
  font-size: 15px;
  color: var(--clr-text-muted);
  line-height: 1.75;
}

/* ── 10. VIDEO SHOWCASE ──────────────────────────────────── */
.qdcl-video-section {
  padding: 100px 40px;
  background: var(--clr-surface);
}

.qdcl-video-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.qdcl-video-section .qdcl-section-header {
  text-align: left;
  max-width: 100%;
  margin-bottom: 56px;
}

.qdcl-video-section .qdcl-section-header .qdcl-section-label {
  justify-content: flex-start;
}

html[dir="rtl"] .qdcl-video-section .qdcl-section-header {
  text-align: right;
}

html[dir="rtl"] .qdcl-video-section .qdcl-section-header .qdcl-section-label {
  justify-content: flex-end;
}

.qdcl-video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--clr-bg);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .4);
}

.qdcl-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* subtle vignette on the framed video */
.qdcl-video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .35);
  pointer-events: none;
  border-radius: inherit;
}

/* Decorative corner accents */
.qdcl-video-frame__corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: var(--clr-accent);
  border-style: solid;
  z-index: 2;
}

.qdcl-video-frame__corner--tl {
  top: -2px;
  left: -2px;
  border-width: 3px 0 0 3px;
  border-radius: 6px 0 0 0;
}

.qdcl-video-frame__corner--tr {
  top: -2px;
  right: -2px;
  border-width: 3px 3px 0 0;
  border-radius: 0 6px 0 0;
}

.qdcl-video-frame__corner--bl {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 3px 3px;
  border-radius: 0 0 0 6px;
}

.qdcl-video-frame__corner--br {
  bottom: -2px;
  right: -2px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 6px 0;
}

/* ── 11. STATS BAR ───────────────────────────────────────── */
.qdcl-stats {
  padding: 80px 40px;
  background: var(--clr-bg);
  position: relative;
  overflow: hidden;
}

.qdcl-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 91, 138, .06) 0%, transparent 50%, rgba(140, 105, 176, .06) 100%);
  pointer-events: none;
}

.qdcl-stats__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.qdcl-stat {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
  transition: border-color .35s, transform .35s var(--ease-out);
}

.qdcl-stat:hover {
  border-color: rgba(196, 91, 138, .25);
  transform: translateY(-4px);
}

.qdcl-stat__number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1;
  margin-bottom: 10px;
}

.qdcl-stat__number span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qdcl-stat__label {
  font-size: 14px;
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* ── 12. BENEFITS (2-col) ────────────────────────────────── */
.qdcl-benefits {
  padding: 140px 40px;
  background: var(--clr-surface);
}

.qdcl-benefits__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.qdcl-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 80px;
}

.qdcl-benefit {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color .35s, transform .3s var(--ease-out), box-shadow .35s;
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
}

html[dir="rtl"] .qdcl-benefit {
  text-align: right;
  flex-direction: row-reverse;
}

.qdcl-benefit.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}

.qdcl-benefit:hover {
  border-color: rgba(196, 91, 138, .22);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
}

.qdcl-benefit__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(196, 91, 138, .08);
  border: 1px solid rgba(196, 91, 138, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}

.qdcl-benefit:hover .qdcl-benefit__icon {
  background: rgba(196, 91, 138, .16);
}

.qdcl-benefit__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--clr-accent);
  fill: none;
  stroke-width: 1.8;
}

.qdcl-benefit h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 8px;
}

.qdcl-benefit p {
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ── 13. CTA SECTION ─────────────────────────────────────── */
.qdcl-cta {
  padding: 160px 40px;
  position: relative;
  overflow: hidden;
  background: var(--clr-bg);
}

/* Radial glow */
.qdcl-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(196, 91, 138, .12) 0%, transparent 65%);
  pointer-events: none;
}

.qdcl-cta__card {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 36px;
  padding: 80px 56px;
  position: relative;
  z-index: 1;
  box-shadow: 0 60px 120px rgba(0, 0, 0, .25);
}

.qdcl-cta__card h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -.015em;
}

html[dir="rtl"] .qdcl-cta__card h2 {
  font-family: var(--font-body-ar) !important;
}

.qdcl-cta__card p {
  font-size: 17px;
  color: var(--clr-text-muted);
  max-width: 500px;
  margin: 0 auto 42px;
  line-height: 1.8;
}

.qdcl-cta__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 14. FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 80px 40px 40px;
}

.qdcl-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.qdcl-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--clr-border);
  text-align: left;
}

html[dir="rtl"] .qdcl-footer__grid {
  text-align: right;
}

.qdcl-footer__brand img {
  height: 48px;
  margin-bottom: 18px;
}

.qdcl-footer__brand p {
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.8;
  max-width: 300px;
}

.qdcl-footer__col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.qdcl-footer__col ul {
  list-style: none;
}

.qdcl-footer__col li {
  margin-bottom: 14px;
}

.qdcl-footer__col a {
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .25s, padding .25s;
}

.qdcl-footer__col a:hover {
  color: var(--clr-accent);
}

html[dir="rtl"] .qdcl-footer__col a:hover {
  padding-right: 8px;
}

html[dir="ltr"] .qdcl-footer__col a:hover {
  padding-left: 8px;
}

.qdcl-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.qdcl-footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: background .3s, border-color .3s, color .3s, transform .25s;
}

.qdcl-footer__social a:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.qdcl-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
}

.qdcl-footer__bottom p {
  font-size: 13px;
  color: var(--clr-text-muted);
}

.qdcl-footer__bottom-links {
  display: flex;
  gap: 24px;
}

.qdcl-footer__bottom-links a {
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .25s;
}

.qdcl-footer__bottom-links a:hover {
  color: var(--clr-white);
}

/* ── 15. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .qdcl-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .qdcl-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .qdcl-nav__links,
  .qdcl-nav__actions {
    display: none;
  }

  .qdcl-nav__hamburger {
    display: flex;
  }

  .qdcl-hero__body {
    padding-bottom: 72px;
  }

  .qdcl-hero__title {
    font-size: clamp(38px, 9vw, 56px);
  }

  .qdcl-features,
  .qdcl-benefits,
  .qdcl-cta {
    padding: 90px 24px;
  }

  .qdcl-video-section {
    padding: 80px 24px;
  }

  .qdcl-features__grid {
    grid-template-columns: 1fr;
  }

  .qdcl-benefits__grid {
    grid-template-columns: 1fr;
  }

  .qdcl-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .qdcl-cta__card {
    padding: 56px 28px;
  }

  .qdcl-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .qdcl-footer__bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  /* Hide cursor on touch */
  .qdcl-cursor,
  .qdcl-cursor-dot {
    display: none;
  }
}

@media (max-width: 480px) {
  .qdcl-hero__ctas {
    flex-direction: column;
  }

  .qdcl-btn--primary,
  .qdcl-btn--secondary {
    width: 100%;
    justify-content: center;
  }

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

  .qdcl-cta__btns {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── 16. SCROLL REVEAL UTILITY ──────────────────────────── */
.qdcl-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.qdcl-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 17. AUDIO TOGGLE ───────────────────────────────────── */
.qdcl-audio-toggle {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  color: var(--clr-white);
  transition: transform .3s var(--ease-out), background .3s, border-color .3s;
}

html[dir="rtl"] .qdcl-audio-toggle {
  left: auto;
  right: 32px;
}

.qdcl-audio-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, .12);
  border-color: var(--clr-accent);
}

.qdcl-audio-toggle__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .3s, transform .3s;
}

.qdcl-audio-toggle .icon-off {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

.qdcl-audio-toggle.muted .icon-on {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
}

.qdcl-audio-toggle.muted .icon-off {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
  .qdcl-audio-toggle {
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
  }

  html[dir="rtl"] .qdcl-audio-toggle {
    right: 20px;
    left: auto;
  }
}