/* ui9.css: advanced home hero (aurora, grid, spotlight, glass, 3D stage). Visual only; loaded last.
   Delete this file, hero-fx.js and the .hx-* markup in home.php to revert. */

.x-hero { isolation: isolate; }
.x-hero > .wrap { z-index: 2; }

/* ---------- Animated background ---------- */
.hx-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hx-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; will-change: transform; }
.hx-blob.b1 { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, rgba(60, 110, 230, .75), transparent 68%); animation: hxDrift1 22s ease-in-out infinite alternate; }
.hx-blob.b2 { width: 560px; height: 560px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(230, 194, 122, .55), transparent 68%); animation: hxDrift2 26s ease-in-out infinite alternate; }
.hx-blob.b3 { width: 520px; height: 520px; left: 38%; bottom: 8%; background: radial-gradient(circle, rgba(90, 70, 210, .5), transparent 70%); animation: hxDrift3 30s ease-in-out infinite alternate; }
.hx-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 20%, transparent 75%); }
.hx-spot { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 62%) var(--my, 30%), rgba(255, 255, 255, .09), transparent 60%); transition: background-position .2s; }
@keyframes hxDrift1 { to { transform: translate3d(120px, 80px, 0) scale(1.12); } }
@keyframes hxDrift2 { to { transform: translate3d(-140px, 110px, 0) scale(.92); } }
@keyframes hxDrift3 { to { transform: translate3d(-90px, -60px, 0) scale(1.15); } }

/* ---------- Eyebrow becomes a live pill ---------- */
.x-hero .eyebrow { display: inline-flex !important; align-items: center; gap: 10px; padding: 8px 16px 8px 14px !important; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(230, 194, 122, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .74rem !important; letter-spacing: .12em; text-transform: uppercase; }
.x-hero .eyebrow::before { content: "" !important; display: block !important; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84 !important; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: hxPulse 2.2s infinite; }
@keyframes hxPulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ---------- Headline: accent line with a slow gold shine ---------- */
.x-hero h1 .h1-accent { background: linear-gradient(100deg, #c99a4a 0%, #f6dfa6 30%, #e6c27a 50%, #fff1c9 62%, #c99a4a 100%) !important; background-size: 220% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent !important; animation: hxShine 7s linear infinite; }
@keyframes hxShine { to { background-position: -220% 0; } }
.x-hero h1 { text-shadow: 0 10px 50px rgba(0, 0, 0, .35); }

/* ---------- Buttons: sheen on the primary CTA ---------- */
.x-hero .btn.btn-primary { position: relative; overflow: hidden; }
.x-hero .btn.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: hxSheen 5s ease-in-out 1.5s infinite; }
@keyframes hxSheen { 0%, 60% { left: -60%; } 100% { left: 140%; } }

/* ---------- Product stage: 3D tilt, orbit rings, glass chips ---------- */
@media (min-width: 981px) {
  .x-stage { perspective: 1400px; --rx: 0deg; --ry: 0deg; }
  .x-stage::before, .x-stage::after { content: ""; position: absolute; left: 50%; top: 46%; border-radius: 50%; border: 1px solid rgba(230, 194, 122, .22); transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
  .x-stage::before { width: 112%; aspect-ratio: 1; animation: hxSpin 60s linear infinite; border-style: dashed; }
  .x-stage::after { width: 82%; aspect-ratio: 1; border-color: rgba(120, 160, 255, .25); animation: hxSpin 44s linear infinite reverse; }
  .x-window { transform: rotateY(var(--ry)) rotateX(var(--rx)); transition: transform .25s ease-out; transform-style: preserve-3d; border-radius: 16px !important; border-bottom: 1px solid rgba(255, 255, 255, .5) !important; box-shadow: 0 60px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12) !important; }
  .x-crm { transform: translateZ(60px) translate(calc(var(--ry) * -2.2), calc(var(--rx) * 2)); transition: transform .25s ease-out; }
  .x-web { transform: translateZ(80px) translate(calc(var(--ry) * 2.6), calc(var(--rx) * -2)); transition: transform .25s ease-out; }
  .st-chip.x-c1, .st-chip.x-c2 { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 44px -16px rgba(0, 0, 0, .6); animation: hxFloat 6s ease-in-out infinite !important; }
  .st-chip.x-c2 { animation-delay: -3s !important; }
  .x-crm, .x-web { box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .7) !important; border-radius: 12px !important; }
}
@keyframes hxSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes hxFloat { 50% { transform: translateY(-10px); } }

/* live data feel inside the mockup */
.x-window .live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #1fbf6a; animation: hxPulse 2s infinite; vertical-align: 1px; }
.st-bars i { transform-origin: bottom; animation: hxGrow 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.st-bars i:nth-child(2) { animation-delay: .08s; } .st-bars i:nth-child(3) { animation-delay: .16s; } .st-bars i:nth-child(4) { animation-delay: .24s; }
.st-bars i:nth-child(5) { animation-delay: .32s; } .st-bars i:nth-child(6) { animation-delay: .4s; } .st-bars i:nth-child(7) { animation-delay: .48s; }
@keyframes hxGrow { from { transform: scaleY(0); } }

/* ---------- Stats band: frosted glass with gold hairline ---------- */
.x-stats { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)) !important; backdrop-filter: blur(18px) saturate(1.3) !important; -webkit-backdrop-filter: blur(18px) saturate(1.3) !important; border: 1px solid rgba(255, 255, 255, .16) !important; border-radius: 14px !important; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .18) !important; overflow: hidden; }
.x-stats::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #e6c27a, transparent); }
.x-stats li { transition: background .25s; }
.x-stats li:hover { background: rgba(255, 255, 255, .06); }

