:root {
  --bg: #020617;
  --bg-2: #0f172a;
  --card: #0b1224;
  --line: rgba(148, 163, 184, .14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --blue-2: #2563eb;
  --cyan: #06b6d4;
  --green: #22c55e;
  --amber: #f59e0b;
  --grad: linear-gradient(135deg, #3b82f6, #06b6d4);
  --radius: 18px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Poppins", sans-serif; line-height: 1.2; margin: 0 0 .6em; color: #fff; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.section__head p { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 600 .8rem/1 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan);
}
.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: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 .95rem/1 "Inter", sans-serif; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(59, 130, 246, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(6, 182, 212, .6); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--blue); background: rgba(59, 130, 246, .08); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(2, 6, 23, .82); backdrop-filter: blur(12px); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 6px 18px -6px rgba(6, 182, 212, .55); }
.logo__text { font: 700 1.55rem/1 "Poppins", sans-serif; color: #fff; letter-spacing: -.01em; }
.logo__text strong { font-weight: 700; background: linear-gradient(90deg, #2f7cf6, #06d6f0); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: .93rem; font-weight: 500; color: var(--muted); position: relative; transition: color .2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover, .nav a.is-active { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 10px 18px; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 130px 0 80px; overflow: hidden; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; pointer-events: none; }
.hero__glow--1 { width: 520px; height: 520px; background: var(--blue-2); top: -160px; left: -140px; }
.hero__glow--2 { width: 460px; height: 460px; background: var(--cyan); bottom: -200px; right: -120px; opacity: .3; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  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.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
#typed { border-right: 3px solid var(--cyan); padding-right: 4px; animation: caret .8s step-end infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(59, 130, 246, .08); font-size: .85rem; font-weight: 500; color: #bfdbfe;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 44px; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats > div { display: flex; flex-wrap: wrap; align-items: baseline; }
.hero__stats strong, .hero__stats span { font: 700 2rem/1 "Poppins", sans-serif; color: #fff; }
.hero__stats span { color: var(--cyan); }
.hero__stats p { width: 100%; margin: 6px 0 0; font-size: .88rem; color: var(--muted); }

.hero__visual { position: relative; }
.dashboard {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, .95), rgba(11, 18, 36, .95));
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(59, 130, 246, .08);
}
.dashboard__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.dashboard__bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.dashboard__bar i:nth-child(1) { background: #ef4444; }
.dashboard__bar i:nth-child(2) { background: var(--amber); }
.dashboard__bar i:nth-child(3) { background: var(--green); }
.dashboard__bar span { margin-left: 12px; font-size: .78rem; color: var(--muted); }
.dashboard__body { padding: 20px; display: grid; gap: 16px; }
.dashboard__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.kpi small { display: block; font-size: .72rem; color: var(--muted); }
.kpi b { font: 700 1.3rem/1.4 "Poppins", sans-serif; color: #fff; }
.chart { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.chart__head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.chart__head small { font-size: .78rem; color: var(--muted); }
.chart__head em { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--green); }
.chart__bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.chart__bars span {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--grad); opacity: .85;
  transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2, .8, .2, 1) both;
}
.chart__bars span:nth-child(odd) { opacity: .55; }
@keyframes grow { from { transform: scaleY(0); } }
.status { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .84rem; color: var(--muted); }
.status li { display: flex; align-items: center; gap: 10px; }
.status i { width: 8px; height: 8px; border-radius: 50%; }
.status .ok { background: var(--green); }
.status .warn { background: var(--amber); animation: pulse 2s infinite; }

/* ---------- Sobre ---------- */
.card__icon, .contact__icon {
  display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px;
  border-radius: 14px; background: rgba(59, 130, 246, .12); color: var(--blue);
}
.card__icon svg, .contact__icon svg { width: 24px; height: 24px; }
.about { align-items: start; }
.card--accent { background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(6, 182, 212, .08)); border-color: rgba(59, 130, 246, .35); }
.card p + p { margin-top: 12px; }
.tagline {
  margin: 56px 0 0; text-align: center;
  font: 700 clamp(1.3rem, 3vw, 1.9rem)/1.3 "Poppins", sans-serif; color: #fff;
}

/* ---------- Grade e cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(59, 130, 246, .45); box-shadow: 0 24px 48px -24px rgba(59, 130, 246, .45); }
.card:hover .card__icon { background: var(--grad); color: #fff; }
.card__icon { transition: background .3s, color .3s; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Projetos ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--muted); font: 500 .9rem/1 "Inter", sans-serif; cursor: pointer; transition: all .2s;
}
.filter:hover { color: #fff; border-color: var(--blue); }
.filter.is-active { background: var(--grad); border-color: transparent; color: #fff; }
.project {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card);
  transition: transform .3s, border-color .3s;
}
.project:hover { transform: translateY(-6px); border-color: rgba(59, 130, 246, .45); }
.project.is-hidden { display: none; }
.project__thumb { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 16px; }
.project__thumb::after {
  content: ""; position: absolute; inset: 0;
  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: 28px 28px;
}
.project__thumb span {
  position: relative; z-index: 1; padding: 5px 12px; border-radius: 999px;
  background: rgba(2, 6, 23, .6); backdrop-filter: blur(6px); font-size: .78rem; font-weight: 600; color: #fff;
}
.project__thumb--1 { background: linear-gradient(135deg, #1d4ed8, #06b6d4); }
.project__thumb--2 { background: linear-gradient(135deg, #7c3aed, #3b82f6); }
.project__thumb--3 { background: linear-gradient(135deg, #0f766e, #22c55e); }
.project__thumb--4 { background: linear-gradient(135deg, #0891b2, #6366f1); }
.project__thumb--5 { background: linear-gradient(135deg, #1e40af, #0ea5e9); }
.project__thumb--6 { background: linear-gradient(135deg, #9333ea, #ec4899); }
.project__body { padding: 22px 24px 26px; }
.project__body h3 { font-size: 1.12rem; }
.project__body p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Processo ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 32px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -25px; width: 26px; height: 2px; background: var(--grad);
}
.step__num {
  display: inline-block; margin-bottom: 16px; font: 800 2.2rem/1 "Poppins", sans-serif;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Depoimentos ---------- */
.quote { margin: 0; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font-size: 1.02rem; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote b { display: block; color: #fff; font-size: .95rem; }
.quote small { color: var(--muted); font-size: .82rem; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem; flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.accordion { display: grid; gap: 12px; }
.accordion details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .2s; }
.accordion details[open] { border-color: rgba(59, 130, 246, .45); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; color: #fff;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--cyan); transition: transform .25s;
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__info h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 16px; }
.contact__icon { margin: 0; flex-shrink: 0; }
.contact__list small { display: block; font-size: .8rem; color: var(--muted); }
.contact__list a, .contact__list span { color: #fff; font-weight: 500; word-break: break-word; }
.contact__list a:hover { color: var(--cyan); }
.contact__map { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--card); }
.contact__map iframe { display: block; width: 100%; height: 100%; border: 0; }

.form { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .88rem; font-weight: 500; color: var(--text); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: #fff; font: 400 .95rem/1.4 "Inter", sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.form .is-invalid { border-color: #ef4444; }
.form__status { margin: 0; min-height: 1.4em; font-size: .9rem; text-align: center; }
.form__status.is-error { color: #f87171; }
.form__status.is-success { color: var(--green); }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 64px; background: var(--bg); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin-top: 16px; max-width: 340px; color: var(--muted); }
.footer h4 { font-size: 1rem; margin-bottom: 16px; }
.footer__col a { display: block; margin-bottom: 10px; color: var(--muted); font-size: .94rem; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, color .2s; }
.to-top:hover { border-color: var(--blue); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 28px; height: 28px; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 32px;
    background: rgba(2, 6, 23, .97); backdrop-filter: blur(12px);
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 20px; padding: 16px; }
  body.menu-open { overflow: hidden; }

  .hero { min-height: auto; }
  .hero__inner, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 110px 0 64px; }
  .hero__stats { gap: 24px; }
  .hero__stats strong, .hero__stats span { font-size: 1.6rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .dashboard__row { grid-template-columns: 1fr 1fr; }
  .dashboard__row .kpi:last-child { grid-column: 1 / -1; }
  .grid--3, .steps, .form__row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { gap: 16px; }
}

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