:root {
  --bg: #FFFFFF;
  --ink: #041430;
  --body: #3D4A64;
  --muted: #6B7690;
  --blue: #0060FC;
  --blue-light: #0CA7FD;
  --line: rgba(4, 20, 48, .12);
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

canvas#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 35%, transparent 55%, rgba(214, 230, 255, .65) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* ---------- shell ---------- */
.content {
  position: relative;
  z-index: 3;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .55) 70%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -.04em;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.brand img {
  height: 26px;
  width: auto;
  display: block;
}

.brand span {
  color: var(--blue);
}

.navlinks {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.navlinks a {
  color: var(--ink);
  text-decoration: none;
  opacity: .7;
  transition: opacity .3s;
}

.navlinks a:hover {
  opacity: 1;
}

.navlinks a.navcta {
  opacity: 1;
  color: #FFFFFF;
  background: var(--blue);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background .3s, transform .3s;
}

.navlinks a.navcta:hover {
  background: #0050D6;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .3s;
}

.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);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .navlinks {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    gap: 0;
    padding: 96px clamp(20px, 8vw, 48px) 32px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity .35s cubic-bezier(.16, 1, .3, 1), transform .35s cubic-bezier(.16, 1, .3, 1);
  }

  .navlinks.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .navlinks a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    opacity: 1;
  }

  .navlinks a.navcta {
    border-bottom: none;
    text-align: center;
    padding: 15px 0;
    margin-top: 16px;
  }
}

section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 64px);
  position: relative;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(13px, 3.2vw, 14px);
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 1), 0 2px 10px rgba(255, 255, 255, .95);
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--blue);
}

h1 {
  font-size: clamp(48px, 9vw, 132px);
  line-height: .92;
  letter-spacing: -.05em;
  font-weight: 600;
  max-width: 12.5ch;
  text-shadow: 0 4px 30px rgba(255, 255, 255, .9), 0 1px 2px rgba(255, 255, 255, .95);
}

h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--blue-light), var(--blue) 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 3px rgba(255, 255, 255, .9)) drop-shadow(0 0 16px rgba(255, 255, 255, .7));
}

.lede {
  margin-top: 30px;
  max-width: 46ch;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  font-weight: 300;
  color: #000000;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .95), 0 2px 16px rgba(255, 255, 255, .9);
}

h2 {
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 600;
  text-shadow: 0 3px 24px rgba(255, 255, 255, .65);
}

/* ---------- serviços ---------- */
.cards {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  border-top: 1px solid var(--line);
}

.card {
  padding: 30px 26px 34px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -30px rgba(4, 20, 48, .25);
  transition: background .4s, transform .4s;
}

.card:hover {
  background: rgba(0, 96, 252, .06);
  transform: translateY(-4px);
}

.card .k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  letter-spacing: .14em;
}

.card h3 {
  margin: 16px 0 10px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body);
}

/* ---------- processo ---------- */
.steps {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: clamp(16px, 4vw, 54px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.step .n {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
}

.step h3 {
  font-size: clamp(22px, 2.9vw, 33px);
  font-weight: 500;
  letter-spacing: -.03em;
}

.step p {
  margin-top: 8px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
  max-width: 58ch;
}

/* ---------- portfólio ---------- */
.work {
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.item {
  display: grid;
  grid-template-columns: 54px 96px 1fr auto;
  gap: clamp(14px, 3vw, 40px);
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding .45s cubic-bezier(.16, 1, .3, 1), background .45s;
}

.item:hover,
.item:focus-visible {
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(0, 96, 252, .08), transparent 62%);
}

.item .idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
}

.item .thumb {
  width: 96px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px -16px rgba(4, 20, 48, .35);
}

.item .thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--muted);
  background: rgba(4, 20, 48, .04);
}

.item h3 {
  font-size: clamp(22px, 3.4vw, 41px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.item .tag {
  display: block;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.item .go {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-10px);
  transition: .45s cubic-bezier(.16, 1, .3, 1);
  white-space: nowrap;
}

.item:hover .go,
.item:focus-visible .go {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .item {
    grid-template-columns: 40px 1fr;
  }

  .item .go,
  .item .thumb {
    display: none;
  }
}

/* ---------- faq ---------- */
.faqlist {
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.faqitem {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.faqitem h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
}

.faqitem p {
  margin-top: 10px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 62ch;
}

/* ---------- cta ---------- */
.cta {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
}

.cta h2 {
  max-width: 16ch;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--blue);
  box-shadow: 0 16px 32px -14px rgba(0, 96, 252, .55);
  transition: background .35s, transform .35s, box-shadow .35s;
}

.btn:hover {
  background: #0050D6;
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -14px rgba(0, 96, 252, .65);
}

.btn .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 255, 255, .8);
}

/* ---------- CTAs intermediários ---------- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 42px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(0, 96, 252, .35);
  color: var(--blue);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px -14px rgba(4, 20, 48, .3);
  transition: background .3s, border-color .3s, transform .3s;
}

.btn-secondary:hover {
  background: #FFFFFF;
  border-color: var(--blue);
  transform: translateY(-2px);
}

.btn-secondary .arrow {
  display: inline-block;
  transition: transform .3s;
}

.btn-secondary:hover .arrow {
  transform: translateX(4px);
}

footer {
  padding: 34px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

footer a {
  color: inherit;
  text-decoration: none;
  transition: color .3s;
}

footer a:hover {
  color: var(--blue);
}

/* ---------- reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- scroll hint ---------- */
.hint {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--muted);
  text-transform: uppercase;
  transition: opacity .5s;
}

.hint b {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--blue), transparent);
  margin: 10px auto 0;
}

/* ---------- progresso ---------- */
.prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 7;
  background: linear-gradient(90deg, var(--blue-light), var(--blue));
}

/* ---------- loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(20px, 5vw, 64px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--muted);
  transition: opacity .9s ease, visibility .9s;
}

#loader.off {
  opacity: 0;
  visibility: hidden;
}

#loader .big {
  font-family: var(--display);
  font-size: clamp(60px, 13vw, 190px);
  letter-spacing: -.06em;
  color: var(--ink);
  line-height: .85;
}

/* ---------- botao flutuante whatsapp ---------- */
.fab-whatsapp {
  position: fixed;
  right: clamp(18px, 4vw, 32px);
  bottom: clamp(18px, 4vw, 32px);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .6), 0 4px 14px rgba(4, 20, 48, .18);
  transition: transform .3s, box-shadow .3s;
}

.fab-whatsapp svg {
  width: 30px;
  height: 30px;
  position: relative;
}

.fab-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: fabPulse 2.6s ease-out infinite;
}

.fab-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 36px -10px rgba(37, 211, 102, .7), 0 6px 16px rgba(4, 20, 48, .22);
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 640px) {
  .fab-whatsapp {
    width: 52px;
    height: 52px;
  }

  .fab-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}

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

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fab-whatsapp::before {
    animation: none;
    display: none;
  }
}
