/* =========================================================
   Nexera Academy — ستايل صفحة الرئيسية بس: الهيرو، اللوجو 3D، شريط التقنيات، الأرقام، آراء الطلاب
   ========================================================= */

body.nexera-page .hero { position: relative; padding: 170px 0 90px; overflow: hidden; }
body.nexera-page .hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
body.nexera-page .hero h1 { margin: 22px 0; }
body.nexera-page .hero h1 .line { display: block; overflow: hidden; }
body.nexera-page .hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
body.nexera-page .hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
body.nexera-page .hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
body.nexera-page .hero-lead { font-size: 1.12rem; max-width: 560px; }
body.nexera-page .hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 40px; color: var(--muted); font-size: 0.92rem; }
body.nexera-page .avatars { display: flex; }
body.nexera-page .avatars span { width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--bg); margin-left: -10px;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: var(--ink); }
body.nexera-page .avatars span:last-child { margin-left: 0; }
body.nexera-page .hero-trust strong { color: var(--text); }
body.nexera-page .hero-visual { position: relative; height: 480px; perspective: 1000px; }
body.nexera-page .hv-card { position: absolute;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
  box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite; }
body.nexera-page .hv-main { inset: 40px 30px 60px 30px; display: flex; flex-direction: column; gap: 14px; animation-duration: 8s; }
body.nexera-page .hv-main .bar { height: 10px; border-radius: 6px; background: var(--line-2); }
body.nexera-page .hv-main .bar.w60 { width: 60%; }
body.nexera-page .hv-main .bar.w80 { width: 80%; }
body.nexera-page .hv-main .bar.w40 { width: 40%; }
body.nexera-page .hv-frame { flex: 1; border-radius: 14px; background: linear-gradient(135deg, rgba(125, 91, 164, 0.35), rgba(48, 111, 170, 0.15)); position: relative; overflow: hidden; }
body.nexera-page .hv-frame::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(100%); animation: sweep 3.5s ease-in-out infinite; }
body.nexera-page .hv-dots { display: flex; gap: 6px; }
body.nexera-page .hv-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
body.nexera-page .hv-dots i:nth-child(1) { background: var(--pink); }
body.nexera-page .hv-dots i:nth-child(2) { background: var(--lime); }
body.nexera-page .hv-dots i:nth-child(3) { background: var(--cyan); }
body.nexera-page .hv-chip { padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; }
body.nexera-page .hv-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: var(--ink); }
body.nexera-page .hv-chip small { display: block; color: var(--muted); font-weight: 400; font-size: 0.75rem; }
body.nexera-page .chip-1 { top: 0; left: 0; animation-delay: -1s; }
body.nexera-page .chip-2 { bottom: 10px; right: -10px; animation-delay: -3s; }
body.nexera-page .chip-3 { top: 45%; left: -30px; animation-delay: -2s; }
body.nexera-page .marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg-2); }
body.nexera-page .marquee-track { display: flex; gap: 50px; width: max-content; animation: marquee 30s linear infinite; }
body.nexera-page .marquee:hover .marquee-track { animation-play-state: paused; }
body.nexera-page .marquee-track span { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 50px; white-space: nowrap; }
body.nexera-page .marquee-track span::after { content: "✦"; color: var(--violet); font-size: 1rem; }
body.nexera-page .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
body.nexera-page .stat { padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.4s, transform 0.4s var(--ease); }
body.nexera-page .stat:hover { border-color: var(--violet); transform: translateY(-6px); }
body.nexera-page .stat .num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--text); line-height: 1.1; }
body.nexera-page .stat .num em { font-style: normal; color: var(--lime); }
body.nexera-page .stat p { margin-top: 8px; }
body.nexera-page .testi-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
body.nexera-page .testi { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
body.nexera-page .stars { color: var(--lime); letter-spacing: 3px; margin-bottom: 14px; }
body.nexera-page .testi blockquote { color: var(--text); font-size: 1.02rem; margin-bottom: 20px; }
body.nexera-page .testi .who { display: flex; align-items: center; gap: 12px; }
body.nexera-page .testi .who span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--ink); }
body.nexera-page .testi .who small { display: block; color: var(--muted); }
body.nexera-page .hero-visual { position: relative; height: 540px; display: grid; place-items: center; perspective: 1200px; }
body.nexera-page .hero-logo { position: relative; z-index: 2; height: 86%; width: auto; filter: drop-shadow(0 40px 60px rgba(26, 56, 114, .55)) drop-shadow(0 0 40px rgba(125, 91, 164, .35)); animation: logoFloat 7s ease-in-out infinite; transform-style: preserve-3d; will-change: transform; }
body.nexera-page .hv-glow { position: absolute; inset: 12% 8%; border-radius: 50%; z-index: 0; filter: blur(60px); opacity: .75;
  background: radial-gradient(circle at 30% 35%, rgba(62, 178, 180, .55), transparent 55%), radial-gradient(circle at 72% 40%, rgba(125, 91, 164, .55), transparent 55%), radial-gradient(circle at 60% 80%, rgba(173, 54, 126, .5), transparent 55%);
  animation: glowPulse 6s ease-in-out infinite; }
