/* =========================================================
   InfinitoTi — Estilos principais
   ========================================================= */
:root {
  --bg: #070b18;
  --bg-2: #0a1022;
  --surface: #0e152b;
  --surface-2: #131c38;
  --border: rgba(148, 163, 184, .12);
  --border-strong: rgba(148, 163, 184, .22);
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #a855f7;
  --green: #22c55e;
  --wa: #25d366;
  --grad: linear-gradient(90deg, var(--cyan), var(--blue) 50%, var(--violet));
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(168, 85, 247, .14));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  --font-head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --header-h: 78px;
  --logo-gap: var(--bg);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 6px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: rgba(34, 211, 238, .3); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: .1px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
  white-space: nowrap; position: relative; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn svg.wa-ico { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.btn--primary {
  background: var(--grad); background-size: 200% 100%; color: #fff;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, .7);
}
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px -10px rgba(168, 85, 247, .7); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text-strong); background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--wa); color: #fff; background: rgba(37, 211, 102, .12); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at center, #0c1430 0%, var(--bg) 70%);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s, transform .8s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; transform: scale(1.06); }
.loader__glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .25), transparent 65%);
  filter: blur(30px); animation: glowPulse 3s ease-in-out infinite;
}
.loader__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(340px, 80vw); }
.loader__infinity { width: 100%; overflow: visible; }
.loader__track { fill: none; stroke: rgba(148, 163, 184, .1); stroke-width: 7; }
.loader__path {
  fill: none; stroke: url(#infGrad); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 260 740; stroke-dashoffset: 0;
  animation: infDash 2.4s linear infinite;
}
.loader__dot { fill: #fff; }
@keyframes infDash { to { stroke-dashoffset: -1000; } }
@keyframes glowPulse { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }

.loader__brand { font-family: var(--font-head); font-size: 34px; font-weight: 700; letter-spacing: -.5px; color: var(--text-strong); display: flex; }
.loader__brand span { display: inline-block; opacity: 0; transform: translateY(18px); animation: letterIn .6s var(--ease) forwards; }
.loader__brand span.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loader__brand span:nth-child(1) { animation-delay: .15s; }
.loader__brand span:nth-child(2) { animation-delay: .22s; }
.loader__brand span:nth-child(3) { animation-delay: .29s; }
.loader__brand span:nth-child(4) { animation-delay: .36s; }
.loader__brand span:nth-child(5) { animation-delay: .43s; }
.loader__brand span:nth-child(6) { animation-delay: .50s; }
.loader__brand span:nth-child(7) { animation-delay: .57s; }
.loader__brand span:nth-child(8) { animation-delay: .64s; }
.loader__brand span:nth-child(9) { animation-delay: .78s; }
.loader__brand span:nth-child(10) { animation-delay: .85s; }
@keyframes letterIn { to { opacity: 1; transform: none; } }

.loader__bar { width: 100%; height: 3px; border-radius: 3px; background: rgba(148, 163, 184, .12); overflow: hidden; }
.loader__bar-fill { height: 100%; width: 0; background: var(--grad); border-radius: 3px; box-shadow: 0 0 12px rgba(34, 211, 238, .8); transition: width .2s linear; }
.loader__meta { width: 100%; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .5px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, height .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
/* o desfoque fica num pseudo-elemento para não "prender" o menu mobile (position: fixed) dentro do header */
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: rgba(7, 11, 24, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.header.is-scrolled { border-bottom-color: var(--border); height: 68px; }
.header.is-scrolled::before { opacity: 1; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__icon { width: 56px; height: 28px; overflow: visible; transition: transform .6s var(--ease); }
.logo:hover .logo__icon { transform: rotate(180deg); }
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--text-strong); letter-spacing: -.4px; line-height: 1; display: flex; flex-wrap: wrap; align-items: baseline; }
.logo__text strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.logo__text small { flex-basis: 100%; font-family: var(--font-body); font-size: 9.5px; font-weight: 600; letter-spacing: 2.6px; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 6px; }
.nav__link { position: relative; padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .3s; border-radius: 8px; }
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--text-strong); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); position: relative; z-index: 120; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text-strong); border-radius: 2px; transition: transform .35s var(--ease), opacity .3s, top .35s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 50px) 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(168, 85, 247, .16), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(34, 211, 238, .12), transparent 70%),
    var(--bg);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .25);
  font-size: 13.5px; font-weight: 500; color: #a5f3fc; margin-bottom: 26px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } }

