/* =========================================================================
   VEP — Homepage hero (.hx-*) · 2026
   Loaded only on the homepage. Animations are CSS-first, GPU-friendly
   (transform/opacity only) and disabled for prefers-reduced-motion.
   ========================================================================= */
.hx { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #060d22; padding: clamp(40px, 6vw, 72px) 0 0; }

/* ---------- Background ---------- */
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; will-change: transform; }
.hx-blob-1 { width: 560px; height: 560px; top: -220px; right: -120px; background: radial-gradient(circle, rgba(37,99,235,.55), transparent 65%); animation: hxDrift1 18s ease-in-out infinite; }
.hx-blob-2 { width: 460px; height: 460px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(124,58,237,.38), transparent 65%); animation: hxDrift2 22s ease-in-out infinite; }
.hx-blob-3 { width: 360px; height: 360px; top: 30%; left: 42%; background: radial-gradient(circle, rgba(255,199,44,.20), transparent 65%); animation: hxDrift3 26s ease-in-out infinite; }
.hx-grid { position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 80%); }
.hx-noise { position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes hxDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,50px) scale(1.08); } }
@keyframes hxDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px,-40px) scale(1.1); } }
@keyframes hxDrift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-80px,-30px); } }

/* ---------- Layout ---------- */
.hx-inner { max-width: var(--maxw, 1240px); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; min-height: min(640px, calc(100svh - 150px)); }

