/* SIslopcore.ai - effects layer: homepage feature bands, slide-outs,
   background fields, custom cursor, magnetic + glitch buttons. */

/* ---------- custom cursor (robot vision) ---------- */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, select, textarea, input, label { cursor: none; }
  .cur { position: fixed; left: 0; top: 0; z-index: 5000; pointer-events: none; mix-blend-mode: difference; }
  .cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; border-radius: 50%; transition: transform .15s; }
  .cur-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; transition: width .25s, height .25s, margin .25s, border-radius .25s, border-color .25s; }
  .cur-ring::before, .cur-ring::after { content: ''; position: absolute; background: rgba(255,255,255,.9); transition: opacity .2s; opacity: 0; }
  .cur-ring::before { left: 50%; top: -8px; width: 1px; height: 8px; }
  .cur-ring::after { top: 50%; left: -8px; height: 1px; width: 8px; }
  body.cur-hover .cur-ring { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 4px; border-color: #ff5c6c; }
  body.cur-hover .cur-ring::before, body.cur-hover .cur-ring::after { opacity: 1; }
  body.cur-hover .cur-dot { transform: scale(0.5); }
  body.cur-down .cur-ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
}
.cur { display: none; }
@media (hover: hover) and (pointer: fine) { .cur { display: block; } }

