/**
 * رسم الهيرو المركّب + حركة الأيقونات العائمة
 */

.hero__visual {
  position: relative !important;
  min-height: 540px !important;
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  background: transparent !important;
}

.hero__orb {
  display: block !important;
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: pulse 5.5s ease-in-out infinite;
}

.hero__orb--1 {
  width: 280px;
  height: 280px;
  background: rgba(168, 85, 247, 0.28);
  top: 8%;
  left: 10%;
}

.hero__orb--2 {
  width: 200px;
  height: 200px;
  background: rgba(99, 102, 241, 0.22);
  bottom: 12%;
  right: 8%;
  animation-delay: 1.2s;
}

.hero__sparkles {
  position: absolute;
  inset: 8% 5%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.4) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 22%, rgba(99, 102, 241, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 55%, rgba(168, 85, 247, 0.35) 0 1.5px, transparent 3px),
    radial-gradient(circle at 30% 70%, rgba(124, 58, 237, 0.3) 0 2px, transparent 3px);
  animation: sparkle 4s ease-in-out infinite;
}

.hero__image {
  display: none !important;
}

.scene {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1.02;
  z-index: 1;
}

.scene__desk {
  position: absolute;
  inset: 10% 12% 4% 12%;
  z-index: 1;
}

.scene__monitor {
  position: absolute !important;
  inset: 0 8% 22% 8% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  border-radius: 0 !important;
}

.scene__bezel {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  border-radius: 22px;
  padding: 10px 10px 14px;
  box-shadow:
    0 24px 50px rgba(88, 28, 180, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
}

.scene__screen {
  height: 100%;
  border-radius: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.2), transparent 42%),
    linear-gradient(165deg, #faf5ff, #eef2ff 55%, #f8fafc) !important;
  overflow: hidden;
}

.scene__screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.scene__screen-top strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e1b4b;
}

.scene__cta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.28);
}

.scene__charts {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  height: calc(100% - 40px);
}

.scene__line,
.scene__donut {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.08);
}

.scene__line {
  position: relative;
  overflow: hidden;
}

.scene__line::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 35%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c4b5fd, #7c3aed 40%, #6366f1);
  transform: rotate(-10deg);
  box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.08);
  inset: auto;
  border-top: 0;
}

