/* ============================================================
   AURIUS — Tecnologia que orbita o seu negócio
   Dark space theme · glassmorphism · dourado → violeta
   ============================================================ */

:root {
  --gold-light: #F2E27E;
  --gold: #D9C25A;
  --violet: #7C3AED;
  --purple-deep: #5B21B6;
  --lilac: #B794F6;
  --bg: #0A0A12;
  --surface: #1A1A24;
  --text: #F5F5F7;
  --muted: #A0A0B0;
  --grad: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 25%, var(--lilac) 60%, var(--violet) 100%);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-card: 18px;
  --border-soft: rgba(183, 148, 246, .16);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .25, 1);
  --radius-sm: 8px;
  --dur-reveal: .9s;
  --reveal-y: 28px;
  --stagger: 90ms;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(124, 58, 237, .55); color: var(--text); }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--violet)); border-radius: 99px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 600; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}


/* ============ Texto gradiente / shimmer ============ */
.shimmer {
  background: linear-gradient(100deg,
    var(--gold-light) 0%, var(--gold) 18%, var(--lilac) 38%,
    var(--violet) 52%, var(--lilac) 66%, var(--gold) 84%, var(--gold-light) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.section-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Split text (gerado via JS) */
.split-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split-c { display: inline-block; will-change: transform; }

/* ============ BARRA DE PROGRESSO ============ */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
  background: var(--grad);
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(124, 58, 237, .7);
}

/* ============ CAMADAS FIXAS ============ */
#galaxy-wrap {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 2; pointer-events: none;
  transform-origin: 0 0; will-change: transform;
}
#galaxy-canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
#galaxy-wrap.is-ready #galaxy-canvas { opacity: 1; }

#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; }

/* ============ NAV ============ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  transition: background .45s, backdrop-filter .45s, padding .45s, border-color .45s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(10, 10, 18, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(183, 148, 246, .12);
  padding-top: 12px; padding-bottom: 12px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 40px; width: auto; margin: -3px 0; filter: drop-shadow(0 0 8px rgba(183, 148, 246, .5)); }
.nav-word {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .3em; font-size: .95rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { position: relative; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); font-size: .92rem; }
.nav-links a { position: relative; color: var(--muted); transition: color .3s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
/* indicador único que desliza até o link ativo/em hover (JS define --x e --w) */
.nav-indicator {
  position: absolute; left: 0; bottom: -7px; width: 100px; height: 1.5px; border-radius: 2px;
  background: var(--grad); pointer-events: none; opacity: 0;
  transform-origin: 0 50%; transform: translateX(var(--x, 0)) scaleX(var(--w, 0));
  transition: transform .5s var(--ease-out), opacity .35s;
}
.nav-indicator.is-on { opacity: 1; }
.nav-cta {
  overflow: hidden; isolation: isolate;
  color: var(--text) !important; padding: 9px 20px; border-radius: 99px;
  border: 1px solid rgba(183, 148, 246, .4);
  background: linear-gradient(120deg, rgba(217, 194, 90, .14), rgba(124, 58, 237, .2));
  transition: box-shadow .35s, border-color .35s;
}
.nav-cta:hover { border-color: var(--gold-light); box-shadow: 0 0 22px rgba(124, 58, 237, .45); }

