/* ============================================================================
   Design Tokens
   Única fonte de verdade para tipografia, cores, espaçamentos etc.
   ============================================================================ */

:root {
  /* =====================================================
     Font families
     ===================================================== */
  --font-family-serif: "Syne", sans-serif;
  --font-family-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-mono: "SF Mono", "Menlo", "DejaVu Sans Mono", "Roboto Mono", Courier, monospace;

  /* Aliases usados diretamente no layout */
  --font-family-heading: "Syne", sans-serif;
  --font-family-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* =====================================================
     Primitive font sizes
     ===================================================== */
  --font-size-3xs: 0.575rem;
  --font-size-2xs: 0.675rem;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.8625rem;
  --font-size-md: 0.9750rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.375rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3.25rem;
  --font-size-5xl: 3.875rem;

  /* Font weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line heights */
  --font-height-tighter: 1;
  --font-height-tight: 1.1;
  --font-height-snug: 1.2;
  --font-height-normal: 1.5;
  --font-height-relaxed: 1.625;

  /* Letter spacing */
  --letter-tracking-tighter: -0.05em;
  --letter-tracking-tight: -0.05625rem;
  --letter-tracking-normal: -0.03rem;
  --letter-tracking-card: -0.025rem;
  --letter-tracking-none: 0;
  --letter-tracking-wide: 0.025em;
  --letter-tracking-wider: 0.05em;
  --letter-tracking-widest: 0.1em;

  /* =====================================================
     Layout / spacing
     ===================================================== */
  --layout-max-width: 80rem;
  --layout-gutter: 1.5rem;
  --layout-gutter-sm: 1rem;

  /* 4px base scale (site) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Extended scale */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 1.75rem;
  --space-2xl: 2.25rem;
  --space-3xl: 3rem;
  --space-4xl: 4.5rem;

  /* Borders */
  --border-base: 0.125rem;
  --border-thin: 0.0625rem;
  --border-thick: 0.25rem;
  --border-thickest: 0.5rem;

  /* Shadows */
  --shadow-2xs: 0 1px 2px 0 #a2a2a21a;
  --shadow-xs: 0 4px 8px 0 #a2a2a21a;
  --shadow-sm: 0 8px 16px 0 #a2a2a21a;
  --shadow-md: 0 12px 24px 0 #a2a2a21a;
  --shadow-lg: 0 16px 32px 0 #a2a2a21a;

  /* Z-index */
  --zindex-drawer: 700;
  --zindex-dialog: 800;
  --zindex-dropdown: 900;
  --zindex-toast: 950;
  --zindex-tooltip: 1000;

  /* Radius primitives */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-straight: 0;
  --radius-circle: 50%;
  --radius-pill: 9999px;

  /* Component radii / layout heights */
  --radius-button: 0.375rem;
  --radius-button-lg: 0.625rem;
  --radius-card: 0.5rem;
  --radius-card-lg: 0.75rem;
  --header-height: 4rem;
  --topbar-height: 2.5rem;

  /* =====================================================
     Colors
     ===================================================== */

    /* Brand */
    --color-primary-500: #27ad7a;
    --color-secundary-700: #1f6566;
    --color-secundary-800: #1c4c4e;
    --color-secundary-900: #1c4445;
  
     /* Brand neutrals (site) */
  --color-neutral-0: #ffffff;
  --color-neutral-50: #f9fafb;
  --color-neutral-100: #f3f4f6;
  --color-neutral-200: #e5e7eb;
  --color-neutral-300: #d1d5dc;
  --color-neutral-400: #99a1af;
  --color-neutral-500: #6a7282;
  --color-neutral-600: #525252;
  --color-neutral-700: #404040;
  --color-neutral-800: #262626;
  --color-neutral-900: #171717;
  --color-neutral-950: #0a0a0a;
  --color-neutral-1000: #202020;

  /* Green scale */
  --color-green-50: #f2fbf4;
  --color-green-100: #e1f7e6;
  --color-green-200: #c5edcd;
  --color-green-300: #98dda7;
  --color-green-400: #63c579;
  --color-green-500: #43b75d;
  --color-green-600: #2e8b43;
  --color-green-700: #276e38;
  --color-green-800: #245730;
  --color-green-900: #1f4829;
  --color-green-950: #0c2713;

  /* Yellow */
  --color-yellow-50: #fffdea;
  --color-yellow-100: #fff6c5;
  --color-yellow-200: #ffee85;
  --color-yellow-300: #ffde46;
  --color-yellow-400: #ffcc1b;
  --color-yellow-500: #ffaa00;
  --color-yellow-600: #e28100;
  --color-yellow-700: #bb5902;
  --color-yellow-800: #984508;
  --color-yellow-900: #7c380b;
  --color-yellow-950: #481c00;

  /* Red */
  --color-red-50: #fef2f2;
  --color-red-100: #fee3e2;
  --color-red-200: #fecbca;
  --color-red-300: #fca7a5;
  --color-red-400: #f87571;
  --color-red-500: #ee443f;
  --color-red-600: #db2c27;
  --color-red-700: #b9201c;
  --color-red-800: #991f1b;
  --color-red-900: #7f201d;
  --color-red-950: #450c0a;
  
  /* Blue */
  --color-blue-50: #edfcff;
  --color-blue-100: #d6f6ff;
  --color-blue-200: #b5f2ff;
  --color-blue-300: #83ecff;
  --color-blue-400: #48deff;
  --color-blue-500: #1ec4ff;
  --color-blue-600: #06a8ff;
  --color-blue-700: #0095ff;
  --color-blue-800: #0871c5;
  --color-blue-900: #0d609b;
  --color-blue-950: #0e395d;

  /* Purple */
  --color-purple-50: #f4f6fa;
  --color-purple-100: #e5e8f4;
  --color-purple-200: #d1d8ec;
  --color-purple-300: #b1bedf;
  --color-purple-400: #8c9ece;
  --color-purple-500: #7180c0;
  --color-purple-600: #5e68b2;
  --color-purple-700: #5359a2;
  --color-purple-800: #484b86;
  --color-purple-900: #3d406b;
  --color-purple-950: #292942;

  /* =====================================================
     Semantic typography tokens (usados no layout)
     ===================================================== */

  /* Title */
  --text-title-primary-font: var(--font-family-heading);
  --text-title-primary-size: var(--font-size-4xl);
  --text-title-primary-weight: var(--font-weight-semibold);
  --text-title-primary-height: var(--font-height-tight);
  --text-title-primary-tracking: var(--letter-tracking-tight);

  --text-title-secondary-font: var(--font-family-heading);
  --text-title-secondary-size: var(--font-size-3xl);
  --text-title-secondary-weight: var(--font-weight-semibold);
  --text-title-secondary-height: var(--font-height-snug);
  --text-title-secondary-tracking: var(--letter-tracking-normal);

  /* Heading */
  --text-heading-large-font: var(--font-family-body);
  --text-heading-large-size: var(--font-size-3xl);
  --text-heading-large-weight: var(--font-weight-medium);
  --text-heading-large-height: var(--font-height-snug);
  --text-heading-large-tracking: var(--letter-tracking-card);

  --text-heading-medium-font: var(--font-family-body);
  --text-heading-medium-size: var(--font-size-2xl);
  --text-heading-medium-weight: var(--font-weight-medium);
  --text-heading-medium-height: var(--font-height-snug);
  --text-heading-medium-tracking: var(--letter-tracking-card);

  --text-heading-small-font: var(--font-family-body);
  --text-heading-small-size: var(--font-size-lg);
  --text-heading-small-weight: var(--font-weight-semibold);
  --text-heading-small-height: var(--font-height-snug);
  --text-heading-small-tracking: var(--letter-tracking-none);

  /* Body */
  --text-body-font: var(--font-family-body);
  --text-body-size: var(--font-size-md);
  --text-body-weight: var(--font-weight-regular);
  --text-body-height: var(--font-height-normal);
  --text-body-tracking: var(--letter-tracking-none);

  --text-body-small-font: var(--font-family-body);
  --text-body-small-size: var(--font-size-sm);
  --text-body-small-weight: var(--font-weight-regular);
  --text-body-small-height: var(--font-height-normal);
  --text-body-small-tracking: var(--letter-tracking-none);

  --text-body-large-font: var(--font-family-body);
  --text-body-large-size: var(--font-size-xl);
  --text-body-large-weight: var(--font-weight-regular);
  --text-body-large-height: var(--font-height-normal);
  --text-body-large-tracking: var(--letter-tracking-none);

  /* Caption */
  --text-caption-primary-font: var(--font-family-body);
  --text-caption-primary-size: var(--font-size-xs);
  --text-caption-primary-weight: var(--font-weight-medium);
  --text-caption-primary-height: var(--font-height-normal);
  --text-caption-primary-tracking: var(--letter-tracking-none);
  
  /* Nav / Link */
  --text-nav-font: var(--font-family-body);
  --text-nav-size: var(--font-size-sm);
  --text-nav-weight: var(--font-weight-medium);
  --text-nav-height: var(--font-height-normal);
  --text-nav-tracking: var(--letter-tracking-none);

