:root {
  --bg: #eef5fb;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --surface-dark: #0d3f87;
  --text: #16314b;
  --muted: #5d7186;
  --line: rgba(22, 49, 75, 0.1);
  --brand: #2f88e6;
  --brand-deep: #1e6fd7;
  --accent: #7cc943;
  --shadow: 0 30px 60px rgba(20, 52, 95, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
  --pointer-x: 0px;
  --pointer-y: 0px;
  --scroll-shift: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(47, 136, 230, 0.2), transparent 34%),
    radial-gradient(circle at right center, rgba(124, 201, 67, 0.16), transparent 30%),
    linear-gradient(180deg, #f5faff 0%, #edf4fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 80%);
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 30vw;
  height: 30vw;
  min-width: 220px;
  min-height: 220px;
  border-radius: 999px;
  filter: blur(36px);
  pointer-events: none;
  opacity: 0.55;
}

.page-shell::before {
  top: 8%;
  right: -8%;
  background: radial-gradient(circle, rgba(47, 136, 230, 0.2), transparent 68%);
  animation: ambientGlow 16s ease-in-out infinite;
  transform: translateY(calc(var(--scroll-shift) * -0.18));
}

.page-shell::after {
  bottom: 6%;
  left: -10%;
  background: radial-gradient(circle, rgba(124, 201, 67, 0.18), transparent 70%);
  animation: ambientGlow 20s ease-in-out infinite reverse;
  transform: translateY(calc(var(--scroll-shift) * 0.12));
}

.hero,
.section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px 0 44px;
  animation: sectionFadeIn 700ms ease both;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  transition: transform 220ms ease-out;
}

.hero::before {
  top: 56px;
  right: 80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(47, 136, 230, 0.18), transparent 68%);
  transform:
    translate3d(calc(var(--pointer-x) * 0.75), calc(var(--pointer-y) * 0.55), 0)
    translateY(calc(var(--scroll-shift) * -0.1));
  animation: ambientGlow 12s ease-in-out infinite;
}

.hero::after {
  left: 6%;
  bottom: 12px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(124, 201, 67, 0.18), transparent 70%);
  transform:
    translate3d(calc(var(--pointer-x) * -0.55), calc(var(--pointer-y) * -0.45), 0)
    translateY(calc(var(--scroll-shift) * -0.08));
  animation: ambientGlow 14s ease-in-out infinite reverse;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 36px;
  animation: navSlideIn 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--surface-dark);
  color: #fff;
  text-decoration: none;
  font-family: "Bahnschrift", "Franklin Gothic Demi", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-logo {
  width: 210px;
  height: 76px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(24, 34, 37, 0.08);
  box-shadow: var(--shadow);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(30, 111, 215, 0.18);
  box-shadow: 0 34px 68px rgba(20, 52, 95, 0.16);
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-deep), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.service-card,
.process-step,
.about-panel,
.faq-item,
.contact-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease,
    background-color 280ms ease;
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 255, 0.84));
  animation: heroRise 860ms cubic-bezier(0.18, 0.8, 0.22, 1) 80ms both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bahnschrift", "Segoe UI", "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  max-width: 15ch;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hero-text,
.service-card p,
.process-step p,
.about-panel p,
.contact-card p,
.role,
.card-meta span,
.card-stats span {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-text {
  max-width: 61ch;
  margin: 22px 0 0;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.35) 48%, transparent 78%);
  transform: translateX(-140%);
  transition: transform 620ms ease;
  pointer-events: none;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(30, 111, 215, 0.22);
}

.button:hover::after {
  transform: translateX(140%);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
}

.button-primary:hover {
  background: linear-gradient(135deg, #185ebe, #247be0);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.button-secondary:hover {
  border-color: rgba(24, 34, 37, 0.22);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-points li {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(47, 136, 230, 0.1);
  color: var(--text);
  font-size: 0.95rem;
  opacity: 0;
  animation: chipRise 560ms ease forwards;
}

.hero-points li:nth-child(1) {
  animation-delay: 280ms;
}

.hero-points li:nth-child(2) {
  animation-delay: 380ms;
}

.hero-points li:nth-child(3) {
  animation-delay: 480ms;
}

.hero-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(13, 63, 135, 0.96), rgba(31, 111, 215, 0.88));
  background-size: 140% 140%;
  color: #f4faff;
  position: relative;
  overflow: hidden;
  animation:
    heroRise 860ms cubic-bezier(0.18, 0.8, 0.22, 1) 180ms both,
    cardGlow 12s ease-in-out 1.4s infinite;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(124, 201, 67, 0.14);
}

