/* ============================================================
   OLA ELECTRIC — DESIGN SYSTEM TOKENS
   Inspired by olaelectric.com
   ============================================================ */

/* ───── Google Font Import ───── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   1. CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* ─── Color Palette: Core ─── */
  --color-black:        #000000;
  --color-white:        #FFFFFF;

  /* ─── Primary: Enterprise Blue (Brand Primary) ─── */
  --color-primary-50:   #EFF6FF;
  --color-primary-100:  #DBEAFE;
  --color-primary-200:  #BFDBFE;
  --color-primary-300:  #93C5FD;
  --color-primary-400:  #60A5FA;
  --color-primary-500:  #2563EB;   /* Royal Blue — Enterprise ready */
  --color-primary-600:  #1D4ED8;
  --color-primary-700:  #1E40AF;
  --color-primary-800:  #1E3A8A;
  --color-primary-900:  #172554;

  /* ─── Neutral: Light-first scale ─── */
  --color-neutral-50:   #F8FAFC;
  --color-neutral-100:  #F1F5F9;
  --color-neutral-200:  #E2E8F0;
  --color-neutral-300:  #CBD5E1;
  --color-neutral-400:  #94A3B8;
  --color-neutral-500:  #64748B;
  --color-neutral-600:  #475569;
  --color-neutral-700:  #334155;
  --color-neutral-800:  #1E293B;
  --color-neutral-900:  #0F172A;
  --color-neutral-950:  #020617;

  /* ─── Accent: Vibrant Blue ─── */
  --color-accent-400:   #60A5FA;
  --color-accent-500:   #2563EB;
  --color-accent-600:   #1D4ED8;

  /* ─── Semantic ─── */
  --color-success:      #10B981;
  --color-warning:      #F59E0B;
  --color-error:        #EF4444;
  --color-info:         #3B82F6;

  /* ─── Surface / Background ─── */
  --surface-primary:    var(--color-white);
  --surface-elevated:   var(--color-neutral-50);
  --surface-card:       var(--color-white);
  --surface-card-hover: var(--color-neutral-50);
  --surface-overlay:    rgba(15, 23, 42, 0.75);
  --surface-glass:      rgba(255, 255, 255, 0.7);
  --surface-glass-hover:rgba(255, 255, 255, 0.9);

  /* ─── Text ─── */
  --text-primary:       var(--color-neutral-900);
  --text-secondary:     var(--color-neutral-600);
  --text-tertiary:      var(--color-neutral-500);
  --text-muted:         var(--color-neutral-400);
  --text-inverse:       var(--color-white);
  --text-brand:         var(--color-primary-500);

  /* ─── Border ─── */
  --border-subtle:      var(--color-neutral-100);
  --border-default:     var(--color-neutral-200);
  --border-strong:      var(--color-neutral-300);
  --border-brand:       var(--color-primary-500);

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

  /* Font Sizes — Fluid scale */
  --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 */
  --text-8xl:    6rem;        /* 96px */

  /* Font Weights */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;
  --weight-black:    900;

  /* Line Heights */
  --leading-none:    1;
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* Letter Spacing */
  --tracking-tighter: -0.04em;
  --tracking-tight:   -0.025em;
  --tracking-normal:  0;
  --tracking-wide:    0.025em;
  --tracking-wider:   0.05em;
  --tracking-widest:  0.1em;

  /* ─── Spacing Scale ─── */
  --space-0:     0;
  --space-1:     0.25rem;     /* 4px */
  --space-2:     0.5rem;      /* 8px */
  --space-3:     0.75rem;     /* 12px */
  --space-4:     1rem;        /* 16px */
  --space-5:     1.25rem;     /* 20px */
  --space-6:     1.5rem;      /* 24px */
  --space-8:     2rem;        /* 32px */
  --space-10:    2.5rem;      /* 40px */
  --space-12:    3rem;        /* 48px */
  --space-16:    4rem;        /* 64px */
  --space-20:    5rem;        /* 80px */
  --space-24:    6rem;        /* 96px */
  --space-32:    8rem;        /* 128px */

  /* ─── Border Radius ─── */
  --radius-xs:    0.25rem;    /* 4px */
  --radius-sm:    0.375rem;   /* 6px */
  --radius-md:    0.5rem;     /* 8px */
  --radius-lg:    0.75rem;    /* 12px */
  --radius-xl:    1rem;       /* 16px */
  --radius-2xl:   1.5rem;     /* 24px */
  --radius-3xl:   2rem;       /* 32px */
  --radius-full:  9999px;

  /* ─── Shadows ─── */
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.5);
  --shadow-sm:    0 2px 4px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg:    0 8px 24px rgba(0,0,0,0.6);
  --shadow-xl:    0 16px 48px rgba(0,0,0,0.7);
  --shadow-glow-sm:   0 0 12px rgba(37, 99, 235, 0.15);
  --shadow-glow-md:   0 0 24px rgba(37, 99, 235, 0.25);
  --shadow-glow-lg:   0 0 48px rgba(37, 99, 235, 0.35);
  --shadow-glow-accent: 0 0 24px rgba(37, 99, 235, 0.25);

  /* ─── Transitions ─── */
  --ease-default:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast:    150ms;
  --duration-normal:  250ms;
  --duration-slow:    400ms;
  --duration-slower:  600ms;

  /* ─── Z-Index Scale ─── */
  --z-base:      0;
  --z-dropdown:  10;
  --z-sticky:    20;
  --z-overlay:   30;
  --z-modal:     40;
  --z-popover:   50;
  --z-tooltip:   60;
  --z-toast:     70;

  /* ─── Layout ─── */
  --container-sm:   640px;
  --container-md:   768px;
  --container-lg:   1024px;
  --container-xl:   1280px;
  --container-2xl:  1440px;
  --container-max:  1600px;
}


/* ============================================================
   2. GLOBAL RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--surface-primary);
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--color-primary-100);
  color: var(--color-primary-900);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-neutral-50);
}
::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-500);
}