/* ---------- buttons: magnetic + glitch + sweep ---------- */
.btn, .btn-mini, .seg button, .nav-item { will-change: transform; }
.btn { overflow: hidden; isolation: isolate; }
.btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s cubic-bezier(.2,.8,.2,1); z-index: -1; mix-blend-mode: overlay; }
.btn:hover::before { transform: translateX(120%); }
.btn::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.btn:hover::after { transform: scaleX(1); }
.btn .gl { position: relative; display: inline-block; }
.btn:hover .gl { animation: glitch .4s steps(2) 1; }
@keyframes glitch {
  0% { text-shadow: 2px 0 #ff5c6c, -2px 0 #6cf; transform: translate(0); }
  25% { text-shadow: -2px 0 #ff5c6c, 2px 0 #6cf; transform: translate(1px, -1px); }
  50% { text-shadow: 2px 0 #ff5c6c, -2px 0 #6cf; transform: translate(-1px, 1px); }
  75% { text-shadow: 0 0 transparent; transform: translate(0); }
  100% { text-shadow: none; }
}
.btn-mini:hover, .seg button:hover { text-shadow: 1px 0 #ff5c6c, -1px 0 #6cf; }

/* corner brackets for panels on hover */
.tool, .reel, .ca, .stat, .pay { position: relative; transition: border-color .25s, transform .25s; }
.tool:hover, .ca:hover, .pay:hover { border-color: var(--acc); }
.tool::before, .tool::after { content: ''; position: absolute; width: 10px; height: 10px; border: 1px solid var(--acc); opacity: 0; transition: opacity .2s, transform .25s; }
.tool::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; transform: translate(4px, 4px); }
.tool::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; transform: translate(-4px, -4px); }
.tool:hover::before, .tool:hover::after { opacity: 1; transform: translate(0, 0); }
.reel:hover { transform: translateY(-3px); border-color: var(--acc); }

/* ---------- homepage feature bands ---------- */
.bands { position: relative; z-index: 3; margin: 40px calc(-1 * var(--gut)) 0; }
.band { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 140px) var(--gut); min-height: 70vh; display: grid; align-items: center; }
.band.dark { background: #07090c; color: var(--ink); }
.band.light { background: #f3f5f7; color: #07090c; }
.band.light { --ink: #07090c; --ink-2: rgba(7,9,12,.64); --ink-3: rgba(7,9,12,.38); --line: rgba(7,9,12,.16); --panel: rgba(243,245,247,.7); }

/* background fields */
.band .field { position: absolute; inset: 0; pointer-events: none; }
.band.dark .field-grid { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(80% 70% at 50% 50%, #000 30%, transparent 100%); animation: gridDrift 18s linear infinite; }
@keyframes gridDrift { to { background-position: 48px 48px; } }
.band.dark .field-glow { background: radial-gradient(50% 60% at var(--gx, 70%) var(--gy, 40%), rgba(255,92,108,.22), transparent 70%); transition: background .3s; }
.band.light .field-dots { background-image: radial-gradient(rgba(7,9,12,.22) 1px, transparent 1.4px); background-size: 14px 14px; mask-image: radial-gradient(70% 70% at var(--gx, 30%) var(--gy, 50%), #000 10%, transparent 80%); }
.band.light .field-lines { background: repeating-linear-gradient(-30deg, transparent 0 38px, rgba(255,92,108,.25) 38px 39px); animation: linesDrift 14s linear infinite; mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); }
@keyframes linesDrift { to { background-position: 76px 0; } }
.band .field-frame { position: absolute; width: min(46vw, 520px); aspect-ratio: 16/9; background-size: cover; background-position: center; opacity: .0; filter: saturate(.7) contrast(1.1); transform: translate3d(0, 40px, 0) scale(.96); transition: opacity 1s, transform 1.2s cubic-bezier(.2,.8,.2,1); }
.band.in .field-frame { opacity: .28; transform: none; }
.band.light .field-frame { mix-blend-mode: multiply; opacity: 0; }
.band.light.in .field-frame { opacity: .22; }
.band .field-frame.a { right: 4%; top: 12%; }
.band .field-frame.b { left: 4%; bottom: 10%; }
.band .field-scan { background: linear-gradient(180deg, transparent 0%, rgba(255,92,108,.35) 50%, transparent 100%); background-size: 100% 30%; background-repeat: no-repeat; animation: bandScan 6s linear infinite; opacity: .5; }
@keyframes bandScan { from { background-position: 0 -30%; } to { background-position: 0 130%; } }

/* slide-out content panel */
.band-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1180px; margin: 0 auto; width: 100%; }
.band.flip .band-inner > .slide { order: 2; }
.slide { position: relative; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); transform: translate3d(-70px, 0, 0); opacity: 0; clip-path: inset(0 100% 0 0); transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .8s, clip-path 1s cubic-bezier(.2,.8,.2,1); }
.band.flip .slide { transform: translate3d(70px, 0, 0); clip-path: inset(0 0 0 100%); }
.band.in .slide { transform: none; opacity: 1; clip-path: inset(0 0 0 0); }
.slide::before, .slide::after { content: ''; position: absolute; width: 16px; height: 16px; border: 1px solid var(--acc); }
.slide::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.slide::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.slide .code { display: block; margin-bottom: 10px; }
.slide h2 { font-family: var(--disp); font-weight: 400; font-size: clamp(18px, 2.6vw, 30px); letter-spacing: .08em; margin: 0 0 14px; line-height: 1.15; }
.slide p { color: var(--ink-2); line-height: 1.7; margin: 0 0 18px; max-width: 52ch; }
.slide ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.slide li { display: flex; gap: 10px; font-size: 11.5px; letter-spacing: .06em; color: var(--ink-2); }
.slide li::before { content: '▸'; color: var(--acc); }
.band.light .btn.ghost { color: #07090c; border-color: rgba(7,9,12,.3); }
.band.light .btn.ghost:hover { border-color: var(--acc); color: var(--acc); }

/* big ghost numeral + label on the other side */
.band-side { position: relative; min-height: 220px; display: grid; align-content: center; transform: translate3d(0, 30px, 0); opacity: 0; transition: transform 1.1s cubic-bezier(.2,.8,.2,1) .1s, opacity 1s .1s; }
.band.in .band-side { transform: none; opacity: 1; }
.band-side .num { font-family: var(--disp); font-size: clamp(90px, 18vw, 240px); line-height: .9; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px var(--ink-3); position: relative; }
.band-side .num::after { content: attr(data-n); position: absolute; left: 0; top: 0; color: var(--acc); -webkit-text-stroke: 0; clip-path: inset(0 0 100% 0); transition: clip-path 1.4s cubic-bezier(.2,.8,.2,1) .3s; }
.band.in .band-side .num::after { clip-path: inset(0 0 0 0); }
.band-side .lbl { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.band-side .stat-line { display: flex; gap: 24px; margin-top: 22px; flex-wrap: wrap; }
.band-side .stat-line b { display: block; font-size: 18px; }
.band-side .stat-line i { display: block; font-style: normal; font-size: 9px; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }

/* rolling divider between bands */
.band-rule { position: relative; height: 28px; overflow: hidden; background: #07090c; }
.band-rule span { position: absolute; left: 0; top: 50%; width: 200%; height: 1px; background: repeating-linear-gradient(90deg, var(--acc) 0 24px, transparent 24px 48px); animation: ruleDrift 3s linear infinite; opacity: .6; }
@keyframes ruleDrift { to { transform: translateX(-48px); } }
.band.light + .band-rule, .band-rule.light { background: #f3f5f7; }

/* ticker should sit over the bands too */
body[data-view="home"] .foot { display: flex; }

@media (max-width: 900px) {
  .band-inner { grid-template-columns: 1fr; }
  .band.flip .band-inner > .slide { order: 0; }
  .band-side { min-height: 0; }
  .band .field-frame { width: 70vw; opacity: .18; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .band-side, .band .field-frame { transition: none; transform: none; opacity: 1; clip-path: none; }
  .field-grid, .field-lines, .field-scan, .band-rule span { animation: none; }
}

/* hero title glitch burst */
.title { position: relative; }
.title.glitching { animation: tglitch .38s steps(3) 1; }
@keyframes tglitch {
  0% { text-shadow: 3px 0 #ff5c6c, -3px 0 #5ad7ff; clip-path: inset(0 0 60% 0); transform: translateX(2px); }
  33% { text-shadow: -3px 0 #ff5c6c, 3px 0 #5ad7ff; clip-path: inset(40% 0 0 0); transform: translateX(-2px); }
  66% { text-shadow: 2px 0 #ff5c6c, -2px 0 #5ad7ff; clip-path: inset(20% 0 30% 0); transform: translateX(1px); }
  100% { text-shadow: none; clip-path: none; transform: none; }
}
/* hero ticker: keep it inside the hero instead of pinned when bands exist */
body[data-view="home"] .ticker { position: sticky; bottom: 0; }