/* brilho que atravessa botões no hover (só transform) */
.nav-cta::before, .btn-primary::after, .btn-magnetic::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-120%) skewX(-18deg); transition: transform .8s var(--ease-out);
}
.nav-cta::before { background: linear-gradient(100deg, transparent, rgba(242, 226, 126, .22), transparent); }
.nav-cta:hover::before, .btn-primary:hover::after, .btn-magnetic:hover::after { transform: translateX(260%) skewX(-18deg); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

#menu-toggle { display: none; flex-direction: column; gap: 5px; width: 38px; height: 38px; align-items: center; justify-content: center; }
#menu-toggle span { display: block; width: 20px; height: 1.8px; background: var(--text); border-radius: 2px; transition: transform .35s, opacity .35s; }
#menu-toggle.open span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; }
#menu-toggle.open span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

#mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 390;
  padding: 92px 28px 34px;
  background: rgba(10, 10, 18, .96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 20px;
  font-family: var(--font-display); font-size: 1.25rem;
  transform: translateY(-105%); transition: transform .5s cubic-bezier(.65, 0, .25, 1);
  border-bottom: 1px solid rgba(183, 148, 246, .15);
}
#mobile-menu.open { transform: translateY(0); }
#mobile-menu a { color: var(--muted); opacity: 0; translate: 0 -10px; transition: opacity .4s, translate .5s var(--ease-out), color .3s; }
#mobile-menu a:not(.mobile-cta):hover, #mobile-menu a.is-active:not(.mobile-cta) { color: var(--gold-light); }
#mobile-menu.open a { opacity: 1; translate: none; }
#mobile-menu.open a:nth-child(1) { transition-delay: .12s; }
#mobile-menu.open a:nth-child(2) { transition-delay: .17s; }
#mobile-menu.open a:nth-child(3) { transition-delay: .22s; }
#mobile-menu.open a:nth-child(4) { transition-delay: .27s; }
#mobile-menu.open a:nth-child(5) { transition-delay: .32s; }
#mobile-menu.open a:nth-child(6) { transition-delay: .37s; }
#mobile-menu .mobile-cta {
  margin-top: 6px; align-self: flex-start; font-size: 1rem; font-weight: 600; color: var(--bg);
  padding: 12px 24px; border-radius: 99px; background: linear-gradient(110deg, var(--gold-light), var(--gold));
}

/* ============ SEÇÕES (base) ============ */
section { position: relative; z-index: 5; padding: clamp(90px, 12vh, 150px) clamp(20px, 6vw, 90px); }

.section-head { max-width: 820px; margin: 0 auto 64px; text-align: center; position: relative; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; display: inline-block; width: 28px; height: 1px; vertical-align: middle; margin: 0 14px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow::before { transform-origin: 100% 50%; }
.eyebrow::after { background: linear-gradient(270deg, transparent, var(--gold)); transform-origin: 0 50%; }
.section-title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); letter-spacing: -.028em; line-height: 1.06; text-wrap: balance; }
.section-sub { color: var(--muted); margin: 18px auto 0; max-width: 62ch; font-size: clamp(.98rem, 1.4vw, 1.12rem); text-wrap: balance; }

.section-divider {
  position: relative; z-index: 5; height: 1px; max-width: 1240px; margin: 0 auto; overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--border-soft) 20%, rgba(217, 194, 90, .28) 50%, var(--border-soft) 80%, transparent);
}

/* ============ HERO ============ */
#hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding-top: 110px; padding-bottom: 120px;
  overflow-x: clip; /* o véu do ::before não pode alargar a viewport no mobile */
}
.hero-content { position: relative; isolation: isolate; max-width: 940px; }
/* véu escuro sutil atrás do texto: legibilidade sobre a galáxia */
.hero-content::before {
  content: ""; position: absolute; inset: -12% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(10, 10, 18, .82) 0%, rgba(10, 10, 18, .5) 45%, transparent 72%);
}
/* entrada em CSS: visível e clicável em < 1 s, sem depender de JS/CDN */
.hero-content > * { animation: hero-in .55s var(--ease-out) both; }
.hero-content > :nth-child(2) { animation-delay: .04s; }
.hero-content > :nth-child(3) { animation-delay: .08s; }
.hero-content > :nth-child(4) { animation-delay: .12s; }
.hero-content > :nth-child(5) { animation-delay: .16s; }
.hero-content > :nth-child(6) { animation-delay: .2s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } }
.hero-logo {
  height: clamp(96px, 15vh, 150px); width: auto; margin: 0 auto 6px;
  filter: drop-shadow(0 0 30px rgba(183, 148, 246, .4));
}
.hero-kicker {
  display: inline-block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  padding: 7px 16px; border-radius: 99px; border: 1px solid rgba(217, 194, 90, .3);
  background: rgba(10, 10, 18, .45); margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2.1rem, 5.4vw, 4.3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04;
  max-width: 19ch; margin: 0 auto; text-wrap: balance;
}
.hero-title em {
  font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 22px auto 0; max-width: 62ch; color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  padding: 13px 28px; border-radius: 99px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--bg);
  background: linear-gradient(110deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 30px rgba(217, 194, 90, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .3s var(--ease-out), box-shadow .3s, scale .2s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-primary:active, .btn-ghost:active, .btn-magnetic:active { scale: .97; }
.btn-primary svg { transition: transform .3s var(--ease-out); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(217, 194, 90, .32), 0 0 0 4px rgba(242, 226, 126, .12); }
.btn-primary:hover svg { transform: translateX(3px); }

.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap; animation: hero-in .6s .5s var(--ease-out) both;
}
.scroll-line { position: relative; width: 1px; height: 44px; overflow: hidden; background: var(--border-soft); }
.scroll-line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: linear-gradient(transparent, var(--gold-light));
  animation: scroll-line 2.2s var(--ease-out) infinite;
}
@keyframes scroll-line { to { top: 100%; } }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 28px; border-radius: 99px;
  border: 1px solid rgba(242, 226, 126, .5); color: var(--gold-light);
  letter-spacing: .06em; font-size: .95rem;
  transition: background .35s, box-shadow .35s, color .35s, scale .2s;
}
.btn-ghost:hover {
  background: linear-gradient(110deg, rgba(217, 194, 90, .2), rgba(124, 58, 237, .3));
  box-shadow: 0 0 26px rgba(124, 58, 237, .5); color: var(--text);
}

