/* ========================================
   DESIGN TOKENS: TeleCalling Agent Funnel
   Color Palette: Teal + Orange + Emerald
   Typography: Plus Jakarta Sans + JetBrains Mono
   ======================================== */

:root {
  /* Primary Brand (Teal) */
  --color-teal-primary: #0d9488;
  --color-teal-deep: #0f766e;

  /* Secondary (Emerald) */
  --color-emerald: #10b981;
  --color-emerald-light: #34d399;

  /* Accent (Orange) */
  --color-orange: #f97316;
  --color-orange-light: #fb923c;

  /* Slate Grays */
  --color-slate-bg: #f8fafc;
  --color-slate-950: #0f172a;
  --color-slate-900: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #78716c;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-white: #ffffff;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-error: #dc2626;
  --color-warning: #f97316;
  --color-info: #0d9488;

  /* Font Families */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Typography Scale */

  /* H1: Hero headline */
  --text-h1-size: 3.5rem;
  --text-h1-weight: 800;
  --text-h1-line-height: 1.08;

  /* H2: Section headers */
  --text-h2-size: 2rem;
  --text-h2-weight: 800;
  --text-h2-line-height: 1.2;

  /* H3: Card titles */
  --text-h3-size: 1.5rem;
  --text-h3-weight: 700;
  --text-h3-line-height: 1.25;

  /* Body Large */
  --text-body-lg-size: 1.125rem;
  --text-body-lg-weight: 400;
  --text-body-lg-line-height: 1.6;

  /* Body Regular */
  --text-body-size: 1rem;
  --text-body-weight: 400;
  --text-body-line-height: 1.6;

  /* Body Small */
  --text-body-sm-size: 0.875rem;
  --text-body-sm-weight: 400;
  --text-body-sm-line-height: 1.5;

  /* Label (Mono) */
  --text-label-size: 0.75rem;
  --text-label-weight: 700;
  --text-label-line-height: 1.4;

  /* Caption (Mono) */
  --text-caption-size: 0.6875rem;
  --text-caption-weight: 600;
  --text-caption-line-height: 1.4;

  /* Spacing Scale (Tailwind 4x baseline) */
  --space-xs: 0.25rem;     /* 4px */
  --space-sm: 0.5rem;      /* 8px */
  --space-md: 0.75rem;     /* 12px */
  --space-lg: 1rem;        /* 16px */
  --space-xl: 1.5rem;      /* 24px */
  --space-2xl: 2rem;       /* 32px */
  --space-3xl: 3rem;       /* 48px */
  --space-4xl: 4rem;       /* 64px */

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 10;
  --z-fixed: 40;
  --z-modal: 50;
  --z-tooltip: 60;

  /* Gradient Accents */
  --gradient-accent: linear-gradient(to-r, #10b981 via #0d9488 to #f97316);
}

/* ========================================
   GLOBAL RESETS & BASE STYLES
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-sans);
  background-color: var(--color-slate-bg);
  color: var(--color-slate-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ========================================
   SVG SAFETY & SIZING
   ======================================== */

svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  flex-shrink: 0;
}

svg:not([width]) {
  width: 20px;
  height: 20px;
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

@media (max-width: 768px) {
  :root {
    --text-h1-size: 2rem;
    --text-h2-size: 1.5rem;
    --text-h3-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  :root {
    --text-h1-size: 1.75rem;
    --text-h2-size: 1.25rem;
    --text-h3-size: 1.125rem;
  }
}

/* ========================================
   GRADIENT TEXT UTILITY
   ======================================== */

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
  max-width: 80rem; /* 1280px */
  margin: 0 auto;
  padding: 0 1.5rem; /* 24px on sides */
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
