/* ==========================================================================
   BASE — tokens, reset, tipografia, layout e botões
   Sistema de Captação 360° — Nova Identidade Visual Tecnológica
   ========================================================================== */

/* Inter self-hosted (variável, subset latin — cobre todo o português) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

:root {
  /* Cores — Branco puro, tons ultra-claros, cinzas técnicos, azul elétrico cobalto */
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  
  --ink: #0a0f1d;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-4: #94a3b8;
  
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --line-light: #f1f5f9;

  /* Paleta Oficial da Marca (#608AB9) */
  --accent: #608AB9;         /* Cor principal da marca */
  --accent-mid: #5279A5;     /* Tom intermediário / hover botões */
  --accent-dark: #3F6288;    /* Tom escuro: contraste e textos azuis */
  --accent-deep: #263F5C;    /* Tom muito escuro: profundidade máxima */
  --accent-light: #86A9D0;   /* Tom claro: secundária clara / bordas */
  --accent-soft: #DCE8F4;    /* Tom muito claro: superfícies e bordas sutis */
  --accent-subtle: #F3F7FB;  /* Fundo azulado extremamente sutil */

  /* Mapeamento semântico retrocompatível */
  --accent-600: #5279A5;
  --accent-700: #3F6288;
  --accent-800: #263F5C;
  --accent-400: #86A9D0;
  --accent-300: #86A9D0;
  --accent-100: #DCE8F4;
  --accent-50: #F3F7FB;

  /* Seções Escuras (Grafite / Obsidian Tech) */
  --dark: #080c14;
  --dark-2: #0f172a;
  --dark-3: #1e293b;
  --dark-line: #1e293b;
  --dark-line-2: #334155;

  /* Raios e Bordas */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Sombras Difusas & Ambientais derivadas de #608AB9 */
  --shadow-1: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-2: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
  --shadow-3: 0 20px 32px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 32px -4px rgba(96, 138, 185, 0.35);
  --shadow-glow-sm: 0 0 16px -2px rgba(96, 138, 185, 0.28);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4.5vw, 40px);
  --section-y: clamp(72px, 9vw, 120px);
  --nav-h: 70px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Seções escuras remapeiam os tokens de texto/linha */
.section--dark {
  --ink: #f8fafc;
  --ink-2: #cbd5e1;
  --ink-3: #94a3b8;
  --line: var(--dark-line);
  --line-2: var(--dark-line-2);
  --surface: var(--dark-2);
  background: var(--dark);
  color: var(--ink);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
summary { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
::selection { background: var(--accent); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 18px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 0.875rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Ícones (sprite SVG) ------------------------------------------------------ */
.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.i--fill { fill: currentColor; stroke: none; }

/* Layout ------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.section__head { max-width: 780px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .lead { margin-top: 18px; }

/* Tipografia --------------------------------------------------------------- */
.h1, .h2, .h3 { font-weight: 600; color: var(--ink); text-wrap: balance; }
.h1 {
  font-size: clamp(2.35rem, 1.2rem + 4.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.h2 {
  font-size: clamp(1.8rem, 1.1rem + 2.5vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.h3 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.muted { color: var(--ink-3); }
.accent { color: var(--accent); }

/* Eyebrow tecnológico em estilo pill badge */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-soft);
  border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-light);
}
.section--dark .eyebrow {
  background: rgba(96, 138, 185, 0.15);
  border-color: rgba(134, 169, 208, 0.35);
  color: var(--accent-soft);
}
.section--dark .eyebrow::before {
  background: var(--accent-light);
  box-shadow: 0 0 10px var(--accent-light);
}
.section__head--center .eyebrow { justify-content: center; }

/* Botões Modernos e Tecnológicos ------------------------------------------ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #ffffff;
  --btn-bd: rgba(10, 15, 29, 0.9);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; line-height: 1.2;
  text-align: center;
  box-shadow: 0 1px 2px rgba(10, 15, 29, 0.08), 0 4px 12px -2px rgba(10, 15, 29, 0.12);
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn .i { transition: transform 0.25s var(--ease); }
.btn:hover {
  --btn-bg: var(--accent);
  --btn-fg: #ffffff;
  --btn-bd: var(--accent);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px -4px rgba(96, 138, 185, 0.4);
}
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #ffffff;
  --btn-bd: var(--accent);
  box-shadow: 0 4px 14px rgba(96, 138, 185, 0.35);
}
.btn--primary:hover {
  --btn-bg: var(--accent-mid);
  --btn-fg: #ffffff;
  --btn-bd: var(--accent-mid);
  box-shadow: 0 6px 18px rgba(82, 121, 165, 0.45);
}

.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--accent); color: var(--accent); }
.btn--light {
  --btn-bg: #fff; --btn-fg: var(--dark); --btn-bd: #fff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}
.btn--light:hover { --btn-bg: var(--accent-subtle); --btn-bd: var(--accent-soft); color: var(--accent); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.88rem; border-radius: var(--r-xs); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.94rem; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }
.link-arrow .i { transition: transform 0.25s var(--ease); }
.link-arrow:hover .i { transform: translateY(2px); }

/* CTA band reutilizável --------------------------------------------------- */
.cta-band {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(24px, 3.5vw, 36px) clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent);
}
.cta-band__text { max-width: 560px; }
.cta-band__title { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.cta-band__sub { margin-top: 6px; color: var(--ink-2); font-size: 0.97rem; }

/* Animações de entrada ---------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.65s var(--ease), translate 0.65s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal].is-visible,
.js .hero [data-reveal] { 
  opacity: 1; 
  translate: none; 
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
}
