/* ============================================================
   Design Tokens — nexgenwebsites.com
   Single source of truth for color, type, spacing, motion, z-index.
   Lifted from Gemini baseline (gemini-site/styles.css), extended.
   ============================================================ */

:root {
  /* ---------- Color ---------- */
  --bg-0: #000000;            /* page base */
  --bg-1: #0a0a0c;            /* surface */
  --bg-2: #0d0d10;            /* raised surface */
  --bg-3: #14141a;            /* card hover */
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);

  --fg: #ffffff;
  --fg-muted: #a1a1aa;
  --fg-dim: #6b6b78;

  --accent-blue: #00E5FF;
  --accent-purple: #8A2BE2;
  --accent-glow-blue: rgba(0, 229, 255, 0.35);
  --accent-glow-purple: rgba(138, 43, 226, 0.45);

  --gradient-brand: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  --gradient-brand-vert: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
  --gradient-brand-soft: radial-gradient(ellipse at top, rgba(0,229,255,0.18), transparent 60%),
                         radial-gradient(ellipse at bottom right, rgba(138,43,226,0.18), transparent 60%);
  --gradient-mesh: conic-gradient(from 180deg at 50% 50%,
                     #00E5FF 0deg, #6028D9 120deg, #8A2BE2 240deg, #00E5FF 360deg);

  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 30px 60px rgba(0, 0, 0, 0.85);
  --shadow-glow-blue: 0 0 30px rgba(0, 229, 255, 0.30);
  --shadow-glow-purple: 0 0 40px rgba(138, 43, 226, 0.45);

  /* ---------- Type ---------- */
  --font-head: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* fluid type scale (clamp(min, fluid, max)) */
  --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1.07rem + 0.3vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.18rem + 0.4vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.35rem + 0.8vw, 2rem);
  --fs-2xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --fs-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --fs-4xl: clamp(3rem, 2.2rem + 4vw, 5.5rem);
  --fs-display: clamp(3.5rem, 2.4rem + 5.5vw, 7.5rem);

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-loose: 1.75;

  --tracking-tight: -0.04em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.18em;

  /* ---------- Space (8pt scale) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --space-11: 12rem;

  --container-sm: 720px;
  --container-md: 960px;
  --container-lg: 1280px;
  --container-xl: 1440px;
  --container-2xl: 1600px;

  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* ---------- Radius ---------- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 9999px;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-quart: cubic-bezier(0.76, 0, 0.24, 1);

  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;
  --dur-xslow: 1200ms;

  /* ---------- Z-index scale ---------- */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 50;
  --z-nav: 100;
  --z-overlay: 500;
  --z-lightbox: 800;
  --z-cursor: 9999;

  /* ---------- Layout ---------- */
  --nav-height: 100px;

  /* ---------- Backdrop / glass ---------- */
  --glass-bg: rgba(0, 0, 0, 0.65);
  --glass-blur: blur(18px) saturate(140%);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --dur-xslow: 0ms;
  }
}
