/* =========================================================
   Flávio Rodrigues · tokens
   ========================================================= */
:root {
  /* escuro */
  --bg: #000000;
  --surface: #0E0B16;
  --border: #221C33;
  --text: #FFFFFF;
  --muted: #A39FB3;

  /* claro (dobras brancas) */
  --bg-light: #FFFFFF;
  --surface-light: #F4F2FA;
  --border-light: #E4E0EF;
  --text-dark: #0D0A17;
  --muted-dark: #5E5A6E;

  /* roxo */
  --accent: #5B2BD9;
  --accent-hover: #4A1FC2;
  --accent-light: #7C6CFF;
  --accent-glow: rgba(91, 43, 217, .35);

  /* tipografia */
  --font-display: "Schibsted Grotesk", "General Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* sistema */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-btn: 999px;
  --r-card: 20px;
  --r-big: 24px;
  --container: 1200px;
  --gutter: 20px;
  --section-y: 68px;
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --section-y: 120px; }
}

/* tema claro: as áreas escuras viram claras; as dobras brancas continuam brancas */
:root { color-scheme: dark; }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F5FB;
  --surface: #FFFFFF;
  --border: #E4E0EF;
  --text: #0D0A17;
  --muted: #5E5A6E;
  --accent-light: #6B4DE6;
  --accent-glow: rgba(91, 43, 217, .16);
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 17px; } }

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

body.is-loading { overflow: hidden; }

/* grão de filme */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========================================================
   Tipografia
   ========================================================= */
.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.1;  letter-spacing: -0.03em; }
.h3 { font-size: 24px;                    line-height: 1.08; letter-spacing: -0.03em; }

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

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent-light);
}
.light .label { color: var(--accent); }

/* bolinha "disponível" */
.dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: dotPulse 2s ease-in-out infinite;
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-light);
  animation: dotHalo 2s ease-out infinite;
}
@keyframes dotPulse { 50% { transform: scale(.82); opacity: .35; } }
@keyframes dotHalo  { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }

/* =========================================================
   Botões
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease), box-shadow .3s var(--ease), color .2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding-right: 8px;
  padding-left: 24px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 8px 30px -10px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 14px 40px -12px rgba(124,108,255,.55);
}
.btn-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.btn-ico svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-ico svg { transition: transform .3s var(--ease); }
.btn-primary:hover .btn-ico svg { transform: translateX(3px); }

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding-block: 21px; /* mesma altura do primário (30px ícone + 8+8) */
}
.btn-secondary:hover {
  border-color: rgba(124,108,255,.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -14px var(--accent-glow);
}

.btn-sm { padding: 7px 7px 7px 16px; font-size: 14px; gap: 10px; }
.btn-sm .btn-ico { width: 28px; height: 28px; }

/* botões de CTA: vidro + bloco roxo que se expande no hover */
.btn-cta {
  --cta-ease: cubic-bezier(.65, 0, .25, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 80px 0 20px;
  border-radius: 17px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  white-space: nowrap;
  transition: border-color .45s;
}
@media (min-width: 700px) {
  .btn-cta { height: 56px; padding: 0 88px 0 26px; }
}
.btn-cta-fill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: 5px;
  z-index: -1;
  width: 66px;
  border-radius: 13px;
  background: linear-gradient(110deg, #4A1FC2 0%, #5B2BD9 50%, #7C6CFF 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: width .65s var(--cta-ease);
}
.btn-cta-label {
  position: relative;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #D4D4DC;
  transition: color .45s;
}
.btn-cta-arrow {
  position: absolute;
  top: 50%;
  right: 30px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: right .65s var(--cta-ease);
}
.btn-cta:hover .btn-cta-fill, .btn-cta:focus-visible .btn-cta-fill { width: calc(100% - 10px); }
.btn-cta:hover .btn-cta-label, .btn-cta:focus-visible .btn-cta-label { color: #fff; }
.btn-cta:hover .btn-cta-arrow, .btn-cta:focus-visible .btn-cta-arrow { right: 20px; }
.btn-cta:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

/* secundário: mesmo vidro, sem o bloco roxo */
.btn-cta.is-ghost { padding: 0 20px; }
@media (min-width: 700px) { .btn-cta.is-ghost { padding: 0 26px; } }
.btn-cta.is-ghost:hover { border-color: rgba(255, 255, 255, .28); }
.btn-cta.is-ghost:hover .btn-cta-label { color: #fff; }

/* nas dobras brancas o vidro fica escuro para manter o contraste */
.light .btn-cta, [data-theme="light"] .btn-cta {
  background: linear-gradient(rgba(13, 10, 23, .06), rgba(13, 10, 23, .02));
  border-color: rgba(13, 10, 23, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.light .btn-cta-label, [data-theme="light"] .btn-cta-label { color: var(--text-dark); }
.light .btn-cta:not(.is-ghost):hover .btn-cta-label, [data-theme="light"] .btn-cta:not(.is-ghost):hover .btn-cta-label { color: #fff; }
[data-theme="light"] .btn-cta.is-ghost:hover, .light .btn-cta.is-ghost:hover { border-color: rgba(13, 10, 23, .3); }


/* =========================================================
   Header (menu de pontinhos + tema + orçamento)
   ========================================================= */
.topnav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 14px 0;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.topnav.is-scrolled, .topnav.is-open {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
/* idioma à esquerda, menu no centro, tema à direita */
.topnav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.topnav-r { display: flex; justify-content: flex-end; }

/* chave de idioma: EUA | Brasil; o marcador fica sobre o idioma ativo */
.langsw {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 80px;
  height: 40px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .3s var(--ease);
}
.langsw:hover { border-color: var(--accent-light); }
.langsw-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: rgba(124, 108, 255, .2);
  border: 1px solid var(--accent-light);
  box-shadow: 0 0 14px -4px var(--accent-glow);
  transform: translateX(100%);              /* ligado = Brasil (direita) */
  transition: transform .5s var(--ease);
}
html[lang="en"] .langsw-thumb { transform: translateX(0); }
.langsw-opt {
  position: relative;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.langsw .is-pt, html[lang="en"] .langsw .is-en { color: var(--text); }
html[lang="en"] .langsw .is-pt { color: var(--muted); }
.topnav-l { display: flex; align-items: center; gap: 14px; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

/* gatilho do menu: 4 pontinhos + "Menu" */
.mtrig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.mtrig:hover, .mtrig[aria-expanded="true"] { color: var(--text); }
.mtrig-bars { display: grid; gap: 4px; width: 18px; }
.mtrig-bars i {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform .45s var(--ease), opacity .3s var(--ease), width .35s var(--ease);
}
.mtrig-bars i:nth-child(2) { width: 70%; }
.mtrig:hover .mtrig-bars i:nth-child(2) { width: 100%; }
.mtrig[aria-expanded="true"] .mtrig-bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mtrig[aria-expanded="true"] .mtrig-bars i:nth-child(2) { opacity: 0; }
.mtrig[aria-expanded="true"] .mtrig-bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mtrig[aria-expanded="true"] .mtrig-bars i { background: var(--accent-light); }

/* botão de tema */
.themebtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.themebtn:hover { border-color: var(--accent-light); }
.themebtn:active { transform: scale(.94); }
.themebtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.themebtn .i-moon { fill: currentColor; stroke: none; display: none; }
[data-theme="light"] .themebtn .i-sun { display: none; }
[data-theme="light"] .themebtn .i-moon { display: block; }

/* painel do menu */
.mpanel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; }
.mpanel[hidden] { display: none; }
.mp {
  width: min(420px, 100%);
  margin-inline: auto;
  padding: 8px 28px;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  animation: mpIn .45s var(--ease);
}
@keyframes mpIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.mp-links { display: flex; flex-direction: column; }
.mp-links a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  line-height: 1.1;
  color: var(--muted);
  transition: color .2s, transform .4s var(--ease);
  animation: mpLink .45s var(--ease) both;
}
.mp-links a + a { border-top: 1px solid var(--border); }
@media (min-width: 900px) { .mp-links a { font-size: 15px; } }
.mp-links a::after {
  content: "→";
  margin-left: auto;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.mp-links a:hover::after { opacity: 1; transform: none; }
.mp-links a:nth-child(1) { animation-delay: 30ms; }
.mp-links a:nth-child(2) { animation-delay: 60ms; }
.mp-links a:nth-child(3) { animation-delay: 90ms; }
.mp-links a:nth-child(4) { animation-delay: 120ms; }
.mp-links a:nth-child(5) { animation-delay: 150ms; }
.mp-links a:hover { color: var(--text); }
@keyframes mpLink { from { opacity: 0; transform: translateY(6px); } }

/* =========================================================
   Hero (ondas que reagem ao mouse + etiquetas flutuantes)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 120px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* brilho roxo atrás do título */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(38% 32% at 50% 36%, rgba(124, 108, 255, .26), transparent 70%);
}
.waves-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }


/* etiquetas */
.hero-badges { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: none; }
@media (min-width: 1100px) { .hero-badges { display: block; } }
.hbadge {
  --px: 0px;
  --py: 0px;
  position: absolute;
  left: 50%;
  top: 46%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transform: translate(calc(-50% + var(--x) + var(--px)), calc(-50% + var(--y) + var(--py)));
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
  animation: badgeIn .9s var(--ease) both, badgeBob 6s ease-in-out infinite;
}
.hbadge:nth-child(2) { animation-delay: .15s, -1.5s; }
.hbadge:nth-child(3) { animation-delay: .3s, -3s; }
.hbadge:nth-child(4) { animation-delay: .45s, -4.5s; }
.hbadge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 10px var(--accent-light); }
@keyframes badgeIn { from { opacity: 0; } }
@keyframes badgeBob { 50% { translate: 0 -8px; } }

.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-content .h1 { max-width: 900px; margin-top: 26px; font-size: clamp(40px, 6.4vw, 84px); }

/* palavra em serifa itálica, com degradê roxo */
.serif {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
}
/* destaques em serifa: o roxo mais claro acende só onde o mouse passa.
   Duas camadas recortadas no texto: o brilho (segue o cursor) por cima da cor base. */
@property --lit { syntax: "<length>"; inherits: false; initial-value: 0px; }
.serif {
  --hl-base: linear-gradient(var(--text), var(--text));
  --hl-hover: #A99CFF;
  padding-right: .06em;
  color: transparent;
  background-image:
    radial-gradient(circle var(--lit) at var(--mx, 50%) var(--my, 50%), var(--hl-hover) 0%, var(--hl-hover) 35%, transparent 100%),
    var(--hl-base);
  background-size: 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: --lit .45s var(--ease);
}
.serif.is-lit { --lit: 1.1em; }

.hero .h1 .serif { font-size: 1.06em; }
.hero-sub .serif { font-size: 1.18em; }

/* "3 segundos": base em degradê animado */
.grad {
  --hl-base: linear-gradient(100deg, #C4B5FD 0%, #7C6CFF 45%, #A78BFA 100%);
  --hl-hover: #B4A8FF;
  background-size: 100% 100%, 200% 100%;
  animation: hlSweep 5s ease-in-out infinite alternate;
}
[data-theme="light"] .grad { --hl-base: linear-gradient(100deg, #5B2BD9 0%, #7C3AED 50%, #4A1FC2 100%); --hl-hover: #8E7BF6; }
@keyframes hlSweep { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, 100% 0; } }

/* palavras em destaque nos títulos das seções */
.hl-word { --hl-base: linear-gradient(var(--accent-light), var(--accent-light)); font-size: 1.1em; }
.light .hl-word { --hl-base: linear-gradient(var(--accent), var(--accent)); --hl-hover: #8E7BF6; }
[data-theme="light"] .serif:not(.grad) { --hl-hover: #8E7BF6; }

.hero-sub { max-width: 520px; margin-top: 24px; font-size: 15px; }
@media (min-width: 900px) { .hero-sub { font-size: 16px; } }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

/* role para ver */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  translate: -50% 0;
}
.scroll-hint .label { color: var(--muted); animation: hintBlink 2.2s ease-in-out infinite; }
.scroll-line { position: relative; width: 1px; height: 46px; }
.scroll-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--accent-light), transparent);
  transform-origin: top;
  animation: lineGrow 2.2s var(--ease) infinite;
}
.scroll-line i {
  position: absolute;
  left: -2px;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: lineDot 2.2s var(--ease) infinite;
}
@keyframes lineGrow { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes lineDot  { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }
@keyframes hintBlink { 50% { opacity: .55; } }

@media (max-height: 700px) { .scroll-hint { display: none; } }

/* =========================================================
   Seções (base)
   ========================================================= */
.section { position: relative; padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--border); }

.light { background: var(--bg-light); color: var(--text-dark); }

/* fundo preto vivo: camada fixa atrás de tudo; as dobras brancas cobrem por cima */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
/* as manchas se movem com transform (composição na GPU, sem repintar a tela) */
.fx-ambient, .section-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 45% at 30% 35%, rgba(91, 43, 217, .4), transparent 70%),
    radial-gradient(35% 40% at 75% 70%, rgba(124, 108, 255, .24), transparent 70%),
    radial-gradient(30% 35% at 60% 20%, rgba(74, 31, 194, .32), transparent 70%);
}
.fx-ambient {
  inset: -20%;
  will-change: transform;
  animation: darkFlow 8s ease-in-out infinite alternate;
}
/* o CTA final tem fundo opaco (cobre a pilha), então leva a própria camada */
.section-cover { isolation: isolate; }
.section-cover::before { position: absolute; border-radius: inherit; }
@keyframes darkFlow {
  0%   { transform: translate3d(-10%, -5%, 0) rotate(0deg); }
  50%  { transform: translate3d(8%, 6%, 0) rotate(10deg); }
  100% { transform: translate3d(-5%, 10%, 0) rotate(-8deg); }
}
.light p { color: var(--muted-dark); }
.section.light + .section.light { border-top-color: var(--border-light); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.section-head .h2 { max-width: 760px; }
.section-head p { max-width: 520px; }

/* =========================================================
   2. Quem confiou
   ========================================================= */
.proof-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 56px;
}

.avatars-wrap { position: relative; padding-block: 12px; }
.avatars-glow {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 20%;
  bottom: 0;
  border-radius: 50%;
  background: rgba(124, 108, 255, .35);
  filter: blur(48px);
  animation: profileGlow 8s ease-in-out infinite alternate;
}
@keyframes profileGlow {
  from { transform: translateX(-12%) scale(1); }
  to   { transform: translateX(12%) scale(1.12); }
}

.avatars {
  position: relative;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.avatars li + li { margin-left: -12px; }

.avatar {
  --size: 56px;
  position: relative;
  display: grid;
  place-items: end center;
  width: var(--size);
  height: var(--size);
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--bg-light);
  background: var(--surface-light);
  transition: transform .45s var(--ease), border-color .3s var(--ease),
              filter .4s var(--ease), opacity .4s var(--ease), box-shadow .4s var(--ease);
}
.avatar svg { width: 72%; height: 72%; fill: rgba(255,255,255,.75); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.avatars li:hover, .avatars li:focus-within { position: relative; z-index: 2; }
.avatar:hover, .avatar:focus-visible {
  transform: translateY(-6px) scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 12px 28px -10px rgba(91, 43, 217, .55);
  outline: none;
}
.avatars:hover .avatar:not(:hover),
.avatars:focus-within .avatar:not(:focus-visible):not(:hover) {
  filter: grayscale(1);
  opacity: .5;
}

@media (min-width: 600px) {
  .avatar { --size: 80px; }
  .avatars li + li { margin-left: -18px; }
}

.proof-caption {
  display: grid;
  place-items: center;
  min-height: 56px;
  margin-top: 28px;
  text-align: center;
}
.proof-caption > p { grid-area: 1 / 1; }
.proof-default { font-size: 15px; }
.proof-default strong, .tip-name {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}
.proof-default strong { font-size: 20px; margin-right: 4px; }
.proof-tip .tip-project { display: flex; justify-content: center; margin-top: 10px; }

.proof-tip { animation: tipIn .4s var(--ease); }
.proof-default.is-back { animation: tipIn .4s var(--ease); }
@keyframes tipIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* =========================================================
   3. Serviços
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}
@media (min-width: 700px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card, .card[data-reveal] {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  overflow: hidden;
  isolation: isolate;
  transition: opacity .9s var(--ease), transform .9s var(--ease),
              border-color .4s var(--ease), box-shadow .4s var(--ease);
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms;
}
/* roxo escuro e translúcido que acende onde o mouse está (não atrapalha a leitura) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(91, 43, 217, .12), rgba(91, 43, 217, .04) 45%, transparent 75%);
  opacity: var(--go, 0);
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 40px -24px rgba(91, 43, 217, .45);
}
.card:hover::before { background-position: 0% 0; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.card-num { font-size: 14px; }
.card .h3 { color: var(--text-dark); }
.card > p { margin-top: 12px; font-size: 15px; line-height: 1.6; max-width: 34ch; text-wrap: pretty; }

/* ícone em quadradinho */
.ico-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-light);
  color: var(--accent);
  transition: border-color .4s var(--ease);
}
.card:hover .ico-box {
  border-color: rgba(91, 43, 217, .4);
  animation: iconFloat 2.4s ease-in-out infinite;
}
@keyframes iconFloat { 50% { transform: translateY(-10px); } }

.ico-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ícone "se desenhando" em loop lento, depois o preenchimento aparece */
.draw > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill: rgba(91, 43, 217, 0);
  animation: iconDraw 4s var(--ease) infinite;
}
.card:nth-child(2) .draw > * { animation-delay: .3s; }
.card:nth-child(3) .draw > * { animation-delay: .6s; }
.card:nth-child(4) .draw > * { animation-delay: .9s; }
.card:nth-child(5) .draw > * { animation-delay: 1.2s; }
.card:nth-child(6) .draw > * { animation-delay: 1.5s; }
@keyframes iconDraw {
  0%   { stroke-dashoffset: 1; fill: rgba(91, 43, 217, 0); opacity: 1; }
  40%  { stroke-dashoffset: 0; fill: rgba(91, 43, 217, 0); }
  60%  { stroke-dashoffset: 0; fill: rgba(91, 43, 217, .12); opacity: 1; }
  88%  { stroke-dashoffset: 0; fill: rgba(91, 43, 217, .12); opacity: 1; }
  100% { stroke-dashoffset: 0; fill: rgba(91, 43, 217, .12); opacity: 0; }
}

.checks {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border-light);
  display: grid;
  gap: 10px;
}
.checks li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-dark);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section-cta { display: flex; justify-content: center; margin-top: 56px; }