body.nexera-page .hv-ring { position: absolute; z-index: 1; width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .16); animation: rotate 40s linear infinite; }
body.nexera-page .hv-ring.r2 { width: 96%; border-style: solid; border-color: rgba(255, 255, 255, .06); animation-duration: 70s; animation-direction: reverse; }
body.nexera-page .hv-ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 16px var(--teal); }
body.nexera-page .hv-ring.r2::before { background: var(--magenta-2); box-shadow: 0 0 16px var(--magenta-2); top: 50%; left: -5px; }
body.nexera-page .hero-visual .hv-chip { z-index: 3; }
body.nexera-page .hero-visual .chip-1 { top: 6%; right: 2%; left: auto; }
body.nexera-page .hero-visual .chip-2 { bottom: 8%; left: 0; right: auto; }
body.nexera-page .hero-visual .chip-3 { top: 46%; right: -2%; left: auto; }

@media (max-width: 1024px) {
  body.nexera-page .hero { padding-top: 140px; }
  body.nexera-page .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  body.nexera-page .hero-lead { margin-inline: auto; }
  body.nexera-page .hero-actions { justify-content: center; }
  body.nexera-page .hero-trust { justify-content: center; }
  body.nexera-page .hero-visual { height: 420px; max-width: 480px; margin-inline: auto; width: 100%; }
  body.nexera-page .stats { grid-template-columns: repeat(2, 1fr); }
  body.nexera-page .testi-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body.nexera-page .hero { padding-top: 110px; padding-bottom: 50px; }
  body.nexera-page .hero-inner { gap: 30px; }
  body.nexera-page .hero h1 { font-size: clamp(1.9rem, 6.5vw, 2.5rem); margin: 16px 0; }
  body.nexera-page .hero-lead { font-size: 0.98rem; }
  body.nexera-page .hero-actions { flex-direction: column; width: 100%; max-width: 320px; margin-inline: auto; gap: 10px; }
  body.nexera-page .hero-actions .btn { width: 100%; }
  body.nexera-page .hero-trust { margin-top: 24px; font-size: 0.85rem; }
  body.nexera-page .hero-visual { height: 300px; max-width: 330px; margin-inline: auto; }
  body.nexera-page .hero-logo { height: 92%; }
  body.nexera-page .hero-visual .hv-chip { padding: 8px 12px; font-size: 0.78rem; border-radius: 12px; }
  body.nexera-page .hero-visual .hv-chip .ic { width: 28px; height: 28px; font-size: 0.75rem; border-radius: 8px; }
  body.nexera-page .hero-visual .hv-chip small { font-size: 0.68rem; }
  body.nexera-page .hero-visual .chip-1 { top: 0; right: -5px; }
  body.nexera-page .hero-visual .chip-2 { bottom: 0; left: -5px; }
  body.nexera-page .hero-visual .chip-3 { display: none; }
  body.nexera-page .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  body.nexera-page .stat { padding: 18px 14px; text-align: center; }
  body.nexera-page .stat .num { font-size: 2rem; }
  body.nexera-page .stat p { font-size: 0.82rem; margin-top: 4px; }
  body.nexera-page .testi-track { grid-template-columns: 1fr; gap: 14px; }
  body.nexera-page .testi { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body.nexera-page .hero h1 .line > span { transform: none; }
}
