:root {
  --blue:    #0066ff;
  --blue-dk: #0052cc;
  --bg:     #000;
  --card:   #0d0d0d;
  --border: rgba(255,255,255,0.08);
  --white:  #f5f5f5;
  --muted:  #999;
  --dim:    #555;
  --radius: 14px;
  --max:    1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

/* ── Reveal ── */
.reveal {
  opacity: 0; transform: translateY(22px); filter: blur(4px);
  transition: opacity .65s ease, transform .65s ease, filter .65s ease;
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.d1 { transition-delay: .12s; } .d2 { transition-delay: .22s; }
.d3 { transition-delay: .32s; } .d4 { transition-delay: .42s; }

/* Word-by-word */
.words .word {
  display: inline-block;
  opacity: 0; filter: blur(6px); transform: translateY(10px);
  transition: opacity .5s ease, filter .5s ease, transform .5s ease;
}
.words.in .word { opacity: 1; filter: none; transform: none; }

/* ── Util ── */
.container { width: calc(100% - 48px); max-width: var(--max); margin: 0 auto; padding: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 30px; border-radius: 999px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  transition: all .22s ease; cursor: pointer; border: none; white-space: nowrap;
}
.btn-blue   { background: var(--blue-dk); color: #fff; }
.btn-blue:hover   { background: #0044cc; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 102, 255, .4); }
.btn-wa    { background: #25d366; color: #fff; }
.btn-wa:hover    { background: #1ebe5d; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn-dark  { background: rgba(255,255,255,.07); color: var(--white); border: 1px solid rgba(255,255,255,.1); }
.btn-dark:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: 13px; border-radius: 10px; }

/* ══════════════ NAVBAR ══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0; height: 64px;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  width: calc(100% - 48px); max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav.scrolled {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-color: var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; }
.nav-logo-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }

/* ALL 4 nav items get the same pill */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 500; padding: 9px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  transition: background .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px; font-weight: 800; letter-spacing: -1px;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
.mobile-nav.open a { transform: translateY(0); opacity: 1; }
.mobile-nav a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav a:nth-child(5) { transition-delay: 0.25s; }
.mobile-close { position: absolute; top: 22px; right: 24px; font-size: 26px; color: var(--muted); }

/* ══════════════ HERO ══════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #000; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.88) 0%, rgba(0,0,0,.50) 42%, rgba(0,0,0,.1) 100%),
              linear-gradient(to bottom, rgba(0,0,0,.15) 0%, transparent 15%, transparent 85%, rgba(0,0,0,.3) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  width: calc(100% - 48px); max-width: var(--max); margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 60px;
  padding-top: 80px; padding-bottom: 60px; min-height: 100vh;
}
.hero-left { max-width: 620px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 500; margin-bottom: 28px;
}
.badge-dot {
  width: 7px; height: 7px; background: #22c55e; border-radius: 50%;
  animation: pulse 2.2s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  60%      { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
}
.hero-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(36px, 5.2vw, 74px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -2.5px; margin-bottom: 26px;
}
.hero-sub p { font-size: 16px; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }

.hero-right {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  min-width: 260px;
}
.spin-badge { width: 128px; height: 128px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-ctas { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.hero-ctas .btn { width: 100%; }

/* ══════════════ SOLUÇÕES ══════════════ */
.solucoes { padding: 90px 0 0; }
.solucoes-head { text-align: center; width: calc(100% - 48px); max-width: var(--max); margin: 0 auto 52px; }
.solucoes-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(30px, 4.5vw, 60px);
  font-weight: 800; letter-spacing: -2px; line-height: 1.06; margin-bottom: 18px;
}
.solucoes-head p { font-size: 17px; color: var(--muted); line-height: 1.65; max-width: 560px; margin: 0 auto; }

.solucoes-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  width: calc(100% - 48px); max-width: var(--max); margin: 0 auto;
}

.svc {
  position: relative; overflow: hidden;
  background: #0a0a0a; cursor: default;
  border-radius: 0;
}
.svc img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  opacity: 0.28; transition: opacity .45s, transform .45s;
}
.svc:hover img { opacity: 0.42; transform: scale(1.04); }
.svc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.96) 30%, rgba(0,0,0,.3) 100%);
}
.svc-body {
  position: relative; z-index: 1;
  padding: 160px 34px 36px;
}
.svc-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 12px;
}
.svc-body p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ══════════════ CADA PROJETO É ÚNICO ══════════════ */
/* 3-D scrolling marquee above the text row */
.showcase {
  padding: 70px 0 0;
  overflow: hidden; position: relative;
}
.showcase-track {
  display: flex; gap: 16px;
  width: max-content;
  animation: marquee 38s linear infinite;
  transform-style: preserve-3d;
  perspective: 800px;
  padding: 30px 0;
}
.showcase-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.showcase-item {
  flex-shrink: 0; width: 280px; height: 370px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  transform: rotateY(-8deg) rotateX(4deg) rotateZ(-1deg);
  box-shadow: -10px 10px 40px rgba(0,0,0,.6);
  transition: transform .4s;
}
.showcase-item:hover { transform: rotateY(0) rotateX(0) rotateZ(0) scale(1.04); }
.showcase-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* "Cada projeto é único" text row below marquee */
.unique {
  padding: 56px 0 90px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; width: calc(100% - 48px); max-width: var(--max); margin: 0 auto;
  align-items: start;
}
.unique-left h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 800; letter-spacing: -1.5px; margin-bottom: 18px; line-height: 1.1;
}
.unique-left p { font-size: 16px; color: var(--muted); line-height: 1.65; margin-bottom: 28px; }