/* =========================================================
   4. Portfólio
   ========================================================= */
/* cards entram pela direita e se empilham conforme a rolagem */
.works { overflow-x: clip; }
.work-track {
  position: relative;
  margin-top: 56px;
}
/* espaço de rolagem para cada card entrar (o sticky não usa o padding) */
.work-track::after {
  content: "";
  display: block;
  height: calc((var(--works-n, 3) - 1) * 70vh);
}
.work-pin {
  position: sticky;
  top: 96px;
  display: grid;
  width: min(100%, calc((100svh - 150px) * 16 / 9));
  margin-inline: auto;
}
/* no celular o card (4:3) fica centralizado na tela */
@media (max-width: 699px) { .work-pin { top: max(96px, calc(50svh - (100vw - 2 * var(--gutter)) * .375)); } }
@media (min-width: 900px) { .work-pin { top: 112px; } }
.work {
  grid-area: 1 / 1;
  display: block;
  transform-origin: 0% 50%;
  will-change: transform;
}
.work + .work { transform: translateX(110%); }

.work-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 700px) { .work-media { aspect-ratio: 16 / 9; } }
.work-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 50% 110%, var(--accent-glow), transparent 70%),
    linear-gradient(to right, rgba(124,108,255,.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, rgba(124,108,255,.07) 1px, transparent 1px) 0 0 / 48px 48px;
}
.work-stage {
  position: absolute;
  inset: 0;
  transition: transform .6s var(--ease);
}
.work:hover .work-stage { transform: scale(1.03); }
.work:hover .work-media { border-color: rgba(124,108,255,.45); }
.work-media { box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .9); }
.work-media { transition: border-color .4s var(--ease); }

