/* ============================================
   NEXCORE NETWORK — Design Tokens
   Brand: Primary Green #43925C, Accent Green #3AC21F
   Dark Contrast: #0C377B, CTA: #FB7508
   70% white / 20% green tones / 10% navy+orange
   ============================================ */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #ffffff;
  --color-surface: #f8faf9;
  --color-surface-2: #f0f6f3;
  --color-surface-offset: #e8f2ed;
  --color-surface-offset-2: #ddeee6;
  --color-divider: #c8ddd3;
  --color-border: #b8d0c6;

  /* Text */
  --color-text: #0d1f17;
  --color-text-muted: #4a6558;
  --color-text-faint: #8aab9b;
  --color-text-inverse: #ffffff;

  /* Primary Green */
  --color-primary: #43925c;
  --color-primary-hover: #35764a;
  --color-primary-active: #275a38;
  --color-primary-highlight: #d4eadc;

  /* Accent Green */
  --color-accent: #3ac21f;
  --color-accent-hover: #2fa018;
  --color-accent-active: #237e12;
  --color-accent-highlight: #d0f5c8;

  /* Dark Contrast (Navy) */
  --color-navy: #0c377b;
  --color-navy-hover: #092d65;
  --color-navy-active: #07234f;
  --color-navy-highlight: #c2d0e8;

  /* CTA Orange */
  --color-cta: #fb7508;
  --color-cta-hover: #e56500;
  --color-cta-active: #c45500;
  --color-cta-highlight: #fde5cc;

  /* Neutral complements */
  --color-success: #43925c;
  --color-warning: #fb7508;

  /* 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: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(12, 55, 123, 0.06);
  --shadow-md: 0 4px 16px rgba(12, 55, 123, 0.09);
  --shadow-lg: 0 12px 40px rgba(12, 55, 123, 0.13);
  --shadow-xl: 0 24px 64px rgba(12, 55, 123, 0.16);

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

  /* Type scale (fluid) */
  --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.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 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, 7rem);

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

  /* Fonts */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* DARK MODE */
[data-theme='dark'] {
  --color-bg: #0b1510;
  --color-surface: #0f1d16;
  --color-surface-2: #13231b;
  --color-surface-offset: #172a20;
  --color-surface-offset-2: #1c3227;
  --color-divider: #1f3a2c;
  --color-border: #264736;
  --color-text: #d8ede2;
  --color-text-muted: #7aab8e;
  --color-text-faint: #3d6650;
  --color-text-inverse: #0b1510;
  --color-primary: #5ab878;
  --color-primary-hover: #43925c;
  --color-primary-active: #35764a;
  --color-primary-highlight: #1a3d28;
  --color-accent: #4fd832;
  --color-accent-hover: #3ac21f;
  --color-accent-active: #2fa018;
  --color-accent-highlight: #173d10;
  --color-navy: #4a7fc9;
  --color-navy-hover: #3468b0;
  --color-navy-active: #245196;
  --color-navy-highlight: #0e2547;
  --color-cta: #fd8f30;
  --color-cta-hover: #fb7508;
  --color-cta-active: #e56500;
  --color-cta-highlight: #3d2000;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0b1510;
    --color-surface: #0f1d16;
    --color-surface-2: #13231b;
    --color-surface-offset: #172a20;
    --color-surface-offset-2: #1c3227;
    --color-divider: #1f3a2c;
    --color-border: #264736;
    --color-text: #d8ede2;
    --color-text-muted: #7aab8e;
    --color-text-faint: #3d6650;
    --color-text-inverse: #0b1510;
    --color-primary: #5ab878;
    --color-primary-hover: #43925c;
    --color-primary-active: #35764a;
    --color-primary-highlight: #1a3d28;
    --color-accent: #4fd832;
    --color-accent-hover: #3ac21f;
    --color-accent-active: #2fa018;
    --color-accent-highlight: #173d10;
    --color-navy: #4a7fc9;
    --color-navy-hover: #3468b0;
    --color-navy-active: #245196;
    --color-navy-highlight: #0e2547;
    --color-cta: #fd8f30;
    --color-cta-hover: #fb7508;
    --color-cta-active: #e56500;
    --color-cta-highlight: #3d2000;
  }
}
