 * §19  PREMIUM POLISH — orbital, marquee, spotlight, tilt, magnetic, countup
 * ════════════════════════════════════════════════════════════════════════════ */

/* ─── (a) Cursor spotlight — fixed, follows mouse via CSS custom props ── */
.lp-spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 420px at var(--mx, 50%) var(--my, 50%),
      color-mix(in oklab, var(--primary) 14%, transparent) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
  mix-blend-mode: screen;
}
.lp-spotlight.is-on { opacity: 1; }
:root[data-theme="light"] .lp-spotlight { mix-blend-mode: multiply; }
@media (hover: none) { .lp-spotlight { display: none; } }

/* ─── (b) Cinematic hero canvas — animated conic mesh + grain ─────────── */
.lp-hero {
  isolation: isolate;
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 130%;
  z-index: -1;
  background:
    conic-gradient(from 220deg at 70% 30%,
      transparent 0deg,
      color-mix(in oklab, var(--primary) 18%, transparent) 60deg,
      transparent 120deg,
      color-mix(in oklab, var(--primary-hi) 12%, transparent) 200deg,
      transparent 280deg,
      color-mix(in oklab, var(--primary-deep) 14%, transparent) 340deg,
      transparent 360deg);
  filter: blur(80px);
  opacity: 0.85;
  animation: lpMeshSpin 50s linear infinite;
}
:root[data-theme="light"] .lp-hero::before { opacity: 0.35; }
@keyframes lpMeshSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Hero grain — tiny noise via SVG, very faint */
.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
}
:root[data-theme="light"] .lp-hero::after { opacity: 0.04; mix-blend-mode: multiply; }


/* ─── (c) True orbital portal — refined markup ────────────────────────── */

/* Glowing center rays — 4 rays rotating very slowly */
.lp-portal-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: lpRingSpin 90s linear infinite;
}
.lp-portal-rays::before,
.lp-portal-rays::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 1px;
  height: 90%;
  background: linear-gradient(180deg, transparent 0%, var(--primary) 50%, transparent 100%);
  transform: translate(-50%, -50%);
  opacity: 0.18;
  filter: blur(0.5px);
}
.lp-portal-rays::after { transform: translate(-50%, -50%) rotate(90deg); }

/* Orbit wrappers — each holds one pill, rotating around portal center */
.lp-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: rotate(var(--start, 0deg));
  animation: lpOrbitSpin var(--dur, 30s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.lp-orbit > .lp-pill {
  position: absolute;
  top: var(--top, 4%);
  left: 50%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--hairline-2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 28px -8px rgba(0,0,0,0.45),
    0 0 0 1px color-mix(in oklab, var(--primary) 16%, transparent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  transform: translate(-50%, -50%);
  animation: lpOrbitCounter var(--dur, 30s) linear infinite;
  animation-delay: var(--delay, 0s);
  transform-origin: center;
  will-change: transform;
}
:root[data-theme="light"] .lp-orbit > .lp-pill {
  background: #ffffff;
  box-shadow:
    0 10px 28px -10px rgba(15,23,42,0.18),
    0 0 0 1px color-mix(in oklab, var(--primary) 18%, transparent);
}
.lp-orbit > .lp-pill .lp-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
@keyframes lpOrbitSpin {
  from { transform: rotate(var(--start, 0deg)); }
  to   { transform: rotate(calc(var(--start, 0deg) + 360deg)); }
}
@keyframes lpOrbitCounter {
  from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--start, 0deg))); }
  to   { transform: translate(-50%, -50%) rotate(calc(-360deg - var(--start, 0deg))); }
}
@media (max-width: 480px) {
  .lp-orbit > .lp-pill { padding: 6px 10px; font-size: 0.7rem; }
  .lp-orbit > .lp-pill .lp-pill-dot { width: 6px; height: 6px; }
}


/* ─── (d) Infinite topics marquee ─────────────────────────────────────── */

.lp-marquee {
  position: relative;
  z-index: 1;
  margin: 10px 0 -10px;
  padding: 20px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  border-block: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, transparent, color-mix(in oklab, var(--primary) 4%, transparent), transparent);
}
.lp-marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: lpMarquee 38s linear infinite;
}
.lp-marquee-track:hover { animation-play-state: paused; }
.lp-marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.lp-marquee-item i {
  color: var(--primary);
  font-size: 0.65rem;
  opacity: 0.6;
}
@keyframes lpMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* RTL-friendly: visually the marquee moves smoothly; direction stays natural */


/* ─── (e) Magnetic buttons — JS sets --mx/--my to translate the inner span */
.lp-btn-magnetic {
  --mx: 0;
  --my: 0;
  transition:
    transform 0.4s var(--ease-spring),
    box-shadow 0.25s var(--ease),
    filter 0.18s ease;
}
.lp-btn-magnetic > * {
  display: inline-flex; align-items: center; gap: inherit;
  transform: translate3d(calc(var(--mx) * 0.6px), calc(var(--my) * 0.6px), 0);
  transition: transform 0.3s var(--ease-spring);
  pointer-events: none;
}
.lp-btn-magnetic {
  transform: translate3d(calc(var(--mx) * 0.4px), calc(var(--my) * 0.4px), 0);
}
@media (hover: none) {
  .lp-btn-magnetic, .lp-btn-magnetic > * { transform: none !important; }
}