/* ============ SERVIÇOS ============ */
#servicos { padding-top: clamp(110px, 16vh, 190px); }
.cards-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1240px; margin: 0 auto; perspective: 1100px;
}
.card {
  grid-column: span 2;
  position: relative; border-radius: var(--radius-card); padding: 30px 28px 28px;
  display: flex; flex-direction: column; align-items: flex-start;
  background: linear-gradient(160deg, rgba(34, 30, 52, .62), rgba(20, 20, 30, .58));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .45s;
  transform-style: preserve-3d; will-change: transform;
}
.card-lg { grid-column: span 3; }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(242, 226, 126, .75), rgba(183, 148, 246, .35), rgba(124, 58, 237, .8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .28; transition: opacity .45s;
}
.card:hover::before { opacity: .9; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(183, 148, 246, .14), rgba(242, 226, 126, .05) 40%, transparent 70%);
  transition: opacity .45s;
}
.card:hover::after { opacity: 1; }
.card:hover { box-shadow: 0 18px 50px rgba(124, 58, 237, .22), 0 4px 18px rgba(242, 226, 126, .08); }
.card-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 24px; }
.card-n { font-family: var(--font-display); font-size: .82rem; letter-spacing: .14em; color: rgba(160, 160, 176, .6); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--gold-light);
  background: linear-gradient(140deg, rgba(217, 194, 90, .14), rgba(124, 58, 237, .22));
  border: 1px solid rgba(183, 148, 246, .25);
  transition: transform .4s var(--ease-out), color .4s, border-color .4s;
}
.card-icon svg { width: 27px; height: 27px; }
.card:hover .card-icon { transform: translateZ(24px) translateY(-2px); color: var(--text); border-color: rgba(242, 226, 126, .45); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 20px; }
.card-lg p:not(.card-result) { max-width: 52ch; }
.card .card-result {
  margin-top: auto; width: 100%; padding-top: 16px; margin-bottom: 18px;
  border-top: 1px solid var(--border-soft);
  color: var(--text); font-size: .9rem;
}
.card-result::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin: 0 10px 2px 0;
  background: var(--gold-light); box-shadow: 0 0 10px rgba(242, 226, 126, .6);
}
.card-tag {
  font-size: .74rem; letter-spacing: .1em; color: var(--gold);
  border: 1px solid rgba(217, 194, 90, .3); border-radius: 99px; padding: 5px 13px; display: inline-block;
}

