/* ═══════════════════════════════════════════════════════════════════
   CENDRIUM · HERO  (3D particle core, floating glass widgets)
   ═══════════════════════════════════════════════════════════════════ */

.cx-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 5rem; overflow: clip; }
.cx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2rem; align-items: center; }
.cx-eyebrow { display: inline-flex; align-items: center; gap: .7rem; padding: .45rem 1rem .45rem .5rem; border-radius: 999px; border: 1px solid var(--glass-brd); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text2); margin-bottom: 1.8rem; }
.cx-eyebrow b { display: inline-block; padding: .22rem .6rem; border-radius: 999px; background: var(--grad); color: var(--on-accent); font-weight: 600; letter-spacing: .1em; }
.cx-hero .cx-lead { margin: 1.8rem 0 2.4rem; }
.cx-hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.cx-hero-stats { display: flex; flex-wrap: wrap; gap: 2.6rem; margin-top: 3.4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.cx-stat b { display: block; font-family: var(--font-disp); font-weight: 650; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.cx-stat span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); }

.cx-core-wrap { position: relative; aspect-ratio: 1; width: min(100%, 640px); margin-left: auto; cursor: grab; touch-action: pan-y; }
.cx-core-wrap:active { cursor: grabbing; }
.cx-core-wrap::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .30), rgba(var(--ion-rgb), .12) 45%, transparent 70%); filter: blur(30px); animation: cxPulse 6s ease-in-out infinite; }
.cx-core-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cx-core-chip { position: absolute; left: 50%; bottom: -.4rem; transform: translateX(-50%); padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--glass-brd); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text2); white-space: nowrap; display: inline-flex; gap: .6rem; align-items: center; }
.cx-core-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: cxBlink 1.6s infinite; }
@keyframes cxPulse { 50% { transform: scale(1.08); opacity: .75; } }
@keyframes cxBlink { 50% { opacity: .3; } }

.cx-float { position: absolute; z-index: 3; padding: .9rem 1.1rem; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-brd); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow-lg); animation: cxBob 7s ease-in-out infinite; font-size: .8rem; min-width: 160px; }
.cx-float small { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text3); margin-bottom: .25rem; }
.cx-float strong { font-family: var(--font-disp); font-size: 1.5rem; letter-spacing: -.03em; color: var(--text); display: block; }
.cx-float strong.up { color: var(--green); }
.cx-float--a { top: 7%; left: -2%; }
.cx-float--b { bottom: 14%; right: -3%; animation-delay: -2.5s; }
.cx-float--c { top: 46%; left: -8%; animation-delay: -4.5s; min-width: 0; padding: .6rem .9rem; }
.cx-spark { width: 130px; height: 38px; display: block; margin-top: .3rem; overflow: visible; }
.cx-spark path { fill: none; stroke: var(--ember); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: cxDraw 2.6s .8s var(--ease-out) forwards; }
.cx-spark path.cx-spark-fill { fill: rgba(var(--accent-rgb), .16); stroke: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; animation: cxFade 1.2s 2.2s forwards; }
@keyframes cxDraw { to { stroke-dashoffset: 0; } }
@keyframes cxFade { to { opacity: 1; } }
@keyframes cxBob { 50% { transform: translateY(-14px); } }

.cx-scrollhint { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text3); }
.cx-scrollhint span { width: 22px; height: 36px; border: 1.5px solid var(--border2); border-radius: 14px; position: relative; }
.cx-scrollhint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 3px; background: var(--ember); transform: translateX(-50%); animation: cxScroll 1.8s infinite; }
@keyframes cxScroll { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 14px); } }

@media (max-width: 960px) {
  .cx-hero-grid { grid-template-columns: 1fr; }
  .cx-core-wrap { margin: 1rem auto 0; width: min(100%, 460px); }
  .cx-float--a { left: 0; } .cx-float--b { right: 0; } .cx-float--c { display: none; }
  .cx-scrollhint { display: none; }
}
