/* ==========================================================
   MLH Tecnologia — site institucional e comercial
   Cores da marca (logo oficial): #009BF9 · #0480EB · #053A8E · #01C18D
   ========================================================== */
:root {
  --ink: #06122b;          /* fundo escuro */
  --ink-2: #0a1d44;
  --navy: #053a8e;
  --blue: #0480eb;
  --sky: #009bf9;
  --green: #01c18d;
  --grad: linear-gradient(110deg, var(--sky) 0%, var(--blue) 45%, var(--green) 100%);
  --grad-btn: linear-gradient(110deg, #0a8cf5, var(--blue) 50%, #06a6c6);

  --text: #0f1b36;
  --muted: #5a6785;
  --bg: #ffffff;
  --bg-soft: #f3f7fd;
  --border: #e2e9f4;
  --radius: 20px;
  --shadow-sm: 0 2px 8px rgba(6, 18, 43, .06);
  --shadow: 0 18px 50px -12px rgba(6, 18, 43, .18);
  --shadow-lg: 0 40px 90px -20px rgba(4, 30, 90, .45);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; word-spacing: .08em; }
h3, h4 { letter-spacing: -.005em; word-spacing: .06em; }
p { margin: 0 0 1em; }
::selection { background: rgba(0, 155, 249, .25); }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font: 700 .78rem/1 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow--light { color: #7cc8ff; }

/* ---------- Barra de progresso de leitura ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Botões ---------- */
.btn {
  --bg-btn: var(--grad-btn);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border: 0; border-radius: 999px; cursor: pointer; isolation: isolate; overflow: hidden;
  font: 600 .98rem/1 "Inter", sans-serif; color: #fff; background: var(--bg-btn); white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--full { width: 100%; }
.btn--glow { box-shadow: 0 10px 30px -6px rgba(4, 128, 235, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--glow:hover { box-shadow: 0 16px 40px -6px rgba(4, 128, 235, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
/* brilho que atravessa o botão */
.btn--glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--glow:hover::after { transform: translateX(120%); }
.btn--glass { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); }
.btn--white { background: #fff; color: var(--navy); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35); }
.btn--whats { background: #22c55e; box-shadow: 0 10px 26px -8px rgba(34, 197, 94, .6); margin-top: 6px; }
.btn--whats svg { width: 20px; height: 20px; stroke-width: 1.8; }
.btn--whats:hover svg { transform: none; }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 100;
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { position: relative; display: block; width: 141px; height: 40px; flex: none; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s; }
.logo__dark { opacity: 0; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { position: relative; font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .82); transition: color .2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav__client { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .18); }

.header.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--border), 0 8px 30px -12px rgba(6, 18, 43, .12); }
.header.scrolled .logo__light { opacity: 0; }
.header.scrolled .logo__dark { opacity: 1; }
.header.scrolled .nav a:not(.btn) { color: var(--muted); }
.header.scrolled .nav a:not(.btn):hover, .header.scrolled .nav a.is-current { color: var(--ink); }
.header.scrolled .nav__client { border-color: var(--border); }

.nav-toggle { display: none; position: relative; z-index: 2; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.header.scrolled .nav-toggle { background: var(--bg-soft); }
.header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 110px;
  background: radial-gradient(1200px 700px at 70% -10%, #0d3a8a 0%, transparent 60%), var(--ink);
  color: #fff;
}
.hero__aurora { position: absolute; inset: 0; z-index: -2; filter: blur(70px); opacity: .75; }
.hero__aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.hero__aurora i:nth-child(1) { width: 560px; height: 560px; left: -140px; top: 8%; background: #0480eb; animation: drift1 18s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(2) { width: 520px; height: 520px; right: -120px; top: -140px; background: #009bf9; opacity: .7; animation: drift2 22s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(3) { width: 460px; height: 460px; right: 18%; bottom: -220px; background: #01c18d; opacity: .55; animation: drift3 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(180px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-160px, 140px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-200px, -80px) scale(1.2); } }
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.3vw, 3.55rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .45em; }
.hero .grad-text { background-image: linear-gradient(110deg, #62ccff 0%, #3fb6ff 45%, #3fe0b0 100%); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: rgba(255, 255, 255, .78); max-width: 580px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 6px 14px 6px 6px;
  border-radius: 999px; font-size: .88rem; color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); backdrop-filter: blur(8px);
  transition: background-color .25s;
}
.pill:hover { background: rgba(255, 255, 255, .13); }
.pill__tag { padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .75rem; color: #04223a; background: linear-gradient(110deg, #7ee8c8, #01c18d); }
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* palavra que troca sozinha */
.rotator { position: relative; display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.6em; color: #fff; font-weight: 700; }
.rotator > span { grid-area: 1 / 1; display: block; background: linear-gradient(110deg, #6fd0ff, #3fe0b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rotator .is-in { animation: wordIn .55s var(--ease) both; }
.rotator .is-out { animation: wordOut .45s var(--ease) both; }
@keyframes wordIn { from { transform: translateY(100%); opacity: 0; } }
@keyframes wordOut { to { transform: translateY(-100%); opacity: 0; } }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .93rem; color: rgba(255, 255, 255, .72); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; fill: none; stroke: #04223a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: var(--green); }

/* composição da direita */
.hero__visual { position: relative; perspective: 1400px; }
.tilt { position: relative; transform-style: preserve-3d; transform: rotateY(-9deg) rotateX(5deg); transition: transform .5s var(--ease); will-change: transform; }

.browser {
  position: relative; overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .12);
}
.browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #eef2f8; border-bottom: 1px solid #dfe6f1; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { margin: 0 auto; padding: 3px 14px; border-radius: 6px; font-size: .72rem; color: #6b7a96; background: #fff; transform: translateX(-20px); }
.browser img { width: 100%; }
.browser--hero { animation: rise 1.1s var(--ease) both .25s; }
@keyframes rise { from { transform: translateY(40px) scale(.97); opacity: 0; } }

.phone {
  overflow: hidden; border-radius: 26px; background: #0b1220;
  padding: 7px; box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .14);
}
.phone img { border-radius: 20px; }
.phone--hero { position: absolute; width: 27%; right: -5%; bottom: -14%; transform: translateZ(60px); animation: floatY 7s ease-in-out infinite; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  color: var(--ink); background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); transform: translateZ(90px); white-space: nowrap;
}
.float-card small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.float-card strong { font-family: var(--font-head); font-size: 1.05rem; }
.float-card__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #e7f1ff; }
.float-card__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.float-card__icon--green { background: #dcfbef; }
.float-card__icon--green svg { stroke: #00a374; stroke-width: 2.8; }
.float-card__icon--sky { background: #e0f4ff; }
.float-card__icon--sky svg { stroke: var(--sky); }
.float-card--a { left: -7%; top: 46%; animation: floatY 6s ease-in-out infinite; }
.float-card--b { left: 8%; bottom: -10%; animation: floatY 7.5s ease-in-out infinite -2s; }
.float-card--c { right: -4%; top: -7%; animation: floatY 6.5s ease-in-out infinite -4s; }
@keyframes floatY { 50% { translate: 0 -12px; } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Faixa de ramos ---------- */
.ticker { position: relative; padding: 22px 0; overflow: hidden; background: var(--ink-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--ink-2), transparent); }
.ticker__row { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.ticker:hover .ticker__row { animation-play-state: paused; }
.ticker__track { display: flex; flex: none; }
.ticker__track span { display: flex; align-items: center; gap: 22px; padding-right: 22px; font: 600 1.05rem var(--font-head); color: rgba(255, 255, 255, .7); white-space: nowrap; }
.ticker__track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Números ---------- */
.numbers { padding: 64px 0; border-bottom: 1px solid var(--border); }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.number { text-align: center; }
.number strong { display: block; font: 800 clamp(2.2rem, 3.6vw, 3rem)/1.1 var(--font-head); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.number strong small { font-size: .7em; }
.number > span { color: var(--muted); font-size: .95rem; }

/* ---------- Seções ---------- */
.section { position: relative; padding: 112px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section__head h2, .contact h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; }
.section__head p { font-size: 1.08rem; color: var(--muted); margin: 0; }

/* ---------- Vitrine com abas ---------- */
.showcase { display: grid; grid-template-columns: 330px 1fr; gap: 40px; align-items: center; }
.showcase__tabs { display: grid; gap: 10px; }
.tab {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; overflow: hidden;
  border: 1px solid transparent; border-radius: 16px; background: transparent; text-align: left; cursor: pointer;
  font: inherit; color: inherit; transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.tab:hover { background: var(--bg-soft); }
.tab.is-active { background: #fff; border-color: var(--border); box-shadow: var(--shadow); }
.tab__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--bg-soft); transition: background .3s; }
.tab__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.tab.is-active .tab__icon { background: var(--grad-btn); }
.tab.is-active .tab__icon svg { stroke: #fff; }
.tab__text b { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--ink); }
.tab__text small { color: var(--muted); font-size: .86rem; }
.tab__bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }
.tab.is-active .tab__bar { animation: tabbar var(--tab-time, 6s) linear forwards; }
.showcase.is-paused .tab.is-active .tab__bar { animation-play-state: paused; }
@keyframes tabbar { to { transform: scaleX(1); } }

.showcase__stage { position: relative; }
.showcase__glow { position: absolute; inset: 10% 5% -6%; z-index: -1; border-radius: 40px; background: var(--grad); filter: blur(60px); opacity: .28; }
.browser__screens { position: relative; aspect-ratio: 16 / 10; background: #f2f6fb; }
.screen { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.025); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.screen.is-active { opacity: 1; transform: none; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---------- Cartões com luz que segue o mouse ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 155, 249, .14), transparent 45%);
}
.spot:hover::before { opacity: 1; }

/* ---------- Bento de recursos ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(210px, auto); gap: 20px; }
.bcard {
  overflow: hidden; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.bcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.bcard--wide { grid-column: span 2; }
.bcard--full { grid-column: 1 / -1; }
.bcard--tall { grid-row: span 2; }
.bcard__icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border-radius: 14px; background: var(--grad-btn); box-shadow: 0 10px 20px -8px rgba(4, 128, 235, .6); }
.bcard__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bcard h3 { font-size: 1.22rem; }
.bcard p { color: var(--muted); margin: 0; }
.kbd-row, .roles { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kbd-row li { padding: 6px 12px; border-radius: 9px; font: 600 .82rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); background: var(--bg-soft); box-shadow: inset 0 -2px 0 #d6e1f0, 0 0 0 1px #dde6f2; transition: transform .2s; }
.bcard:hover .kbd-row li { animation: keypress 1.6s ease-in-out infinite; }
.bcard:hover .kbd-row li:nth-child(2) { animation-delay: .15s; }
.bcard:hover .kbd-row li:nth-child(3) { animation-delay: .3s; }
.bcard:hover .kbd-row li:nth-child(4) { animation-delay: .45s; }
.bcard:hover .kbd-row li:nth-child(5) { animation-delay: .6s; }
@keyframes keypress { 0%, 30%, 100% { transform: none; } 15% { transform: translateY(2px); box-shadow: inset 0 0 0 #d6e1f0, 0 0 0 1px #9cc8f5; } }
.bcard--phone { display: flex; flex-direction: column; background: linear-gradient(180deg, #fff 0%, #eef6ff 100%); }
.phone--card { width: 64%; margin: 26px auto -60px; transition: transform .5s var(--ease); }
.bcard--phone:hover .phone--card { transform: translateY(-14px) rotate(-2deg); }
.bcard--dark { background: radial-gradient(500px 260px at 100% 0%, rgba(0, 155, 249, .35), transparent 70%), var(--ink); border-color: transparent; }
.bcard--dark h3 { color: #fff; }
.bcard--dark p { color: rgba(255, 255, 255, .72); }
.bcard--dark.spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(1, 193, 141, .22), transparent 45%); }
.roles li { padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }

/* ---------- Ramos ---------- */
.niches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.niche {
  padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.niche:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.niche__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 13px; background: var(--bg-soft); transition: background .35s, transform .35s var(--ease); }
.niche__icon svg { width: 23px; height: 23px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.niche:hover .niche__icon { background: var(--grad-btn); transform: rotate(-6deg) scale(1.06); }
.niche:hover .niche__icon svg { stroke: #fff; }
.niche h3 { font-size: 1.04rem; margin-bottom: .3em; }
.niche p { font-size: .9rem; color: var(--muted); margin: 0; }
.niches__more { text-align: center; margin: 40px 0 0; color: var(--muted); }
.niches__more b { color: var(--ink); }
.niches__more a { font-weight: 600; color: var(--blue); white-space: nowrap; }
.niches__more a:hover { text-decoration: underline; }

/* ---------- Serviços (escuro) ---------- */
.section--dark { overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__head p { color: rgba(255, 255, 255, .7); }
.section--dark__glow { position: absolute; z-index: -1; width: 900px; height: 500px; left: 50%; top: -260px; margin-left: -450px; border-radius: 50%; background: radial-gradient(closest-side, rgba(4, 128, 235, .45), transparent); filter: blur(20px); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  padding: 30px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .35s var(--ease), background-color .35s, box-shadow .35s;
}
.service:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(124, 200, 255, .35); }
.service.spot::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 155, 249, .25), transparent 50%); }
.service__num { display: block; margin-bottom: 26px; font: 800 2.4rem/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service h3 { font-size: 1.18rem; }
.service p { margin: 0; color: rgba(255, 255, 255, .7); }

/* ---------- Como funciona ---------- */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 28px; left: 16.6%; right: 16.6%; height: 2px; border-radius: 2px; background: var(--border); }
.steps::after { background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--line, 0)); transition: transform 1.6s var(--ease) .3s; }
.steps.is-drawn { --line: 1; }
.step { position: relative; text-align: center; }
.step__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 22px;
  border-radius: 50%; font: 800 1.3rem var(--font-head); color: #fff; background: var(--grad-btn);
  box-shadow: 0 0 0 8px #fff, 0 14px 30px -8px rgba(4, 128, 235, .6);
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); max-width: 320px; margin: 0 auto; }

/* ---------- Faixa de chamada ---------- */
.cta-band { padding: 0 0 112px; }
.cta-box {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px;
  padding: 56px 56px; border-radius: 32px; color: #fff;
  background: radial-gradient(600px 300px at 0% 0%, rgba(1, 193, 141, .35), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(0, 155, 249, .45), transparent 60%), linear-gradient(120deg, #053a8e, #0465c9);
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-bottom: .3em; }
.cta-box p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 1.05rem; }
.cta-box__mark { width: 110px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .3)); animation: floatY 6s ease-in-out infinite; }
.cta-box__actions { display: flex; flex-direction: column; gap: 12px; }
.cta-box__shine { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .14) 50%, transparent 60%); background-size: 250% 100%; animation: shine 7s ease-in-out infinite; }
@keyframes shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid var(--border); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: #cfe0f5; }
.faq summary {
  position: relative; cursor: pointer; list-style: none; padding: 22px 64px 22px 24px;
  font: 700 1.04rem var(--font-head); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230480EB' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .35s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: #e3efff; }
.faq__body { padding: 0 24px 22px; color: var(--muted); }
.faq__body p { margin: 0; }
.faq details[open] .faq__body { animation: faqIn .4s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__info > p { color: var(--muted); font-size: 1.05rem; }
.contact__list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.contact__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact__list a:hover { color: var(--blue); }

.form { display: grid; gap: 18px; padding: 38px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--border); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-soft);
  font: 400 1rem/1.4 "Inter", sans-serif; color: var(--text); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(4, 128, 235, .14); }
.form .invalid { border-color: #e5484d; background: #fff6f6; }
.form__msg { margin: 0; min-height: 1.4em; font-size: .95rem; }
.form__msg.ok { color: #0f8a55; }
.form__msg.err { color: #c62a2f; }

/* ---------- Rodapé ---------- */
.footer { padding: 76px 0 28px; color: rgba(255, 255, 255, .65); background: var(--ink); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand img { width: 176px; margin-bottom: 18px; }
.footer__brand p { max-width: 320px; }
.footer h4 { margin-bottom: 14px; font-size: .95rem; color: #fff; }
.footer nav, .footer__col { display: grid; gap: 10px; align-content: start; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-size: .88rem; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 14px 30px -8px rgba(34, 197, 94, .7);
  transform: scale(0); transition: transform .4s var(--ease);
}
.whats-float.show { transform: scale(1); }
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.whats-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; z-index: -1; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Entrada ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.visible { opacity: 1; transform: none; }

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

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav__client { padding-left: 20px; }
  .hero__inner { grid-template-columns: 1fr; gap: 72px; }
  .hero__text { text-align: center; }
  .lead { margin-inline: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__visual { max-width: 760px; width: 92%; margin: 0 auto; }
  .showcase { grid-template-columns: 1fr; }
  .showcase__tabs { grid-template-columns: repeat(4, 1fr); }
  .tab { flex-direction: column; text-align: center; gap: 10px; padding: 16px 10px; }
  .tab__text small { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .niches { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto; padding: calc(var(--header-h) + 8px) 24px 28px; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: 0 30px 60px -20px rgba(6, 18, 43, .35);
    transform: translateY(-105%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 15px 4px; color: var(--ink) !important; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__client { padding-left: 4px !important; border-left: 0 !important; }
  .nav .btn { margin-top: 20px; padding: 15px; }
  .header.menu-open .logo__light { opacity: 0; }
  .header.menu-open .logo__dark { opacity: 1; }
  .header.menu-open .nav-toggle { background: var(--bg-soft); }
  .header.menu-open .nav-toggle span { background: var(--ink); }
  .header .logo { z-index: 2; }

  .numbers__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bcard--tall { grid-row: span 1; }
  .phone--card { width: 46%; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .cta-box { grid-template-columns: 1fr; text-align: center; padding: 48px 32px; justify-items: center; }
  .cta-box__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before, .steps::after { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { padding: 0 16px; }
  .logo { width: 120px; height: 34px; }
  .hero { min-height: 0; padding: calc(var(--header-h) + 36px) 0 90px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__trust { flex-direction: column; align-items: center; gap: 8px; }
  .hero__visual { width: 100%; }
  .tilt { transform: none; }
  .float-card { padding: 8px 11px; gap: 8px; border-radius: 12px; }
  .float-card__icon { width: 28px; height: 28px; border-radius: 9px; }
  .float-card__icon svg { width: 16px; height: 16px; }
  .float-card strong { font-size: .88rem; }
  .float-card small { font-size: .64rem; }
  .float-card--a { left: -2%; top: 40%; }
  .float-card--b { display: none; }
  .float-card--c { right: 0; top: -10%; }
  .phone--hero { width: 30%; right: -2%; border-radius: 16px; padding: 4px; }
  .phone--hero img { border-radius: 12px; }
  .browser__bar { height: 24px; padding: 0 10px; gap: 5px; }
  .browser__bar i { width: 7px; height: 7px; }
  .browser__bar span { display: none; }
  .scroll-hint { display: none; }

  .section { padding: 80px 0; }
  .section__head { margin-bottom: 44px; }
  .showcase__tabs { grid-template-columns: repeat(2, 1fr); }
  .bento, .niches, .services { grid-template-columns: 1fr; }
  .niches { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .niche { padding: 18px; }
  .niche h3 { font-size: .95rem; }
  .niche p { font-size: .82rem; }
  .bcard--wide, .bcard--full { grid-column: auto; }
  .phone--card { width: 60%; }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .cta-band { padding-bottom: 80px; }
  .cta-box { padding: 40px 22px; border-radius: 24px; }
  .cta-box__mark { width: 80px; }
  .cta-box__actions .btn { flex: 1 1 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .whats-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
