/* Art direction: AI Consulting SaaS for SMBs → Trust + Innovation
   Palette: Dark navy foundation, teal accent, warm amber highlights — professional but approachable
   Typography: Erode (display serif, editorial authority) + General Sans (body, clean + modern)
   Density: spacious — landing page, generous whitespace for confidence */

/* ============================================================
   TYPE SCALE
   ============================================================ */
:root {
  --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,    8rem);

  /* SPACING — 4px base */
  --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;

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

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

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

  /* FONTS */
  --font-display: 'Erode', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

/* ============================================================
   LIGHT MODE — Deep Navy/Teal with warm accents
   ============================================================ */
:root, [data-theme="light"] {
  /* Surfaces — warm off-white with navy undertones */
  --color-bg:               #f5f4f0;
  --color-surface:          #ffffff;
  --color-surface-2:        #faf9f7;
  --color-surface-offset:   #eeedea;
  --color-surface-offset-2: #e5e4e0;
  --color-surface-dynamic:  #dddcd8;
  --color-divider:          #d1d0cc;
  --color-border:           #c4c3bf;

  /* Text */
  --color-text:           #1a1e2e;
  --color-text-muted:     #5c6178;
  --color-text-faint:     #9a9db0;
  --color-text-inverse:   #f5f4f0;

  /* Primary Accent — Deep Teal */
  --color-primary:          #0a7e7a;
  --color-primary-hover:    #066b68;
  --color-primary-active:   #045755;
  --color-primary-highlight: #d4edec;

  /* Secondary — Warm Amber */
  --color-accent:           #d4860a;
  --color-accent-hover:     #b87308;
  --color-accent-active:    #9a6007;
  --color-accent-highlight: #f5e6cc;

  /* Success */
  --color-success:          #2d8a4e;
  --color-success-hover:    #1f7340;
  --color-success-highlight: #d4eddc;

  /* Warning */
  --color-warning:          #c47512;
  --color-warning-highlight: #faecd4;

  /* Error */
  --color-error:            #c4384b;
  --color-error-highlight:  #f5d4d9;

  /* Navy — used for hero/dark sections */
  --color-navy:             #0f1629;
  --color-navy-light:       #1a2340;
  --color-navy-lighter:     #252f50;

  /* Shadows — warm-toned */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 250 / 0.1);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 250 / 0.14);
}

/* ============================================================
   DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --color-bg:               #0d1117;
  --color-surface:          #131923;
  --color-surface-2:        #181f2b;
  --color-surface-offset:   #151b26;
  --color-surface-offset-2: #1d2432;
  --color-surface-dynamic:  #252d3d;
  --color-divider:          #2a3345;
  --color-border:           #354054;

  --color-text:           #e0e3ec;
  --color-text-muted:     #8b90a5;
  --color-text-faint:     #5c6178;
  --color-text-inverse:   #0d1117;

  --color-primary:          #3db8b4;
  --color-primary-hover:    #28a09c;
  --color-primary-active:   #1a8885;
  --color-primary-highlight: #1a3535;

  --color-accent:           #e8a93e;
  --color-accent-hover:     #d49530;
  --color-accent-active:    #c08220;
  --color-accent-highlight: #3d3020;

  --color-success:          #4aba6e;
  --color-success-hover:    #34a258;
  --color-success-highlight: #1a3525;

  --color-warning:          #e8a93e;
  --color-warning-highlight: #3d3020;

  --color-error:            #e85c6e;
  --color-error-highlight:  #3d1a20;

  --color-navy:             #0d1117;
  --color-navy-light:       #131923;
  --color-navy-lighter:     #1d2432;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #0d1117;
    --color-surface:          #131923;
    --color-surface-2:        #181f2b;
    --color-surface-offset:   #151b26;
    --color-surface-offset-2: #1d2432;
    --color-surface-dynamic:  #252d3d;
    --color-divider:          #2a3345;
    --color-border:           #354054;

    --color-text:           #e0e3ec;
    --color-text-muted:     #8b90a5;
    --color-text-faint:     #5c6178;
    --color-text-inverse:   #0d1117;

    --color-primary:          #3db8b4;
    --color-primary-hover:    #28a09c;
    --color-primary-active:   #1a8885;
    --color-primary-highlight: #1a3535;

    --color-accent:           #e8a93e;
    --color-accent-hover:     #d49530;
    --color-accent-active:    #c08220;
    --color-accent-highlight: #3d3020;

    --color-success:          #4aba6e;
    --color-success-hover:    #34a258;
    --color-success-highlight: #1a3525;

    --color-warning:          #e8a93e;
    --color-warning-highlight: #3d3020;

    --color-error:            #e85c6e;
    --color-error-highlight:  #3d1a20;

    --color-navy:             #0d1117;
    --color-navy-light:       #131923;
    --color-navy-lighter:     #1d2432;

    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
  }
}
