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

:root {
  /* ── Brand Palette ── */
  --navy: #0A1628;
  /* Primary dark — nav, hero, stats */
  --navy-mid: #132035;
  /* Secondary dark */
  --navy-light: #1E3A5F;
  /* Hover states, mid-dark bg */
  --blue: #2563EB;
  /* Links, info */

  --gold: #D4A017;
  /* Primary accent — CTAs, underlines */
  --gold-dark: #B8860B;
  /* Hover state for gold */
  --gold-glow: rgba(212, 160, 23, 0.12);
  --gold-border: rgba(212, 160, 23, 0.25);

  --green: #0F7A3C;
  /* Savings, positive values */
  --red: #C0392B;
  /* Negative values, errors */
  --whatsapp: #25D366;

  /* ── Text ── */
  --text-primary: #1A1A2E;
  /* Headings, body */
  --text-secondary: #6B7A8D;
  /* Subtitles, captions */
  --text-muted: #9CA3AF;
  /* Placeholders, hints */

  /* ── Surfaces ── */
  --bg: #FFFFFF;
  --bg-soft: #FAFAF8;
  /* Warm off-white sections */
  --bg-surface: #FFFFFF;
  --border: #E4E4E0;
  /* Warm neutral border */
  --border-focus: var(--gold);

  /* ── Errors ── */
  --err: #E5484D;
  --err-bg: rgba(229, 72, 77, 0.08);
  --err-border: rgba(229, 72, 77, 0.30);

  /* ── Spacing scale (8px base) ── */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* ── Radius ── */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 4px rgba(10, 22, 40, 0.06);
  --shadow-sm: 0 2px 10px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 8px 28px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.14);
  --shadow-gold: 0 8px 32px rgba(212, 160, 23, 0.22);

  /* ── Typography ── */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* ── Animation ── */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --dur-fast: 0.15s;
  --dur-med: 0.30s;
  --dur-slow: 0.55s;

  /* ── Layout ── */
  --nav-h: 68px;
  --max-w: 1240px;
}


/* ============================================================
   2. BASE & TYPOGRAPHY
============================================================ */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
}

abbr[title] {
  text-decoration: none;
}

/* ============================================================
   2. BLOG SPECIFIC CSS
============================================================ */

.blog-hero,
.article-page {
  padding: 120px 0 80px;
}

.featured-article .card,
.article-grid .card,
.toc,
.cta-banner,
.faq {
  background: #fff;
  border: 1px solid #E4E4E0;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0A1628;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    margin: 10px 0 16px 0;
    border-radius: 999px;
    border: 1px solid #E4E4E0;
    background: #fff;
    transition: all .2s ease;
}

a:hover {
    border-color: #D4A017;
    color: #D4A017;
    transform: translateX(-2px);
}
