*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 2.6vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
*::-webkit-scrollbar { height: 8px; width: 8px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 99px; }

/* ambient background orbs (ref: Flix.id blurred backdrop) */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(123,108,246,0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.orb-a { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: #5a48e0; animation: drift 26s ease-in-out infinite alternate; }
.orb-b { width: 40vw; height: 40vw; right: -14vw; top: 30vh; background: #1e7a8c; opacity: .38; animation: drift 32s ease-in-out infinite alternate-reverse; }
.orb-c { width: 30vw; height: 30vw; left: 30vw; bottom: -18vw; background: #c2563e; opacity: .22; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4vw, 3vh, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* boot splash */
.boot { min-height: 100dvh; display: grid; place-content: center; gap: 18px; justify-items: center; }
.boot-mark { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: .18em; color: var(--text-2); }
.boot-bar { width: 140px; height: 3px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 99px; animation: boot 1.1s var(--ease) infinite; }
@keyframes boot { from { transform: translateX(-100%); } to { transform: translateX(350%); } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.hidden, [hidden] { display: none !important; }