/* ============ PROCESSO ============ */
#processo { padding: 0; }
.processo-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.processo-pin .section-head { margin-bottom: 44px; }
.timeline-viewport { width: 100%; }
.timeline-track {
  display: flex; align-items: center; gap: clamp(40px, 6vw, 110px);
  width: max-content; padding: 60px clamp(30px, 12vw, 220px);
  position: relative; will-change: transform;
}
.timeline-line {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: rgba(183, 148, 246, .14); border-radius: 99px;
}
.timeline-fill {
  height: 100%; width: 100%; background: var(--grad); border-radius: 99px;
  transform: scaleX(0); transform-origin: 0 50%;
  box-shadow: 0 0 14px rgba(242, 226, 126, .5);
}
.timeline-node {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--gold-light);
  box-shadow: 0 0 0 6px rgba(242, 226, 126, .1), 0 0 18px rgba(242, 226, 126, .45);
}
.step {
  position: relative; width: clamp(280px, 30vw, 400px); flex-shrink: 0;
  border-radius: 18px; padding: 34px 30px;
  background: rgba(26, 26, 36, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(183, 148, 246, .16);
  transition: border-color .6s, background-color .6s;
}
.step::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1px rgba(242, 226, 126, .35), 0 20px 60px rgba(124, 58, 237, .28);
  transition: opacity .6s;
}
.step.is-current { border-color: rgba(242, 226, 126, .4); background-color: rgba(34, 30, 52, .72); }
.step.is-current::after { opacity: 1; }
.step:nth-child(odd) { transform: translateY(-34px); }
.step:nth-child(even) { transform: translateY(34px); }
.step-n {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; display: block; margin-bottom: 14px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .5; transition: opacity .6s;
}
.step.is-current .step-n { opacity: 1; }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ============ PORTFÓLIO ============ */
.portfolio-grid {
  display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr);
  max-width: 1240px; margin: 0 auto;
}
.p-card { display: block; color: inherit; text-decoration: none; will-change: transform; }
.p-card:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 6px; border-radius: 18px; }
.p-media {
  position: relative; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--border-soft);
  box-shadow: 0 18px 50px rgba(5, 5, 12, .45);
  transition: box-shadow .5s, border-color .5s, translate .6s var(--ease-out);
}
.p-card:hover .p-media, .p-card:focus-visible .p-media {
  translate: 0 -6px; border-color: rgba(242, 226, 126, .35);
  box-shadow: 0 28px 70px rgba(124, 58, 237, .35), 0 0 0 1px rgba(242, 226, 126, .12);
}
/* Moldura de navegador */
.p-browser {
  display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px;
  background: rgba(10, 10, 18, .85); border-bottom: 1px solid var(--border-soft);
}
.p-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.p-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(160, 160, 176, .35); transition: background-color .4s; }
.p-card:hover .p-dots i:nth-child(1) { background: #F2766B; }
.p-card:hover .p-dots i:nth-child(2) { background: var(--gold); }
.p-card:hover .p-dots i:nth-child(3) { background: #4ADE80; }
.p-url {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .05);
  color: var(--muted); font-size: .72rem; letter-spacing: .02em; text-align: center;
}
/* Print: capa + segunda tela que entra no hover */
.p-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d0d16; }
.p-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: opacity .7s var(--ease-out), scale 1.2s var(--ease-out), filter .7s;
}
.p-img-alt { opacity: 0; scale: 1.06; }
.p-card:hover .p-img:not(.p-img-alt), .p-card:focus-visible .p-img:not(.p-img-alt) { opacity: 0; scale: 1.04; }
.p-card:hover .p-img-alt, .p-card:focus-visible .p-img-alt { opacity: 1; scale: 1; }
.p-shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 18, .55));
}
.p-media::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -30%; width: 34%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(245, 245, 247, .13), transparent);
  transform: skewX(-18deg) translateX(-140%); transition: transform .9s ease;
}
.p-card:hover .p-media::after { transform: skewX(-18deg) translateX(490%); }
.p-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 3; padding: 5px 10px; border-radius: 99px;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bg); background: var(--gold-light); box-shadow: 0 6px 20px rgba(10, 10, 18, .4);
}
.p-arrow {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--text);
  background: rgba(10, 10, 18, .6); border: 1px solid rgba(183, 148, 246, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .5s var(--ease-out), background-color .4s, color .4s, border-color .4s;
}
.p-card:hover .p-arrow, .p-card:focus-visible .p-arrow { transform: rotate(45deg); background-color: var(--gold-light); color: var(--bg); border-color: var(--gold-light); }
.p-info { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 6px 0; }
.p-info h3 { font-size: 1.15rem; transition: color .4s; }
.p-card:hover .p-info h3 { color: var(--gold-light); }
.p-info span { color: var(--gold); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.p-result { padding: 8px 6px 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* ============ DEPOIMENTOS ============ */
.carousel { position: relative; max-width: 780px; margin: 0 auto; min-height: 300px; }
.slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 30px;
  opacity: 0; visibility: hidden; transform: translateY(-18px);
  transition: opacity .6s ease, transform .8s var(--ease-out), visibility .8s;
  text-align: center; padding: 10px 16px;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .2s; }
.slide blockquote {
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 400; line-height: 1.5;
  color: var(--text);
}
.slide figcaption { display: flex; align-items: center; justify-content: center; gap: 15px; text-align: left; }
.slide figcaption strong { display: block; font-size: .98rem; }
.slide figcaption span:not(.avatar) { color: var(--muted); font-size: .82rem; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: #fff;
  box-shadow: 0 0 20px rgba(124, 58, 237, .4);
}
.av1 { background: linear-gradient(135deg, var(--gold), var(--violet)); }
.av2 { background: linear-gradient(135deg, var(--violet), var(--purple-deep)); }
.av3 { background: linear-gradient(135deg, var(--lilac), var(--gold)); }
.carousel-dots { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
/* alvo de toque de 44px; a barra visível é o ::before, o progresso do autoplay é o ::after */
.dot { position: relative; width: 44px; height: 44px; padding: 0; }
.dot::before, .dot::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 99px;
}
.dot::before { background: rgba(160, 160, 176, .3); transition: background .4s; }
.dot:hover::before { background: rgba(160, 160, 176, .6); }
.dot::after { background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 10px rgba(242, 226, 126, .45); }
.dot.is-active::after { transform: scaleX(1); }
.carousel.is-playing .dot.is-active::after { animation: dot-progress var(--slide-ms, 5600ms) linear both; }
.carousel.is-paused .dot.is-active::after { animation-play-state: paused; }
@keyframes dot-progress { from { transform: scaleX(0); } }

/* ============ FAQ: GARANTIAS E DÚVIDAS ============ */
#faq > :not(.section-head) { max-width: 1240px; margin-left: auto; margin-right: auto; }
.faq-label {
  font-family: var(--font-body); font-size: .78rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.guarantees + .faq-label { margin-top: 72px; }
.guarantees { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.guarantees li {
  display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; border-radius: var(--radius-card);
  background: rgba(16, 15, 26, .55); border: 1px solid var(--border-soft);
}
.guarantees svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold-light); margin-top: 1px; }
.guarantees strong { display: block; font-size: .98rem; margin-bottom: 4px; }
.guarantees span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.5; }