.hero-card::before {
  width: 220px;
  height: 220px;
  right: -80px;
  top: -60px;
}

.hero-card::after {
  width: 160px;
  height: 160px;
  left: -50px;
  bottom: -40px;
}

.card-label,
.hero-card h2,
.hero-card strong,
.hero-card .role,
.hero-logo {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: min(100%, 260px);
  height: auto;
  display: block;
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  animation: logoPulse 9s ease-in-out 1.6s infinite;
}

.card-label {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-card h2 {
  max-width: none;
  margin-bottom: 14px;
}

.role {
  color: rgba(244, 250, 255, 0.82);
  margin-bottom: 18px;
}

.card-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.card-meta span,
.card-stats span {
  color: rgba(244, 250, 255, 0.78);
}

.card-stats {
  display: grid;
  gap: 14px;
}

.card-stats div {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.card-stats strong {
  display: block;
  font-family: "Bahnschrift", "Franklin Gothic Demi", sans-serif;
  margin-bottom: 4px;
  color: #fff;
}

.section {
  padding: 18px 0 34px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  max-width: 16ch;
}

#projetos .section-heading h2,
#faq .section-heading h2 {
  max-width: 13ch;
}

.services-grid,
.process-grid,
.about-layout,
.faq-grid {
  display: grid;
  gap: 14px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.process-step,
.about-panel,
.faq-item {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.service-card::before,
.process-step::before,
.about-panel::before,
.faq-item::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-deep), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms ease;
}

.service-card:hover,
.process-step:hover,
.about-panel:hover,
.faq-item:hover {
  transform: translateY(-8px);
  border-color: rgba(30, 111, 215, 0.18);
  box-shadow: 0 36px 72px rgba(20, 52, 95, 0.16);
}

.service-card:hover::before,
.process-step:hover::before,
.about-panel:hover::before,
.faq-item:hover::before {
  transform: scaleX(1);
}

.section-contrast .process-step {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.76));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.process-step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(124, 201, 67, 0.16);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 20px;
}

.about-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.8fr);
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-panel-highlight {
  background:
    linear-gradient(180deg, rgba(124, 201, 67, 0.12), rgba(255, 255, 255, 0.82));
}

.about-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.9;
}

.faq-item {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.contact-details p {
  margin: 0;
}

.contact-details a {
  color: #fff;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.section-contact {
  padding-bottom: 80px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(13, 63, 135, 0.96), rgba(56, 137, 224, 0.86));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: auto -12% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 201, 67, 0.22), transparent 68%);
  animation: ambientGlow 12s ease-in-out infinite;
  pointer-events: none;
}

.contact-card h2,
.contact-card p,
.contact-card .eyebrow {
  color: #fff;
}

.contact-card p {
  max-width: 62ch;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.985);
  transition:
    opacity 680ms cubic-bezier(0.18, 0.8, 0.22, 1),
    transform 680ms cubic-bezier(0.18, 0.8, 0.22, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes navSlideIn {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chipRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(47, 136, 230, 0);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(47, 136, 230, 0.06);
  }
}

@keyframes ambientGlow {
  0%,
  100% {
    opacity: 0.46;
    filter: blur(34px);
  }

  50% {
    opacity: 0.7;
    filter: blur(44px);
  }
}

@keyframes cardGlow {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow: 0 30px 60px rgba(20, 52, 95, 0.12);
  }

  50% {
    background-position: 100% 50%;
    box-shadow: 0 34px 68px rgba(20, 52, 95, 0.16);
  }
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .services-grid,
  .process-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content,
  .about-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .brand-logo {
    width: min(100%, 220px);
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-copy,
  .hero-card,
  .service-card,
  .process-step,
  .about-panel,
  .faq-item,
  .contact-card {
    padding: 20px;
  }

  .services-grid,
  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.15rem, 9vw, 3.4rem);
    max-width: 100%;
  }

  .button {
    width: 100%;
  }

  .page-shell::before,
  .page-shell::after {
    width: 56vw;
    height: 56vw;
  }
}
