/**
 * Poly Landing Sites - Brand Design Tokens
 * Shared CSS custom properties for consistent branding
 */

:root {
  /* ===========================================
     COLOR PALETTE - Dark Theme
     =========================================== */
  
  /* Background layers */
  --poly-bg-primary: #0a0a0f;
  --poly-bg-secondary: #12121a;
  --poly-bg-tertiary: #1a1a25;
  --poly-bg-elevated: #222230;
  
  /* Glass/Overlay */
  --poly-glass-bg: rgba(255, 255, 255, 0.03);
  --poly-glass-border: rgba(255, 255, 255, 0.08);
  --poly-glass-blur: 20px;
  
  /* Text */
  --poly-text-primary: #ffffff;
  --poly-text-secondary: rgba(255, 255, 255, 0.7);
  --poly-text-tertiary: rgba(255, 255, 255, 0.5);
  --poly-text-muted: rgba(255, 255, 255, 0.3);
  
  /* Accent - Electric Blue/Purple */
  --poly-accent-primary: #6366f1;
  --poly-accent-secondary: #8b5cf6;
  --poly-accent-glow: rgba(99, 102, 241, 0.4);
  
  /* Gradient */
  --poly-gradient-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --poly-gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  --poly-gradient-text: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #6366f1 100%);
  
  /* Status colors */
  --poly-success: #10b981;
  --poly-warning: #f59e0b;
  --poly-error: #ef4444;
  
  /* ===========================================
     TYPOGRAPHY
     =========================================== */
  
  /* Font families */
  --poly-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --poly-font-display: 'Outfit', var(--poly-font-sans);
  --poly-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font sizes - fluid scale */
  --poly-text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --poly-text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --poly-text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --poly-text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --poly-text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --poly-text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --poly-text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --poly-text-4xl: clamp(2.5rem, 1.75rem + 3.5vw, 4rem);
  --poly-text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
  
  /* Font weights */
  --poly-font-normal: 400;
  --poly-font-medium: 500;
  --poly-font-semibold: 600;
  --poly-font-bold: 700;
  
  /* Line heights */
  --poly-leading-tight: 1.1;
  --poly-leading-snug: 1.25;
  --poly-leading-normal: 1.5;
  --poly-leading-relaxed: 1.75;
  
  /* Letter spacing */
  --poly-tracking-tight: -0.02em;
  --poly-tracking-normal: 0;
  --poly-tracking-wide: 0.05em;
  
  /* ===========================================
     SPACING
     =========================================== */
  
  --poly-space-1: 0.25rem;   /* 4px */
  --poly-space-2: 0.5rem;    /* 8px */
  --poly-space-3: 0.75rem;   /* 12px */
  --poly-space-4: 1rem;      /* 16px */
  --poly-space-5: 1.25rem;   /* 20px */
  --poly-space-6: 1.5rem;    /* 24px */
  --poly-space-8: 2rem;      /* 32px */
  --poly-space-10: 2.5rem;   /* 40px */
  --poly-space-12: 3rem;     /* 48px */
  --poly-space-16: 4rem;     /* 64px */
  --poly-space-20: 5rem;     /* 80px */
  --poly-space-24: 6rem;     /* 96px */
  
  /* ===========================================
     SIZING & LAYOUT
     =========================================== */
  
  --poly-max-width: 1280px;
  --poly-content-width: 720px;
  --poly-header-height: 72px;
  
  /* Border radius */
  --poly-radius-sm: 6px;
  --poly-radius-md: 10px;
  --poly-radius-lg: 16px;
  --poly-radius-xl: 24px;
  --poly-radius-full: 9999px;
  
  /* ===========================================
     EFFECTS & ANIMATIONS
     =========================================== */
  
  /* Shadows */
  --poly-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --poly-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --poly-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --poly-shadow-glow: 0 0 40px var(--poly-accent-glow);
  
  /* Transitions */
  --poly-transition-fast: 150ms ease;
  --poly-transition-base: 250ms ease;
  --poly-transition-slow: 400ms ease;
  --poly-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Blur */
  --poly-blur-sm: 8px;
  --poly-blur-md: 16px;
  --poly-blur-lg: 32px;
  
  /* ===========================================
     Z-INDEX SCALE
     =========================================== */
  
  --poly-z-base: 0;
  --poly-z-dropdown: 100;
  --poly-z-sticky: 200;
  --poly-z-fixed: 300;
  --poly-z-modal: 400;
  --poly-z-popover: 500;
  --poly-z-toast: 600;
}

/* ===========================================
   BASE RESET & UTILITIES
   =========================================== */

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

html {
  font-family: var(--poly-font-sans);
  font-size: 16px;
  line-height: var(--poly-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--poly-bg-primary);
  color: var(--poly-text-primary);
  min-height: 100vh;
}

/* Gradient text utility */
.poly-gradient-text {
  background: var(--poly-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Glow effect */
.poly-glow {
  box-shadow: var(--poly-shadow-glow);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--poly-accent-primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--poly-accent-primary);
  color: white;
}