/* ---------- Scroll cue ---------- */
.hx-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 14px; display: none; }
.hx-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #e6c27a; animation: hxCue 1.8s infinite; }
@keyframes hxCue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 981px) and (min-height: 760px) { .hx-cue { display: block; } }

/* ---------- Mobile: lighter effects, same look ---------- */
@media (max-width: 980px) {
  .hx-blob { filter: blur(50px); opacity: .55; }
  .hx-blob.b1 { width: 380px; height: 380px; } .hx-blob.b2 { width: 340px; height: 340px; } .hx-blob.b3 { display: none; }
  .hx-grid { background-size: 44px 44px; }
  .x-hero .eyebrow { font-size: .68rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-blob, .x-stage::before, .x-stage::after, .st-chip.x-c1, .st-chip.x-c2, .x-hero h1 .h1-accent, .x-hero .btn.btn-primary::after, .hx-cue span, .x-hero .eyebrow::before, .st-bars i, .x-window .live::before { animation: none !important; }
  .x-window, .x-crm, .x-web { transform: none !important; }
}

/* eyebrow pill: stronger selector so older .hero .eyebrow rules cannot flatten it */
.hero.x-hero .x-hero-in > .eyebrow { display: inline-flex !important; width: auto; align-items: center; gap: 10px; padding: 9px 18px 9px 15px !important; margin-bottom: 6px; border-radius: 999px !important; background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(230, 194, 122, .4) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .74rem !important; letter-spacing: .12em; text-transform: uppercase; }
.hero.x-hero .x-hero-in > .eyebrow::before { content: "" !important; display: block !important; flex: none; width: 8px !important; height: 8px !important; border-radius: 50% !important; background: #3ddc84 !important; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: hxPulse 2.2s infinite; }
@media (max-width: 600px) {
  .hero.x-hero .x-hero-in > .eyebrow { border-radius: 14px !important; padding: 9px 14px !important; font-size: .66rem !important; letter-spacing: .08em; line-height: 1.4; text-align: left; max-width: 100%; }
}

/* ---------- Hero without the product mockup: centred, full-width headline ---------- */
.x-hero .x-stage { display: none !important; }
.x-hero { text-align: center !important; }
.x-hero-in { display: flex !important; flex-direction: column !important; align-items: center !important; }
.x-hero-in > .eyebrow, .x-hero-in > h1, .x-hero-in > .lead, .x-hero-in > .cta-row, .x-hero-in > .hero-note { margin-left: auto !important; margin-right: auto !important; text-align: center !important; justify-content: center !important; grid-column: auto !important; }
.hero.x-hero h1 { max-width: 16ch !important; font-size: clamp(2.8rem, 6.6vw, 6rem) !important; line-height: 1.02 !important; letter-spacing: -.045em; margin: 22px auto 22px !important; }
.hero.x-hero .lead { max-width: 62ch !important; font-size: clamp(1.05rem, 1.5vw, 1.28rem) !important; line-height: 1.6; }
.x-hero .cta-row { margin-top: 34px !important; }
.x-hero .hero-note { margin-top: 26px !important; }
.x-hero-in > .x-stats { grid-column: auto !important; width: 100%; max-width: 1080px; margin-top: clamp(48px, 6vw, 80px) !important; }
@media (min-width: 981px) { .x-hero { padding-top: clamp(80px, 9vw, 132px) !important; } }

/* ---------- Hero content cards: entry paths ---------- */
.hx-paths { width: 100%; max-width: 1180px; margin: clamp(40px, 5vw, 64px) auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; text-align: left; }
.hx-path { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; border-radius: 14px; text-decoration: none; background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .14); transition: transform .3s var(--ease, ease), border-color .25s, background .25s; overflow: hidden; }
.hx-path::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #e6c27a, transparent); opacity: 0; transition: opacity .3s; }
.hx-path:hover { transform: translateY(-5px); border-color: rgba(230, 194, 122, .6); background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06)); }
.hx-path:hover::before { opacity: 1; }
.hx-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 10px; background: rgba(230, 194, 122, .14); color: #e6c27a; }
.hx-ico svg { width: 22px; height: 22px; }
.hx-path strong { color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 1.04rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.hx-path > span:not(.hx-ico) { color: #aebbd6 !important; -webkit-text-fill-color: #aebbd6 !important; font-size: .9rem; line-height: 1.55; }
.hx-path em { margin-top: auto; padding-top: 10px; font-style: normal; font-size: .86rem; font-weight: 600; color: #e6c27a !important; -webkit-text-fill-color: #e6c27a !important; }
.hx-path em i { display: inline-block; font-style: normal; transition: transform .25s; }
.hx-path:hover em i { transform: translateX(5px); }
.hx-path-cta { background: linear-gradient(180deg, rgba(230, 194, 122, .22), rgba(230, 194, 122, .08)); border-color: rgba(230, 194, 122, .45); }
@media (max-width: 1100px) { .hx-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hx-paths { grid-template-columns: 1fr; gap: 10px; } .hx-path { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .hx-path:hover { transform: none; } }
