/* ============================================================
   Hanex Analytics — Estilos
   Direção: Corporativo & confiável
   ============================================================ */

:root {
  --green: #40B189;
  --green-dark: #2f9773;
  --blue: #3D6DEB;
  --slate: #354F64;
  --slate-dark: #2a3f50;
  --ink: #121212;
  --muted: #5b6b78;
  --line: #e6ebef;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;

  --container: 1140px;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(20, 30, 40, .06), 0 1px 2px rgba(20, 30, 40, .04);
  --shadow-md: 0 12px 30px rgba(20, 40, 60, .08);
  --shadow-lg: 0 24px 60px rgba(20, 40, 60, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.eyebrow--center { display: block; text-align: center; }
.text-accent { color: var(--green); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(64, 177, 137, .3); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(64, 177, 137, .38); }
.btn--ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--slate); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-2px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; transition: height .3s var(--ease); }
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.site-header.scrolled .header__inner { height: 62px; }

.header__logo { height: 34px; width: auto; }
.site-header.scrolled .header__logo { height: 30px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: .95rem; font-weight: 500; color: var(--slate);
  position: relative; padding: 4px 0; transition: color .2s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--green); transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

/* Hambúrguer */
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 150px 0 90px;
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(61, 109, 235, .07), transparent 60%),
    radial-gradient(900px 500px at 5% 110%, rgba(64, 177, 137, .09), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
  margin-bottom: 22px;
}
.hero__subtitle { font-size: 1.14rem; color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Visual — barras inspiradas no logo */
.hero__visual { display: flex; justify-content: center; }
.bars { display: flex; align-items: flex-end; gap: 20px; height: 320px; padding: 30px; }
.bar { width: 76px; border-radius: 18px; box-shadow: var(--shadow-md); animation: growBar 1s var(--ease) both; }
.bar--slate { height: 62%; background: var(--slate); animation-delay: .05s; }
.bar--blue  { height: 82%; background: var(--blue);  animation-delay: .18s; }
.bar--green { height: 100%; background: var(--green); animation-delay: .31s; }
@keyframes growBar { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.bar { transform-origin: bottom; }

/* ============================================================
   Seções genéricas
   ============================================================ */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section__title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--services { grid-template-columns: repeat(4, 1fr); }
.grid--pillars { grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* ---------- Cards de serviço ---------- */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(64, 177, 137, .14), rgba(61, 109, 235, .12));
  color: var(--green-dark); margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.card__text { color: var(--muted); font-size: .96rem; }

/* ============================================================
   Sobre
   ============================================================ */
.sobre__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.sobre__text p { color: var(--muted); margin-top: 16px; font-size: 1.04rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat__number {
  display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--green), var(--blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__label { display: block; margin-top: 6px; color: var(--muted); font-size: .92rem; font-weight: 500; }

/* ============================================================
   Diferenciais
   ============================================================ */
.pillar { padding: 30px 28px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); position: relative; overflow: hidden; }
.pillar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--green), var(--blue)); }
.pillar__num { font-size: 1rem; font-weight: 700; color: var(--green); letter-spacing: .05em; }
.pillar__title { font-size: 1.25rem; font-weight: 700; margin: 12px 0 10px; color: var(--ink); }
.pillar__text { color: var(--muted); font-size: .98rem; }

/* ============================================================
   CTA / Contato
   ============================================================ */
.cta {
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(64, 177, 137, .18), transparent 60%),
    linear-gradient(135deg, var(--slate), var(--slate-dark));
  color: #fff; text-align: center; padding: 90px 0;
}
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.cta__subtitle { color: rgba(255, 255, 255, .8); font-size: 1.1rem; margin: 16px 0 34px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ============================================================
   Rodapé
   ============================================================ */
.footer { background: #0f1a22; color: #c7d2da; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: center; padding: 56px 24px; }
.footer__logo { height: 34px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 12px; }
.footer__tagline { color: #8fa1ad; font-size: .95rem; max-width: 320px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { color: #c7d2da; font-size: .95rem; transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--green); }
.footer__social { display: flex; gap: 12px; }
.social {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: #c7d2da; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social svg { width: 20px; height: 20px; }
.social:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__bottom .container { padding-top: 20px; padding-bottom: 20px; }
.footer__bottom p { font-size: .88rem; color: #7d8f9b; text-align: center; }

/* ============================================================
   Animações de revelação
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 960px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .bars { height: 220px; }
  .bar { width: 60px; }
  .sobre__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; text-align: center; justify-items: center; }
  .footer__tagline { margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 16px; width: 100%; }
  .nav__toggle { display: flex; }

  .grid--services, .grid--pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 120px 0 70px; }
  .section { padding: 68px 0; }
  .hero__actions, .cta__actions { flex-direction: column; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