/* Right side: 3 stacked dark cards */
.unique-right {
  display: flex; flex-direction: column; gap: 10px;
}
.unique-card {
  height: 90px; background: #111; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden; position: relative;
}
.unique-card img { width: 100%; height: 100%; object-fit: cover; opacity: .18; }

/* ══════════════ PROCESSO ══════════════ */
.processo { padding: 90px 0; }
.processo-head { text-align: center; width: calc(100% - 48px); max-width: var(--max); margin: 0 auto 52px; }
.processo-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 800; letter-spacing: -1.8px; line-height: 1.1;
}
.processo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  width: calc(100% - 48px); max-width: var(--max); margin: 0 auto; padding: 0;
}
.proc {
  position: relative; overflow: hidden; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 34px; min-height: 200px;
  transition: border-color .3s;
}
.proc:hover { border-color: rgba(0, 102, 255, .25); }
.proc-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .07; transition: opacity .4s;
}
.proc:hover .proc-img { opacity: .11; }
.proc-body { position: relative; z-index: 1; }
.proc-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--blue);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px;
}
.proc h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 12px;
}
.proc p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* ══════════════ PORTFÓLIO ══════════════ */
.portfolio { padding: 90px 0 60px; }
.portfolio-head { text-align: center; width: calc(100% - 48px); max-width: var(--max); margin: 0 auto 52px; }
.portfolio-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 4.5vw, 58px);
  font-weight: 800; letter-spacing: -2px; margin-bottom: 18px;
}
.portfolio-head p { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto; line-height: 1.65; }

.proj-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
  width: calc(100% - 48px); max-width: var(--max); margin: 0 auto 48px; padding: 0;
}
.proj-card {
  background: var(--card); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .3s, border-color .3s;
}
.proj-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.14); }

/* Image area with tag pill overlay */
.proj-thumb-wrap { position: relative; aspect-ratio: 411/320; overflow: hidden; }
.proj-thumb {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block; transition: transform .4s;
}
.proj-card:hover .proj-thumb { transform: scale(1.04); }
.proj-tag-pill {
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 5px 12px;
  font-size: 11.5px; font-weight: 600; color: var(--white);
}

.proj-body { padding: 20px 22px 22px; }
.proj-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.proj-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 19px; font-weight: 800; letter-spacing: -.3px;
}
.proj-date-pill {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px; padding: 3px 10px;
  font-size: 11px; color: var(--muted); white-space: nowrap;
}
.proj-desc { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.proj-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px; padding: 10px 18px;
  font-size: 13px; font-weight: 600; color: var(--white);
  transition: background .2s;
}
.proj-btn:hover { background: rgba(255,255,255,.13); }

.portfolio-cta { text-align: center; }
.portfolio-cta .btn-dark { font-size: 16px; padding: 18px 48px; border-radius: 999px; }

/* ══════════════ SOBRE ══════════════ */
.sobre {
  position: relative;
  background: url('../images/sobre-bg.png') 75% center/cover no-repeat;
  min-height: 887px;
}
.sobre::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.0) 100%);
  z-index: 0;
}
.sobre-inner {
  position: relative; z-index: 1;
  width: calc(100% - 48px); max-width: var(--max); margin: 0 auto;
  min-height: 887px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 0 80px 96px;
}
.sobre-left {
  max-width: 480px;
  display: flex; flex-direction: column;
}
.sobre-left .spin-sm { margin-bottom: 24px; animation: spin 12s linear infinite; display: block; width: 90px; height: 90px; }
.sobre-left h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800; letter-spacing: -1.2px; margin-bottom: 22px; line-height: 1.15;
}
.sobre-left p { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }

/* ══════════════ CTA ══════════════ */
.cta { position: relative; padding: 120px 0; overflow: hidden; }
.cta-bg-imgs {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  pointer-events: none;
  transform: perspective(900px) rotateX(8deg) rotateY(-3deg) scale(1.12);
  opacity: .14;
}
.cta-bg-imgs img { height: 300px; border-radius: 10px; flex-shrink: 0; object-fit: cover; }

.cta-inner { position: relative; z-index: 1; width: calc(100% - 48px); max-width: var(--max); margin: 0 auto; padding: 0; }
.cta-text h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(30px, 5vw, 66px);
  font-weight: 800; letter-spacing: -2.5px; line-height: 1.03; margin-bottom: 18px;
}
.cta-text p { font-size: 16px; color: var(--muted); line-height: 1.65; max-width: 480px; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ══════════════ FOOTER ══════════════ */
footer { border-top: 1px solid var(--border); padding: 52px 0 28px; }
.footer-inner { width: calc(100% - 48px); max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 18px;
}
.f-logo { display: flex; align-items: center; gap: 10px; }
.f-logo img { width: 30px; height: 30px; object-fit: contain; }
.f-logo-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 800; }

.f-nav { display: flex; gap: 5px; flex-wrap: wrap; }
.f-nav a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 8px 16px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  transition: color .2s, background .2s;
}
.f-nav a:hover { color: var(--white); background: rgba(255,255,255,.09); }

.f-socials { display: flex; align-items: center; gap: 10px; }
.f-socials-lbl { font-size: 13px; color: var(--muted); white-space: nowrap; }
.social {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--muted);
  transition: all .2s;
}
.social:hover { color: var(--white); background: rgba(255,255,255,.1); transform: translateY(-2px); }

.f-tagline { font-size: 14px; color: var(--dim); margin-bottom: 28px; }
.footer-bot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--dim);
}
.f-left { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.f-left a { color: var(--dim); transition: color .2s; }
.f-left a:hover { color: var(--muted); }
.f-partner { display: flex; align-items: center; gap: 7px; color: var(--dim); transition: color .2s; }
.f-partner:hover { color: var(--muted); }
.f-partner-icon { width: 14px; height: 14px; border-radius: 3px; background: #2563eb; flex-shrink: 0; }

/* ══════════════ WHATSAPP FLOAT ══════════════ */
/* Dark circle matching the original */
.wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 190;
  width: 54px; height: 54px; border-radius: 50%;
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.wa:hover { transform: scale(1.1); background: #252525; box-shadow: 0 6px 28px rgba(0,0,0,.7); }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 1100px) {
  .hero-content { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; padding-bottom: 70px; }
  .hero-right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .hero-ctas { max-width: 100%; flex-direction: row; }
  .sobre-inner { padding-left: 40px; }
  .sobre-left { max-width: 420px; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .unique { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-content { text-align: center; gap: 40px; }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .hero-right { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 32px; }
  .hero-ctas { flex-direction: row; justify-content: center; max-width: 100%; }
}
@media (max-width: 860px) {
  .solucoes-grid, .processo-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav-inner { width: calc(100% - 40px); }
  .hero-content, .unique, .processo-grid, .proj-grid, .solucoes-grid { width: calc(100% - 40px); }
  .portfolio-head, .solucoes-head, .cta-inner, .processo-head { width: calc(100% - 40px); padding: 0; }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-ctas .btn { width: 100%; }
  .unique-left { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .unique-left .btn { display: flex; width: 100%; justify-content: center; max-width: 320px; margin: 0 auto; }
  .sobre { min-height: auto; background-position: right center; }
  .sobre::before { background: linear-gradient(to bottom, rgba(0,0,0,.92) 0%, rgba(0,0,0,.75) 100%); }
  .sobre-inner { min-height: auto; padding: 80px 24px; text-align: center; }
  .sobre-left { max-width: 100%; align-items: center; }
  .proc { padding: 28px 24px; min-height: auto; }
  .cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .cta-text p { margin-left: auto; margin-right: auto; }
  .cta-btns { flex-direction: column; justify-content: center; width: 100%; max-width: 320px; }
  .cta-btns .btn { width: 100%; justify-content: center; }
  .footer-inner { width: calc(100% - 40px); }
  footer { padding: 40px 0 20px; }
  .footer-bot { flex-direction: column; align-items: flex-start; }
}
