/* ==========================================================================
   AGÊNCIA SOMA · LINK NA BIO — ESTILOS
   Visual: vidro escuro + brilho amarelo + profundidade 3D.
   Paleta: amarelo, preto e branco. Transparências de branco/amarelo criam
   o efeito de vidro e luz, sem introduzir outras cores.
   ========================================================================== */

:root {
  --yellow: #F5DA13;          /* sobrescrito por config.js → brand.yellow */
  --yellow-rgb: 245, 218, 19; /* idem, em RGB para brilhos */
  --black: #000000;
  --white: #FFFFFF;

  --text-soft: rgba(255, 255, 255, .74);   /* texto secundário (contraste AA) */
  --text-faint: rgba(255, 255, 255, .58);  /* etiquetas */
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --glass: rgba(255, 255, 255, .045);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 20px;
  --max: 520px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

mark {
  background: none;
  color: var(--yellow);
  text-shadow: 0 0 28px rgba(var(--yellow-rgb), .45);
}

/* ---------- acessibilidade ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  background: var(--yellow); color: var(--black);
  padding: 12px 16px; font-weight: 600; border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- luz de fundo (feixe de luz, como nas referências) ---------- */
.spotlight {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 0% 0%, rgba(var(--yellow-rgb), .20), transparent 70%),
    radial-gradient(50% 35% at 100% 55%, rgba(var(--yellow-rgb), .08), transparent 70%),
    linear-gradient(120deg, rgba(255, 255, 255, .06) 0%, transparent 35%);
}

/* ---------- layout ---------- */
.page {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
}

/* ---------- vidro (base dos cards) ----------
   --rx/--ry: inclinação 3D (definida pelo mouse no main.js)
   --mx/--my: posição do brilho que segue o cursor */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 30px 60px -24px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease), border-color .3s var(--ease);
}
.glass::before {                       /* luz suave no topo / brilho do cursor */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(var(--yellow-rgb), .12), transparent 45%);
  pointer-events: none;
}
.glass:hover { border-color: var(--line-strong); }

/* ---------- etiquetas e títulos ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.section {
  margin-top: 96px;
  scroll-margin-top: 24px;
}
.section__head { margin-bottom: 22px; }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 8.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.section__intro {
  margin: -8px 0 8px;
  color: var(--text-soft);
  font-size: 15.5px;
}

/* ---------- 1. topo ---------- */
.hero { text-align: center; }

.hero__logo {
  position: relative;
  width: 124px; height: 124px;
  margin: 0 auto 26px;
  padding: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    0 0 0 8px rgba(var(--yellow-rgb), .06),
    0 24px 70px rgba(var(--yellow-rgb), .35);
}
.hero__logo img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__logo.is-visible { animation: float 6s ease-in-out infinite; }
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 10vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__handle {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 4px;
  font-weight: 500;
  font-size: 15px;
  color: var(--yellow);
  text-decoration: none;
}
.hero__handle:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero__tagline {
  margin: 12px auto 0;
  max-width: 24ch;
  font-size: 18px;
  line-height: 1.45;
  color: var(--text-soft);
}
.hero__tagline mark { font-weight: 600; }

/* ---------- botões ---------- */
.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn__label { flex: 1; }
.btn__icon { flex: none; width: 22px; height: 22px; }
.btn__arrow {
  flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
}
.btn__arrow svg { width: 20px; height: 20px; }
.btn svg, .round-btn svg, .chip svg, .post svg {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn svg .fill, .round-btn svg .fill, .post svg .fill { fill: currentColor; stroke: none; }

/* principal: pílula amarela com volume (luz em cima, sombra embaixo, brilho) */
.btn--primary {
  min-height: 64px;
  background: var(--yellow);
  color: var(--black);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -3px 0 rgba(0, 0, 0, .14),
    0 14px 36px -6px rgba(var(--yellow-rgb), .55),
    0 0 0 1px rgba(var(--yellow-rgb), .6);
}
.btn--primary .btn__arrow { background: var(--black); color: var(--yellow); }
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -3px 0 rgba(0, 0, 0, .14),
    0 20px 48px -6px rgba(var(--yellow-rgb), .7),
    0 0 0 1px rgba(var(--yellow-rgb), .6);
}
.btn--primary:hover .btn__arrow svg { transform: translateX(2px); transition: transform .2s var(--ease); }
.btn--primary:active { transform: translateY(1px); }