/* ─── (f) 3D tilt — JS sets --rx/--ry CSS vars ────────────────────────── */
[data-tilt] {
  --rx: 0;
  --ry: 0;
  transform: perspective(1100px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  transition: transform 0.45s var(--ease-soft);
  transform-style: preserve-3d;
}
[data-tilt]:hover { transition-duration: 0.18s; }
@media (hover: none) {
  [data-tilt] { transform: none !important; }
}

/* Tilt-glow — subtle highlight that follows the tilt direction */
[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at calc(50% + var(--ry, 0) * 6%) calc(50% + var(--rx, 0) * -6%),
      color-mix(in oklab, var(--primary) 18%, transparent),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 1;
}
[data-tilt]:hover::after { opacity: 1; }
[data-tilt] > * { position: relative; z-index: 2; }


/* ─── (g) Count-up number — tabular and animated entry ────────────────── */
.lp-count {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.lp-count[data-anim="in"] {
  animation: lpCountPop 0.6s var(--ease-spring) both;
}
@keyframes lpCountPop {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}


/* ─── (h) Hero refinement — eyebrow shimmer, bigger heading ───────────── */
.lp-eyebrow {
  position: relative;
  overflow: hidden;
}
.lp-eyebrow::before {
  content: "";
  position: absolute;
  top: 0; left: -50%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 40%, transparent), transparent);
  animation: lpEyebrowShine 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lpEyebrowShine {
  0%, 70%, 100% { left: -50%; opacity: 0; }
  85%           { left: 120%; opacity: 1; }
}

/* Bigger hero typography */
.lp-h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.lp-tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
}

/* CTA group spacing on hero */
.lp-hero .lp-cta-group { margin-bottom: 28px; }


/* ─── (i) Section reveal upgrade — slight blur exit ───────────────────── */
.lp-reveal {
  filter: blur(4px);
  transition:
    opacity 0.8s var(--ease-soft),
    transform 0.8s var(--ease-soft),
    filter 0.8s var(--ease-soft);
}
.lp-reveal.is-in { filter: blur(0); }


/* ─── (j) Floating tag chips (mock dashboard live pulse) ──────────────── */
.lp-mock-badge {
  animation: lpBadgeFloat 5s ease-in-out infinite, lpBadgePulse 3s ease-in-out infinite;
}
@keyframes lpBadgePulse {
  0%, 100% { box-shadow: 0 12px 30px -10px rgba(0,0,0,0.40), 0 0 0 1px var(--halo-soft), 0 0 0 0 var(--halo); }
  50%      { box-shadow: 0 12px 30px -10px rgba(0,0,0,0.40), 0 0 0 1px var(--halo-soft), 0 0 0 8px transparent; }
}


/* ─── (k) Section divider — gentle gradient hairline ──────────────────── */
.lp-section + .lp-section,
.lp-marquee + .lp-section {
  position: relative;
}


/* ─── (l) Premium primary button — additional sheen on idle ───────────── */
.lp-btn-primary {
  background-size: 200% 200%;
  animation: lpBtnGradient 8s ease infinite;
}
@keyframes lpBtnGradient {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}


/* ─── (m) Calm pills shimmer ──────────────────────────────────────────── */
.lp-calm-pill {
  position: relative;
  overflow: hidden;
}
.lp-calm-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 20%, transparent), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.lp-calm-pill:hover::before { transform: translateX(100%); }


/* ─── (n) CTA card — diagonal sheen on idle ───────────────────────────── */
.lp-cta-card .lp-cta-inner {
  position: relative;
}
.lp-cta-card::after {
  content: "";
  position: absolute;
  top: -40%; left: -20%;
  width: 40%; height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: rotate(20deg);
  animation: lpCtaSheen 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lpCtaSheen {
  0%, 65%, 100% { left: -30%; opacity: 0; }
  80%           { left: 130%; opacity: 1; }
}
:root[data-theme="light"] .lp-cta-card::after {
  background: linear-gradient(90deg, transparent, rgba(15,23,42,0.04), transparent);
}


/* ─── (o) Reduced-motion overrides for new effects ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lp-spotlight { display: none; }
  .lp-hero::before, .lp-hero::after { animation: none; }
  .lp-orbit, .lp-orbit > .lp-pill { animation: none; }
  .lp-marquee-track { animation: none; }
  .lp-btn-primary { animation: none; }
  .lp-cta-card::after, .lp-eyebrow::before, .lp-portal-rays { animation: none; }
  [data-tilt], .lp-btn-magnetic, .lp-btn-magnetic > * { transform: none !important; }
}

/* ═══ نهاية الترقية البريميوم ═══ */


/* ════════════════════════════════════════════════════════════════════════════
