/* ===========================================================
   base.css — Design tokens, reset, ambient background
   =========================================================== */

:root {
  --bg:        #08080c;
  --bg-2:      #0f0f17;
  --bg-3:      #161622;
  --text:      #ececf5;
  --muted:     #9a9ab2;
  --dim:       #6a6a82;
  --violet:    #a855f7;
  --violet-2:  #7c3aed;
  --cyan:      #22d3ee;
  --rose:      #f43f5e;
  --rose-2:    #e11d48;
  --gold:      #fbbf24;
  --glass:     rgba(255,255,255,0.04);
  --glass-2:   rgba(255,255,255,0.06);
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);
  --radius:    20px;
  --radius-sm: 12px;
  --maxw:      1180px;

  /* announcement + nav offsets — single source of truth */
  --announcement-h: 36px;
  --nav-top: calc(var(--announcement-h) + 18px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
}

/* Particle canvas */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ambient gradient blobs */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(168,85,247,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(244,63,94,0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 95%, rgba(34,211,238,0.10), transparent 60%);
}

/* Subtle grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
}

/* Cursor-following glow */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.16), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity .3s ease;
  mix-blend-mode: screen;
  will-change: transform;
}

/* Shared keyframes (used across multiple files) */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes pulsePill {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(244,63,94,0.7), inset 0 -2px 4px rgba(0,0,0,0.4); }
  50%      { transform: scale(0.9); box-shadow: 0 0 22px rgba(244,63,94,0.9), inset 0 -2px 4px rgba(0,0,0,0.4); }
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealUp { to { transform: translateY(0); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
