/* ============================================
   NODO Design System — Base
   Reset + Tokens + Tipografia
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Cores */
  --color-black: #0A0A0A;
  --color-blue: #011FFF;
  --color-blue-hover: #0026cc;
  --color-blue-glow: rgba(1, 31, 255, 0.3);
  --color-white: #FFFFFF;
  --color-gray-light: #A8A8A8;
  --color-gray-medium: #1F1F1F;
  --color-gray-border: #3A3A3A;
  --color-success: #00D67E;
  --color-error: #FF3B30;

  /* Tipografia */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-bold: 700;
  --font-medium: 500;
  --font-regular: 400;
  --font-light: 300;

  /* Tamanhos de fonte (mobile-first) */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */

  /* Espaçamento (base 8px) */
  --space-1: 0.5rem;     /* 8px */
  --space-2: 1rem;       /* 16px */
  --space-3: 1.5rem;     /* 24px */
  --space-4: 2rem;       /* 32px */
  --space-5: 3rem;       /* 48px */
  --space-6: 4rem;       /* 64px */

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transições */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Sombras */
  --shadow-glow: 0 0 20px var(--color-blue-glow);

  /* Layout */
  --container-max: 480px;
  --container-padding: var(--space-3);
}

/* Desktop overrides */
@media (min-width: 768px) {
  :root {
    --text-3xl: 2.5rem;
    --text-4xl: 3rem;
    --container-padding: var(--space-4);
  }
}

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

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

body {
  font-family: var(--font-family);
  font-weight: var(--font-regular);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-white);
  background-color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-white);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* --- Tipografia --- */
h1, h2, h3 {
  font-weight: var(--font-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

p {
  color: var(--color-gray-light);
  margin-bottom: var(--space-2);
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-5) 0;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