.scene__line::after {
  content: "";
  position: absolute;
  inset: 28% 14% 22% 14%;
  background:
    radial-gradient(circle at 12% 70%, #a855f7 3px, transparent 4px),
    radial-gradient(circle at 38% 42%, #8b5cf6 3px, transparent 4px),
    radial-gradient(circle at 62% 52%, #6366f1 3px, transparent 4px),
    radial-gradient(circle at 86% 28%, #7c3aed 3.5px, transparent 4px);
}

.scene__donut {
  display: grid;
  place-items: center;
}

.scene__donut span {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--purple);
  background:
    radial-gradient(circle at center, #fff 56%, transparent 57%),
    conic-gradient(#7c3aed 0 78%, #e9d5ff 78% 100%);
  animation: donut-pulse 3.5s ease-in-out infinite;
}

.scene__chin {
  width: 36%;
  height: 10px;
  margin-top: -2px;
  background: #cbd5e1;
  border-radius: 0 0 8px 8px;
}

.scene__stand {
  position: static !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
  width: 18px !important;
  height: 28px !important;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1) !important;
  border-radius: 0 !important;
}

.scene__base {
  position: static !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
  width: 120px !important;
  height: 10px !important;
  background: #cbd5e1 !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.float-card {
  position: absolute !important;
  min-width: 56px;
  height: 56px !important;
  padding: 0 10px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 30px rgba(88, 28, 180, 0.14) !important;
  border: 1px solid rgba(124, 58, 237, 0.08) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  z-index: 4 !important;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  animation: float-bob 4.2s ease-in-out infinite !important;
  will-change: transform;
}

.float-card .brand-icon {
  flex-shrink: 0;
  display: block;
}

.float-card span {
  font-size: 0.72rem;
  font-weight: 800;
  color: #374151;
}

.float-card--wide {
  min-width: auto !important;
  height: 54px !important;
  padding: 0 12px !important;
  border-radius: 18px !important;
}

.float-card--1 { top: 6% !important; right: 0 !important; left: auto !important; animation-delay: 0s !important; animation-duration: 4.1s !important; }
.float-card--2 { top: 14% !important; left: 0 !important; right: auto !important; animation-delay: 0.35s !important; animation-duration: 4.6s !important; }
.float-card--3 { top: 34% !important; right: -2% !important; left: auto !important; width: 56px !important; padding: 0 !important; animation-delay: 0.7s !important; animation-duration: 3.9s !important; }
.float-card--4 { bottom: 26% !important; left: -2% !important; right: auto !important; top: auto !important; width: 56px !important; padding: 0 !important; animation-delay: 1s !important; animation-duration: 4.8s !important; }
.float-card--5 { bottom: 16% !important; right: 2% !important; left: auto !important; top: auto !important; animation-delay: 1.3s !important; animation-duration: 4.3s !important; }
.float-card--6 { top: 48% !important; left: 8% !important; right: auto !important; animation-delay: 1.6s !important; animation-duration: 5s !important; }
.float-card--7 { top: 2% !important; left: 28% !important; right: auto !important; width: 56px !important; padding: 0 !important; animation-delay: 0.5s !important; animation-duration: 4.4s !important; }

.scene__students {
  position: absolute !important;
  top: 40% !important;
  left: 0 !important;
  z-index: 5 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  animation: float-bob 5.2s ease-in-out infinite !important;
  animation-delay: 0.9s !important;
}

.scene__students strong {
  display: block;
  font-size: 1.1rem;
  color: var(--purple);
  line-height: 1.1;
}

.scene__students span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.scene__robot {
  position: absolute !important;
  bottom: 2% !important;
  right: 18% !important;
  left: auto !important;
  top: auto !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #f3e8ff) !important;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.28);
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 3;
  animation: float-bob 3.6s ease-in-out infinite !important;
}

.scene__robot::before,
.scene__robot::after {
  content: none !important;
}

.scene__robot-eye {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 12px #a855f7;
  animation: blink 5s ease-in-out infinite;
}

.scene__robot-eye:last-child {
  animation-delay: 0.08s;
}

.scene__plant {
  position: absolute !important;
  bottom: 4% !important;
  left: 18% !important;
  right: auto !important;
  width: 34px;
  height: 52px;
  z-index: 2;
}

.scene__plant::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 20px;
  border-radius: 0 0 10px 10px;
  background: #d6d3d1;
}

.scene__plant::after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 30px;
  border-radius: 40% 40% 45% 45%;
  background: linear-gradient(180deg, #a855f7, #7c3aed);
}

.scene__mug {
  position: absolute;
  bottom: 8%;
  right: 8%;
  width: 22px;
  height: 26px;
  border-radius: 4px 4px 6px 6px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
  z-index: 2;
}

.scene__mug::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 6px;
  width: 10px;
  height: 12px;
  border: 3px solid #e5e7eb;
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

.scene__mouse {
  position: absolute;
  bottom: 6%;
  right: 28%;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1.2deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes donut-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes blink {
  0%, 46%, 54%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.15); }
}

@media (max-width: 960px) {
  .hero__visual {
    min-height: 420px !important;
  }

  .scene {
    width: min(100%, 440px);
  }
}

@media (max-width: 640px) {
  .hero__visual {
    min-height: 360px !important;
  }

  .float-card span {
    display: none;
  }

  .float-card--wide {
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-card,
  .scene__robot,
  .scene__students,
  .scene__donut span,
  .scene__robot-eye,
  .hero__orb,
  .hero__sparkles {
    animation: none !important;
  }
}
