/* CSS Custom Properties — Modern IturanMob 2026 */
:root {
  /* Colors — refined palette */
  --primary-color: #0a1628;
  --primary-dark: #060e1a;
  --primary-medium: #142238;
  --secondary-color: #4ecdc4;
  --accent-color: #4ecdc4;
  --accent-dark: #3ab5ad;
  --accent-glow: rgba(78, 205, 196, 0.15);
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-light: #ffffff;
  --background: #ffffff;
  --background-light: #f8fafc;
  --background-dark: #f1f5f9;
  --background-subtle: #e2e8f0;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Typography — Inter + Rubik */
  --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-heading: "Inter", var(--font-family-base);
  --font-family-alt: "Rubik", var(--font-family-base);

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.75rem;
  --font-size-5xl: 3.5rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  --spacing-5xl: 8rem;

  /* Header */
  --header-bg: rgba(10, 22, 40, 0.85);
  --header-bg-scrolled: rgba(10, 22, 40, 0.98);

  /* Layout */
  --container-max-width: 1200px;
  --container-padding: 1.5rem;
  --header-height: 72px;

  /* Borders & Radius */
  --border-radius-sm: 0.5rem;
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-2xl: 2rem;
  --border-radius-full: 9999px;

  /* Shadows — layered for depth */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 40px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);
  --shadow-accent: 0 8px 30px -4px rgba(78, 205, 196, 0.3);
  --shadow-card: 0 0 0 1px rgb(0 0 0 / 0.03), 0 2px 4px rgb(0 0 0 / 0.03), 0 12px 24px rgb(0 0 0 / 0.04);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
  --gradient-accent: linear-gradient(135deg, #4ecdc4 0%, #44b3ab 100%);
  --gradient-hero: linear-gradient(160deg, #0a1628 0%, #142238 40%, #1a2d4a 100%);
  --gradient-subtle: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-glow: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(78, 205, 196, 0.06),
    transparent 40%
  );
}

@media (max-width: 640px) {
  :root {
    --container-padding: 1rem;
    --header-height: 56px;
    --font-size-4xl: 2rem;
    --font-size-5xl: 2.5rem;
  }
}

@media (min-width: 1367px) {
  :root {
    --container-max-width: 1366px;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f0f4f8;
    --text-secondary: #b9c6d7;
    --text-tertiary: #64748b;
    --background: #0a1628;
    --background-light: #0f1d32;
    --background-dark: #142238;
    --background-subtle: #1a2d4a;
    --border: #1e3a5c;
    --border-light: #1a2d4a;
    --header-bg: rgba(10, 22, 40, 0.92);
    --header-bg-scrolled: rgba(10, 22, 40, 0.98);
    --shadow-card: 0 0 0 1px rgb(255 255 255 / 0.03), 0 2px 4px rgb(0 0 0 / 0.2), 0 12px 24px rgb(0 0 0 / 0.25);
    --gradient-card: linear-gradient(180deg, #0f1d32 0%, #0a1628 100%);
    --gradient-subtle: linear-gradient(180deg, #405270 0%, #274064 100%);
  }
}
