/* LEADZLY DESIGN SYSTEM — Fresh green brand, dark charcoal contrast */

:root, [data-theme="light"] {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

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

  /* Font Families */
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', sans-serif;

  /* Surfaces — Clean white base with subtle warm grays */
  --color-bg:               #ffffff;
  --color-surface:          #f9fafb;
  --color-surface-2:        #f3f4f6;
  --color-surface-offset:   #e5e7eb;
  --color-surface-offset-2: #d1d5db;
  --color-surface-dynamic:  #e5e7eb;
  --color-divider:          #e5e7eb;
  --color-border:           #d1d5db;

  /* Text */
  --color-text:           #1a1a2e;
  --color-text-muted:     #6b7280;
  --color-text-faint:     #9ca3af;
  --color-text-inverse:   #ffffff;

  /* Primary — Fresh Green */
  --color-primary:          #16a34a;
  --color-primary-hover:    #15803d;
  --color-primary-active:   #166534;
  --color-primary-highlight: #dcfce7;
  --color-primary-soft:     #f0fdf4;

  /* Dark brand surface (hero, footer, CTA) */
  --color-dark:             #0f172a;
  --color-dark-surface:     #1e293b;
  --color-dark-border:      #334155;

  /* Semantic */
  --color-error:            #dc2626;
  --color-success:          #16a34a;
  --color-warning:          #f59e0b;

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

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 250 / 0.12);
  --shadow-xl: 0 20px 48px oklch(0.2 0.01 250 / 0.16);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg:               #0a0a0f;
  --color-surface:          #111118;
  --color-surface-2:        #1a1a24;
  --color-surface-offset:   #22222e;
  --color-surface-offset-2: #2a2a38;
  --color-surface-dynamic:  #2a2a38;
  --color-divider:          #2a2a38;
  --color-border:           #333344;

  --color-text:           #e5e5e5;
  --color-text-muted:     #9ca3af;
  --color-text-faint:     #6b7280;
  --color-text-inverse:   #0a0a0f;

  --color-primary:          #22c55e;
  --color-primary-hover:    #4ade80;
  --color-primary-active:   #16a34a;
  --color-primary-highlight: #052e16;
  --color-primary-soft:     #0a1f0f;

  --color-dark:             #0a0a0f;
  --color-dark-surface:     #111118;
  --color-dark-border:      #2a2a38;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
  --shadow-xl: 0 20px 48px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #0a0a0f;
    --color-surface:          #111118;
    --color-surface-2:        #1a1a24;
    --color-surface-offset:   #22222e;
    --color-surface-offset-2: #2a2a38;
    --color-surface-dynamic:  #2a2a38;
    --color-divider:          #2a2a38;
    --color-border:           #333344;
    --color-text:           #e5e5e5;
    --color-text-muted:     #9ca3af;
    --color-text-faint:     #6b7280;
    --color-text-inverse:   #0a0a0f;
    --color-primary:          #22c55e;
    --color-primary-hover:    #4ade80;
    --color-primary-active:   #16a34a;
    --color-primary-highlight: #052e16;
    --color-primary-soft:     #0a1f0f;
    --color-dark:             #0a0a0f;
    --color-dark-surface:     #111118;
    --color-dark-border:      #2a2a38;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
    --shadow-xl: 0 20px 48px oklch(0 0 0 / 0.55);
  }
}
