/* ==========================================
   1. VARIÁVEIS GLOBAIS (:root)
   ========================================== */
:root {
  --bg-color: #050709;
  --text-main: #ffffff;
  --text-muted: #8891a1;
  --color-primary: #60a5fa;
  --color-success: #4fe0a0;
  --color-accent-adm: lightsteelblue;
  --color-accent-app: lightcoral;
  
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --max-width: 48rem;
  --transition-normal: 0.3s ease;
}

/* ==========================================
   2. CSS RESET / BOX-SIZING
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  padding: 1rem; /* Garante respiro nas bordas em telas muito pequenas */
}

/* ==========================================
   3. TIPOGRAFIA E ELEMENTOS BASE
   ========================================== */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem); /* Tamanho fluido responsivo */
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  margin-top: 1rem;
}

img {
  width: 10rem;
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================
   4. COMPONENTES REUTILIZÁVEIS
   ========================================== */
.wrapper {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  padding: 0.1rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background-color: rgba(96, 165, 250, 0.05);
  text-align: center;
  max-width: 100%;
  white-space: normal; /* Permite quebrar linha se a tela for menor que o texto */
}

.badge-adm {
  color: var(--color-accent-adm);
}

.badge-app {
  color: var(--color-accent-app);
}

.badge i {
  width: 13px;
  height: 13px;
  flex-shrink: 0;

  stroke-width: 2.5; /* Deixa o traço do ícone mais grosso ou fino */
  color: var(--color-accent-adm); /* Pega a cor automaticamente */
}

/* ==========================================
   5. RESPONSIVIDADE CONCENTRADA (MEDIA QUERIES)
   ========================================== */
@media (max-width: 768px) {
  html {
    font-size: 93.75%; /* Reduz sutilmente a escala base em tablets e celulares */
  }

  .wrapper {
    padding: 1rem 0.5rem;
    gap: 0.85rem;
  }

  img {
    width: 8.5rem; /* Logotipo um pouco mais compacto em telas pequenas */
  }

  .badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .badge {
    letter-spacing: 0.02em; /* Ajusta o espaçamento das letras em celulares estreitos */
  }
}