/* mockups */
.mock-desktop, .mock-phone {
  container-type: inline-size;
  position: absolute;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03);
  animation: npFloat 6s ease-in-out infinite;
}
.mock-desktop {
  left: 7%;
  top: 11%;
  width: 74%;
  aspect-ratio: 16 / 10.4;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
.mock-phone {
  right: 7%;
  bottom: -6%;
  width: 22%;
  aspect-ratio: 9 / 18.5;
  border-radius: 18px;
  border: 4px solid #17121f;
  animation-delay: -3s;
}
@media (min-width: 700px) {
  .mock-desktop { left: 9%; top: 12%; width: 66%; }
  .mock-phone { right: 9%; bottom: -8%; width: 17%; border-radius: 22px; border-width: 5px; }
}
@keyframes npFloat { 50% { transform: translateY(-10px); } }

.chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: #0b0812;
  border-bottom: 1px solid var(--border);
}
.chrome i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.chrome span { flex: 0 1 30%; height: 8px; margin-left: 10px; border-radius: 4px; background: var(--border); }

/* prints dos projetos dentro dos mockups (alinhados pelo topo da página) */
.shot {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  background: #07050c;
}
.mock-desktop .shot { flex: 1; min-height: 0; }
.mock-phone .shot { height: 100%; }

