/* ============================== */
/* DCCO LMS SaaS — Landing Page    */
/* ============================== */

:root {
  --dcco-primary: #012F33;
  --dcco-secondary: #4EA799;
  --dcco-primary-light: #02474D;
  --dcco-secondary-light: #6BBFB3;
  --dcco-primary-dark: #011F22;
  --dcco-secondary-dark: #3D8A7E;
  --dcco-accent: #F5A623;
  --dcco-surface-light: #F8FAFA;
  --dcco-surface-dark: #0A1E20;
  --dcco-card-dark: #0F2A2D;
  --dcco-border-dark: #1A3F43;
  --dcco-text-light: #1A2B2D;
  --dcco-text-dark: #E0F0ED;
  --dcco-muted: #6B8A8D;
}

/* --- Alexandria font tuning (font reads large; relax everything) --- */
html { font-size: 15px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  font-family: 'Alexandria', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.85;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

/* Force generous line-height on every text element. Tailwind's leading-* utilities
   would otherwise clamp these, so we ride a slightly higher specificity. */
body h1, body h2, body h3, body h4, body h5, body h6 {
  letter-spacing: -0.018em;
  font-weight: 700;
  line-height: 1.4;
}
body h1 { line-height: 1.25; letter-spacing: -0.025em; }
body h2 { line-height: 1.3; letter-spacing: -0.02em; }
body h3 { line-height: 1.4; }
body h4 { line-height: 1.5; }

body p, body li, body dd, body dt, body blockquote { line-height: 1.95; }

body small,
body .text-xs,
body .text-\[10px\],
body .text-\[11px\],
body .text-\[12px\] { line-height: 1.7; }

body .text-sm { line-height: 1.85; }
body .text-base { line-height: 1.95; }
body .text-lg { line-height: 1.8; }
body .text-xl { line-height: 1.7; }
body .text-2xl { line-height: 1.5; }
body .text-3xl { line-height: 1.35; }
body .text-4xl { line-height: 1.25; }
body .text-5xl { line-height: 1.15; }
body .text-6xl { line-height: 1.1; }
body .text-7xl { line-height: 1.05; }

body button, body a, body label, body input, body select, body textarea { line-height: 1.6; }

.lead { line-height: 1.95; }

html { scroll-behavior: smooth; }

/* Force Latin numerals everywhere — Eastern Arabic numerals look cramped
   inside this font and the user prefers Latin in financial/data displays. */
.num-latin,
.price-amount .num,
[data-counter],
[data-price] { font-feature-settings: "lnum" 1, "tnum" 1; font-variant-numeric: lining-nums tabular-nums; }
[lang="ar"] .num-latin,
[lang="ar"] .price-amount .num,
[lang="ar"] [data-counter],
[lang="ar"] [data-price] { unicode-bidi: plaintext; }

/* --- Aurora / mesh background — primary/secondary only --- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  width: 50rem;
  height: 50rem;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.32;
  animation: floatBlob 22s ease-in-out infinite;
}

.aurora::before {
  background: radial-gradient(circle, var(--dcco-secondary), transparent 60%);
  top: -12rem;
  inset-inline-start: -12rem;
}

.aurora::after {
  background: radial-gradient(circle, var(--dcco-primary-light), transparent 60%);
  bottom: -16rem;
  inset-inline-end: -10rem;
  animation-delay: -11s;
  opacity: 0.25;
}

html.dark .aurora::before { opacity: 0.28; }
html.dark .aurora::after { opacity: 0.18; }

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4rem, -3rem) scale(1.08); }
  66% { transform: translate(-3rem, 3rem) scale(0.95); }
}

/* --- Glass cards --- */
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(78, 167, 153, 0.12);
  border-radius: 1.5rem;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.9) inset,
    0 10px 40px -16px rgba(1, 47, 51, 0.18);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 400ms ease, border-color 400ms ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.9) inset,
    0 18px 50px -18px rgba(1, 47, 51, 0.25);
  border-color: rgba(78, 167, 153, 0.32);
}

html.dark .glass-card {
  background: rgba(15, 42, 45, 0.55);
  border-color: rgba(78, 167, 153, 0.16);
  box-shadow:
    0 1px 0 0 rgba(78, 167, 153, 0.1) inset,
    0 10px 40px -16px rgba(0, 0, 0, 0.5);
}

html.dark .glass-card:hover {
  border-color: rgba(78, 167, 153, 0.4);
  box-shadow:
    0 1px 0 0 rgba(78, 167, 153, 0.1) inset,
    0 18px 50px -18px rgba(0, 0, 0, 0.7);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(78, 167, 153, 0.1);
}