.hero__title { font-family: var(--font-head); font-size: clamp(36px, 5.2vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -1.5px; color: var(--text-strong); margin-bottom: 24px; }
.hero__title .gradient-text { display: block; }
.hero__lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero__lead strong.typed { color: var(--text-strong); font-weight: 600; }
.caret { color: var(--cyan); font-weight: 300; animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__actions--center { justify-content: center; margin-bottom: 0; }

.hero__stats { display: flex; gap: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.hero__stats li { display: flex; align-items: center; gap: 12px; }
.hero__stats strong { font-family: var(--font-head); font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.hero__stats span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.hero__stats small { font-size: 11px; opacity: .7; }

.hero__visual { position: relative; }
.hero__img-wrap {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 10 / 11;
  border: 1px solid var(--border-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02);
  background: var(--grad-soft);
}
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 8s ease; }
.hero__visual:hover .hero__img { transform: scale(1.1); }
.hero__img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 24, .1) 0%, rgba(7, 11, 24, .55) 100%), linear-gradient(135deg, rgba(34, 211, 238, .15), rgba(168, 85, 247, .2)); }
.hero__visual::before {
  content: ''; position: absolute; inset: -2px; border-radius: 30px; z-index: -1;
  background: var(--grad); filter: blur(40px); opacity: .35;
}

.float-card {
  position: absolute; background: rgba(14, 21, 43, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-card--code { left: -48px; bottom: 56px; width: 330px; animation-delay: -1s; }
.float-card__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.float-card__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; }
.float-card__bar i:nth-child(2) { background: #eab308; }
.float-card__bar i:nth-child(3) { background: #22c55e; margin-right: 8px; }
.float-card pre { padding: 14px 16px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: #cbd5e1; overflow: hidden; }
.float-card .k { color: #c084fc; }
.float-card .t { color: #22d3ee; }
.float-card .f { color: #fbbf24; }

.float-card--stat { top: 40px; right: -30px; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; animation-delay: -3s; }
.float-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(34, 197, 94, .14); }
.float-card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.float-card strong { display: block; font-size: 14.5px; color: var(--text-strong); }
.float-card span { font-size: 12px; color: var(--muted); }

.float-card--api { top: 46%; right: -18px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; animation-delay: -4.5s; }
.float-card--api span { font-family: var(--font-mono); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: pingG 2s infinite; }
@keyframes pingG { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); background: var(--bg-2); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.marquee__track span:nth-child(even) { color: var(--cyan); opacity: .6; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SEÇÕES
   ========================================================= */
.section { padding: 120px 0; position: relative; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section__title { font-family: var(--font-head); font-size: clamp(30px, 3.8vw, 46px); line-height: 1.15; font-weight: 700; letter-spacing: -1px; color: var(--text-strong); margin-bottom: 18px; }
.section__sub { color: var(--muted); font-size: 17.5px; }

/* ---------- Sobre ---------- */
.about__inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: center; }
.about__visual { position: relative; padding: 0 40px 60px 0; }
.about__img { border-radius: 24px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--grad-soft); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.about__img:hover img { transform: scale(1.05); }
.about__img--main { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about__img--sub { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid var(--bg); box-shadow: var(--shadow); }
.about__exp {
  position: absolute; left: -22px; top: 40px; padding: 20px 24px; border-radius: 18px;
  background: var(--grad); color: #fff; box-shadow: 0 20px 40px -14px rgba(59, 130, 246, .7);
  display: flex; align-items: center; gap: 14px; animation: floaty 7s ease-in-out infinite;
}
.about__exp strong { font-family: var(--font-head); font-size: 44px; line-height: 1; font-weight: 800; }
.about__exp span { font-size: 13.5px; font-weight: 500; line-height: 1.35; }

.about__content > p { color: var(--muted); margin-bottom: 18px; font-size: 16.5px; }
.about__content > p strong { color: var(--text-strong); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 30px 0 38px; }
.checklist li { position: relative; padding-left: 32px; font-size: 15px; font-weight: 500; color: var(--text); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(34, 211, 238, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; padding-top: 22px; }
.timeline::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--grad); opacity: .5; }
.timeline__item { position: relative; padding-right: 18px; }
.timeline__item::before { content: ''; position: absolute; top: -22px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan); }
.timeline__item:nth-child(2)::before { border-color: var(--blue); }
.timeline__item:nth-child(3)::before { border-color: var(--violet); }
.timeline__year { display: block; font-family: var(--font-head); font-weight: 700; color: var(--text-strong); margin: 6px 0 4px; }
.timeline__item p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Serviços ---------- */
.services { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; padding: 34px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(14, 21, 43, .6) 100%);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .45s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  pointer-events: none;
}
.service-card::after {
  content: ''; position: absolute; width: 260px; height: 260px; right: -120px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 70%); transition: transform .6s var(--ease); pointer-events: none;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -25px rgba(59, 130, 246, .45); }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scale(1.4); }
.service-card__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--grad-soft); border: 1px solid rgba(34, 211, 238, .25);
}
.service-card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-family: var(--font-head); font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--text-strong); margin-bottom: 18px; }
.service-card ul li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: 14.8px; color: var(--muted); }
.service-card ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; border-radius: 2px; background: var(--grad); }