/* secundário: pílula de vidro */
.btn--glass {
  background: var(--glass);
  border: 1px solid var(--line-strong);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.btn--glass .btn__arrow { width: 40px; height: 40px; }
.btn--glass:hover { background: rgba(255, 255, 255, .09); }

.cta { margin-top: 34px; }
.cta__note {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
}
.links { margin-top: 48px; }
.links__list { display: grid; gap: 12px; }

/* botão redondo de vidro (setas do feed e rodapé) */
.round-btn {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -10px rgba(0, 0, 0, .9);
  color: var(--white);
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover {
  color: var(--yellow);
  border-color: rgba(var(--yellow-rgb), .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 24px rgba(var(--yellow-rgb), .35);
}
.round-btn:active { transform: scale(.94); }

/* ---------- feed (carrossel 3D) ---------- */
.feed {
  --card-w: min(58vw, 220px);   /* Reels 9:16 ficam ~390px de altura no celular */
  position: relative;
  margin-inline: calc(var(--gutter) * -1);   /* sangra até a borda da tela */
}
.feed__track {
  position: relative;          /* referência para o cálculo das setas */
  display: flex;
  align-items: center;         /* Reels (9:16) e posts (4:5) têm alturas diferentes */
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 28px calc(50% - var(--card-w) / 2) 36px;
  scrollbar-width: none;
}
.feed__track::-webkit-scrollbar { display: none; }
.feed__item {
  flex: 0 0 var(--card-w);
  scroll-snap-align: center;
  transform: perspective(1000px) translateZ(var(--tz, 0px)) rotateY(var(--ry, 0deg));
  opacity: var(--fade, 1);
  will-change: transform;
}
.post {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .95);
  text-decoration: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.feed__item.is-center .post {
  border-color: rgba(var(--yellow-rgb), .75);
  box-shadow:
    0 0 0 1px rgba(var(--yellow-rgb), .35),
    0 24px 60px -12px rgba(var(--yellow-rgb), .40);
}
.post:focus-visible { outline-offset: 4px; border-radius: var(--radius-lg); }
/* capa na proporção original do post (sem recorte) */
.post__media {
  position: relative;
  display: block;
  aspect-ratio: var(--ar, 4 / 5);
}
.post__media img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.post__badge {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px;
  color: var(--white);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .8));
}
.post__badge svg, .post__client svg { width: 100%; height: 100%; }
/* nome do cliente numa faixa abaixo da capa, para não cobrir a imagem */
.post__client {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}
.post__client svg { flex: none; width: 15px; height: 15px; }
.post__client span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.post__placeholder { display: none; }
.post__media.is-missing .post__placeholder {
  display: grid; place-items: center;
  height: 100%;
  padding: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  color: var(--yellow);
}

.feed__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: -6px;
}

/* ---------- serviços ---------- */
.cards { display: grid; gap: 18px; }
.card { overflow: hidden; }

/* área visual com etiquetas flutuando em perspectiva */
.card__visual {
  position: relative;
  height: 148px;
  display: grid;
  place-content: center;
  gap: 12px;
  perspective: 700px;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 44px);
  overflow: hidden;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  padding: 11px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transform: rotateX(22deg) rotateZ(-7deg);
}
.chip--main {
  background: rgba(0, 0, 0, .75);
  border: 1px solid rgba(var(--yellow-rgb), .7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 28px rgba(var(--yellow-rgb), .35),
    0 18px 30px -12px rgba(0, 0, 0, .9);
}
.chip:not(.chip--main) {
  margin-left: 64px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--text-soft);
  filter: blur(.4px);
}
.chip__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(var(--yellow-rgb), .9);
}
.chip__check { width: 16px; height: 16px; color: var(--yellow); }
.chip__check svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .chip--main { animation: hover-chip 5s ease-in-out infinite; }
}
@keyframes hover-chip {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}

.card__body { padding: 22px 22px 24px; }
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.card__text { font-size: 15.5px; color: var(--text-soft); }
.card__list {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.card__list li { position: relative; padding-left: 20px; }
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(var(--yellow-rgb), .7);
}

/* ---------- clientes (cards em perspectiva) ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 6px 4px;
}
@media (min-width: 480px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
}
.logo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 14px 16px;
  border-radius: var(--radius);
  /* inclinados por padrão, como na referência "Tech Stack"; endireitam no hover */
  transform: perspective(800px) rotateX(var(--rx, 8deg)) rotateY(var(--ry, -12deg));
}
.logo:hover { --rx: 0deg; --ry: 0deg; }
.logo img {
  max-height: 72px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logos--mono .logo img { filter: brightness(0) invert(1); }
.logo__name { display: none; }
.logo.is-missing { border-style: dashed; }
.logo.is-missing .logo__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

/* ---------- processo ---------- */
.timeline {
  padding: 26px 22px 26px 56px;
  counter-reset: none;
}
.timeline::after {                      /* linha vertical */
  content: "";
  position: absolute;
  left: 30px; top: 34px; bottom: 34px;
  width: 1px;
  background: linear-gradient(180deg, rgba(var(--yellow-rgb), .8), var(--line-strong));
}
.step { position: relative; }
.step + .step { margin-top: 26px; }
.step__marker {
  position: absolute;
  left: -32px; top: 5px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(var(--yellow-rgb), .15), 0 0 16px rgba(var(--yellow-rgb), .7);
  z-index: 1;
}
.step__label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  margin: 3px 0 5px;
}
.step__text { font-size: 15.5px; color: var(--text-soft); }

/* ---------- chamada final ---------- */
.final { margin-top: 104px; }
.final__inner {
  padding: 36px 18px 18px;
  text-align: center;
  border-color: rgba(var(--yellow-rgb), .35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 30px 80px -30px rgba(var(--yellow-rgb), .45);
}
.final__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.final__text {
  margin: 12px auto 26px;
  max-width: 30ch;
  color: var(--text-soft);
}

/* ---------- rodapé ---------- */
.footer {
  max-width: var(--max);
  margin: 72px auto 0;
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__icons {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.footer__city {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yellow);
}
.footer__copy { margin-top: 4px; font-size: 13px; color: var(--text-faint); }

.noscript { padding: 24px; text-align: center; }
.noscript a { color: var(--yellow); }

/* ---------- animações de entrada ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
/* elementos de vidro que também são revelados mantêm a perspectiva 3D */
.js .glass[data-reveal].is-visible {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .glass, .btn, .round-btn { transition: none; }
  .btn--primary:hover { transform: none; }
  .logo { transform: none; }
}

/* ---------- telas maiores ---------- */
@media (min-width: 720px) {
  .page { padding-top: 88px; }
  .section { margin-top: 120px; }
  .feed { --card-w: 230px; }
}
@media (min-width: 840px) {
  /* no desktop o carrossel fica mais largo que a coluna de texto */
  .feed { margin-inline: calc(var(--gutter) * -1 - 140px); }
}
