/* Design tokens, themes, reset and typography */
:root {
  --blue: #a855f7; --violet: #c026d3; --grad: linear-gradient(135deg, #7628f5, #e12bce);
  --bg: #080510; --bg-2: #140b25;
  --glass: rgba(30, 15, 52, .72); --solid: #141a35; --line: rgba(150, 170, 255, .16);
  --text: #f5efff; --muted: #b7a9d0; --link: #d5a5ff; --danger: #ff6b81; --ok: #4ade80;
  --radius: 18px; --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Bengali", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f6ff; --bg-2: #e9edff; --glass: rgba(255, 255, 255, .8); --solid: #fff; --line: rgba(50, 65, 140, .14);
  --text: #121631; --muted: #535c84; --link: #1f55c9; --danger: #c81e45; --ok: #137a3c; --shadow: 0 10px 26px rgba(45, 60, 130, .12);
  color-scheme: light;
}
:root.high-contrast { --muted: var(--text); --line: currentColor; --glass: var(--solid); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  font-family: var(--font); color: var(--text); line-height: 1.55; min-height: 100vh; -webkit-text-size-adjust: 100%;
  background: radial-gradient(900px 500px at 10% -10%, rgba(168, 85, 247, .18), transparent 60%),
    radial-gradient(800px 500px at 100% 0, rgba(192, 38, 211, .16), transparent 60%), var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
h1 { font-size: 1.35rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; margin-bottom: .35rem; }
small, .muted { color: var(--muted); }
small { font-size: .8rem; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
:root.reduce-motion *, :root.reduce-motion *::before, :root.reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

:root[data-accent="blue"] { --blue:#2563eb; --violet:#3b82f6; --grad:linear-gradient(135deg,#2563eb,#06b6d4); --link:#7dd3fc; }
:root[data-accent="cyan"] { --blue:#0891b2; --violet:#06b6d4; --grad:linear-gradient(135deg,#0891b2,#22d3ee); --link:#67e8f9; }
:root[data-accent="green"] { --blue:#059669; --violet:#10b981; --grad:linear-gradient(135deg,#059669,#84cc16); --link:#6ee7b7; }
:root[data-accent="rose"] { --blue:#e11d48; --violet:#ec4899; --grad:linear-gradient(135deg,#e11d48,#c026d3); --link:#f9a8d4; }
:root[data-accent="amber"] { --blue:#d97706; --violet:#f59e0b; --grad:linear-gradient(135deg,#d97706,#f97316); --link:#fcd34d; }
