/* Art direction: KI Technology — premium dark tech startup landing page
   Palette: Dark-first, deep navy-charcoal background. Electric cyan (#00d4ff) primary accent. Gold (#ffc553) secondary for FinTech.
   Typography: Clash Display (bold, geometric, commanding) + Satoshi (clean, modern, readable)
   Density: Spacious — generous padding, editorial landing page rhythm */

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

  /* ========== FONTS ========== */
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  /* ========== 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%;
}

/* ========== DARK MODE (DEFAULT) ========== */
:root, [data-theme="dark"] {
  /* Surfaces — deep navy-charcoal */
  --color-bg:               #0a0f1a;
  --color-surface:          #0f1525;
  --color-surface-2:        #141b2e;
  --color-surface-offset:   #111729;
  --color-surface-offset-2: #181f33;
  --color-surface-dynamic:  #1e2640;
  --color-divider:          #1e2640;
  --color-border:           #263050;

  /* Text */
  --color-text:             #e4e7ef;
  --color-text-muted:       #8b92a8;
  --color-text-faint:       #4e5672;
  --color-text-inverse:     #0a0f1a;

  /* Primary Accent — Electric Cyan */
  --color-primary:          #00d4ff;
  --color-primary-hover:    #00b8e0;
  --color-primary-active:   #009bbf;
  --color-primary-highlight: #0a2a3a;

  /* Gold accent for FinTech */
  --color-gold:             #ffc553;
  --color-gold-hover:       #ffd580;
  --color-gold-active:      #ffb020;
  --color-gold-highlight:   #2a2210;

  /* Error */
  --color-error:            #ff5c5c;
  --color-error-hover:      #e04444;
  --color-error-active:     #c43333;
  --color-error-highlight:  #2a1515;

  /* Success */
  --color-success:          #34d399;
  --color-success-hover:    #20c088;
  --color-success-active:   #14a06e;
  --color-success-highlight: #0f2a20;

  /* Warning */
  --color-warning:          #fbbf24;
  --color-warning-hover:    #f5a623;
  --color-warning-active:   #d4851a;
  --color-warning-highlight: #2a2210;

  /* Shadows — dark mode */
  --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);
}

/* ========== LIGHT MODE ========== */
[data-theme="light"] {
  /* Surfaces — cool light gray */
  --color-bg:               #f4f5f7;
  --color-surface:          #ffffff;
  --color-surface-2:        #f9fafb;
  --color-surface-offset:   #eef0f4;
  --color-surface-offset-2: #e4e7ed;
  --color-surface-dynamic:  #dce0e8;
  --color-divider:          #d1d5db;
  --color-border:           #c0c5d0;

  /* Text */
  --color-text:             #0f1729;
  --color-text-muted:       #5a6278;
  --color-text-faint:       #9ca3af;
  --color-text-inverse:     #f4f5f7;

  /* Primary Accent — deeper cyan for light bg */
  --color-primary:          #0094b8;
  --color-primary-hover:    #007a9a;
  --color-primary-active:   #00627e;
  --color-primary-highlight: #e0f4fa;

  /* Gold */
  --color-gold:             #c08800;
  --color-gold-hover:       #a57500;
  --color-gold-active:      #8a6200;
  --color-gold-highlight:   #fdf5e0;

  /* Error */
  --color-error:            #dc2626;
  --color-error-hover:      #b91c1c;
  --color-error-active:     #991b1b;
  --color-error-highlight:  #fef2f2;

  /* Success */
  --color-success:          #16a34a;
  --color-success-hover:    #15803d;
  --color-success-active:   #166534;
  --color-success-highlight: #f0fdf4;

  /* Warning */
  --color-warning:          #d97706;
  --color-warning-hover:    #b45309;
  --color-warning-active:   #92400e;
  --color-warning-highlight: #fffbeb;

  /* Shadows — light mode */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 240 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 240 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 240 / 0.12);
}

/* System preference fallback for dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:               #0a0f1a;
    --color-surface:          #0f1525;
    --color-surface-2:        #141b2e;
    --color-surface-offset:   #111729;
    --color-surface-offset-2: #181f33;
    --color-surface-dynamic:  #1e2640;
    --color-divider:          #1e2640;
    --color-border:           #263050;
    --color-text:             #e4e7ef;
    --color-text-muted:       #8b92a8;
    --color-text-faint:       #4e5672;
    --color-text-inverse:     #0a0f1a;
    --color-primary:          #00d4ff;
    --color-primary-hover:    #00b8e0;
    --color-primary-active:   #009bbf;
    --color-primary-highlight: #0a2a3a;
    --color-gold:             #ffc553;
    --color-gold-hover:       #ffd580;
    --color-gold-active:      #ffb020;
    --color-gold-highlight:   #2a2210;
    --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);
  }
}
