/* AlgoTake FX: the science-fiction 3D layer. Pure presentation, loaded after kh.css: no layout or function
   depends on it, and it switches itself off for "reduce motion" and on small or slow devices. */
:root { --fx-c1: #3D9BFF; --fx-c2: #8A6BFF; --fx-c3: #2BD9C8; --fx-glow: rgba(61, 155, 255, .35); }

/* deep-space backdrop: nebula light + a perspective grid floor that drifts towards the viewer */
body { background: radial-gradient(1100px 620px at 82% -8%, rgba(61, 155, 255, .16), transparent 62%), radial-gradient(900px 640px at -8% 108%, rgba(138, 107, 255, .13), transparent 60%), radial-gradient(700px 500px at 50% 120%, rgba(43, 217, 200, .08), transparent 60%), #040812; background-attachment: fixed; }
.fx-space { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.fx-space canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.fx-grid { position: absolute; left: -50%; right: -50%; bottom: -12%; height: 62%; transform: perspective(560px) rotateX(63deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(80, 170, 255, .5) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(80, 170, 255, .38) 1.5px, transparent 1.5px); background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 78%); mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 78%);
  animation: fxGrid 7s linear infinite; opacity: .95; will-change: background-position; }
@keyframes fxGrid { to { background-position: 0 64px, 0 0; } }

/* the horizon: a line of light where the grid meets the sky */
.fx-space::after { content: ""; position: absolute; left: 0; right: 0; bottom: 37%; height: 180px; background: radial-gradient(60% 100% at 50% 100%, rgba(61, 155, 255, .22), transparent 70%); border-bottom: 1px solid rgba(120, 190, 255, .35); filter: blur(.3px); }
/* holographic panels: glass, a light edge that travels around the frame, depth on hover */
.panel, .sig, .tool, .kpis, .lock { --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg; }
.panel { background:
    linear-gradient(#7DB8FF, #7DB8FF) left 14px top 0 / 26px 2px no-repeat, linear-gradient(#7DB8FF, #7DB8FF) left 0 top 14px / 2px 26px no-repeat,
    linear-gradient(#7DB8FF, #7DB8FF) right 14px bottom 0 / 26px 2px no-repeat, linear-gradient(#7DB8FF, #7DB8FF) right 0 bottom 14px / 2px 26px no-repeat,
    linear-gradient(180deg, rgba(120, 170, 255, .09), rgba(255, 255, 255, .012) 42%), rgba(8, 15, 30, .66); border-color: rgba(120, 170, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(61, 155, 255, .04); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.panel::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: .55;
  background: conic-gradient(from var(--fx-a, 0deg), transparent 0 62%, var(--fx-c1) 74%, var(--fx-c3) 80%, var(--fx-c2) 86%, transparent 94%);
  -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); animation: fxEdge 7s linear infinite; }
@property --fx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes fxEdge { to { --fx-a: 360deg; } }
.panel:hover { border-color: rgba(120, 170, 255, .32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 34px 80px -34px rgba(0, 0, 0, .95), 0 0 46px -18px var(--fx-glow); }
.panel > header h3 { background: linear-gradient(90deg, #fff, #BFD6FF 60%, #8FB8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* the pointer lights the surface it is over */
.fx-tilt { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0); transform-style: preserve-3d; }
.fx-tilt.fx-on { transition: transform .08s linear, box-shadow .35s, border-color .35s; }
.panel.fx-tilt::before, .tool.fx-tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; z-index: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(120, 180, 255, .16), transparent 60%); }
.panel.fx-tilt.fx-on::before, .tool.fx-tilt.fx-on::before { opacity: 1; }

/* signal cards and tiles float a little above the page */
.sig { box-shadow: 0 22px 50px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(120, 170, 255, .05); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.sig:hover { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95), 0 0 40px -16px color-mix(in srgb, var(--side, var(--fx-c1)) 55%, transparent); }

/* buttons: a sheen of light crosses on hover; the main button glows */
.btn { position: relative; overflow: hidden; transition: transform .2s, box-shadow .25s, border-color .25s, background .25s; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 46%; left: -60%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); pointer-events: none; }
.btn:hover::after { animation: fxSheen .7s ease; }
@keyframes fxSheen { to { left: 130%; } }
.btn:hover { transform: translateY(-1px); border-color: rgba(120, 170, 255, .45); box-shadow: 0 10px 26px -14px var(--fx-glow); }
.btn:active { transform: translateY(0) scale(.985); }
.btn.primary { box-shadow: 0 14px 40px -12px rgba(61, 155, 255, .8), 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 0 26px -6px rgba(61, 155, 255, .55); }

/* chips and the live dot breathe */
.chip.buy, .chip.sell { box-shadow: 0 0 18px -8px currentColor; }

/* platform shell: a control deck */
.top { background: linear-gradient(180deg, rgba(8, 16, 34, .92), rgba(5, 10, 20, .78)) !important; box-shadow: 0 1px 0 rgba(120, 170, 255, .14), 0 18px 50px -30px rgba(61, 155, 255, .5); }
.rail button { position: relative; transition: background .25s, color .25s, transform .2s; }
.rail button:hover { transform: translateX(-2px); }
.rail button[aria-current="page"] { background: linear-gradient(90deg, rgba(61, 155, 255, .2), rgba(61, 155, 255, .04)); box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .25), 0 0 26px -12px var(--fx-glow); }
.rail button[aria-current="page"] svg { color: #7DB8FF; filter: drop-shadow(0 0 6px rgba(61, 155, 255, .9)); }
.vh h2, .bh h2 { background: linear-gradient(92deg, #fff 10%, #BFD6FF 55%, #7DB8FF); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 34px rgba(61, 155, 255, .25); }
/* each screen arrives from depth */
.view.on { animation: fxView .55s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 0; }
@keyframes fxView { from { opacity: 0; transform: perspective(1400px) translateY(16px) rotateX(5deg) scale(.985); } to { opacity: 1; transform: none; } }
.view.on > * { animation: fxRise .6s cubic-bezier(.2, .8, .2, 1) both; }
.view.on > *:nth-child(2) { animation-delay: .05s; } .view.on > *:nth-child(3) { animation-delay: .1s; } .view.on > *:nth-child(4) { animation-delay: .15s; } .view.on > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes fxRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* landing page: sections surface as they scroll into view (only when the script is running) */
html.fx .fx-rev { opacity: 0; transform: perspective(1200px) translateY(34px) rotateX(7deg); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
html.fx .fx-rev.fx-in { opacity: 1; transform: none; }
.kpis div { background: linear-gradient(180deg, rgba(120, 170, 255, .08), rgba(9, 16, 29, .92)) !important; transition: background .3s; }
.kpis div:hover { background: linear-gradient(180deg, rgba(120, 170, 255, .16), rgba(9, 16, 29, .92)) !important; }
.kpis b, .kpis .num { text-shadow: 0 0 26px rgba(61, 155, 255, .45); }

/* tables and inputs pick up the same light */
.tbl tbody tr { transition: background .2s; } .tbl tbody tr:hover { background: rgba(61, 155, 255, .06); }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(120, 170, 255, .6) !important; box-shadow: 0 0 0 3px rgba(61, 155, 255, .16), 0 0 24px -10px var(--fx-glow); }
::selection { background: rgba(61, 155, 255, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(61, 155, 255, .5), rgba(138, 107, 255, .4)); border-radius: 10px; border: 2px solid #050A14; } ::-webkit-scrollbar-track { background: transparent; }

/* calm mode: phones, small screens, and anyone who asked for less motion */
@media (max-width: 760px), (pointer: coarse) { .fx-grid { animation: none; opacity: .6; } .panel::after { animation: none; opacity: .28; } .view.on > * { animation: none; } .rail button:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fx-grid, .panel::after, .view.on, .view.on > *, .btn:hover::after { animation: none !important; } .fx-tilt { transform: none !important; } html.fx .fx-rev { opacity: 1; transform: none; transition: none; } }
html.fx-lite .fx-grid, html.fx-lite .panel::after { animation: none; } html.fx-lite .fx-space canvas { display: none; }
