/* ============================================================
   Contágio Viral - estilos
   ============================================================ */

:root {
  --bg-dark: #111111;
  --bg-light: #F4F4F1;
  --text-on-dark: #F5F5F0;
  --text-on-dark-muted: #A8A8A2;
  --text-on-light: #111111;
  --text-on-light-muted: #55554F;
  --accent: #E2FF00;
  --accent-rgb: 226, 255, 0;
  --border-on-dark: #2A2A2A;
  --border-on-light: #D8D8D2;

  --font-display: 'Turret Road', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;

  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header (pílula de vidro) ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-top: 16px;
  pointer-events: none;
}

.site-header__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  padding: 10px 22px;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 30px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(var(--accent-rgb), 0.14);
  transition: box-shadow 0.35s ease-out, border-color 0.35s ease-out;
}

.site-header__pill:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 30px rgba(0, 0, 0, 0.4),
    0 0 36px rgba(var(--accent-rgb), 0.24);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__logo img {
  width: 32px;
  height: 32px;
}

.site-header__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

/* ---------------- Botão CTA (vidro + glow + pulso) ---------------- */

.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #111111;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 18px 32px;
  border: none;
  min-height: 56px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease-out;
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.4),
    0 0 22px rgba(var(--accent-rgb), 0.32),
    0 12px 28px rgba(0, 0, 0, 0.35);
  animation: ctaPulse 3.4s ease-in-out infinite;
}

.btn-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 45%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.6),
    0 0 40px rgba(var(--accent-rgb), 0.5),
    0 16px 34px rgba(0, 0, 0, 0.4);
}

.btn-cta:active {
  transform: translateY(0);
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(var(--accent-rgb), 0.4),
      0 0 20px rgba(var(--accent-rgb), 0.28),
      0 12px 28px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(var(--accent-rgb), 0.55),
      0 0 34px rgba(var(--accent-rgb), 0.48),
      0 12px 28px rgba(0, 0, 0, 0.35);
  }
}

/* ---------------- Seções genéricas ---------------- */

.section {
  position: relative;
  padding: 96px 0;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6);
}

.eyebrow--on-light {
  color: var(--text-on-light);
}

/* ---------------- Destaques de título ---------------- */

.is-accent {
  color: var(--accent);
  text-shadow: 0 0 26px rgba(var(--accent-rgb), 0.45), 0 0 54px rgba(var(--accent-rgb), 0.2);
}

.is-accent-chip {
  display: inline-block;
  background: var(--accent);
  color: #111111;
  padding: 2px 12px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.4);
}

/* ---------------- Ambiente (névoa líquida animada) ---------------- */

.hero__ambient,
.cta-final__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(160deg, #111111 0%, #161616 45%, #0c0c0c 100%);
}

.hero__ambient::before,
.hero__ambient::after,
.cta-final__ambient::before,
.cta-final__ambient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hero__ambient::before {
  width: 60vw;
  height: 60vw;
  max-width: 640px;
  max-height: 640px;
  left: -10%;
  top: -10%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0) 70%);
  animation: blobDriftA 26s ease-in-out infinite;
}

.hero__ambient::after {
  width: 48vw;
  height: 48vw;
  max-width: 520px;
  max-height: 520px;
  right: -8%;
  bottom: -12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 70%);
  animation: blobDriftB 32s ease-in-out infinite;
}

.cta-final__ambient::before {
  width: 55vw;
  height: 55vw;
  max-width: 600px;
  max-height: 600px;
  right: -8%;
  top: -14%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0) 70%);
  animation: blobDriftB 28s ease-in-out infinite;
}

.cta-final__ambient::after {
  width: 42vw;
  height: 42vw;
  max-width: 460px;
  max-height: 460px;
  left: -6%;
  bottom: -14%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 70%);
  animation: blobDriftA 24s ease-in-out infinite;
}

@keyframes blobDriftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.08); }
}

@keyframes blobDriftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-7%, -6%) scale(1.06); }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 48px);
  padding-bottom: 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero__content {
  max-width: 780px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 7.5vw, 68px);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero__title span {
  display: block;
}

.hero__subtitle {
  margin-top: 28px;
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 500;
  color: var(--text-on-dark);
  max-width: 560px;
}

.hero__cta {
  margin-top: 40px;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(17, 17, 17, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(var(--accent-rgb), 0.14),
    0 0 26px rgba(var(--accent-rgb), 0.28);
  animation: scrollHint 2.6s ease-in-out infinite;
  transition: box-shadow 0.3s ease-out;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

.scroll-indicator:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(var(--accent-rgb), 0.26),
    0 0 38px rgba(var(--accent-rgb), 0.4);
}

@keyframes scrollHint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------------- Esteira decorativa (marquee) ---------------- */

.marquee {
  overflow: hidden;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-on-dark);
  border-bottom: 1px solid var(--border-on-dark);
  padding: 16px 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translateX(0);
}

.marquee__item {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding: 0 28px;
}

.marquee__item::after {
  content: "•";
  margin-left: 28px;
  opacity: 0.6;
}

