/* Extra intro-page motion (public/intro-fx.js). Everything here is off under prefers-reduced-motion.
   Uses the individual `translate` / `rotate` properties so it composes with the existing .smsi-r reveal transforms. */
#landingIntroExperience .smsi-main { --mx: 50%; --my: 40%; }
#landingIntroExperience .fx-spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(232, 196, 122, .09), rgba(99, 102, 241, .06) 40%, transparent 70%); transition: opacity .4s; }
#landingIntroExperience .smsi-hero, #landingIntroExperience .smsi-mods { position: relative; z-index: 1; }

/* 3D tilt (pointer) */
#landingIntroExperience .smsi-hero, #landingIntroExperience .smsi-stats, #landingIntroExperience .smsi-mods { perspective: 1100px; }
#landingIntroExperience .fx-tilt { rotate: var(--tx, 0) var(--ty, 0) 0 var(--ta, 0deg); transition: rotate .35s cubic-bezier(.2, .8, .2, 1); will-change: rotate; }
#landingIntroExperience .fx-tilt.fx-live { transition: rotate .08s linear; }
#landingIntroExperience .fx-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .09), transparent 60%); }
#landingIntroExperience .fx-tilt:hover > .fx-glare { opacity: 1; }
#landingIntroExperience :is(.smsi-panel, .smsi-stat, .smsi-mods button) { position: relative; }

/* headline: hand-drawn underline under "smart money." */
#landingIntroExperience .smsi-grad { position: relative; }
#landingIntroExperience .fx-under { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .28em; overflow: visible; pointer-events: none; }
#landingIntroExperience .fx-under path { fill: none; stroke: #E8C47A; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sms-intro-play#landingIntroExperience .fx-under path { animation: fxDraw 1s cubic-bezier(.6, 0, .2, 1) 1.15s forwards; }

/* stats: staggered pop + light sweep once */
.sms-intro-play#landingIntroExperience .smsi-stat { animation: fxPop .7s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(.75s + var(--i, 0) * .09s); overflow: hidden; }
#landingIntroExperience .smsi-stat::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%); translate: -120% 0; }
.sms-intro-play#landingIntroExperience .smsi-stat::after { animation: fxSweep 1.1s ease calc(1.3s + var(--i, 0) * .12s) 1 forwards; }

/* chips: drop in, then a slow idle bob */
.sms-intro-play#landingIntroExperience .smsi-chips span { display: inline-block; animation: fxChip .6s cubic-bezier(.3, 1.5, .5, 1) backwards, fxBob 5s ease-in-out infinite; animation-delay: calc(.95s + var(--i, 0) * .08s), calc(2s + var(--i, 0) * .6s); }

/* CTA: soft halo pulse + magnetic pull (translate set by JS) */
#landingIntroExperience .smsi-cta { position: relative; translate: var(--mgx, 0) var(--mgy, 0); transition: translate .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
#landingIntroExperience .smsi-cta::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 0 rgba(232, 196, 122, .45); }
.sms-intro-play#landingIntroExperience .smsi-cta::before { animation: fxHalo 2.6s ease-out 2s infinite; }

/* module cards: staggered rise + travelling border light on hover */
.sms-intro-play#landingIntroExperience .smsi-mods button { animation: fxRise .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(1.25s + var(--i, 0) * .1s); }
@property --fx-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
#landingIntroExperience .smsi-mods button::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: conic-gradient(from var(--fx-ang), transparent 0 70%, #E8C47A 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
#landingIntroExperience .smsi-mods button:hover::before { opacity: 1; animation: fxSpin 2.2s linear infinite; }