/* =========================================================
   5. Processo
   ========================================================= */
/* cards que se empilham (sticky) conforme a rolagem */
.steps {
  --stick: 96px;
  list-style: none;
  margin: 56px auto 0;
  padding: 0;
  max-width: 960px;
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) { .steps { --stick: 112px; } }

.step, .step[data-reveal] {
  position: sticky;
  top: calc(var(--stick) + var(--i, 0) * 14px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "num  ico"
    "tit  tit"
    "txt  txt";
  gap: 12px 24px;
  align-items: start;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  /* vidro: translúcido, com blur forte para o card de trás não atrapalhar a leitura */
  background: linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), rgba(23, 23, 31, .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 -18px 40px -16px rgba(0, 0, 0, .6);
  transform-origin: 50% 0;
  transition: opacity .9s var(--ease), transform .9s var(--ease),
              border-color .5s cubic-bezier(.16, 1, .3, 1), box-shadow .6s cubic-bezier(.16, 1, .3, 1);
}

/* spotlight roxo que segue o mouse (desligado em telas touch) */
.step { overflow: hidden; isolation: isolate; }
/* borda em degradê roxo + brilho em volta no hover */
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #7C6CFF 0%, rgba(91, 43, 217, .35) 35%, rgba(124, 108, 255, .08) 60%, #5B2BD9 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: var(--go, 0);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.step:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 48px -12px rgba(124, 108, 255, .45);
}
.step-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(124, 108, 255, .18) 0%,
    rgba(91, 43, 217, .08) 35%,
    rgba(91, 43, 217, 0) 70%);
  opacity: var(--go, 0);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1);
}

.step-num { grid-area: num; }
.step .h3 { grid-area: tit; }
.step-num { padding-top: 4px; font-size: 15px; }
.step p { grid-area: txt; font-size: 15px; max-width: 62ch; }
.step .ico-box { grid-area: ico; }

@media (min-width: 900px) {
  .step, .step[data-reveal] {
    grid-template-columns: 80px 1fr auto;
    grid-template-areas:
      "num tit ico"
      "num txt ico";
    gap: 14px 24px;
    padding: 32px 28px;
  }
}

/* quadradinho no card escuro */
.process .ico-box {
  border-color: var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
.step:hover .ico-box, .step.is-touch .ico-box {
  border-color: var(--accent-light);
  color: var(--accent-light);
  box-shadow: 0 0 24px -4px var(--accent-glow);
  transform: rotate(-8deg);
}

/* Processo → CTA final: a pilha fica presa enquanto a seção seguinte sobe por cima */
.process { padding-bottom: 0; }
.steps { padding-bottom: 50vh; }


/* =========================================================
   6. Perguntas frequentes: título à esquerda, lista com linhas à direita
   ========================================================= */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
}
.faq-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
@media (min-width: 900px) { .faq-head { position: sticky; top: 120px; } }
.faq-label { width: 100%; }
.faq-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.faq-head .h2 { max-width: 100%; }

