/*
 * Radar de Milhas — Design Tokens
 * Baseado no Fin Fanfa Design System.
 * Fonte: Geist (Google Fonts CDN)
 */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/Geist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&display=swap');

/* ─────────────────────────────────────────────
   1. PALETA DE CORES
   ───────────────────────────────────────────── */
:root {
  /* Escala base — do mais escuro ao mais claro */
  --color-black:        #01040A;
  --color-void:         #020617;
  --color-navy-950:     #0E163B;
  --color-navy-800:     #242F60;
  --color-navy-700:     #1C60DA;   /* azul elétrico — destaque principal */
  --color-navy-600:     #455084;
  --color-navy-400:     #707AA9;
  --color-navy-200:     #A5ACCD;
  --color-navy-100:     #CED4F2;

  /* Backgrounds — dark theme */
  --bg-base:            #01040A;
  --bg-primary:         #04080F;
  --bg-surface:         #070C18;
  --bg-elevated:        #0B1122;
  --bg-overlay:         rgba(1, 4, 10, 0.92);

  /* Bordas */
  --border:             rgba(206, 212, 242, 0.12);
  --border-default:     rgba(206, 212, 242, 0.22);
  --border-subtle:      rgba(206, 212, 242, 0.07);
  --border-strong:      rgba(206, 212, 242, 0.45);
  --border-active:      rgba(28, 96, 218, 0.45);
  --border-focus:       rgba(28, 96, 218, 0.6);

  /* Gradients */
  --gradient-hero:      linear-gradient(180deg, #01040A 0%, #060C1A 100%);
  --gradient-card:      linear-gradient(135deg, rgba(28,96,218,0.14) 0%, rgba(1,4,10,0.95) 100%);
  --gradient-glow:      radial-gradient(ellipse 60% 40% at 50% 0%, rgba(28,96,218,0.28) 0%, transparent 70%);

  /* Texto */
  --fg-1:               var(--color-navy-100);   /* headings */
  --fg-2:               var(--color-navy-400);   /* body text */
  --fg-3:               var(--color-navy-600);   /* muted / captions */
  --fg-inverse:         var(--color-black);

  /* Destaque — azul elétrico */
  --color-primary:       #1C60DA;
  --color-primary-hover: #2B6FE8;
  --color-primary-press: #1550B8;

  /* Status */
  --color-success:  #22C55E;
  --color-warning:  #F59E0B;
  --color-error:    #EF4444;
  --color-info:     var(--color-primary);

  --surface-success: rgba(34, 197, 94,  0.10);
  --surface-warning: rgba(245, 158, 11, 0.10);
  --surface-error:   rgba(239, 68,  68, 0.10);
  --surface-info:    rgba(28,  96,  218, 0.10);
}


/* ─────────────────────────────────────────────
   2. TIPOGRAFIA
   ───────────────────────────────────────────── */
:root {
  --font-display: 'Geist', -apple-system, sans-serif;
  --font-body:    'Geist', -apple-system, sans-serif;
  --font-mono:    'Geist Mono', 'Fira Code', monospace;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;
  --text-7xl:   4.5rem;

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;

  --leading-tight:   1.1;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  --tracking-tighter: -0.04em;
  --tracking-tight:   -0.02em;
  --tracking-normal:   0em;
  --tracking-wide:     0.05em;
  --tracking-wider:    0.08em;
  --tracking-widest:   0.12em;
}


/* ─────────────────────────────────────────────
   3. ESPAÇAMENTO
   ───────────────────────────────────────────── */
:root {
  --space-1:    4px;
  --space-2:    8px;
  --space-3:    12px;
  --space-4:    16px;
  --space-5:    20px;
  --space-6:    24px;
  --space-8:    32px;
  --space-10:   40px;
  --space-12:   48px;
  --space-16:   64px;
  --space-20:   80px;
  --space-24:   96px;
  --space-32:   128px;

  --radius-none:  0px;
  --radius-xs:    4px;
  --radius-sm:    8px;
  --radius-md:    10px;
  --radius-lg:    12px;
  --radius-xl:    16px;
  --radius-2xl:   20px;
  --radius-full:  9999px;

  --max-width:       1280px;
  --content-width:   560px;
  --nav-height:      64px;
}


/* ─────────────────────────────────────────────
   4. SOMBRAS
   ───────────────────────────────────────────── */
:root {
  --shadow-sm:   0 1px 3px rgba(1, 4, 10, 0.5);
  --shadow-md:   0 4px 16px rgba(1, 4, 10, 0.6), 0 1px 3px rgba(1, 4, 10, 0.4);
  --shadow-lg:   0 12px 40px rgba(1, 4, 10, 0.7), 0 4px 12px rgba(1, 4, 10, 0.4);
  --shadow-glow: 0 0 24px rgba(28, 96, 218, 0.4), 0 0 48px rgba(28, 96, 218, 0.15);
  --shadow-card: 0 2px 12px rgba(1, 4, 10, 0.5), inset 0 1px 0 rgba(206, 212, 242, 0.06);
}


/* ─────────────────────────────────────────────
   5. BASE HTML
   ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--fg-1);
  background-color: var(--bg-base);
}

a {
  color: var(--fg-2);
  text-decoration: none;
  transition: color 200ms ease;
}
a:hover { color: var(--color-primary); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--color-navy-800); border-radius: 3px; }
