/* 40kerio — style.css — Made by KeRio */
:root {
  --bg: #060a14; --bg-soft: #0a1120; --card: #0e1526; --card-2: #131c31;
  --border: #1e2a45; --fg: #f5f3fa; --muted: #9a93ad;
  --blue: #3b82f6; --magenta: #22d3ee;
  --grad: linear-gradient(92deg, var(--blue), var(--magenta));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(1100px 600px at -10% 20%, rgba(59,130,246,.14), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(59,130,246,.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg); font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.55; min-height: 100vh;
}
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15.8px; padding: 12px 22px; border-radius: 10px; border: none; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(59,130,246,.4); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-danger { background: transparent; border: 1px solid #7f1d1d; color: #f87171; }
.btn-danger:hover { background: rgba(248,113,113,.1); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 8px; }

.field { width: 100%; background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; color: var(--fg); font-size: 16.4px; font-family: inherit; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.field::placeholder { color: #4a5a7a; }
label.lb { display: block; font-size: 14.1px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }

.card-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.hoverable { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.hoverable:hover { transform: translateY(-3px); border-color: rgba(59,130,246,.5); box-shadow: 0 10px 32px rgba(59,130,246,.12); }

/* switch */
.switch { position: relative; width: 40px; height: 23px; background: #1e2a45; border-radius: 999px; cursor: pointer; transition: background .25s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #5b6b8c; transition: transform .25s, background .25s; }
.switch.on { background: var(--blue); }
.switch.on::after { transform: translateX(17px); background: #fff; }

/* toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 24px) scale(.94); background: linear-gradient(155deg, #131c30, #0d1424); border: 1px solid rgba(59,130,246,.35); color: var(--fg); padding: 12px 20px 12px 12px; border-radius: 14px; font-size: 14px; font-weight: 500; z-index: 999; opacity: 0; transition: opacity .35s cubic-bezier(.2,.9,.3,1.2), transform .35s cubic-bezier(.2,.9,.3,1.2); box-shadow: 0 16px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset; display: flex; align-items: center; gap: 11px; max-width: min(420px, 90vw); }
.toast.err { border-color: rgba(248,113,113,.4); }
.toast-ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg,#22c55e,#16a34a); color: #06180d; box-shadow: 0 0 14px rgba(34,197,94,.45); }
.toast.err .toast-ic { background: linear-gradient(140deg,#f87171,#dc2626); color: #2a0a0a; box-shadow: 0 0 14px rgba(248,113,113,.45); }
.toast-msg { line-height: 1.4; }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.err { border-color: #ef4444; }

.demo-banner { background: linear-gradient(92deg, rgba(59,130,246,.25), rgba(34,211,238,.2)); border-bottom: 1px solid var(--border); color: #e9d5ff; text-align: center; font-size: 12.5px; padding: 8px 14px; }

/* reveal */
.rv { opacity: 0; transform: translateY(20px); animation: rvin .6s cubic-bezier(.22,1,.36,1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; }
@keyframes rvin { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv { animation: none; opacity: 1; transform: none; } }


/* file upload */
.filebtn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; background: var(--card-2); border: 1px dashed var(--border); border-radius: 10px; padding: 11px 16px; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s; }
.filebtn:hover { border-color: var(--blue); color: var(--fg); }
.filebtn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filemeta { font-size: 12px; color: var(--muted); margin-top: 5px; word-break: break-all; }
.filemeta.ok { color: #4ade80; }