.faq-list { border-top: 1px solid var(--border-soft); }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0;
  font-family: var(--font-display); font-size: clamp(1.02rem, 1.6vw, 1.18rem); font-weight: 600;
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-light); }
/* sinal de + que vira − ao abrir */
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.6px; margin-top: -.8px;
  background: var(--gold-light); border-radius: 2px; transition: transform .35s var(--ease-out);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item p { color: var(--muted); padding: 0 48px 24px 0; max-width: 70ch; }

/* ============ CTA / CONTATO ============ */
#contato { padding-bottom: 140px; }
.cta-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.cta-points {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  margin-top: 26px; color: var(--muted); font-size: .9rem;
}
.cta-points li { display: inline-flex; align-items: center; gap: 8px; }
.cta-points svg { color: var(--gold-light); flex-shrink: 0; }
.glass-form {
  margin-top: 48px; padding: clamp(26px, 4vw, 48px); border-radius: 24px; text-align: left;
  background: rgba(26, 26, 36, .5);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(183, 148, 246, .18);
  box-shadow: 0 30px 80px rgba(5, 5, 12, .6);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.glass-form label { display: block; font-size: .84rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 20px; }
.glass-form label small { letter-spacing: 0; opacity: .7; }
.glass-form input, .glass-form textarea, .glass-form select {
  width: 100%; margin-top: 8px; padding: 14px 16px; border-radius: 12px;
  background: rgba(10, 10, 18, .55); border: 1px solid rgba(183, 148, 246, .2);
  color: var(--text); font: inherit; font-size: .96rem; resize: vertical;
  transition: border-color .35s, box-shadow .35s;
}
.glass-form input::placeholder, .glass-form textarea::placeholder { color: rgba(160, 160, 176, .5); }
.glass-form select {
  appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23F2E27E' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.glass-form select:invalid { color: rgba(160, 160, 176, .7); }
.glass-form option { background: var(--surface); color: var(--text); }
.glass-form [aria-invalid="true"] { border-color: #F28B82; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.glass-form input:focus, .glass-form textarea:focus, .glass-form select:focus {
  outline: none; border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(242, 226, 126, .12), 0 0 24px rgba(124, 58, 237, .25);
}
.btn-magnetic {
  position: relative; display: inline-flex; align-items: center; margin-top: 6px; min-height: 52px;
  padding: 14px 34px; border-radius: 99px;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; letter-spacing: .02em; color: var(--bg);
  background: linear-gradient(110deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 30px rgba(217, 194, 90, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: box-shadow .35s, scale .2s;
  will-change: transform; overflow: hidden; isolation: isolate;
}
.btn-magnetic:hover { box-shadow: 0 14px 40px rgba(217, 194, 90, .32), 0 0 0 4px rgba(242, 226, 126, .12); }
.btn-magnetic span { display: inline-flex; align-items: center; gap: 10px; will-change: transform; }
.btn-magnetic[aria-busy="true"] { opacity: .75; cursor: progress; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-wa {
  color: var(--muted); font-size: .92rem; text-decoration: underline; text-decoration-color: rgba(160, 160, 176, .4);
  text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s;
}
.form-wa:hover { color: #4ADE80; text-decoration-color: currentcolor; }
.form-legal { margin-top: 18px; font-size: .78rem; color: rgba(160, 160, 176, .75); }
.form-feedback { margin-top: 10px; font-size: .92rem; color: var(--gold-light); min-height: 1.4em; }
.form-feedback.is-error { color: #F28B82; }
.form-feedback a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ============ WHATSAPP FLUTUANTE ============ */
.wa-float {
  position: fixed; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2.4vw, 28px); z-index: 380;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px;
  border-radius: 99px; color: #fff; background: #1FA855;
  box-shadow: 0 10px 30px rgba(10, 60, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  opacity: 0; translate: 0 24px; pointer-events: none; visibility: hidden;
  transition: opacity .5s var(--ease-out), translate .5s var(--ease-out), box-shadow .3s, background-color .3s, visibility 0s linear .5s;
}
.wa-float.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.wa-float:hover { background: #179447; box-shadow: 0 14px 36px rgba(10, 60, 30, .55), 0 0 0 5px rgba(31, 168, 85, .18); }
.wa-float:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(31, 168, 85, .5); animation: wa-pulse 2.8s var(--ease-out) infinite;
}
.wa-float-label {
  max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  transition: max-width .45s var(--ease-out), margin .45s var(--ease-out);
}
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 140px; margin-right: 6px; }

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 168, 85, .5); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(31, 168, 85, 0); }
}

/* ============ FOOTER ============ */
#footer {
  position: relative; z-index: 5; overflow: hidden;
  border-top: 1px solid rgba(183, 148, 246, .14);
  background: linear-gradient(180deg, rgba(16, 14, 28, .4), rgba(8, 8, 16, .92));
}
#constellation { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-inner {
  position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
  max-width: 1240px; margin: 0 auto; padding: 74px clamp(20px, 6vw, 90px) 50px;
}
.footer-logo { height: 56px; width: auto; aspect-ratio: 418 / 620; margin-bottom: 14px; filter: drop-shadow(0 0 12px rgba(183, 148, 246, .5)); }
.footer-brand strong { font-family: var(--font-display); letter-spacing: .3em; display: block; margin-bottom: 10px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 260px; }
.footer-col h4 { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 11px; transition: color .3s, transform .3s; }
.footer-col a:hover { color: var(--gold-light); transform: translateX(4px); }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(160, 160, 176, .25); color: var(--muted);
  transition: color .3s, border-color .3s, box-shadow .3s, transform .3s;
}
.socials a:hover { color: var(--gold-light); border-color: rgba(242, 226, 126, .6); box-shadow: 0 0 16px rgba(124, 58, 237, .4); transform: translateY(-3px) translateX(0); }
.footer-mark {
  position: relative; text-align: center; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 700; line-height: .8; letter-spacing: -.04em;
  font-size: clamp(4.5rem, 21vw, 19rem); margin-top: -10px; padding-bottom: .06em;
  background: linear-gradient(180deg, rgba(183, 148, 246, .22), rgba(217, 194, 90, .06) 70%, transparent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom {
  position: relative; text-align: center; padding: 22px; font-size: .8rem; color: rgba(160, 160, 176, .6);
  border-top: 1px solid rgba(183, 148, 246, .08);
}

/* ============ TRANSIÇÕES ENTRE SEÇÕES ============ */
/* Luz ambiente: dois brilhos fixos que trocam de cor/posição conforme a
   seção ativa (html[data-section], definido via IntersectionObserver).
   Só transform/opacity → composição na GPU, sem repaint no scroll. */
#ambient { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.amb {
  position: absolute; top: 50%; left: 50%; width: 90vmax; height: 90vmax; margin: -45vmax 0 0 -45vmax;
  border-radius: 50%; opacity: 0;
  transition: transform 1.8s var(--ease-in-out), opacity 1.4s ease;
}
.amb-a { background: radial-gradient(closest-side, rgba(124, 58, 237, .2), rgba(91, 33, 182, .08) 55%, transparent); }
.amb-b { background: radial-gradient(closest-side, rgba(217, 194, 90, .12), rgba(242, 226, 126, .04) 55%, transparent); }
html[data-section="servicos"] .amb-a { opacity: 1; transform: translate(-38vw, -30vh) scale(.9); }
html[data-section="servicos"] .amb-b { opacity: .7; transform: translate(40vw, 36vh) scale(.7); }
html[data-section="processo"] .amb-a { opacity: .8; transform: translate(34vw, -26vh) scale(.8); }
html[data-section="processo"] .amb-b { opacity: 1; transform: translate(-30vw, 30vh) scale(1); }
html[data-section="portfolio"] .amb-a { opacity: 1; transform: translate(0, -42vh) scale(1.1); }
html[data-section="portfolio"] .amb-b { opacity: .5; transform: translate(-42vw, 40vh) scale(.7); }
html[data-section="depoimentos"] .amb-a { opacity: 1; transform: translate(36vw, 20vh) scale(1); }
html[data-section="depoimentos"] .amb-b { opacity: .45; transform: translate(-36vw, -30vh) scale(.7); }
html[data-section="faq"] .amb-a { opacity: .85; transform: translate(-36vw, -24vh) scale(.9); }
html[data-section="faq"] .amb-b { opacity: .6; transform: translate(38vw, 28vh) scale(.8); }
html[data-section="contato"] .amb-a { opacity: 1; transform: translate(-30vw, 34vh) scale(1.05); }
html[data-section="contato"] .amb-b { opacity: .9; transform: translate(34vw, -20vh) scale(.9); }

/* Trilho de seções (desktop): ponto ativo se alonga, rótulo aparece no hover/foco */
.section-rail {
  position: fixed; right: clamp(12px, 1.6vw, 26px); top: 50%; z-index: 350;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .6s;
}
html[data-section]:not([data-section="hero"]) .section-rail { opacity: 1; pointer-events: auto; }
.section-rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 28px; height: 26px; }
.section-rail a::before {
  content: ""; width: 6px; height: 6px; border-radius: 99px; background: rgba(160, 160, 176, .45);
  transform-origin: 50% 50%; transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s;
}
.section-rail a[aria-current="true"]::before { background: var(--gold-light); transform: scaleY(3.2); box-shadow: 0 0 10px rgba(242, 226, 126, .6); }
.section-rail a:hover::before { background: var(--text); }
.section-rail a::after {
  content: attr(data-label); position: absolute; right: 22px; white-space: nowrap;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
  padding: 4px 10px; border-radius: var(--radius-sm); background: rgba(10, 10, 18, .82); border: 1px solid var(--border-soft);
  opacity: 0; translate: 6px 0; transition: opacity .3s, translate .4s var(--ease-out); pointer-events: none;
}
.section-rail a:hover::after, .section-rail a:focus-visible::after { opacity: 1; translate: none; }