/* Fita de clientes: mesmo padrão visual, um pouco maior, itens preparados
   para receber uma logo (imagem) no lugar do texto no futuro. */

.marquee--clients {
  margin-top: 48px;
}

.marquee--clients .marquee__item {
  font-size: 18px;
  padding: 0 32px;
}

.marquee--clients .marquee__item::after {
  margin-left: 32px;
}

.marquee__logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.marquee__logo img {
  height: 100%;
  width: auto;
  display: block;
}

.marquee__logo-text {
  white-space: nowrap;
}

/* ---------------- Etapas do processo ---------------- */

.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.step-card {
  flex: 1 1 100%;
}

@media (min-width: 640px) {
  .step-card {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

@media (min-width: 980px) {
  .step-card {
    flex: 1 1 calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
  }
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-on-light);
  padding: 32px 28px;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.05);
  transition: background-color 0.5s ease-out, color 0.5s ease-out, border-color 0.5s ease-out,
    transform 0.35s ease-out, box-shadow 0.35s ease-out;
  cursor: default;
}

.step-card:hover {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.step-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.step-card__badge {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    0 0 20px rgba(var(--accent-rgb), 0.22);
  transition: box-shadow 0.4s ease-out;
}

.step-card__badge svg {
  width: 26px;
  height: 26px;
}

.step-card:hover .step-card__badge {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(var(--accent-rgb), 0.3),
    0 0 34px rgba(var(--accent-rgb), 0.4);
}

.step-card__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  color: var(--border-on-light);
  transition: color 0.5s ease-out;
}

.step-card__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-on-light);
  transition: color 0.5s ease-out;
}

.step-card__desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-light-muted);
  transition: color 0.5s ease-out;
}

.step-card:hover .step-card__number {
  color: var(--accent);
}

.step-card:hover .step-card__title {
  color: var(--text-on-dark);
}

.step-card:hover .step-card__desc {
  color: var(--text-on-dark-muted);
}

/* ---------------- Resultados ---------------- */

.results__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.5vw, 46px);
  text-transform: uppercase;
  max-width: 640px;
  margin-bottom: 56px;
}

.results-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.result-card {
  position: relative;
  flex: 1 1 100%;
  padding-top: 28px;
}

@media (min-width: 560px) {
  .result-card {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (min-width: 900px) {
  .result-card {
    flex: 1 1 calc(33.333% - 27px);
    max-width: calc(33.333% - 27px);
  }
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.6);
}

.result-card__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 38px);
  color: var(--text-on-dark);
  line-height: 1.2;
}

.result-card__label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-on-dark-muted);
  font-weight: 500;
}

/* ---------------- Equipe / cases ---------------- */

.team-section {
  position: relative;
  z-index: 2;
}

.section-seam {
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  z-index: 3;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(var(--accent-rgb), 0.16),
    0 0 30px rgba(var(--accent-rgb), 0.35),
    0 16px 32px rgba(0, 0, 0, 0.3);
}

.section-seam img {
  width: 28px;
  height: 28px;
}

.team__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  text-transform: uppercase;
  max-width: 720px;
}

.cases-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #0c0c0c;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.1);
  transform: translateY(var(--card-offset, 0));
  cursor: pointer;
}

.case-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (min-width: 640px) {
  .case-card:nth-child(even) {
    --card-offset: 22px;
  }
}

.case-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease-out;
}

.case-card:hover .case-card__video,
.case-card:focus-visible .case-card__video,
.case-card.is-active .case-card__video {
  transform: scale(1.05);
}

.case-card__metric {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 75%);
  pointer-events: none;
}

.case-card__metric-views {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: #FFFFFF;
  text-transform: uppercase;
}

.case-card__metric-followers {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------------- CTA final ---------------- */

.cta-final {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 128px 0 96px;
}

.cta-final__content {
  max-width: 680px;
}

.cta-final__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.5vw, 48px);
  line-height: 1.12;
  text-transform: uppercase;
}

.cta-final__subtitle {
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-on-dark);
  max-width: 520px;
}

.cta-final__action {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.contact-handle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.02em;
}

/* ---------------- Footer ---------------- */

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-on-dark);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .site-footer .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__brand img {
  width: 24px;
  height: 24px;
}

.site-footer__meta {
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

/* ---------------- Scroll reveal ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.no-motion .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

html.no-motion .hero__ambient::before,
html.no-motion .hero__ambient::after,
html.no-motion .cta-final__ambient::before,
html.no-motion .cta-final__ambient::after,
html.no-motion .btn-cta,
html.no-motion .scroll-indicator {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__ambient::before,
  .hero__ambient::after,
  .cta-final__ambient::before,
  .cta-final__ambient::after,
  .btn-cta,
  .scroll-indicator {
    animation: none;
  }
}

/* ---------------- Responsivo geral ---------------- */

@media (max-width: 480px) {
  .section {
    padding: 72px 0;
  }

  .btn-cta {
    width: 100%;
  }

  .section-seam {
    width: 52px;
    height: 52px;
    bottom: -24px;
  }

  .section-seam img {
    width: 22px;
    height: 22px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .marquee--clients {
    margin-top: 32px;
  }
}
