:root{
  --bg:#05070d; --bg2:#0a0f1d; --panel:rgba(14,20,36,.72); --line:rgba(124,156,255,.16);
  --text:#e8edff; --muted:#8793b5; --accent:#7c9cff; --accent2:#4ee1c1; --danger:#ff6b81;
  --c-math:#ffb454; --c-explain:#4ee1c1; --c-code:#b48cff; --c-translate:#ff7eb6; --c-summarize:#6ad1ff;
  --radius:16px; --font:'Space Grotesk',system-ui,sans-serif; --mono:'JetBrains Mono',ui-monospace,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:var(--font);line-height:1.55;min-height:100vh;overflow-x:hidden}
#bg{position:fixed;inset:0;z-index:-1;width:100%;height:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{line-height:1.15;letter-spacing:-.02em}
.muted{color:var(--muted)}
.grad{background:linear-gradient(90deg,var(--accent),var(--accent2) 60%,var(--c-translate));-webkit-background-clip:text;background-clip:text;color:transparent}
::selection{background:var(--accent);color:#000}
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#243055;border-radius:8px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto}}