.service-card--featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 0; }
.service-card--featured .service-card__body { padding: 34px 32px 34px 0; }
.service-card__img { position: relative; overflow: hidden; min-height: 300px; background: var(--grad-soft); }
.service-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service-card__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--surface) 100%), linear-gradient(135deg, rgba(34, 211, 238, .15), rgba(168, 85, 247, .2)); }
.service-card--featured:hover .service-card__img img { transform: scale(1.06); }

/* ---------- Comparativo ---------- */
.compare { overflow: hidden; }
.compare__bg { position: absolute; inset: 0; z-index: -1; }
.compare__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.compare__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-2) 0%, rgba(7, 11, 24, .7) 50%, var(--bg) 100%); }
.compare { --logo-gap: #0a1022; isolation: isolate; }
.compare__grid { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 24px; align-items: center; max-width: 1000px; margin: 0 auto; }
.compare__card { padding: 38px 34px; border-radius: var(--radius); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.compare__card h3 { font-family: var(--font-head); font-size: 21px; margin-bottom: 22px; color: var(--text-strong); }
.compare__card li { position: relative; padding-left: 34px; margin-bottom: 14px; font-size: 15.5px; }
.compare__card li::before { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.compare__card--off { background: rgba(14, 21, 43, .6); color: var(--muted); }
.compare__card--off li::before { content: '✕'; background: rgba(239, 68, 68, .14); color: #f87171; }
.compare__card--on { background: linear-gradient(160deg, rgba(34, 211, 238, .1), rgba(168, 85, 247, .12)); border-color: rgba(34, 211, 238, .35); box-shadow: 0 30px 60px -30px rgba(59, 130, 246, .6); }
.compare__card--on li::before { content: '✓'; background: rgba(34, 197, 94, .16); color: #4ade80; }
.compare__vs svg { width: 100%; animation: spinSlow 10s linear infinite; filter: drop-shadow(0 0 18px rgba(59, 130, 246, .6)); }
@keyframes spinSlow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------- Diferenciais ---------- */
.diff__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.diff__item { background: var(--bg); padding: 40px 34px; transition: background .4s; position: relative; }
.diff__item:hover { background: var(--surface); }
.diff__num { font-family: var(--font-head); font-size: 42px; font-weight: 800; line-height: 1; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .55; transition: opacity .4s; }
.diff__item:hover .diff__num { opacity: 1; }
.diff__item h3 { font-family: var(--font-head); font-size: 19px; color: var(--text-strong); margin-bottom: 10px; }
.diff__item p { color: var(--muted); font-size: 15px; }

/* ---------- Processo ---------- */
.process { background: var(--bg-2); }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: s; }
.process__steps::before { content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px); }
.process__steps li { position: relative; text-align: center; padding: 0 10px; }
.process__n {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  font-family: var(--font-head); font-size: 22px; font-weight: 800; color: #fff; background: var(--bg-2);
  border: 2px solid transparent; background-image: linear-gradient(var(--bg-2), var(--bg-2)), var(--grad); background-origin: border-box; background-clip: padding-box, border-box;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.process__steps li:hover .process__n { transform: scale(1.1); box-shadow: 0 0 30px rgba(59, 130, 246, .5); }
.process__steps h3 { font-family: var(--font-head); font-size: 18px; color: var(--text-strong); margin-bottom: 8px; }
.process__steps p { color: var(--muted); font-size: 14.8px; }

/* ---------- Tecnologias ---------- */
.tech__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tech__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 28px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.tech__item i { font-size: 44px; color: var(--muted); transition: color .4s, transform .4s var(--ease); }
.tech__svg { width: 44px; height: 44px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s, transform .4s var(--ease); }
.tech__item span { font-size: 14px; font-weight: 600; color: var(--text); }
.tech__item:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .4); background: var(--surface-2); }
.tech__item:hover i, .tech__item:hover .tech__svg { transform: scale(1.12); }
.tech__item:hover .devicon-csharp-plain { color: #a179dc; }
.tech__item:hover .devicon-dotnetcore-plain { color: #8a6ee0; }
.tech__item:hover .devicon-javascript-plain { color: #f0db4f; }
.tech__item:hover .devicon-jquery-plain { color: #0769ad; }
.tech__item:hover .devicon-html5-plain { color: #e34f26; }
.tech__item:hover .devicon-css3-plain { color: #1572b6; }
.tech__item:hover .devicon-bootstrap-plain { color: #8b3cf7; }
.tech__item:hover .devicon-microsoftsqlserver-plain { color: #e23b3b; }
.tech__item:hover .devicon-postgresql-plain { color: #4a8bc2; }
.tech__item:hover .devicon-firebase-plain { color: #ffca28; }
.tech__item:hover .tech__svg { stroke: var(--cyan); }

/* ---------- Projetos ---------- */
.projects { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.projects__filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -24px 0 44px; }
.chip { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 14px; font-weight: 600; color: var(--muted); transition: all .3s; }
.chip:hover { color: var(--text-strong); border-color: var(--cyan); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project {
  border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s, border-color .45s, opacity .4s;
}
.project.is-hidden { display: none; }
.project:hover { transform: translateY(-8px); border-color: rgba(34, 211, 238, .35); box-shadow: 0 30px 60px -28px rgba(59, 130, 246, .5); }
.project__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-soft); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(14, 21, 43, .95) 100%); }
.project:hover .project__img img { transform: scale(1.08); }
.project__tag { position: absolute; left: 16px; bottom: 14px; z-index: 1; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(7, 11, 24, .7); border: 1px solid var(--border-strong); backdrop-filter: blur(6px); color: #a5f3fc; }
.project__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project__body h3 { font-family: var(--font-head); font-size: 19px; color: var(--text-strong); margin-bottom: 12px; }
.project__body p { font-size: 14.5px; color: var(--muted); margin-bottom: 8px; }
.project__body p strong { color: var(--text); }
.project__stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.project__stack span { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 10px; border-radius: 6px; background: rgba(59, 130, 246, .1); color: #93c5fd; border: 1px solid rgba(59, 130, 246, .2); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 120px 0; overflow: hidden; text-align: center; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7, 11, 24, .94) 0%, rgba(30, 27, 75, .88) 50%, rgba(7, 11, 24, .94) 100%); }
.cta__inner h2 { font-family: var(--font-head); font-size: clamp(28px, 4vw, 48px); line-height: 1.15; font-weight: 800; letter-spacing: -1px; color: var(--text-strong); max-width: 820px; margin: 0 auto 18px; }
.cta__inner p { color: #cbd5e1; font-size: 18px; max-width: 620px; margin: 0 auto 36px; }

/* ---------- Contato ---------- */
.contact__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__info > p { color: var(--muted); font-size: 16.5px; margin-bottom: 30px; }
.contact__list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__ico { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); }
.contact__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact__ico--wa { background: rgba(37, 211, 102, .12); border-color: rgba(37, 211, 102, .35); }
.contact__ico--wa svg { fill: var(--wa); stroke: none; }
.contact__list small { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.contact__list a, .contact__list span { font-size: 16.5px; font-weight: 600; color: var(--text-strong); }
.contact__list a:hover { color: var(--wa); }
.contact__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--border); background: var(--grad-soft); }
.contact__img img { width: 100%; height: 100%; object-fit: cover; }

.form {
  padding: 40px; border-radius: 24px; position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(14, 21, 43, .7) 100%);
  border: 1px solid var(--border-strong); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.form::before { content: ''; position: absolute; top: 0; left: 40px; right: 40px; height: 2px; background: var(--grad); border-radius: 2px; }
.form h3 { font-family: var(--font-head); font-size: 24px; color: var(--text-strong); margin-bottom: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(7, 11, 24, .6); border: 1px solid var(--border-strong); color: var(--text-strong);
  font: inherit; font-size: 15px; transition: border-color .3s, box-shadow .3s, background .3s; outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field select option { background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: #475569; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12); background: rgba(7, 11, 24, .85); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #f87171; }
.field__err { color: #f87171; font-size: 12.5px; min-height: 0; margin-top: 6px; display: none; }
.field.has-error .field__err { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.form__status { margin-top: 14px; font-size: 14.5px; text-align: center; font-weight: 500; }
.form__status.ok { color: #4ade80; }
.form__status.err { color: #f87171; }
.btn.is-busy { pointer-events: none; opacity: .75; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #050813; border-top: 1px solid var(--border); padding-top: 80px; --logo-gap: #050813; }
.footer__inner { display: grid; grid-template-columns: 1.4fr .8fr .9fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; margin-top: 20px; max-width: 320px; }
.footer__col h4 { font-family: var(--font-head); font-size: 15px; color: var(--text-strong); margin-bottom: 18px; }
.footer__col li { margin-bottom: 10px; font-size: 14.5px; color: var(--muted); }
.footer__col a:not(.btn) { transition: color .3s; }
.footer__col a:not(.btn):hover { color: var(--cyan); }
.footer__name { font-weight: 600; color: var(--text-strong); font-size: 15px; margin-bottom: 6px; }
.footer__phone { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; padding-bottom: 26px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }

/* ---------- WhatsApp flutuante / topo ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease);
}
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: waRing 2.2s ease-out infinite; }
@keyframes waRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
.wa-float__tip {
  position: absolute; right: 74px; white-space: nowrap; padding: 8px 14px; border-radius: 10px; background: #fff; color: #0f172a;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: all .3s var(--ease); pointer-events: none;
}
.wa-float:hover .wa-float__tip { opacity: 1; transform: none; }

.to-top {
  position: fixed; right: 32px; bottom: 98px; z-index: 89; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border-strong); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: var(--text-strong); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { border-color: var(--cyan); }

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1100px) {
  .hero__inner { gap: 40px; }
  .float-card--code { left: -20px; width: 290px; }
  .float-card--stat { right: -10px; }
  .float-card--api { right: -6px; }
  .tech__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110; flex-direction: column; justify-content: center; gap: 32px;
    background: rgba(7, 11, 24, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 8px; }
  .nav__link { font-size: 22px; font-family: var(--font-head); font-weight: 600; }
  .nav.is-open .nav__list li { animation: navIn .5s var(--ease) both; }
  .nav.is-open .nav__list li:nth-child(2) { animation-delay: .05s; }
  .nav.is-open .nav__list li:nth-child(3) { animation-delay: .1s; }
  .nav.is-open .nav__list li:nth-child(4) { animation-delay: .15s; }
  .nav.is-open .nav__list li:nth-child(5) { animation-delay: .2s; }
  .nav.is-open .nav__list li:nth-child(6) { animation-delay: .25s; }
  @keyframes navIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__visual { max-width: 520px; margin: 30px auto 0; width: 100%; }
  .scroll-hint { display: none; }

  .about__inner, .contact__inner { grid-template-columns: 1fr; gap: 56px; }
  .about__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .service-card--featured { grid-column: span 2; }
  .compare__grid { grid-template-columns: 1fr; }
  .compare__vs { width: 110px; margin: 0 auto; }
  .diff__grid, .projects__grid { grid-template-columns: 1fr 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; gap: 44px 28px; }
  .process__steps::before { display: none; }
  .section { padding: 96px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 44px; }
  .logo__icon { width: 46px; height: 23px; }
  .logo__text { font-size: 20px; }
  .logo__text small { font-size: 8.5px; letter-spacing: 2px; }

  .hero { padding-top: calc(var(--header-h) + 30px); }
  .hero__title { letter-spacing: -1px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 18px; justify-content: space-between; }
  .hero__stats li { flex-direction: column; text-align: center; gap: 6px; }
  .hero__stats strong { font-size: 28px; }
  .float-card--code { left: -6px; bottom: 20px; width: 250px; }
  .float-card pre { font-size: 10.5px; padding: 10px 12px; }
  .float-card--stat { top: 16px; right: -6px; padding: 10px 14px 10px 10px; }
  .float-card__icon { width: 36px; height: 36px; }
  .float-card--api { display: none; }

  .about__visual { padding: 0 24px 40px 0; }
  .about__exp { left: -6px; top: 20px; padding: 14px 16px; }
  .about__exp strong { font-size: 32px; }
  .about__exp span { font-size: 12px; }
  .checklist { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; gap: 18px; }
  .timeline::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .timeline__item::before { top: 8px; left: -28px; }

  .services__grid, .diff__grid, .projects__grid, .process__steps { grid-template-columns: 1fr; }
  .service-card--featured { grid-column: auto; grid-template-columns: 1fr; gap: 0; }
  .service-card--featured .service-card__body { padding: 28px 26px 32px; }
  .service-card__img { min-height: 200px; }
  .service-card__img::after { background: linear-gradient(180deg, transparent 50%, var(--surface) 100%); }
  .service-card { padding: 28px 26px; }
  .tech__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .tech__item { padding: 20px 8px; }
  .tech__item i { font-size: 36px; }
  .tech__svg { width: 36px; height: 36px; }
  .tech__item span { font-size: 12.5px; text-align: center; }

  .form { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .cta { padding: 90px 0; }
  .cta .hero__actions .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .to-top { right: 22px; bottom: 84px; }
  .loader__brand { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