.faq-list { display: grid; border-top: 1px solid var(--border); }
.faq-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.faq-item .step-glow { opacity: calc(var(--go, 0) * .8); }
.faq-q { margin: 0; }
.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  transition: color .3s var(--ease);
}
@media (min-width: 900px) { .faq-btn { font-size: 17px; padding: 26px 8px; } }
.faq-btn:hover { color: var(--accent-light); }
.faq-btn:focus-visible { outline: 2px solid var(--accent-light); outline-offset: -2px; }
.faq-ico { display: grid; place-items: center; flex: none; width: 24px; height: 24px; color: var(--accent-light); }
.faq-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.faq-item.is-open .faq-ico svg { transform: rotate(45deg); }

/* abertura suave de altura (grid 0fr → 1fr) */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.16, 1, .3, 1);
}
.faq-a > div { overflow: hidden; }
.faq-a p {
  max-width: 60ch;
  padding: 0 48px 26px 4px;
  font-size: 15px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .4s var(--ease), transform .5s cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 900px) { .faq-a p { padding: 0 56px 30px 8px; font-size: 16px; } }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; }

.faq-more .cta-link { display: inline; font-size: 15px; }
.faq-more .cta-link svg { display: inline-block; margin-left: 6px; vertical-align: -3px; }

/* texto de apoio do CTA final */
.cta-sub { margin-top: 18px; max-width: 520px; }

/* =========================================================
   Seção que sobe por cima da pilha do Processo (hoje: perguntas frequentes)
   ========================================================= */
.section.section-cover {
  position: relative;
  z-index: 3;
  margin-top: calc(-50vh + var(--section-y));
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-radius: var(--r-big) var(--r-big) 0 0;
  box-shadow: 0 -40px 80px -20px rgba(0, 0, 0, .9);
}
@media (min-width: 900px) {
  .section.section-cover { border-radius: 32px 32px 0 0; }
}

.cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  isolation: isolate;
}
.cta-bg { display: none; } /* sem caixa: o fundo da seção já é o do site */
.cta-card .label { white-space: nowrap; }
@media (max-width: 420px) { .cta-card .label { letter-spacing: .1em; } }
@media (min-width: 900px) { .cta-card { padding: 40px 0; } }

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 45% at 85% 0%, var(--accent-glow), transparent 70%),
    linear-gradient(to right, rgba(124,108,255,.06) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, rgba(124,108,255,.06) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 55%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 55%);
}

/* chamada em cima; e-mail à esquerda e botões à direita embaixo */
.cta-main { display: flex; flex-direction: column; align-items: flex-start; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  margin-top: 28px;
}

.cta-title {
  margin: 24px 0 0;
  max-width: 760px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

.btn-lg { padding: 10px 10px 10px 26px; font-size: 16px; gap: 16px; }
.btn-lg .btn-ico { width: 38px; height: 38px; }
.btn-secondary.btn-lg { padding: 0 26px; height: 60px; }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color .2s;
}
.cta-email { font-size: clamp(16px, 1.6vw, 20px); }
.cta-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease);
}
.cta-link:hover { color: var(--accent-light); }
.cta-link:hover svg { transform: translate(2px, -2px); }

/* =========================================================
   8. Rodapé (solto, com as ondas da hero ao fundo)
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 3;
  padding: 72px 0 96px; /* espaço para os flutuantes no celular */
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
@media (min-width: 900px) { .site-footer { padding: 96px 0 40px; } }
.footer-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
}
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
}

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-col .label { margin-bottom: 6px; }
.footer-col a { font-size: 15px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 13px; text-align: center; }

/* espaço para os flutuantes no fim da página */
.section.cta-final { padding-bottom: 88px; }
@media (min-width: 900px) { .section.cta-final { padding-bottom: 40px; } }

/* =========================================================
   Modal de orçamento
   ========================================================= */
.quote {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.quote::backdrop {
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.quote[open] { animation: quoteIn .5s var(--ease); }
.quote[open]::backdrop { animation: fadeIn .4s var(--ease); }
.quote.is-closing { animation: quoteOut .25s ease-in forwards; }
.quote.is-closing::backdrop { animation: fadeOut .25s ease-in forwards; }
@keyframes quoteIn  { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes quoteOut { to   { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fadeIn   { from { opacity: 0; } }
@keyframes fadeOut  { to   { opacity: 0; } }

.quote-card {
  position: relative;
  padding: 36px 24px 24px;
  border-radius: var(--r-big);
  border: 1px solid var(--border);
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(91, 43, 217, .28), transparent 70%),
    var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  overflow-y: auto;
  max-height: calc(100svh - 32px);
}
@media (min-width: 600px) { .quote-card { padding: 44px 36px 32px; } }

.quote-title { margin-top: 16px; }
.quote-sub { margin-top: 10px; font-size: 15px; max-width: 40ch; }

.quote-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  transition: border-color .3s var(--ease), color .2s, transform .4s var(--ease);
}
.quote-close:hover { border-color: var(--accent-light); color: var(--accent-light); transform: rotate(90deg); }
.quote-close svg, .quote-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quote-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.quote-list li {
  opacity: 0;
  animation: optIn .5s var(--ease) forwards;
  animation-delay: calc(var(--n, 0) * 60ms + 120ms);
}
.quote-list li:nth-child(1) { --n: 0; }
.quote-list li:nth-child(2) { --n: 1; }
.quote-list li:nth-child(3) { --n: 2; }
.quote-list li:nth-child(4) { --n: 3; }
.quote-list li:nth-child(5) { --n: 4; }
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.quote-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 12px 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .2s;
}
.quote-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent-light);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .2s;
}
.quote-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.quote-opt:hover, .quote-opt:focus-visible {
  border-color: rgba(124, 108, 255, .55);
  background: rgba(124, 108, 255, .08);
  color: #fff;
  outline: none;
}
.quote-opt:hover .quote-arrow, .quote-opt:focus-visible .quote-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.quote-opt:hover .quote-arrow svg { transform: translate(2px, -2px); }

