/* ============================================================
   AR – Agência de IA & Automações
   Colors & Type foundations
   Source: Manual Técnico Design System AR v1.0
   ============================================================ */

/* ---------- Webfonts (via Google Fonts) ----------
   NOTE: No font files were provided. Substituting Poppins (titles)
   and Inter (body) from Google Fonts as documented in the manual.
   The technical manual explicitly recommends these families. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ----- Brand colors ----- */
  --ar-blue-primary: #005EFF; /* CTA, links, destaques */
  --ar-blue-hover:   #007BFF; /* hover + gradientes */
  --ar-blue-deep:    #003C9E; /* estados pressed, institucional */
  --ar-cyan:         #00D4FF; /* brilhos, ícones, IA */

  /* ----- Surfaces (dark) ----- */
  --ar-bg-main:    #05070D; /* preto tecnológico */
  --ar-bg-section: #0B1020; /* grafite profundo */
  --ar-bg-card:    #10182B; /* card escuro */
  --ar-bg-elev:    #182241; /* hover/elevated card */

  /* ----- Foreground ----- */
  --ar-text-main:  #F5F8FF; /* branco suave */
  --ar-text-muted: #A7B0C5; /* cinza texto */
  --ar-text-dim:   #6B7591; /* descrições leves / disabled */

  /* ----- Lines + borders ----- */
  --ar-border:        rgba(255, 255, 255, 0.10);
  --ar-border-strong: rgba(255, 255, 255, 0.18);
  --ar-border-blue:   rgba(0, 94, 255, 0.45);

  /* ----- Semantic ----- */
  --ar-success: #1FD17B;
  --ar-warn:    #FFB020;
  --ar-danger:  #FF4D5E;
  --ar-info:    var(--ar-cyan);

  /* ----- Gradients ----- */
  --ar-grad-primary: linear-gradient(135deg, #005EFF 0%, #00D4FF 100%);
  --ar-grad-bg:
    radial-gradient(circle at top right, rgba(0,94,255,0.35), transparent 35%),
    linear-gradient(180deg, #05070D 0%, #0B1020 100%);
  --ar-grad-card:    linear-gradient(145deg, rgba(0,94,255,0.14), rgba(255,255,255,0.03));
  --ar-grad-stroke:  linear-gradient(135deg, rgba(0,212,255,0.55), rgba(0,94,255,0.10));

  /* ----- Shadows / glow ----- */
  --ar-shadow-blue:  0 0 32px rgba(0, 94, 255, 0.35);
  --ar-shadow-cyan:  0 0 24px rgba(0, 212, 255, 0.30);
  --ar-shadow-card:  0 18px 48px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--ar-border) inset;
  --ar-shadow-modal: 0 32px 80px -16px rgba(0, 0, 0, 0.85);

  /* ----- Radii ----- */
  --ar-radius-xs: 8px;   /* chips */
  --ar-radius-sm: 12px;  /* botão pequeno */
  --ar-radius-md: 16px;  /* botão principal */
  --ar-radius-lg: 20px;  /* card padrão */
  --ar-radius-xl: 24px;  /* card grande, imagem */
  --ar-radius-2xl: 28px; /* modal / chat */
  --ar-radius-pill: 999px;

  /* ----- Spacing tokens ----- */
  --ar-space-1:  4px;
  --ar-space-2:  8px;
  --ar-space-3:  12px;
  --ar-space-4:  16px;
  --ar-space-6:  24px;
  --ar-space-8:  32px;
  --ar-space-12: 48px;
  --ar-space-16: 64px;
  --ar-space-24: 96px;

  /* ----- Type families ----- */
  --ar-font-title: 'Poppins', 'Montserrat', system-ui, sans-serif;
  --ar-font-body:  'Inter', 'Poppins', system-ui, sans-serif;
  --ar-font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ----- Type scale (desktop) ----- */
  --ar-text-hero:    clamp(40px, 5.4vw, 64px);
  --ar-text-h1:      clamp(34px, 3.6vw, 48px);
  --ar-text-h2:      clamp(26px, 2.4vw, 34px);
  --ar-text-h3:      22px;
  --ar-text-body-lg: 18px;
  --ar-text-body:    16px;
  --ar-text-sm:      14px;
  --ar-text-xs:      13px;

  /* ----- Layout ----- */
  --ar-container-max: 1280px;
  --ar-container-pad: 80px;

  /* ----- Motion ----- */
  --ar-ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ar-dur-fast:  140ms;
  --ar-dur:       220ms;
  --ar-dur-slow:  420ms;
}

/* ============================================================
   Semantic helpers
   ============================================================ */

.ar-bg        { background: var(--ar-bg-main); color: var(--ar-text-main); }
.ar-bg-hero   { background: var(--ar-grad-bg); color: var(--ar-text-main); }
.ar-bg-section{ background: var(--ar-bg-section); color: var(--ar-text-main); }
.ar-bg-card   { background: var(--ar-bg-card); color: var(--ar-text-main); }

.ar-text      { color: var(--ar-text-main); }
.ar-text-muted{ color: var(--ar-text-muted); }
.ar-text-dim  { color: var(--ar-text-dim); }
.ar-text-blue { color: var(--ar-blue-primary); }
.ar-text-cyan { color: var(--ar-cyan); }

.ar-grad-text {
  background: var(--ar-grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Type primitives — use as base or extend per app
   ============================================================ */

.ar-hero {
  font-family: var(--ar-font-title);
  font-size: var(--ar-text-hero);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ar-h1 {
  font-family: var(--ar-font-title);
  font-size: var(--ar-text-h1);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.ar-h2 {
  font-family: var(--ar-font-title);
  font-size: var(--ar-text-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ar-h3 {
  font-family: var(--ar-font-title);
  font-size: var(--ar-text-h3);
  font-weight: 600;
  line-height: 1.25;
}

.ar-subtitle {
  font-family: var(--ar-font-body);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ar-text-muted);
  text-wrap: pretty;
}

.ar-body {
  font-family: var(--ar-font-body);
  font-size: var(--ar-text-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ar-text-main);
}

.ar-body-muted {
  font-family: var(--ar-font-body);
  font-size: var(--ar-text-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ar-text-muted);
}

.ar-small {
  font-family: var(--ar-font-body);
  font-size: var(--ar-text-sm);
  line-height: 1.5;
  color: var(--ar-text-muted);
}

.ar-label {
  font-family: var(--ar-font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ar-text-muted);
}

.ar-eyebrow {
  font-family: var(--ar-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ar-cyan);
}

.ar-code, code {
  font-family: var(--ar-font-mono);
  font-size: 0.92em;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--ar-border);
  color: var(--ar-cyan);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ============================================================
   Base reset (opt-in via .ar-bg on body)
   ============================================================ */

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ar-font-body);
  background: var(--ar-bg-main);
  color: var(--ar-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(0, 94, 255, 0.45); color: #fff; }