/* Reveal on scroll (IntersectionObserver adiciona .is-in).
   Usa as propriedades individuais `translate`/`opacity` via animation, para não
   conflitar com os `transform` que o GSAP aplica (tilt, parallax). A classe
   .js-rv só existe com JS ativo e sem prefers-reduced-motion. */
.js-rv [data-reveal]:not(.is-in), .js-rv [data-stagger] > :not(.is-in) { opacity: 0; }
.js-rv .is-in { animation: rv-up var(--dur-reveal) var(--ease-out) var(--rv-d, 0s) both; }
@keyframes rv-up { from { opacity: 0; translate: 0 var(--reveal-y); } }
/* eyebrow: os traços laterais "desenham" depois do texto */
.js-rv .eyebrow.is-in::before, .js-rv .eyebrow.is-in::after { animation: line-draw .9s var(--ease-out) .25s both; }
@keyframes line-draw { from { transform: scaleX(0); } }

/* Divisor entre seções: traço que se desenha a partir do centro + pulso de luz */
.section-divider::after {
  content: ""; position: absolute; top: 0; left: 0; width: 18%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0; transform: translateX(-100%);
}
.js-rv .section-divider:not(.is-in) { transform: scaleX(0); }
.js-rv .section-divider.is-in { animation: line-draw 1.4s var(--ease-in-out) both; }
.js-rv .section-divider.is-in::after { animation: divider-pulse 2.2s var(--ease-in-out) .6s both; }
@keyframes divider-pulse { 0% { opacity: 0; transform: translateX(-100%); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(560%); } }

