/* ============================================
   iSculptors — Design Tokens & CSS Variables
   ============================================ */

:root {
  /* ── Colors ── */
  --color-bg:            #ffffff;
  --color-bg-alt:        #f8f9fc;
  --color-bg-elevated:   #ffffff;
  --color-surface:       #ffffff;
  --color-surface-hover: #f3f4f8;

  --color-text:          #0f1729;
  --color-text-secondary:#5b6378;
  --color-text-tertiary: #8d95a9;
  --color-text-inverse:  #ffffff;

  --color-primary:       #3b82f6;
  --color-primary-hover: #2563eb;
  --color-primary-light: #dbeafe;
  --color-primary-dark:  #1d4ed8;

  --color-accent:        #8b5cf6;
  --color-accent-hover:  #7c3aed;

  --color-success:       #10b981;
  --color-warning:       #f59e0b;
  --color-error:         #ef4444;

  --color-border:        #e5e7eb;
  --color-border-light:  #f3f4f6;
  --color-divider:       #e5e7eb;

  --color-card-bg:       #ffffff;
  --color-card-border:   rgba(0, 0, 0, 0.06);
  --color-card-shadow:   rgba(0, 0, 0, 0.04);

  --color-overlay:       rgba(0, 0, 0, 0.5);
  --color-glass:         rgba(255, 255, 255, 0.7);
  --color-glass-border:  rgba(255, 255, 255, 0.3);

  /* ── Gradients ── */
  --gradient-primary:    linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-accent:     linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-hero:       linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-warm:       linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-cool:       linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-text:       linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-subtle:     linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);

  /* ── Typography ── */
  --font-sans:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:           'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  --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.875rem;   /* 30px */
  --text-4xl:            2.25rem;    /* 36px */
  --text-5xl:            3rem;       /* 48px */
  --text-6xl:            3.75rem;    /* 60px */
  --text-7xl:            4.5rem;     /* 72px */

  --leading-tight:       1.15;
  --leading-snug:        1.3;
  --leading-normal:      1.6;
  --leading-relaxed:     1.75;

  --tracking-tight:      -0.025em;
  --tracking-normal:     0;
  --tracking-wide:       0.025em;

  /* ── Spacing ── */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --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;

  --section-y: clamp(4rem, 8vw, 7rem);

  /* ── Layout ── */
  --container-max:       1200px;
  --container-wide:      1400px;
  --container-narrow:    800px;
  --container-padding:   clamp(1rem, 4vw, 2rem);

  /* ── Radius ── */
  --radius-sm:  0.375rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full:9999px;

  /* ── Shadows ── */
  --shadow-xs:   0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
  --shadow-2xl:  0 25px 50px -12px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 20px rgba(59,130,246,0.3), 0 0 60px rgba(59,130,246,0.1);

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

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

  /* ── Navbar ── */
  --navbar-height: 4rem;
}

/* ============================================
   Dark Mode
   ============================================ */
[data-theme="dark"] {
  --color-bg:            #0a0a0f;
  --color-bg-alt:        #111118;
  --color-bg-elevated:   #16161f;
  --color-surface:       #16161f;
  --color-surface-hover: #1e1e2a;

  --color-text:          #f0f0f5;
  --color-text-secondary:#a0a4b8;
  --color-text-tertiary: #6b7089;
  --color-text-inverse:  #0a0a0f;

  --color-primary:       #60a5fa;
  --color-primary-hover: #3b82f6;
  --color-primary-light: rgba(59,130,246,0.15);
  --color-primary-dark:  #93bbfd;

  --color-border:        #1e1e2a;
  --color-border-light:  #16161f;
  --color-divider:       #1e1e2a;

  --color-card-bg:       #111118;
  --color-card-border:   rgba(255, 255, 255, 0.06);
  --color-card-shadow:   rgba(0, 0, 0, 0.3);

  --color-overlay:       rgba(0, 0, 0, 0.7);
  --color-glass:         rgba(16, 16, 24, 0.75);
  --color-glass-border:  rgba(255, 255, 255, 0.08);

  --gradient-subtle:     linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);

  --shadow-xs:   0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,0.5), 0 10px 10px -5px rgba(0,0,0,0.3);
  --shadow-2xl:  0 25px 50px -12px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(96,165,250,0.25), 0 0 60px rgba(96,165,250,0.08);
}
