/* Sangyani Sanatan emblem + homepage feature section.
 * The emblem is ten stacked star slices (back face, eight edge slices,
 * front face) turning in 3D, like an extruded chrome star. */

.sp-emblem { --s: 120px; --d: 1.6px; position: relative; display: inline-block; width: var(--s); height: var(--s); perspective: 700px; vertical-align: middle; }
.sp-emblem--sm { --s: 44px; --d: .6px; }
.sp-emblem--md { --s: 96px; --d: 1.3px; }
.sp-emblem--lg { --s: 180px; --d: 2.4px; }
.sp-emblem--xl { --s: min(320px, 70vw); --d: 4px; }
.sp-emblem__halo { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(94, 234, 212, .35), rgba(249, 115, 22, .18) 45%, transparent 70%); filter: blur(10px); animation: spem-halo 6s ease-in-out infinite; }
.sp-emblem__spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: spem-turn 7s cubic-bezier(.65, 0, .35, 1) infinite; }
.sp-emblem__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(calc((var(--z) - 4.5) * var(--d))); filter: drop-shadow(0 0 1px rgba(0, 0, 0, .3)); }
.sp-emblem__layer:last-child { filter: drop-shadow(0 6px 18px rgba(14, 165, 233, .45)); }
@keyframes spem-turn {
    0%   { transform: rotateX(14deg) rotateY(0deg) rotateZ(0deg); }
    40%  { transform: rotateX(14deg) rotateY(180deg) rotateZ(8deg); }
    55%  { transform: rotateX(-10deg) rotateY(200deg) rotateZ(8deg); }
    100% { transform: rotateX(14deg) rotateY(360deg) rotateZ(0deg); }
}
@keyframes spem-halo { 0%, 100% { opacity: .7; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }

/* ---------- Homepage feature ---------- */
.sp-qhome { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 9vw, 120px) 20px; background: radial-gradient(ellipse 60% 70% at 25% 50%, rgba(14, 165, 233, .16), transparent 70%), radial-gradient(ellipse 60% 70% at 80% 40%, rgba(249, 115, 22, .14), transparent 70%), #07070d; color: #fff; }
.sp-qhome::before { content: ""; position: absolute; left: 25%; top: 50%; z-index: -1; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: repeating-conic-gradient(rgba(255, 255, 255, .035) 0 4deg, transparent 4deg 14deg); -webkit-mask: radial-gradient(circle, #000, transparent 45%); mask: radial-gradient(circle, #000, transparent 45%); animation: spem-spin 140s linear infinite; }
.sp-qhome__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1180px; margin: 0 auto; }
.sp-qhome__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.sp-qhome__orbit { position: absolute; inset: 4%; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 50%; animation: spem-spin 40s linear infinite; }
.sp-qhome__orbit--b { inset: 18%; border-style: solid; border-color: rgba(252, 211, 77, .16); animation-duration: 28s; animation-direction: reverse; }
.sp-qhome__orbit i { position: absolute; top: -9px; left: calc(50% - 9px); width: 18px; height: 18px; background: linear-gradient(135deg, #fde047, #f97316); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 8px #f97316); }
.sp-qhome__orbit i:nth-child(2) { top: auto; bottom: -9px; background: linear-gradient(135deg, #a5f3fc, #0ea5e9); filter: drop-shadow(0 0 8px #0ea5e9); }
.sp-qhome__orbit i:nth-child(3) { top: calc(50% - 7px); left: -7px; width: 14px; height: 14px; background: linear-gradient(135deg, #fbcfe8, #db2777); }
.sp-qhome__levels { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.sp-qhome__levels li { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(18, 21, 30, .85); font-size: 13px; font-weight: 800; color: #fcd34d; transform: rotate(calc(var(--i) * 36deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -36deg)); --r: min(240px, 44vw); }
.sp-qhome__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 14px; border: 1px solid rgba(252, 211, 77, .35); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #fcd34d; }
.sp-qhome__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: spem-halo 1.6s infinite; }
.sp-qhome__title { margin: 0 0 16px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(40px, 6vw, 76px); font-weight: 600; line-height: 1; color: #fff; }
.sp-qhome__title em { font-style: italic; background: linear-gradient(100deg, #5eead4, #fcd34d 45%, #f97316 70%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-qhome__lead { max-width: 540px; margin: 0 0 26px; font-size: 18px; line-height: 1.6; color: #c9c6d8; }
.sp-qhome__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 0 0 30px; padding: 0; list-style: none; }
.sp-qhome__stats li { padding: 14px 6px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .04); text-align: center; }
.sp-qhome__stats b { display: block; font-size: 24px; color: #fcd34d; }
.sp-qhome__stats span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a3a0b5; }
.sp-qhome__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sp-qhome__play { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; border-radius: 999px; background: linear-gradient(135deg, #fde047, #f97316 45%, #dc2626); color: #1a0d02; font-size: 17px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; box-shadow: 0 14px 40px rgba(249, 115, 22, .45), inset 0 1px 0 rgba(255, 255, 255, .6); animation: spem-pulse 2.4s ease-in-out infinite; transition: transform .2s; }
.sp-qhome a.sp-qhome__play, .sp-qhome a.sp-qhome__play:hover, .sp-qhome a.sp-qhome__play:visited { color: #1a0d02; -webkit-text-fill-color: #1a0d02; }
.sp-qhome__play:hover { transform: translateY(-3px) scale(1.03); }
.sp-qhome__play::after { content: ""; width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.sp-qhome__more { color: #a3a0b5; font-size: 14px; }
@keyframes spem-spin { to { transform: rotate(360deg); } }
@keyframes spem-pulse { 0%, 100% { box-shadow: 0 14px 40px rgba(249, 115, 22, .45), 0 0 0 0 rgba(249, 115, 22, .5); } 50% { box-shadow: 0 14px 40px rgba(249, 115, 22, .45), 0 0 0 14px rgba(249, 115, 22, 0); } }

@media (max-width: 860px) {
    .sp-qhome__inner { grid-template-columns: 1fr; text-align: center; }
    .sp-qhome__art { max-width: 420px; margin: 0 auto; width: 100%; }
    .sp-qhome__levels li { --r: min(180px, 40vw); }
    .sp-qhome__lead, .sp-qhome__stats { margin-left: auto; margin-right: auto; }
    .sp-qhome__cta { justify-content: center; }
    .sp-qhome__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .sp-emblem__spin { animation: none; transform: rotateX(14deg) rotateY(-24deg); }
    .sp-emblem__halo, .sp-qhome::before, .sp-qhome__orbit, .sp-qhome__play { animation: none; }
}
