:root {
  --header-h: 46px;
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #141414;
  --muted: #55555f;
  --purple: #6f2cff;
  --purple-soft: #efe7ff;
  --gold: #c8a96b;
  --border: rgba(20, 20, 20, 0.08);
  --radius: 18px;
  --shadow: 0 18px 60px rgba(17, 17, 17, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(111, 44, 255, 0.08), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(200, 169, 107, 0.12), transparent 35%),
    var(--bg);
  line-height: 1.5;
  cursor: none;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

p {
  margin: 0;
  color: var(--muted);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(248, 247, 244, 0.7);
  border-bottom: 1px solid rgba(20, 20, 20, 0.05);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-h) + 2px);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  overflow: visible;
}

.brand-logo {
  width: auto;
  height: 44px;
  object-fit: contain;
  display: block;
}

.topbar .brand {
  margin-left: 18px;
  gap: 0.65rem;
  align-items: center;
}

.topbar-title {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #191922;
  white-space: nowrap;
}

.topbar .brand-logo {
  transform: scale(2.60);
  transform-origin: left center;
  margin-right: 54px;
}

.nav {
  display: flex;
  gap: 1.4rem;
  color: #2c2c35;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 1rem;
}

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  position: relative;
  overflow: clip;
  transform: translateY(calc(var(--parallax-y, 0px) * -0.16));
  transition: transform 0.15s linear;
}

main {
  padding-top: var(--header-h);
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.98;
  color: #101014;
  margin-bottom: 1.2rem;
}

.hero-title .hero-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 20px, 0) rotateX(-26deg);
  filter: blur(5px);
}

.hero-title.words-in .hero-word {
  animation: heroWordIn 0.85s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
  animation-delay: var(--w-delay);
}

@keyframes heroWordIn {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg);
    filter: blur(0);
  }
}

.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.7;
}

.orb-a {
  width: clamp(230px, 28vw, 380px);
  height: clamp(230px, 28vw, 380px);
  right: -4vw;
  top: -5vh;
  background: radial-gradient(circle at 30% 30%, rgba(111, 44, 255, 0.28), rgba(111, 44, 255, 0.02) 70%);
}

.orb-b {
  width: clamp(150px, 18vw, 240px);
  height: clamp(150px, 18vw, 240px);
  left: 4vw;
  bottom: 2vh;
  background: radial-gradient(circle at 30% 30%, rgba(200, 169, 107, 0.38), rgba(200, 169, 107, 0.02) 72%);
}

.hero-grid {
  position: absolute;
  inset: -8%;
  background-image:
    linear-gradient(rgba(111, 44, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 44, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%);
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  left: var(--px);
  top: var(--py);
  width: var(--ps);
  height: var(--ps);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(111, 44, 255, 0.85), rgba(200, 169, 107, 0.85));
  opacity: var(--po);
  animation: floatParticle var(--pd) ease-in-out infinite alternate;
}

@keyframes floatParticle {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-18px);
  }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(130deg, var(--purple), #8f57ff);
  color: #fff;
  box-shadow: 0 10px 28px rgba(111, 44, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: #1d1d23;
  border-color: rgba(20, 20, 20, 0.16);
}

.btn-secondary:hover {
  box-shadow: var(--shadow);
}

.section-head {
  margin-bottom: 2rem;
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 24ch;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card,
.project-card,
.testimonial-placeholder {
  background: color-mix(in oklab, var(--surface), #fff 18%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.card h3,
.project-card h3 {
  font-size: 1.25rem;
}

.project-card h3 {
  margin-bottom: 0.9rem;
}

.card:hover,
.project-card:hover {
  transform: translateY(-4px);
  transition: transform 0.35s ease;
}

#servicos,
#portfolio,
#contato {
  transform: translateY(calc(var(--parallax-y, 0px) * -0.1));
  transition: transform 0.12s linear;
}

.tag {
  display: inline-flex;
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5d42a6;
  background: var(--purple-soft);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.portfolio-grid .project-card {
  position: relative;
  overflow: hidden;
}

.portfolio-grid .project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(111, 44, 255, 0.12), transparent 42%);
  pointer-events: none;
}

.portfolio-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.portfolio-list li {
  position: relative;
  padding: 0.55rem 0.7rem 0.55rem 1.4rem;
  border: 1px solid rgba(20, 20, 20, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  color: #292933;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.portfolio-list li::before {
  content: "";
  position: absolute;
  left: 0.62rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--purple), var(--gold));
}

.portfolio-list li:hover {
  transform: translateX(4px);
  border-color: rgba(111, 44, 255, 0.28);
  background: #fff;
}

.portfolio-list a {
  color: #22222b;
  font-weight: 500;
}

.portfolio-list a:hover {
  color: var(--purple);
}

.add-more {
  border-style: dashed;
}

.testimonials .testimonial-placeholder {
  margin-top: 1.5rem;
  border-color: rgba(200, 169, 107, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.95)),
    repeating-linear-gradient(
      -45deg,
      rgba(200, 169, 107, 0.1),
      rgba(200, 169, 107, 0.1) 8px,
      rgba(200, 169, 107, 0.04) 8px,
      rgba(200, 169, 107, 0.04) 16px
    );
}

.cta-final {
  text-align: center;
}

.cta-final h2 {
  margin: 0 auto 1.4rem;
  max-width: 18ch;
}

.footer {
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  padding: 2rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  color: #2f2f39;
}

.footer-links a:hover {
  color: var(--purple);
}

.footer .brand-logo {
  width: auto;
  height: 126px;
  transform: none;
}

.footer .brand {
  gap: 0.8rem;
  margin-left: 0;
  align-items: center;
  margin-bottom: 0;
}

.footer-inner > div:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.reveal {
  opacity: 0;
  transform: perspective(900px) translate3d(0, 40px, -80px) rotateX(9deg);
  transform-origin: center bottom;
  filter: blur(4px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: perspective(900px) translate3d(0, 0, 0) rotateX(0deg);
  filter: blur(0);
}

section[data-transition] {
  position: relative;
}

section[data-transition]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

section[data-transition].is-inview::after {
  opacity: 1;
  transform: translateY(0);
}

section[data-transition="services"]::after {
  background: linear-gradient(180deg, transparent, rgba(111, 44, 255, 0.12));
}

section[data-transition="portfolio"]::after {
  background: linear-gradient(180deg, transparent, rgba(200, 169, 107, 0.18));
}

section[data-transition="diferenciais"]::after {
  background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.08));
}

section[data-transition="testimonials"]::after {
  background: linear-gradient(180deg, transparent, rgba(111, 44, 255, 0.1));
}

section[data-transition="cta"]::after {
  background: linear-gradient(180deg, transparent, rgba(200, 169, 107, 0.22));
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(111, 44, 255, 0.38);
  background: radial-gradient(circle at 30% 30%, rgba(111, 44, 255, 0.16), rgba(111, 44, 255, 0.01));
  backdrop-filter: blur(3px);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cursor-ring.active {
  width: 52px;
  height: 52px;
  border-color: rgba(200, 169, 107, 0.7);
  transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 980px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards-3,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 42px;
  }
  body {
    cursor: auto;
  }
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
  .nav {
    display: none;
  }
  .cards-4,
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: 1rem;
    transform: none;
  }
  .topbar .brand-logo {
    height: 36px;
    transform: scale(3);
    margin-right: 46px;
  }
  .topbar-title {
    font-size: 0.9rem;
  }
  .footer-inner > div:first-child {
    justify-content: flex-start;
  }
  #servicos,
  #portfolio,
  #contato {
    transform: none;
  }
}
