/* ═══════════════════════════════════════════════════════
   SultanOfSaaS.com — Design Tokens
   Drop this into your root CSS or import it.
   All components reference these variables.
   ═══════════════════════════════════════════════════════ */

/* Google Fonts — add to <head> or @import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── Core Palette ── */
  --color-primary: #D4A054;            /* Warm gold — authority, premium */
  --color-primary-light: #E8C078;      /* Gold highlight */
  --color-primary-dim: #A67B3D;        /* Gold muted */
  --color-primary-subtle: rgba(212, 160, 84, 0.12); /* Gold tint for backgrounds */

  --color-secondary: #3B82F6;          /* Electric blue — tech, trust */
  --color-secondary-light: #60A5FA;
  --color-secondary-dim: #2563EB;

  --color-accent: #F472B6;             /* Hot pink — contrast pop, CTAs */

  /* ── Backgrounds (dark → light) ── */
  --bg-primary: #0C0E12;               /* Page background */
  --bg-secondary: #12151B;             /* Card / panel background */
  --bg-tertiary: #1A1D25;              /* Elevated surface */
  --bg-hover: #1F2330;                 /* Hover state */
  --bg-active: #252936;                /* Active / pressed */

  /* ── Borders ── */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-gold: rgba(212, 160, 84, 0.30);

  /* ── Text ── */
  --text-primary: #F0F0F0;             /* Headlines, primary content */
  --text-secondary: #9CA3AF;           /* Body text, descriptions */
  --text-tertiary: #6B7280;            /* Metadata, captions, placeholders */
  --text-inverse: #0C0E12;             /* Text on light / gold backgrounds */

  /* ── Semantic: Verdict Scores ── */
  --verdict-excellent: #34D399;        /* 9.0 – 10   "Excellent" */
  --verdict-good: #60A5FA;             /* 7.0 – 8.9  "Solid Pick" */
  --verdict-mid: #FBBF24;              /* 5.0 – 6.9  "Situational" */
  --verdict-poor: #F87171;             /* 3.0 – 4.9  "Avoid" */
  --verdict-bad: #EF4444;              /* 1.0 – 2.9  "Hard Pass" */

  /* ── Semantic: Sultan's Pick ── */
  --sultans-pick-bg: linear-gradient(135deg, rgba(212, 160, 84, 0.15), rgba(212, 160, 84, 0.05));
  --sultans-pick-border: rgba(212, 160, 84, 0.35);
  --sultans-pick-glow: 0 0 20px rgba(212, 160, 84, 0.15);

  /* ── Semantic: Winner (comparison pages) ── */
  --winner-bg: linear-gradient(135deg, rgba(212, 160, 84, 0.12), rgba(52, 211, 153, 0.08));
  --winner-border: rgba(212, 160, 84, 0.30);

  /* ── Semantic: Pricing Tiers ── */
  --price-free: #34D399;               /* Free */
  --price-budget: #60A5FA;             /* <$30/mo */
  --price-mid: #FBBF24;               /* $30–100/mo */
  --price-premium: #F472B6;            /* $100–300/mo */
  --price-enterprise: #A78BFA;         /* $300+/mo */

  /* ── Typography ── */
  --font-display: 'Outfit', sans-serif;       /* Headlines, UI, labels, nav */
  --font-body: 'Source Serif 4', Georgia, serif; /* Review body, descriptions */
  --font-mono: 'JetBrains Mono', monospace;   /* Scores, prices, specs, data */

  /* ── Type Scale ── */
  --text-xs: 0.75rem;     /* 12px — labels, captions */
  --text-sm: 0.875rem;    /* 14px — table text, small body */
  --text-base: 1rem;      /* 16px — body default */
  --text-lg: 1.125rem;    /* 18px — body large */
  --text-xl: 1.25rem;     /* 20px — subsection heads */
  --text-2xl: 1.5rem;     /* 24px — card titles */
  --text-3xl: 1.875rem;   /* 30px — section heads */
  --text-4xl: 2.25rem;    /* 36px — page titles */
  --text-5xl: 3rem;       /* 48px — hero titles */

  /* ── Spacing ── */
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-6: 1.5rem;      /* 24px */
  --space-8: 2rem;        /* 32px */
  --space-12: 3rem;       /* 48px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */

  /* ── Border Radius ── */
  --radius-sm: 6px;       /* Badges, small tags */
  --radius-md: 10px;      /* Cards, inputs */
  --radius-lg: 14px;      /* Panels, modals */
  --radius-xl: 20px;      /* Hero sections */
  --radius-full: 9999px;  /* Pills */

  /* ── Shadows ── */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-elevated: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-gold: 0 0 0 1px rgba(212, 160, 84, 0.3), 0 4px 24px rgba(212, 160, 84, 0.1);

  /* ── Transitions ── */
  --transition-fast: 0.1s ease;
  --transition-default: 0.15s ease;
  --transition-slow: 0.3s ease;

  /* ── Z-index Scale ── */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-modal: 50;
  --z-toast: 100;
}


/* ═══════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--text-4xl); font-weight: 700; }
h3 { font-size: var(--text-3xl); font-weight: 700; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 600; }
h6 { font-size: var(--text-lg); font-weight: 600; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-default);
}
a:hover {
  color: var(--color-primary-light);
}


/* ═══════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════ */

/* Text colors */
.text-gold { color: var(--color-primary); }
.text-muted { color: var(--text-secondary); }
.text-faint { color: var(--text-tertiary); }
.text-excellent { color: var(--verdict-excellent); }
.text-good { color: var(--verdict-good); }
.text-mid { color: var(--verdict-mid); }
.text-poor { color: var(--verdict-poor); }

/* Backgrounds */
.bg-card { background: var(--bg-secondary); }
.bg-elevated { background: var(--bg-tertiary); }
.bg-gold-subtle { background: var(--color-primary-subtle); }

/* Font families */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }
