/* Agilize Soluções — folha de estilos */
:root {
  --navy-950: #050f24;
  --navy-900: #0a1b3d;
  --navy-800: #11285a;
  --navy-700: #1a3a7a;
  --blue-500: #1f6bff;
  --blue-400: #4d8bff;
  --blue-300: #8fb6ff;
  --blue-100: #e6efff;
  --blue-50: #f3f7ff;
  --white: #ffffff;
  --ink: #0b1630;
  --ink-soft: #46546f;
  --line: #dde5f3;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(10, 27, 61, .06), 0 12px 32px -12px rgba(10, 27, 61, .18);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy-900); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy-900); }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; }
.logo-text span { font-size: .64rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--blue-500); margin-top: 4px; }
.logo--light { color: var(--white); }
.logo--light .logo-text span { color: var(--blue-300); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10, 27, 61, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: inline-block; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: var(--ink-soft); transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--navy-900); background: var(--blue-50); }
.nav .nav-cta { background: var(--navy-900); color: var(--white); margin-left: 8px; }
.nav .nav-cta:hover { background: var(--blue-500); color: var(--white); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--navy-900); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue-500); color: var(--white); box-shadow: 0 10px 28px -10px rgba(31, 107, 255, .7); }
.btn-primary:hover { background: #155ae0; transform: translateY(-2px); }
.btn-ghost { color: var(--navy-900); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy-900); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--blue-100); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; z-index: -1;
  background: radial-gradient(closest-side, rgba(31, 107, 255, .16), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(17, 40, 90, .09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 90%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-500);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 700; color: var(--navy-900);
  margin: 20px 0 22px; letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; color: var(--blue-500); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; z-index: -1;
  background: var(--blue-100); border-radius: 4px; transform-origin: left; animation: underline 1.1s .6s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-sub { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--blue-500); }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(10, 27, 61, .25)); }
.flow { stroke-dasharray: 6 10; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -64; } }
.ring { transform-origin: 260px 260px; animation: ring 3.6s var(--ease) infinite; }
.ring:nth-of-type(2) { animation-delay: 1.2s; }
.ring:nth-of-type(3) { animation-delay: 2.4s; }
@keyframes ring { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.float { animation: float 6s ease-in-out infinite; }
.float.d2 { animation-delay: -2s; }
.float.d3 { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.node-pulse { animation: nodePulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes nodePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy-900); color: var(--white); overflow: hidden; padding: 18px 0; margin-top: 40px; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; }
.ticker li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-400); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); color: var(--navy-900); margin-top: 16px; }
.section-head p { color: var(--ink-soft); margin-top: 18px; font-size: 1.1rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.about-text h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); color: var(--navy-900); margin: 16px 0 28px; }
.about-text p + p { margin-top: 18px; }
.about-text p { color: var(--ink-soft); font-size: 1.1rem; }
.about-text strong { color: var(--ink); font-weight: 700; }
.fact-card {
  background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px;
  position: relative; overflow: hidden;
}
.fact-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  border: 26px solid rgba(31, 107, 255, .08);
}
.fact-card h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .14em; font-family: var(--font-body); font-weight: 800; color: var(--blue-500); margin-bottom: 18px; }
.fact-card dl { margin: 0; display: grid; gap: 0; }
.fact-card div { padding: 15px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.fact-card div:first-child { border-top: 0; }
.fact-card dt { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.fact-card dd { margin: 0; font-weight: 700; color: var(--navy-900); font-size: .98rem; }

/* Services */
.services { background: linear-gradient(180deg, var(--white), var(--blue-50)); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-500); margin-bottom: 22px; transition: background .35s, color .35s;
}
.service:hover .service-icon { background: var(--navy-900); color: var(--white); }
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.2rem; color: var(--navy-900); margin-bottom: 10px; letter-spacing: -.015em; }
.service p { font-size: .96rem; color: var(--ink-soft); line-height: 1.6; }
.service .cnae { margin-top: auto; padding-top: 18px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--blue-500); font-variant-numeric: tabular-nums; }
.services-note { margin-top: 28px; font-size: .9rem; color: var(--ink-soft); }

/* CTA band */
.cta-band { padding: 0 0 112px; background: var(--blue-50); }
.cta-inner {
  background: var(--blue-500); color: var(--white); border-radius: var(--radius-lg); padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; isolation: isolate;
}
.cta-inner::before {
  content: ""; position: absolute; inset: auto -80px -160px auto; width: 420px; height: 420px; border-radius: 50%; z-index: -1;
  border: 60px solid rgba(255, 255, 255, .09);
}
.cta-inner h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 20ch; }

/* Contact */
.contact { background: var(--navy-900); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(31, 107, 255, .35), transparent 70%),
    radial-gradient(500px 360px at 0% 100%, rgba(77, 139, 255, .16), transparent 70%);
}
.contact .section-head h2 { color: var(--white); }
.contact .section-head p { color: #b9c6e4; }
.contact .eyebrow { color: var(--blue-300); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 18px; align-items: flex-start; transition: background .3s, border-color .3s;
}
.contact-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(143, 182, 255, .35); }
.contact-card .ci { width: 46px; height: 46px; flex: none; border-radius: 13px; background: rgba(31, 107, 255, .22); color: var(--blue-300); display: grid; place-items: center; }
.contact-card .ci svg { width: 22px; height: 22px; }
.contact-card h3 { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 8px; }
.contact-card p, .contact-card address { color: var(--white); font-weight: 600; font-size: 1.05rem; line-height: 1.55; }
.contact-card a { text-decoration: none; border-bottom: 1px solid rgba(143, 182, 255, .45); transition: border-color .2s; }
.contact-card a:hover { border-color: var(--white); }
.contact-card small { display: block; margin-top: 8px; color: #9fb0d6; font-size: .88rem; font-weight: 500; }
.contact-card--wide { grid-column: 1 / -1; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Footer */
.site-footer { background: var(--navy-950); color: #b9c6e4; padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer-grid h2 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; font-weight: 800; }
.footer-brand p { margin-top: 20px; max-width: 38ch; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: #d6def0; transition: color .2s; }
.footer-grid a:hover { color: var(--white); }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; color: #8494b8; }

/* Legal pages */
.legal-hero { padding: 72px 0 40px; background: var(--blue-50); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--navy-900); margin-top: 14px; }
.legal-hero p { color: var(--ink-soft); margin-top: 14px; }
.legal { padding: 64px 0 112px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 104px; font-size: .92rem; }
.legal-toc h2 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 14px; font-weight: 800; }
.legal-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--ink-soft); }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { color: var(--blue-500); }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.55rem; color: var(--navy-900); margin: 48px 0 14px; scroll-margin-top: 100px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.15rem; color: var(--navy-900); margin: 26px 0 10px; }
.legal-body p, .legal-body li { color: #33405a; }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.legal-body a { color: var(--blue-500); }
.legal-box { background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 18px 0; }
.legal-box p { margin: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(10, 27, 61, .3);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .4s var(--ease), visibility 0s .4s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .4s var(--ease); }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px; }
  .nav a { display: block; padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .section { padding: 80px 0; }
  .hero { padding-top: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .fact-card { padding: 26px 22px; }
  .fact-card div { grid-template-columns: 1fr; gap: 2px; }
  .cta-band { padding-bottom: 80px; }
}
@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 em { white-space: normal; }
  .contact-card { padding: 22px 20px; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .ticker, .hero-visual, .cta-band { display: none; }
  .contact, .site-footer { background: none; color: #000; }
}
.footer-brand address { margin-top: 12px; max-width: 42ch; }