body.modal-open { overflow: hidden; }

/* =========================================================
   Flutuantes
   ========================================================= */
.floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  /* escondido na hero; entra a partir da segunda dobra */
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
body.past-hero .floating { opacity: 1; transform: none; pointer-events: auto; }
.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(14, 11, 22, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8);
  transition: border-color .3s var(--ease);
}
.support-pill:hover { border-color: var(--accent-light); }
.wa-ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

@keyframes npNotifIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(14, 11, 22, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .3s var(--ease);
}
.to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.to-top:hover { border-color: var(--accent-light); }
.to-top { border-radius: 50%; }
body.show-top .to-top { opacity: 1; pointer-events: auto; transform: none; }

/* sobre fundo preto os flutuantes ficam brancos; sobre as dobras brancas, pretos */
.support-pill, .to-top {
  background: #fff;
  border-color: #fff;
  color: var(--accent);
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}
.floating.on-light .support-pill, .floating.on-light .to-top {
  background: var(--surface);
  border-color: var(--border);
  color: #fff;
}
.floating.on-light .wa-ico { color: var(--accent-light); }


/* =========================================================
   Ajustes do tema claro
   ========================================================= */
/* no claro, nada de fundo roxo */
[data-theme="light"] .bg-fx,
[data-theme="light"] .hero-bg::before,
[data-theme="light"] .section-cover::before,
[data-theme="light"] .cta-bg { display: none; }
[data-theme="light"] .step, [data-theme="light"] .step[data-reveal] {
  background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, .5)), rgba(246, 245, 251, .5);
  border-color: rgba(13, 10, 23, .08);
  box-shadow: inset 0 1px 0 #fff, 0 -18px 40px -24px rgba(13, 10, 23, .25);
}
[data-theme="light"] .step:hover { box-shadow: inset 0 1px 0 #fff, 0 0 48px -12px rgba(91, 43, 217, .35); }
[data-theme="light"] .support-pill,
[data-theme="light"] .to-top,
.floating.on-light .support-pill,
.floating.on-light .to-top {
  background: #0E0B16;
  border-color: #221C33;
  color: #fff;
}
[data-theme="light"] .wa-ico { color: #7C6CFF; }
[data-theme="light"] .section.section-cover { box-shadow: 0 -30px 60px -30px rgba(13, 10, 23, .25); }
[data-theme="light"] .quote-opt:hover, [data-theme="light"] .quote-opt:focus-visible { color: var(--text); }
[data-theme="light"] .work-media { box-shadow: -24px 0 60px -30px rgba(13, 10, 23, .35); }
[data-theme="light"] .mp { box-shadow: 0 30px 60px -30px rgba(13, 10, 23, .3); }

/* =========================================================
   Grade por cima da página (efeito "Nexus")
   Linhas brancas em modo "difference": clareiam no escuro e escurecem no claro,
   então a grade aparece nas duas. Para desligar: GRID_OVERLAY: false no config.
   ========================================================= */
.grid-overlay {
  --cell: 5px;
  position: fixed;
  inset: 0;
  z-index: 30;              /* acima do conteúdo, abaixo do menu e dos flutuantes */
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: calc(50% - var(--cell) / 2) 0;
  mix-blend-mode: difference;
}

/* =========================================================
   Barra de progresso da rolagem (3px no topo)
   ========================================================= */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 10px var(--accent-glow);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

/* =========================================================
   Cursor roxo (só em telas com mouse)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  html {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5v17.2l4.6-4.4 2.9 6.6 2.7-1.2-2.9-6.5h6.4z' fill='%237C6CFF' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto;
  }
  /* a mesma seta em tudo, inclusive no que é clicável */
  a, button, [role="button"], [data-open-quote], .avatar, .faq-btn { cursor: inherit; }
}

/* texto de apoio da seção de dúvidas */
.faq-sub { max-width: 38ch; }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader-bar { width: 160px; height: 1px; background: var(--border); overflow: hidden; }
.loader-bar span {
  display: block;
  height: 100%;
  background: var(--accent-light);
  transform-origin: left;
  transform: scaleX(0);
  animation: loadBar 1.2s var(--ease) forwards;
}
@keyframes loadBar { 0% { transform: scaleX(0); } 55% { transform: scaleX(.62); } 100% { transform: scaleX(1); } }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

/* =========================================================
   Reveal
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal="blur"], [data-reveal="blur-p"] {
  transform: translateY(12px);
  filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal="blur-p"] { filter: blur(4px); }
[data-reveal="media"] {
  transform: translateY(20px) scale(.985);
  filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .7s var(--ease), border-color .4s var(--ease);
}
[data-reveal][data-shown="1"] { opacity: 1; transform: none; filter: none; }
/* scroll-hint usa translate próprio, então não conflita com transform */

/* =========================================================
   Movimento reduzido
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .draw > * { animation: none !important; stroke-dashoffset: 0; }
}

/* =========================================================
   /links (link na bio): coluna única com os mesmos componentes do site
   ========================================================= */
.lk {
  width: 100%;
  max-width: calc(520px + var(--gutter) * 2);
  margin-inline: auto;
  padding: 0 var(--gutter) 40px;
}

.lk-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 0;
}