/* Footer: marca d'agua sobe por máscara (clip-path) */
.js-rv .footer-mark { clip-path: inset(100% 0 0 0); translate: 0 30px; transition: clip-path 1.4s var(--ease-in-out), translate 1.4s var(--ease-out); }
.js-rv .footer-mark.is-in { clip-path: inset(0 0 0 0); translate: none; }

/* ============ RESPONSIVO ============ */
@media (max-width: 1199px) {
  .section-rail { display: none; }
}
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card-lg { grid-column: auto; }
  .card:last-child { grid-column: 1 / -1; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .p-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 15px); justify-self: center; }
  .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  #menu-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .step:nth-child(odd), .step:nth-child(even) { transform: none; }
  .carousel { min-height: 360px; }
  .amb { width: 130vw; height: 130vw; margin: -65vw 0 0 -65vw; }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .guarantees { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  #hero { padding-top: 96px; padding-bottom: 96px; }
  .hero-sub { font-size: .98rem; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-left: auto; margin-right: auto; }
  .hero-kicker { font-size: .66rem; letter-spacing: .08em; padding: 6px 12px; }
  .scroll-indicator { display: none; }
  .cta-points { flex-direction: column; align-items: center; }
  .cta-points li { text-align: left; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .p-card:last-child { max-width: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { height: 88px; }
}
@media (max-height: 760px) {
  .scroll-indicator { display: none; }
  #hero { padding-bottom: 60px; }
}

/* ============ MOVIMENTO REDUZIDO ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .shimmer { animation: none; }
  .amb { transition: none; }
  .section-rail a::before { transition: none; }
  .wa-float::before { animation: none; }
  .p-img, .p-media { transition: opacity .3s; }
  .scroll-indicator { display: none; }
}