/* entrance */
.hx-anim { opacity: 0; transform: translateY(18px); animation: hxUp .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes hxUp { to { opacity: 1; transform: none; } }

/* ---------- Copy ---------- */
.hx-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; text-decoration: none; color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .84rem; font-weight: 600; transition: border-color .25s, background .25s; max-width: 100%; }
.hx-pill:hover { border-color: rgba(255,199,44,.6); background: rgba(255,199,44,.08); }
.hx-pill-live { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: var(--gold, #FFC72C); color: #081027; font-weight: 800; font-size: .74rem; white-space: nowrap; }
.hx-pill-live span { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: hxPulse 1.8s infinite; }
.hx-pill-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes hxPulse { 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

.hx-title { font: 800 clamp(2.3rem, 5.2vw, 4.2rem)/1.06 var(--display, sans-serif); letter-spacing: -.035em; margin: 22px 0 0; color: #fff; }
.hx-rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; }
.hx-word { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(100%); transition: transform .6s cubic-bezier(.7,0,.2,1), opacity .5s ease;
    background: linear-gradient(100deg, #FFD34D 0%, #FFC72C 40%, #FF9F1C 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hx-word.is-active { opacity: 1; transform: translateY(0); }
.hx-word.is-leaving { opacity: 0; transform: translateY(-100%); }
.hx-sub { margin: 22px 0 0; max-width: 560px; font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.7; color: rgba(214,224,245,.86); }
.hx-sub strong { color: #fff; }

.hx-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hx-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px;
    font: 800 1rem/1 var(--display, sans-serif); text-decoration: none; cursor: pointer; border: 0; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, background .25s; }
.hx-btn-gold { color: #081027; background: linear-gradient(135deg, #FFD34D, #FFC72C 55%, #FFB400); box-shadow: 0 14px 34px rgba(255,183,0,.35); }
.hx-btn-gold::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: hxShine 4.5s ease-in-out infinite 1.5s; }
@keyframes hxShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.hx-btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(255,183,0,.45); }
.hx-btn-gold svg { transition: transform .25s; }
.hx-btn-gold:hover svg { transform: translateX(4px); }
.hx-btn-glass { color: #fff; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding-left: 10px; }
.hx-btn-glass:hover { background: rgba(255,255,255,.15); transform: translateY(-3px); }
.hx-play { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #081027; position: relative; }
.hx-play::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: hxRipple 2s ease-out infinite; }
.hx-play svg { width: 14px; height: 14px; margin-left: 2px; }
@keyframes hxRipple { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }

.hx-trust { list-style: none; padding: 22px 0 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; border-top: 1px solid rgba(255,255,255,.1); }
.hx-trust li { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: rgba(214,224,245,.8); }
.hx-trust strong { color: #fff; font-family: var(--display, sans-serif); font-size: 1.05rem; }
.hx-faces { display: inline-flex; }
.hx-faces i { width: 30px; height: 30px; margin-left: -9px; border-radius: 50%; display: grid; place-items: center; font: 800 .7rem/1 var(--display, sans-serif); font-style: normal; color: #fff; border: 2px solid #060d22; background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.hx-faces i:first-child { margin-left: 0; }
.hx-faces i:nth-child(2) { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.hx-faces i:nth-child(3) { background: linear-gradient(135deg, #06B6D4, #0E7490); }
.hx-faces i:nth-child(4) { background: linear-gradient(135deg, #EC4899, #BE185D); }
.hx-faces i:last-child { background: var(--gold, #FFC72C); color: #081027; }
.hx-stars { color: #FBBF24; letter-spacing: 1px; }
.hx-yt { color: #FF3B30; display: inline-flex; }

/* ---------- Visual ---------- */
.hx-visual { position: relative; display: flex; justify-content: center; opacity: 0; animation: hxZoom 1s cubic-bezier(.2,.8,.2,1) .2s forwards; }
@keyframes hxZoom { from { opacity: 0; transform: scale(.94) translateY(20px); } to { opacity: 1; transform: none; } }
.hx-stage { position: relative; width: min(100%, 440px); aspect-ratio: 4 / 5; }
.hx-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
.hx-ring-1 { width: 118%; aspect-ratio: 1; border: 1.5px dashed rgba(255,255,255,.16); animation: hxSpin 60s linear infinite; }
.hx-ring-2 { width: 92%; aspect-ratio: 1; border: 1px solid rgba(255,199,44,.25); animation: hxSpin 40s linear infinite reverse; }
@keyframes hxSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hx-photo { position: absolute; inset: 6% 8% 0; border-radius: 200px 200px 32px 32px; overflow: hidden;
    background: linear-gradient(180deg, #1D4ED8, #0B3BCB); box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.08); }
.hx-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(0deg, rgba(6,13,34,.85), transparent); }
.hx-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; display: block; }

.hx-card, .hx-chip { position: absolute; z-index: 2; will-change: transform; transition: transform .25s ease-out; }
.hx-card { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; color: #081027; background: rgba(255,255,255,.94); box-shadow: 0 18px 40px rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hx-card strong { display: block; font: 800 .86rem/1.2 var(--display, sans-serif); }
.hx-card span { font-size: .74rem; color: #475569; }
.hx-card-live { top: 16%; left: -8%; animation: hxBob 6s ease-in-out infinite; }
.hx-card-cert { bottom: 26%; right: -10%; animation: hxBob 7s ease-in-out infinite -2s; }
.hx-card-mentor { bottom: 4%; left: 50%; translate: -50% 0; background: rgba(8,16,39,.8); color: #fff; border: 1px solid rgba(255,255,255,.14); white-space: nowrap; }
.hx-card-mentor span { color: rgba(255,255,255,.7); }
.hx-card-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.hx-card-ic svg { width: 18px; height: 18px; }
.hx-ic-gold { background: #FFF6DC; color: #B45309; }
.hx-eq { display: inline-flex; align-items: flex-end; gap: 3px; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #FEE2E2; }
.hx-eq i { flex: 1; background: #EF4444; border-radius: 2px; height: 30%; animation: hxEq 1s ease-in-out infinite; }
.hx-eq i:nth-child(2) { animation-delay: -.3s; } .hx-eq i:nth-child(3) { animation-delay: -.6s; } .hx-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes hxEq { 0%,100% { height: 25%; } 50% { height: 100%; } }
@keyframes hxBob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.hx-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; font: 700 .8rem/1 var(--display, sans-serif); color: #fff;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.hx-chip svg { width: 16px; height: 16px; }
.hx-chip-1 { top: 2%; right: 4%; animation: hxBob 5.5s ease-in-out infinite -1s; }
.hx-chip-2 { top: 44%; left: -14%; animation: hxBob 6.5s ease-in-out infinite -3s; }
.hx-chip-3 { top: 38%; right: -12%; animation: hxBob 5s ease-in-out infinite -2s; }
.hx-chip-4 { bottom: 16%; left: -10%; animation: hxBob 7.5s ease-in-out infinite; }

/* ---------- Marquee ---------- */
.hx-marquee { position: relative; margin-top: clamp(36px, 5vw, 56px); padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hx-track { display: flex; width: max-content; gap: 12px; animation: hxMarquee 45s linear infinite; }
.hx-marquee:hover .hx-track { animation-play-state: paused; }
.hx-track span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font: 600 .92rem/1 var(--body, sans-serif); color: rgba(214,224,245,.75); }
.hx-track span::after { content: "✦"; color: var(--gold, #FFC72C); font-size: .7rem; margin-left: 12px; }
@keyframes hxMarquee { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .hx-card-live { left: -2%; } .hx-card-cert { right: -2%; }
    .hx-chip-2 { left: -6%; } .hx-chip-3 { right: -4%; } .hx-chip-4 { left: -4%; }
}
@media (max-width: 960px) {
    .hx-inner { grid-template-columns: 1fr; min-height: 0; text-align: center; gap: 48px; }
    .hx-copy { display: flex; flex-direction: column; align-items: center; }
    .hx-sub { margin-left: auto; margin-right: auto; }
    .hx-cta, .hx-trust { justify-content: center; }
    .hx-br { display: none; }
    .hx-stage { width: min(78vw, 380px); }
}
@media (max-width: 600px) {
    .hx { padding-top: 28px; }
    .hx-inner { padding: 0 18px; gap: 40px; }
    .hx-title { font-size: clamp(2rem, 9vw, 2.6rem); margin-top: 18px; }
    .hx-rotator { display: grid; justify-items: center; }
    .hx-pill { font-size: .76rem; }
    .hx-cta { width: 100%; flex-direction: column; }
    .hx-btn { width: 100%; }
    .hx-trust { gap: 12px 18px; }
    .hx-trust li { font-size: .82rem; }
    .hx-stage { width: min(80vw, 320px); }
    .hx-card { padding: 8px 10px; border-radius: 12px; }
    .hx-card strong { font-size: .76rem; } .hx-card span { font-size: .66rem; }
    .hx-eq, .hx-card-ic { width: 28px; height: 28px; padding: 6px; }
    .hx-card-live { left: -6%; top: 10%; } .hx-card-cert { right: -6%; bottom: 22%; }
    .hx-chip { padding: 6px 9px; font-size: .7rem; } .hx-chip svg { width: 13px; height: 13px; }
    .hx-chip-2, .hx-chip-4 { left: -8%; } .hx-chip-3 { right: -8%; }
    .hx-ring-1 { width: 112%; }
    .hx-blob { filter: blur(50px); opacity: .6; }
    .hx-marquee { padding: 14px 0; }
}
@media (max-width: 360px) { .hx-chip-3, .hx-chip-4 { display: none; } }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
    .hx *, .hx *::before, .hx *::after { animation: none !important; transition: none !important; }
    .hx-anim, .hx-visual { opacity: 1; transform: none; }
}
.hx-card { text-align: left; }
@media (max-width: 600px) { .hx-pill-time { display: none; } .hx-pill { gap: 8px; } }