/* live panel: border scan + sparkline draw + bars grow */
#landingIntroExperience .smsi-panel::before { content: ''; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, #E8C47A, transparent); opacity: .8; }
.sms-intro-play#landingIntroExperience .smsi-panel::before { animation: fxScan 4.5s ease-in-out 1.4s infinite; }
#landingIntroExperience .smsi-p-spark .line.fx-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fxDraw 1.4s cubic-bezier(.5, 0, .2, 1) .1s forwards; }
#landingIntroExperience .smsi-p-spark .area.fx-draw { opacity: 0; animation: fxFade .8s ease 1s forwards; }
#landingIntroExperience .smsi-p-spark .fx-tip { animation: fxBeat 1.6s ease-in-out 1.5s infinite; transform-box: fill-box; transform-origin: center; opacity: 0; animation-fill-mode: forwards; }
#landingIntroExperience #smsiPSectors li i, #landingIntroExperience #smsiPBreadth { transform-origin: left center; animation: fxGrow .9s cubic-bezier(.2, .8, .2, 1) backwards; }
#landingIntroExperience #smsiPSectors li:nth-child(2) i { animation-delay: .08s; }
#landingIntroExperience #smsiPSectors li:nth-child(3) i { animation-delay: .16s; }
#landingIntroExperience #smsiPSectors li:nth-child(4) i { animation-delay: .24s; }
#landingIntroExperience #smsiPSectors li:nth-child(5) i { animation-delay: .32s; }
#landingIntroExperience :is(#smsiPSectors, #smsiPMovers) li { animation: fxSlide .5s ease backwards; }
#landingIntroExperience :is(#smsiPSectors, #smsiPMovers) li:nth-child(2) { animation-delay: .06s; }
#landingIntroExperience :is(#smsiPSectors, #smsiPMovers) li:nth-child(3) { animation-delay: .12s; }
#landingIntroExperience :is(#smsiPSectors, #smsiPMovers) li:nth-child(4) { animation-delay: .18s; }
#landingIntroExperience :is(#smsiPSectors, #smsiPMovers) li:nth-child(5) { animation-delay: .24s; }

/* floating market tokens behind the hero */
#landingIntroExperience .fx-tokens { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#landingIntroExperience .fx-tok { position: absolute; font: 600 11px 'Geist Mono', ui-monospace, monospace; letter-spacing: .04em; color: rgba(243, 241, 234, .55); padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); backdrop-filter: blur(4px); opacity: 0; white-space: nowrap; }
#landingIntroExperience .fx-tok.up { color: rgba(143, 211, 163, .8); }
#landingIntroExperience .fx-tok.dn { color: rgba(241, 154, 154, .75); }
.sms-intro-play#landingIntroExperience .fx-tok { animation: fxFade 1s ease var(--d) forwards, fxDrift var(--t, 14s) ease-in-out var(--d) infinite alternate; }
@media (max-width: 1439px) { #landingIntroExperience .fx-tokens { display: none; } }

@keyframes fxDraw { to { stroke-dashoffset: 0; } }
@keyframes fxFade { to { opacity: 1; } }
@keyframes fxPop { from { opacity: 0; scale: .8; } }
@keyframes fxSweep { to { translate: 120% 0; } }
@keyframes fxChip { from { opacity: 0; translate: 0 -14px; scale: .85; } }
@keyframes fxBob { 50% { translate: 0 -3px; } }
@keyframes fxHalo { 0% { box-shadow: 0 0 0 0 rgba(232, 196, 122, .45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(232, 196, 122, 0); } }
@keyframes fxRise { from { opacity: 0; translate: 0 22px; } }
@keyframes fxSpin { to { --fx-ang: 360deg; } }
@keyframes fxScan { 0%, 100% { translate: -40% 0; opacity: 0; } 15%, 85% { opacity: .9; } 50% { translate: 40% 0; } }
@keyframes fxGrow { from { scale: 0 1; } }
@keyframes fxSlide { from { opacity: 0; translate: 10px 0; } }
@keyframes fxBeat { 0% { opacity: 1; } 50% { opacity: 1; scale: 1.6; } 100% { opacity: 1; } }
@keyframes fxDrift { from { translate: 0 0; } to { translate: var(--dx, 18px) var(--dy, -26px); } }

@media (prefers-reduced-motion: reduce) {
  #landingIntroExperience :is(.fx-tilt, .smsi-cta) { rotate: none !important; translate: none !important; transition: none !important; }
  #landingIntroExperience :is(.smsi-stat, .smsi-stat::after, .smsi-chips span, .smsi-cta::before, .smsi-mods button, .smsi-mods button::before, .smsi-panel::before, #smsiPSectors li, #smsiPSectors li i, #smsiPMovers li, #smsiPBreadth, .fx-tip) { animation: none !important; }
  #landingIntroExperience :is(.fx-under path, .smsi-p-spark .fx-draw) { animation: none !important; stroke-dashoffset: 0; opacity: 1; }
  #landingIntroExperience .fx-tokens, #landingIntroExperience .fx-spot { display: none; }
}
