/* ================================================================
   NETROFUSION LABS — Design Token System
   Palette derived from the four-petal logo:
     Magenta #D946EF → Violet #8B5CF6 → Blue #3B82F6 → Cyan #06B6D4
   ================================================================ */

:root {
  color-scheme: dark;

  /* ── Brand Palette (from logo) ── */
  --nf-magenta: #D946EF;
  --nf-violet: #8B5CF6;
  --nf-blue: #3B82F6;
  --nf-cyan: #06B6D4;
  --nf-indigo: #6366F1;
  --nf-emerald: #10B981;
  --nf-red: #EF4444;
  --nf-orange: #F97316;
  --nf-yellow: #EAB308;
  --nf-slate: #64748B;

  /* ── Surface System (dark theme) ── */
  --surface-0: #030712;   /* deepest background */
  --surface-1: #0A0F1E;   /* page background */
  --surface-2: #111827;   /* card / raised surface */
  --surface-3: #1A2236;   /* elevated card */
  --surface-4: #1F2937;   /* input / form fields */

  /* ── Border System ── */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(139, 92, 246, 0.3);

  /* ── Text System ── */
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-tertiary: #6B7280;
  --text-muted: #4B5563;
  --text-inverse: #030712;

  /* ── Brand Gradients ── */
  --gradient-brand: linear-gradient(135deg, var(--nf-magenta), var(--nf-violet), var(--nf-blue), var(--nf-cyan));
  --gradient-brand-h: linear-gradient(90deg, var(--nf-violet), var(--nf-blue), var(--nf-cyan));
  --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.08));
  --gradient-text: linear-gradient(135deg, var(--nf-violet), var(--nf-blue), var(--nf-cyan));
  --gradient-glow-v: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
  --gradient-glow-b: radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  --gradient-glow-c: radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
  --gradient-mesh: var(--gradient-glow-v), var(--gradient-glow-b), var(--gradient-glow-c);

  /* ── Typography ── */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* ── Spacing ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ── Radii ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.4);
  --shadow-glow-v: 0 0 40px rgba(139, 92, 246, 0.15);
  --shadow-glow-b: 0 0 40px rgba(59, 130, 246, 0.12);

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* ── Layout ── */
  --max-width: 1200px;
  --navbar-height: 72px;
}

/* ── Base Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background-color: var(--surface-0);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--surface-0);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--surface-4);
}
