/* ==========================================================================
   Design Tokens - Video Engine Landing Page
   Mobile-first approach: base = mobile, media queries add desktop styles
   ========================================================================== */

:root {
  /* -------------------------------------------------------------------------
     Colors
     ------------------------------------------------------------------------- */

  /* Backgrounds */
  --bg-page: #0a0a0a;
  --bg-elevated: #111111;
  --bg-mockup: #141414;
  --bg-input: #1a1a1a;
  --bg-hover: #1f1f1f;

  /* Borders */
  --border-default: #262626;
  --border-subtle: #1f1f1f;
  --border-focus: #7c3aed;

  /* Accent Gradient */
  --accent-start: #7c3aed;
  --accent-mid: #a855f7;
  --accent-end: #06b6d4;

  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  /* Status */
  --status-success: #22c55e;
  --status-error: #ef4444;
  --status-warning: #f59e0b;
  --status-info: #3b82f6;

  /* Effects */
  --glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
  --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);

  /* -------------------------------------------------------------------------
     Typography - Mobile First
     ------------------------------------------------------------------------- */

  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Font Sizes - Mobile Base */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.75rem;   /* 28px */
  --text-4xl: 2rem;      /* 32px */

  /* Headline Sizes - Mobile */
  --h1-size: 1.75rem;    /* 28px on mobile */
  --h2-size: 1.375rem;   /* 22px on mobile */
  --h3-size: 1.125rem;   /* 18px on mobile */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* -------------------------------------------------------------------------
     Spacing
     ------------------------------------------------------------------------- */

  --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 */

  /* Container */
  --container-padding: var(--space-4);
  --container-max: 1200px;

  /* Section Spacing - Mobile */
  --section-padding-y: var(--space-12);

  /* -------------------------------------------------------------------------
     Border Radius
     ------------------------------------------------------------------------- */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* -------------------------------------------------------------------------
     Shadows
     ------------------------------------------------------------------------- */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-glow: var(--glow-purple);

  /* -------------------------------------------------------------------------
     Animation
     ------------------------------------------------------------------------- */

  /* Durations */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Loop Durations */
  --loop-short: 8s;
  --loop-medium: 10s;
  --loop-long: 12s;

  /* Typing */
  --typing-speed: 40ms;

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

  /* -------------------------------------------------------------------------
     Z-Index Scale
     ------------------------------------------------------------------------- */

  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-tooltip: 500;

  /* -------------------------------------------------------------------------
     Touch Targets (Mobile Accessibility)
     ------------------------------------------------------------------------- */

  --touch-target-min: 44px;
}

/* ===========================================================================
   Tablet Breakpoint (768px+)
   =========================================================================== */

@media (min-width: 768px) {
  :root {
    /* Typography */
    --h1-size: 2.25rem;    /* 36px */
    --h2-size: 1.75rem;    /* 28px */
    --h3-size: 1.375rem;   /* 22px */

    /* Spacing */
    --container-padding: var(--space-6);
    --section-padding-y: var(--space-16);
  }
}

/* ===========================================================================
   Desktop Breakpoint (1024px+)
   =========================================================================== */

@media (min-width: 1024px) {
  :root {
    /* Typography */
    --h1-size: 3rem;       /* 48px */
    --h2-size: 2rem;       /* 32px */
    --h3-size: 1.5rem;     /* 24px */

    /* Spacing */
    --container-padding: var(--space-8);
    --section-padding-y: var(--space-20);
  }
}

/* ===========================================================================
   Large Desktop Breakpoint (1280px+)
   =========================================================================== */

@media (min-width: 1280px) {
  :root {
    /* Typography */
    --h1-size: 3.5rem;     /* 56px */
    --h2-size: 2.25rem;    /* 36px */

    /* Spacing */
    --section-padding-y: var(--space-24);
  }
}

/* ===========================================================================
   Reduced Motion Preference
   =========================================================================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --loop-short: 0s;
    --loop-medium: 0s;
    --loop-long: 0s;
  }
}