html.dark .glass-nav {
  background: rgba(10, 30, 32, 0.78);
  border-bottom-color: rgba(78, 167, 153, 0.14);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(78, 167, 153, 0.18);
  border-radius: 9999px;
}

html.dark .glass-pill {
  background: rgba(15, 42, 45, 0.55);
  border-color: rgba(78, 167, 153, 0.22);
}

/* --- Gradient text — primary→secondary only --- */
.gradient-text {
  background: linear-gradient(135deg, var(--dcco-primary) 0%, var(--dcco-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html.dark .gradient-text {
  background: linear-gradient(135deg, var(--dcco-secondary-light) 0%, var(--dcco-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--dcco-primary) 0%, var(--dcco-secondary-dark) 100%);
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 8px 24px -10px rgba(1, 47, 51, 0.45);
  transition: transform 250ms ease, box-shadow 250ms ease;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(1, 47, 51, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  color: var(--dcco-primary);
  border: 1px solid rgba(1, 47, 51, 0.14);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: all 250ms ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: white;
  border-color: var(--dcco-secondary);
  transform: translateY(-2px);
}

html.dark .btn-secondary {
  background: rgba(15, 42, 45, 0.6);
  color: var(--dcco-text-dark);
  border-color: rgba(78, 167, 153, 0.28);
}

html.dark .btn-secondary:hover {
  background: rgba(15, 42, 45, 0.9);
  border-color: var(--dcco-secondary);
}

/* --- CTA buttons on dark/gradient backgrounds --- */
.cta-on-dark-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0 1.875rem;
  height: 3.25rem;
  background: #FFFFFF;
  color: var(--dcco-primary);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: -0.005em;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.4);
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
  border: none;
}
.cta-on-dark-primary:hover {
  transform: translateY(-2px);
  background: var(--dcco-surface-light);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}

.cta-on-dark-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0 1.625rem;
  height: 3.25rem;
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  transition: background 250ms ease, border-color 250ms ease, transform 250ms ease;
}
.cta-on-dark-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* --- Feature icon — primary/secondary only --- */
.feature-icon {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(78, 167, 153, 0.14) 0%, rgba(1, 47, 51, 0.06) 100%);
  color: var(--dcco-secondary-dark);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 400ms ease;
}

.glass-card:hover .feature-icon { transform: scale(1.06) rotate(-3deg); }

html.dark .feature-icon {
  background: linear-gradient(135deg, rgba(78, 167, 153, 0.18) 0%, rgba(1, 47, 51, 0.3) 100%);
  color: var(--dcco-secondary-light);
}

/* --- Pricing — clean, restrained --- */
.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(78, 167, 153, 0.14);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1), border-color 400ms ease, box-shadow 400ms ease;
  box-shadow: 0 10px 40px -18px rgba(1, 47, 51, 0.15);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(78, 167, 153, 0.28);
  box-shadow: 0 18px 50px -20px rgba(1, 47, 51, 0.22);
}

html.dark .pricing-card {
  background: rgba(15, 42, 45, 0.55);
  border-color: rgba(78, 167, 153, 0.16);
}

html.dark .pricing-card:hover {
  border-color: rgba(78, 167, 153, 0.36);
}

.pricing-card .pricing-badge { display: none; }

.pricing-card.is-popular {
  background: linear-gradient(180deg, rgba(78, 167, 153, 0.06) 0%, rgba(255, 255, 255, 0.7) 60%);
  border-color: rgba(78, 167, 153, 0.45);
  box-shadow:
    0 0 0 1px rgba(78, 167, 153, 0.35),
    0 22px 60px -22px rgba(78, 167, 153, 0.4);
}

html.dark .pricing-card.is-popular {
  background: linear-gradient(180deg, rgba(78, 167, 153, 0.12) 0%, rgba(15, 42, 45, 0.6) 60%);
  border-color: rgba(107, 191, 179, 0.45);
  box-shadow:
    0 0 0 1px rgba(107, 191, 179, 0.3),
    0 22px 60px -22px rgba(0, 0, 0, 0.6);
}

.pricing-card.is-popular .pricing-badge {
  display: inline-flex;
  position: absolute;
  top: -0.75rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: var(--dcco-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 9999px;
  box-shadow: 0 8px 22px -8px rgba(1, 47, 51, 0.5);
}

[dir="rtl"] .pricing-card.is-popular .pricing-badge {
  transform: translateX(50%);
}

.pricing-card.is-popular .pricing-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dcco-secondary-light);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-amount .num { font-size: 3rem; line-height: 1; color: var(--dcco-primary); }
html.dark .price-amount .num { color: white; }

