:root {
  /* ============================================
     saastechwatch.com — Design Tokens
     SaaS technology landscape analysis publication
     ============================================ */

  /* ---- Color Palette: Deep Indigo & Electric Blue ---- */

  /* Primary Indigo */
  --color-indigo-900: #1E1B4B;
  --color-indigo-800: #27236A;
  --color-indigo-700: #3730A3;
  --color-indigo-600: #4F46E5;

  /* Electric Blue Accent */
  --color-blue-500: #3B82F6;
  --color-blue-600: #2563EB;
  --color-blue-400: #60A5FA;
  --color-blue-300: #93C5FD;

  /* Semantic */
  --color-success: #10B981;   /* adoption growth, positive trend */
  --color-warning: #F59E0B;   /* caution / emerging risk */
  --color-info: #4F46E5;      /* indigo info state */

  /* ---- Data Viz Palette (for tech stack comparison tables) ---- */
  --color-chart-1: #3B82F6;   /* Blue — primary series */
  --color-chart-2: #10B981;   /* Green — positive / recommended */
  --color-chart-3: #F59E0B;   /* Amber — caution / secondary */
  --color-chart-4: #EF4444;   /* Red — negative / deprecated */
  --color-chart-5: #8B5CF6;   /* Purple — tertiary series */
  --color-chart-6: #EC4899;   /* Pink — highlight series */
  --color-chart-7: #06B6D4;   /* Cyan — supplementary data */

  /* ---- Neutrals — Light Mode ---- */
  --color-white: #FFFFFF;
  --color-gray-50: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E1;
  --color-gray-400: #94A3B8;
  --color-gray-500: #64748B;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1E293B;
  --color-gray-900: #0F172A;

  /* ---- Typography ---- */

  /* Font Families */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Source Code Pro", monospace;

  /* Type Scale */
  --text-h1-size: 2.75rem;      /* 44px — page titles, hero headlines */
  --text-h1-weight: 700;
  --text-h1-line-height: 1.15;
  --text-h1-letter-spacing: -0.02em;

  --text-h2-size: 2.0rem;       /* 32px — section headers */
  --text-h2-weight: 600;
  --text-h2-line-height: 1.25;
  --text-h2-letter-spacing: -0.01em;

  --text-h3-size: 1.5rem;       /* 24px — subsection headers */
  --text-h3-weight: 600;
  --text-h3-line-height: 1.3;

  --text-h4-size: 1.125rem;     /* 18px — table labels, form labels */
  --text-h4-weight: 600;
  --text-h4-line-height: 1.35;

  --text-body-l-size: 1.0625rem;   /* 17px — long-form analysis body */
  --text-body-l-weight: 400;
  --text-body-l-line-height: 1.7;

  --text-body-m-size: 1rem;        /* 16px — standard body */
  --text-body-m-weight: 400;
  --text-body-m-line-height: 1.65;

  --text-body-s-size: 0.875rem;    /* 14px — metadata, captions */
  --text-body-s-weight: 400;
  --text-body-s-line-height: 1.55;

  --text-caption-size: 0.75rem;    /* 12px — labels, tags */
  --text-caption-weight: 600;
  --text-caption-line-height: 1.4;
  --text-caption-letter-spacing: 0.04em;

  /* Monospace data values (tech stack table cells) */
  --text-data-size: 0.875rem;      /* 14px — version numbers, adoption metrics */
  --text-data-weight: 500;
  --text-data-line-height: 1.6;

  /* ---- Spacing System (4px base) ---- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* ---- Layout Tokens ---- */
  --container-sm: 640px;    /* article body max-width */
  --container-md: 960px;    /* comparison tables, side-by-side analysis */
  --container-lg: 1280px;   /* standard page width */
  --container-xl: 1440px;   /* wide multi-column dashboards */
  --container-full: 100%;

  /* Grid */
  --grid-columns: 12;
  --grid-gap: var(--space-lg);
  --grid-column-gap: var(--space-xl);

  /* Gutters */
  --gutter-page-desktop: var(--space-xl);   /* 32px */
  --gutter-page-mobile: var(--space-md);    /* 16px */
  --gutter-card-inner: var(--space-lg);     /* 24px */

  /* ---- Responsive Breakpoints ---- */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* ---- Border Radius (Clean, professional — slightly rounded) ---- */
  --radius-sm: 4px;       /* tight UI elements */
  --radius-md: 6px;       /* cards — professional but not clinical */
  --radius-lg: 12px;      /* hero sections, featured content */
  --radius-full: 9999px;  /* pill shape for tags and filter badges */

  /* ---- Shadows ---- */
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-nav: 0 1px 0 var(--color-gray-200);

  /* ---- Transitions ---- */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.25s ease;

  /* ---- Z-Index Scale ---- */
  --z-nav: 100;
  --z-modal: 200;
  --z-tooltip: 300;
}

/* ---- Dark Mode (Default for Tech Analysis) ---- */
.sf-page {
  background: var(--color-indigo-900);
  color: var(--color-gray-300);
}

.sf-tech-card {
  background: var(--color-indigo-800);
  border-color: var(--color-indigo-700);
}

@media (prefers-color-scheme: light) {
  .sf-page--light-mode {
    background: var(--color-white);
    color: var(--color-gray-900);
  }

  .sf-tech-card--light {
    background: var(--color-white);
    border-color: var(--color-gray-200);
  }
}
