/* ============================================================
   MISSÃO AGENTES DE IA — Design System
   Identidade HostGator-aligned, tipografia editorial,
   cantos generosos, microgrid, peso compositional.
============================================================ */

:root {
  /* ---- Brand core ---- */
  --hg-blue: #2962FF;
  --hg-blue-600: #1F4FE0;
  --hg-blue-700: #1740B5;
  --hg-blue-50: #EEF3FF;
  --hg-yellow: #FFCC00;
  --hg-yellow-600: #E6B800;

  /* ---- Surfaces (warm-cool neutrals) ---- */
  --ink-1000: #07101F;        /* deepest navy */
  --ink-900: #0B1426;         /* primary dark */
  --ink-800: #131E36;
  --ink-700: #1E2B47;
  --ink-600: #2A3858;
  --ink-500: #475471;
  --ink-400: #6B788F;
  --ink-300: #94A0B5;
  --ink-200: #C2CAD8;
  --ink-100: #E3E8F1;
  --ink-50:  #F2F5FA;
  --paper:   #FBFCFE;
  --white:   #FFFFFF;

  /* ---- Functional ---- */
  --success: #1FB46A;
  --warn: #FF8A00;
  --danger: #E14B4B;

  /* ---- Type scale ---- */
  --font-display: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- Radii ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 40px;

  /* ---- Shadows ---- */
  --sh-xs: 0 1px 2px rgba(11, 20, 38, 0.06);
  --sh-sm: 0 2px 8px rgba(11, 20, 38, 0.06), 0 1px 2px rgba(11, 20, 38, 0.04);
  --sh-md: 0 8px 24px rgba(11, 20, 38, 0.08), 0 2px 6px rgba(11, 20, 38, 0.04);
  --sh-lg: 0 24px 48px rgba(11, 20, 38, 0.12), 0 4px 12px rgba(11, 20, 38, 0.06);
  --sh-xl: 0 40px 80px rgba(11, 20, 38, 0.16);
  --sh-blue: 0 14px 32px rgba(41, 98, 255, 0.30);
  --sh-yellow: 0 14px 32px rgba(255, 204, 0, 0.32);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-1: 140ms;
  --dur-2: 240ms;
  --dur-3: 420ms;

  /* ---- Layout ---- */
  --container: 1240px;
  --container-narrow: 980px;
}

/* ============================================================
   RESET + BASE
============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--hg-yellow); color: var(--ink-900); }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'cv11';
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   TYPE
============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow.no-rule::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 600;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.028em;
  line-height: 1.05;
}
.h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.h3 {
  font-size: clamp(20px, 1.6vw, 22px);
  letter-spacing: -0.012em;
  font-weight: 600;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-500);
  text-wrap: pretty;
  max-width: 62ch;
}
.mono { font-family: var(--font-mono); font-feature-settings: 'ss01'; }

.text-yellow { color: var(--hg-yellow); }
.text-blue { color: var(--hg-blue); }
.text-muted { color: var(--ink-500); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform var(--dur-1) var(--ease-snap),
              background-color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              color var(--dur-2) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform var(--dur-2) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--ink-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink-1000); box-shadow: var(--sh-md); }

.btn-yellow {
  background: var(--hg-yellow);
  color: var(--ink-900);
  box-shadow: var(--sh-yellow);
}
.btn-yellow:hover { background: var(--hg-yellow-600); }

.btn-blue {
  background: var(--hg-blue);
  color: var(--white);
  box-shadow: var(--sh-blue);
}
.btn-blue:hover { background: var(--hg-blue-600); }

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--ink-200);
}
.btn-ghost:hover { background: var(--white); border-color: var(--ink-900); }

.btn-on-dark {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.btn-on-dark:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }

.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-lg { padding: 20px 30px; font-size: 16px; }

/* ============================================================
   LOGO LOCKUP
============================================================ */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-logo {
  height: 11px;
  width: auto;
  display: block;
}
/* Variant for dark backgrounds — flips logo color to white via filter */
.brand-logo.is-light {
  filter: brightness(0) invert(1);
}
.brand-divider {
  width: 1px;
  height: 16px;
  background: var(--ink-200);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}

/* ============================================================
   MICRO GRID + TEXTURES (decorative)
============================================================ */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(11,20,38,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,20,38,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-grid-dark {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-noise {
  background-image: radial-gradient(rgba(11,20,38,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ============================================================
   CHIPS / TAGS
============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink-50);
  color: var(--ink-700);
  border: 1px solid var(--ink-100);
}
.chip-blue { background: var(--hg-blue-50); color: var(--hg-blue-700); border-color: rgba(41,98,255,0.15); }
.chip-yellow { background: #FFF7CC; color: #6B5500; border-color: rgba(255,204,0,0.4); }
.chip-dark { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.14); }
.chip-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================================
   UTILITIES
============================================================ */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-tight { padding: clamp(56px, 8vw, 100px) 0; }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }

.divider {
  height: 1px;
  background: var(--ink-100);
  border: none;
  margin: 0;
}
.divider-dark {
  height: 1px;
  background: rgba(255,255,255,0.10);
  border: none;
}

.bg-ink { background: var(--ink-900); color: var(--white); }
.bg-ink .lede, .bg-ink .text-muted { color: rgba(255,255,255,0.65); }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
.bg-50 { background: var(--ink-50); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .container, .container-narrow { padding: 0 20px; }
}