.price-amount .unit { font-size: 0.9rem; font-weight: 600; color: var(--dcco-muted); line-height: 1.4; }
.price-amount .per { font-size: 0.85rem; font-weight: 500; color: var(--dcco-muted); line-height: 1.4; }

.price-features { display: flex; flex-direction: column; gap: 0.875rem; }

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--dcco-text-light);
  line-height: 1.7;
}

html.dark .price-features li { color: var(--dcco-text-dark); }

.price-features li .tick {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: rgba(78, 167, 153, 0.15);
  color: var(--dcco-secondary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

html.dark .price-features li .tick {
  background: rgba(78, 167, 153, 0.22);
  color: var(--dcco-secondary-light);
}

.price-features li.muted { color: var(--dcco-muted); }
.price-features li.muted .tick {
  background: transparent;
  color: var(--dcco-muted);
  border: 1px dashed currentColor;
}

.pricing-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(78, 167, 153, 0.22), transparent);
  margin: 1.5rem 0;
}

/* --- Section dividers / soft spacing --- */
.section { position: relative; padding-block: clamp(4rem, 9vw, 7rem); }

/* --- Animated grid background --- */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(78, 167, 153, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(78, 167, 153, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 30%, transparent 80%);
}

/* --- Marquee logos --- */
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}
[dir="rtl"] .marquee-track { animation-name: marqueeScrollRtl; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeScrollRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* --- Accordion --- */
.faq-item .faq-body { max-height: 0; overflow: hidden; transition: max-height 400ms ease; }
.faq-item.open .faq-body { max-height: 22rem; }
.faq-item .faq-chevron { transition: transform 300ms ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* --- AOS tweak: keep things subtle --- */
[data-aos] { transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dcco-secondary); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--dcco-secondary-dark); }

/* --- Reduce motion --- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
}

/* --- Brand mark (navbar + footer) --- */
.brand-mark { line-height: 1.15; }
.brand-mark__primary {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--dcco-primary);
  line-height: 1.1;
}
html.dark .brand-mark__primary { color: var(--dcco-text-dark); }
.brand-mark__secondary {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--dcco-muted);
  line-height: 1.4;
  margin-top: 0.125rem;
}

/* --- RTL fixes --- */
[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

/* --- Page-specific component classes (replacing all inline style use) --- */

/* Hero H1: min-height for layout, plus bottom padding so Arabic descenders
   (the dots under ي/ج/ح/خ/ع) aren't clipped by the section's overflow:hidden
   when combined with -webkit-background-clip:text on the gradient line. */
.hero-title {
  min-height: 190px;
  line-height: 1.5;
  padding-bottom: 0.25em;
}

.hero-title .gradient-text {
  line-height: 1.55;
  padding-bottom: 0.3em;
}

/* Hero product preview mesh */
.hero-mesh {
  background:
    radial-gradient(circle at 20% 20%, #6BBFB3 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, #02474D 0%, transparent 45%);
}

/* CTA section mesh (deeper, larger) */
.cta-mesh {
  background:
    radial-gradient(circle at 15% 20%, #6BBFB3 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, #4EA799 0%, transparent 45%);
}

/* Hero mock dashboard chart bars */
.hero-bar { border-radius: 4px; }
.hero-bar-1 { height: 35%; background: rgba(255,255,255,0.30); }
.hero-bar-2 { height: 55%; background: rgba(255,255,255,0.45); }
.hero-bar-3 { height: 42%; background: rgba(255,255,255,0.35); }
.hero-bar-4 { height: 78%; background: var(--dcco-secondary-light); }
.hero-bar-5 { height: 60%; background: rgba(255,255,255,0.50); }
.hero-bar-6 { height: 88%; background: rgba(107, 191, 179, 0.80); }
.hero-bar-7 { height: 100%; background: var(--dcco-secondary-light); }

/* Completion progress bar fill */
.hero-progress-fill { width: 87%; height: 100%; background: linear-gradient(to right, var(--dcco-secondary-light), rgba(255,255,255,0.8)); }

/* Pricing card CTA pinned to the bottom of the flex column */
.pricing-card-cta { margin-top: auto; }

/* Enterprise "حسب الطلب" custom price label */
.price-amount .num.is-custom { font-size: 1.75rem; line-height: 1.2; }
