/**
 * Webgentic Design System - Style Tokens
 * Core design variables and CSS custom properties
 */

:root {
  /* === Color System === */

  /* Primary Colors - Exact Spec */
  --color-primary: #000000;           /* Pure black for text */
  --color-text-body: #1B1B1B;         /* Body text */
  --color-text-secondary: rgba(27, 27, 27, 0.8);  /* 80% opacity black - improved contrast */
  --color-text-muted: rgba(27, 27, 27, 0.7);      /* 70% opacity black - improved contrast */

  /* Background Colors - Exact Spec */
  --bg-gradient-top: #D7E1F3;         /* Pale lilac-blue */
  --bg-gradient-bottom: #CDE5E1;      /* Muted aqua */
  --bg-white-mist: rgba(255, 255, 255, 0.08);  /* 8% white overlay */
  --bg-dark: #0a0d14;                 /* Dark background for footer */
  --bg-light: #ffffff;                /* Light background for forms and cards */
  --color-surface: #f8f9fa;           /* Surface background */

  /* Gradient System - Exact Spec */
  --gradient-hero: linear-gradient(135deg, #D7E1F3 0%, #CDE5E1 100%);
  --gradient-blob: linear-gradient(135deg, #A0E1F7 0%, #E7B8E8 50%, #F9D58A 100%);
  --gradient-nav-hover: linear-gradient(90deg, #A9D8F2 0%, #E4B9E4 100%);
  --gradient-button-hover: linear-gradient(135deg, #D7F1FF 0%, #EADCF8 100%);

  /* Feature Box Colors */
  --color-feature-border: rgba(255, 255, 255, 0.4);
  --color-feature-bg: rgba(255, 255, 255, 0.2);

  /* Accent Colors */
  --color-accent: #A0E1F7;            /* Primary accent color (cyan-blue from gradient) */
  --color-accent-turquoise: #9FE1D8;
  --color-border-subtle: rgba(0, 0, 0, 0.125);  /* #00000020 */

  /* UI Element Colors */
  --bg-button-white: #ffffff;
  --bg-card-dark: rgba(0, 0, 0, 0.6);  /* 60% black */
  --bg-laptop: #2C2C2C;                /* Dark graphite grey */

  /* Border Colors */
  --border-light: rgba(0, 0, 0, 0.125);
  --border-feature: rgba(255, 255, 255, 0.4);

  /* Shadow System - Exact Spec */
  --shadow-button: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card-subtle: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-feature-glow: 0 8px 24px rgba(160, 225, 247, 0.15);
  --shadow-laptop-reflection: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* === Typography === */

  /* Font Families */
  --font-heading: 'Satoshi', 'Aeonik Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;

  /* Font Weights */
  --weight-thin: 100;
  --weight-extralight: 200;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Type Scale - Exact Spec */
  --text-nav: 0.75rem;          /* Uppercase nav text */
  --text-base: 1.125rem;        /* 18px - Subheading paragraph */
  --text-hero: 4.5rem;          /* 72px - Primary heading */
  --text-button: 0.9375rem;     /* 15px - Button text */
  --text-feature-title: 1.125rem; /* Feature box titles */

  /* Line Heights - Exact Spec */
  --leading-hero: 1.05;         /* Hero heading */
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;       /* Subheading paragraph */

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;

  /* === Spacing System === */

  /* Base spacing unit: 0.25rem (4px) */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* Layout-specific spacing */
  --spacing-section: var(--space-32);
  --spacing-block: var(--space-12);
  --spacing-card: var(--space-8);

  /* === Border Radius === */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* === Transitions === */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-slow: 400ms ease-out;
  --transition-all: 300ms ease-out;

  /* Easing Functions */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* === Layout === */

  /* Container Widths */
  --container-max: 1400px;
  --container-content: 1200px;
  --container-text: 760px;

  /* Grid */
  --grid-columns: 12;
  --grid-gap: 2rem;
  --grid-gap-mobile: 1rem;

  /* === Z-Index Scale === */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* === Breakpoints (for reference in media queries) === */
  --breakpoint-mobile: 320px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1025px;
  --breakpoint-wide: 1441px;
}

/* === Dark Theme Variations === */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-card-hover: rgba(255, 255, 255, 0.12);
  }
}

/* === Reduced Motion Support === */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-all: 0ms;
  }
}