/* perfil */
.lk-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  text-align: center;
}
.lk-photo { position: relative; margin-bottom: 8px; }
.lk-photo .avatars-glow { inset: 10% 5% -5%; }
/* recorte no rosto: a foto é vertical, então amplia e desloca dentro do círculo */
.lk-avatar {
  position: relative;
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  background: var(--surface);
}
.lk-avatar img { position: absolute; left: -44%; top: -36%; width: 178%; max-width: none; height: auto; }
.lk-name { font-size: clamp(26px, 7vw, 34px); margin-top: 6px; }
.lk-role { color: var(--muted); font-size: .82em; white-space: nowrap; }
.lk-role .hl-word { font-size: 1.12em; }
.lk-handle { color: var(--muted); letter-spacing: .1em; text-transform: none; }
.lk-handle { transition: opacity .9s var(--ease), transform .9s var(--ease), color .2s; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms; }
.lk-handle:hover { color: var(--accent-light); }
/* "Web Designer." em cima e o resto em 2 linhas: a fonte encolhe um pouco em telas estreitas pra caber */
.lk-bio { max-width: none; font-size: clamp(12.5px, calc(4.3vw - 1.8px), 15px); white-space: nowrap; }
.lk-bio-role { display: block; color: var(--text); }

.lk-social { display: flex; gap: 10px; margin-top: 4px; }
.lk-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color .3s var(--ease), color .2s, transform .4s var(--ease);
}
.lk-ico:hover { border-color: var(--accent-light); color: var(--accent-light); transform: translateY(-2px); }
.lk-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lk-ico .wa-ico { fill: currentColor; stroke: none; }

/* CTA principal: mesmo card do modal de orçamento, com o botão de CTA do site */
.lk-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  text-align: center;
}
.lk-cta-btn { width: 100%; justify-content: center; padding-left: 20px; }
.lk-cta p { font-size: 14px; }

/* links numerados: mesmo item das opções do orçamento */
.lk-links {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.lk-link {
  position: relative;
  justify-content: flex-start;
  gap: 18px;
  padding: 18px 14px 18px 20px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .2s, transform .4s var(--ease);
}
.lk-link:hover { transform: translateY(-2px); }
.lk-link .step-glow { opacity: calc(var(--go, 0) * .8); }
.lk-num { flex: none; font-size: 13px; }
.lk-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lk-txt strong { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.02em; line-height: 1.15; }
.lk-txt small { font-size: 14px; font-weight: 400; color: var(--muted); }
.lk-link .quote-arrow { margin-left: auto; }
/* 01 em destaque: card branco */
.lk-link.is-white, .lk-link.is-white:hover { background: #fff; border-color: #fff; color: var(--text-dark); }
.lk-link.is-white .lk-num { color: var(--accent); }
.lk-link.is-white small { color: var(--muted-dark); }
.lk-link.is-white .quote-arrow { border-color: var(--border-light); color: var(--accent); }
.lk-link.is-white .step-glow { display: none; }

/* portfólio: 1 destaque em cima + 2 embaixo */
.lk-works { margin-top: 44px; }
.lk-works-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lk-works-head .cta-link { font-size: 14px; }
.lk-works-head .cta-link:hover svg { transform: translateX(3px); }
.lk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk-work { display: block; }
.lk-work:first-child { grid-column: 1 / -1; }
.lk-work .work-media { aspect-ratio: 4 / 3; box-shadow: none; }
.lk-work:first-child .work-media { aspect-ratio: 16 / 10; }
.lk-work .shot { position: absolute; inset: 0; height: 100%; }
.lk-work:hover .work-stage { transform: scale(1.03); }
.lk-work:hover .work-media { border-color: rgba(124, 108, 255, .45); }

/* rodapé */
.lk-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.lk-foot-line {
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
.lk-copy { font-size: 13px; }

[data-theme="light"] .lk-link:hover { color: var(--text); }
[data-theme="light"] .lk-link.is-white { border-color: var(--border-light); }
