/* ─────────────────────────────────────────────────────────────────────────────
   Splatso — Design System
   Dark premium glassmorphism aesthetic
───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg-base:        #08080f;
  --bg-surface:     #0f0f1a;
  --bg-glass:       rgba(255,255,255,0.04);
  --bg-glass-hover: rgba(255,255,255,0.07);
  --border:         rgba(255,255,255,0.08);
  --border-bright:  rgba(255,255,255,0.18);
  --accent-1:       #7c3aed;
  --accent-2:       #4f46e5;
  --accent-glow:    rgba(124,58,237,0.4);
  --text-primary:   #f0f0ff;
  --text-secondary: #8b8ba8;
  --text-muted:     #4a4a6a;
  --success:        #22c55e;
  --danger:         #ef4444;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background:  var(--bg-base);
  color:       var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Ambient glow blobs ──────────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; top: -20%; left: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  /* Static — no animation. The drift animation was compositing at 60fps and
     ramping up the GPU on the home page even with no splat loaded. */
}

/* Second static blob bottom-right for depth */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px),
    radial-gradient(circle at 90% 90%, rgba(79,70,229,0.07) 0%, transparent 50%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 30%, var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

h2 { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }

/* ── Glass card ──────────────────────────────────────────────────────────── */
.glass {
  background:    var(--bg-glass);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── Button system ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none; cursor: pointer;
  font-family: inherit; font-size: 0.875rem; font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative; overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::after  { opacity: 1; }
.btn:active::after { opacity: 0; transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 36px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
}

.btn-danger {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-md); }

/* ── Icon ────────────────────────────────────────────────────────────────── */
.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Pill badge ──────────────────────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(124,58,237,0.18);
  color: #c4b5fd;
  border: 1px solid rgba(124,58,237,0.25);
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
