/* ============================================================
   STUDIO ALEF ROSA — PREMIUM DESIGN SYSTEM (dhero.style)
   ============================================================ */

/* 1. ROOT & VARIABLES (HCL SYSTEM) */
:root {
  /* Brand - Lime/Grass (Dhero Signature) */
  --hcl-brand-1: #11130c;
  --hcl-brand-2: #151a10;
  --hcl-brand-3: #1f2917;
  --hcl-brand-4: #29371d;
  --hcl-brand-5: #334423;
  --hcl-brand-6: #3d522a;
  --hcl-brand-7: #496231;
  --hcl-brand-8: #577538;
  --hcl-brand-9: #0066ff;
  /* Primary Accent - Electric Blue */
  --hcl-brand-light: #00d2ff;
  /* Light Accent - Cyan */
  --hcl-brand-gradient: linear-gradient(90deg, var(--hcl-brand-9) 0%, var(--hcl-brand-light) 100%);
  --hcl-brand-10: #80b3ff;
  --hcl-brand-11: #0047b3;
  --hcl-brand-12: #e6f0ff;

  /* Neutral - Dark Studio Aesthetic */
  --hcl-neutral-1: #080808;
  /* Deep Background */
  --hcl-neutral-2: #111111;
  --hcl-neutral-3: #191919;
  --hcl-neutral-4: #222222;
  --hcl-neutral-5: #2a2a2a;
  --hcl-neutral-6: #313131;
  --hcl-neutral-7: #3a3a3a;
  --hcl-neutral-8: #484848;
  --hcl-neutral-9: #606060;
  --hcl-neutral-10: #7b7b7b;
  --hcl-neutral-11: #b4b4b4;
  --hcl-neutral-12: #eeeeee;
  /* Primary Text */

  /* Semantic Blue/Cyan fallback */
  --hcl-blue-9: #0090ff;

  /* Fluid Spacing & Layout */
  --bde-section-width: 1280px;
  --bde-section-vertical-padding: clamp(80px, 10vw, 160px);
  --bde-section-horizontal-padding: 24px;
  --bde-column-gap: 24px;

  /* Fluid Typography (Clamp System) */
  --hfs-h0: clamp(3.06rem, 2.15rem + 3.04vw, 5.5rem);
  --hfs-h1: clamp(2.43rem, 1.83rem + 2.03vw, 4.2rem);
  --hfs-h2: clamp(1.93rem, 1.53rem + 1.35vw, 3.2rem);
  --hfs-h3: clamp(1.56rem, 1.32rem + 0.79vw, 2.4rem);
  --hfs-h4: clamp(1.25rem, 1.11rem + 0.45vw, 1.8rem);
  --hfs-text-l: clamp(1.12rem, 1rem + 0.45vw, 1.4rem);
  --hfs-text-m: clamp(1rem, 0.93rem + 0.22vw, 1.12rem);
  --hfs-text-s: clamp(0.87rem, 0.87rem, 0.87rem);

  /* Transitions */
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --duration: 0.6s;
}

/* 2. BASE RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: initial;
  /* Lenis handles this */
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background-color: var(--hcl-neutral-1);
  color: var(--hcl-neutral-11);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  color: var(--hcl-neutral-12);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

em {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 500;
  color: #f5f5f5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease-expo);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--bde-section-width);
  margin: 0 auto;
  padding: 0 var(--bde-section-horizontal-padding);
}

.section {
  padding: var(--bde-section-vertical-padding) 0;
  position: relative;
}

/* 7.2 VALUE PROPOSITION (CONVERSÃO & VALOR) */
.value-prop {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* Background elements to make it premium */
.value-prop::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.05) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.value-prop-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.value-prop-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.value-prop-desc {
  font-size: var(--hfs-text-l);
  color: var(--hcl-neutral-10);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.value-prop-conclusion {
  font-size: var(--hfs-text-m);
  color: var(--hcl-neutral-12);
  margin-bottom: 3rem;
  padding-left: 20px;
  border-left: 2px solid var(--hcl-brand-9);
  font-weight: 500;
}

.value-prop-cta {
  margin-top: auto;
}

/* Grid de Cards Menores */
.value-prop-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-prop-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  gap: 20px;
  transition: all 0.4s var(--ease-expo);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.value-prop-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-10px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.value-prop-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hcl-brand-light);
  transition: all 0.5s var(--ease-expo);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.value-prop-card:hover .value-prop-icon {
  background: rgba(255, 255, 255, 0.08); /* Apenas claridade sutil, sem mudar de cor */
  transform: scale(1.05); /* Escala sutil em vez de rotacionar brutalmente */
  border-color: rgba(255, 255, 255, 0.15);
}

.value-prop-icon svg {
  width: 24px;
  height: 24px;
  /* transform-box: fill-box ajuda em animações internas de SVG */
  transform-box: fill-box;
}

/* Animações Internas dos Ícones */

/* 1. Sparkle / Diamante */
.value-prop-card:hover .sparkle-star {
  animation: pulse-sparkle 1.5s ease-in-out infinite;
  transform-origin: center;
}
.sparkle-star.delay-1 { animation-delay: 0.2s; }
.sparkle-star.delay-2 { animation-delay: 0.4s; }

@keyframes pulse-sparkle {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* 2. Relógio */
.icon-clock .clock-minute,
.icon-clock .clock-hour {
  transform-origin: 12px 12px;
}
.value-prop-card:hover .icon-clock .clock-minute {
  animation: spin-clock 1s linear infinite;
}
.value-prop-card:hover .icon-clock .clock-hour {
  animation: spin-clock 12s linear infinite;
}

@keyframes spin-clock {
  100% { transform: rotate(360deg); }
}

/* 3. Escudo / Check */
.shield-check {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.value-prop-card:hover .shield-check {
  stroke-dashoffset: 0;
}

/* 4. Chat / Mensagem */
.chat-dot {
  transform-origin: center;
  transition: transform 0.3s;
}
.value-prop-card:hover .chat-dot {
  animation: chat-bounce 0.6s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}
.chat-dot.dot-2 { animation-delay: 0.15s; }
.chat-dot.dot-3 { animation-delay: 0.3s; }

@keyframes chat-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

/* 5. Gráfico */
.chart-bar {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.value-prop-card:hover .chart-bar {
  stroke-dashoffset: 0;
}
.chart-bar.bar-2 { transition-delay: 0.1s; }
.chart-bar.bar-3 { transition-delay: 0.2s; }

.value-prop-card p {
  font-size: var(--hfs-text-s);
  color: var(--hcl-neutral-11);
  margin: 0;
  line-height: 1.5;
}

.value-prop-card p strong {
  color: var(--hcl-neutral-12);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .value-prop-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .value-prop-card:hover {
    transform: translateY(-5px);
  }
}

/* 7.3 PORTFOLIO SECTION */
.portfolio {
  padding: 100px 0;
}

.portfolio-wrapper {
  background: #f8f8f8;
  /* Light gray for "floating" effect */
  border-radius: 40px;
  padding: 80px 60px;
  color: #111;
  /* Dark text for light background */
}

.portfolio-header {
  margin-bottom: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.portfolio-nav {
  display: flex;
  gap: 12px;
}

.portfolio-nav-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s var(--ease-expo);
  color: #111;
}

.portfolio-nav-btn:hover {
  background: var(--hcl-brand-gradient);
  border-color: transparent;
  color: #f5f5f5;
  transform: scale(1.05);
}

.portfolio-nav-btn svg {
  width: 24px;
  height: 24px;
}

.portfolio-label {
  display: inline-block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--hcl-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.portfolio-title {
  font-size: var(--hfs-h2);
  color: #111;
  font-weight: 500;
}

.portfolio-title em {
  display: inline-block;
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 500;
  color: #111111;
}

.portfolio-slider {
  width: 100%;
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
  -ms-overflow-style: none;
  /* Hide scrollbar IE/Edge */
}

.portfolio-slider::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.portfolio-track {
  display: flex;
  gap: 30px;
  padding-bottom: 20px;
}

.portfolio-card {
  flex: 0 0 350px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.6s var(--ease-expo);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eee;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo);
}

.portfolio-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-info {
  padding: 24px;
  position: relative;
  background: #fff;
}

.portfolio-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}

.portfolio-info p {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-expo);
}

.portfolio-card:hover .portfolio-arrow {
  background: var(--hcl-brand-gradient);
  border-color: transparent;
  color: #f5f5f5;
  transform: rotate(-45deg);
}

.portfolio-arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  .portfolio-wrapper {
    padding: 60px 30px;
  }

  .portfolio-card {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .portfolio-wrapper {
    border-radius: 24px;
    padding: 40px 20px;
  }

  .portfolio-title {
    font-size: 32px;
  }
}

/* 7.4 TESTIMONIALS SECTION */
.testimonials {
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 4rem;
}

.testimonial-card {
  background: transparent;
  padding: 40px;
  transition: all 0.6s var(--ease-expo);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.testimonial-header {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.7s var(--ease-expo);
  margin-bottom: 0;
}

.testimonial-card:hover .testimonial-header {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 40px;
}

.testimonial-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hcl-neutral-4);
  transition: transform 0.6s var(--ease-expo);
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.05);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--hcl-neutral-12);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.author-company {
  font-size: 13px;
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 500;
  background: var(--hcl-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonial-content {
  max-height: 85px;
  overflow: hidden;
  transition: max-height 0.7s var(--ease-expo);
  /* Máscara de gradiente suave para o final do texto quando recolhido */
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.testimonial-card:hover .testimonial-content {
  max-height: 500px;
  /* Remove a máscara suave no hover, mostrando tudo nitidamente */
  -webkit-mask-image: linear-gradient(to bottom, black 100%, black 100%);
  mask-image: linear-gradient(to bottom, black 100%, black 100%);
}

.testimonial-content p {
  font-size: var(--hfs-text-s);
  line-height: 1.8;
  color: var(--hcl-neutral-9);
  transition: color 0.6s var(--ease-expo);
  margin-bottom: 1rem;
}

.testimonial-content p:last-child {
  margin-bottom: 0;
}

.testimonial-card:hover .testimonial-content p {
  color: var(--hcl-neutral-12);
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 40px 20px;
  }

  .testimonial-header {
    max-height: 120px;
    opacity: 1;
    margin-bottom: 30px;
  }

  /* Sempre exibir no mobile */
}

.section-label {
  font-size: var(--hfs-text-s);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: var(--hcl-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  display: inline-block;
  font-weight: 600;
}

.section-title {
  font-size: var(--hfs-h2);
  margin-bottom: 3rem;
}

.section-title em {
  display: inline-block;
  font-style: italic;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 500;
  color: #f5f5f5;
}

/* 3. FORMAS E EFEITOS */

/* Efeito de headline com linhas em loop */
.dan-looping-lines {
  display: inline-block;
  vertical-align: top;
  height: 1em;
  overflow: hidden;
  position: relative;
  background: var(--hcl-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dan-looping-lines ul {
  list-style: none;
  position: relative;
  top: 0;
}

.dan-looping-lines li {
  height: 1em;
  display: flex;
  align-items: center;
}


/* Cards Empilhados (Stacking Cards) */
.dan-stacking-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.dan-stacking-cards__card {
  position: sticky;
  top: 100px;
  background: var(--hcl-neutral-2);
  border: 1px solid var(--hcl-neutral-4);
  border-radius: 40px;
  padding: 60px;
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  transform-origin: center top;
}

/* 4. BOTÕES */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 18px 36px;
  border-radius: 100px;
  font-size: var(--hfs-text-s);
  font-weight: 600;
  transition: all 0.4s var(--ease-expo);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--hcl-brand-gradient);
  color: #f5f5f5;
}

.btn-primary:hover {
  background: var(--hcl-brand-10);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}

.btn-outline {
  border: 1px solid var(--hcl-neutral-4);
  color: var(--hcl-neutral-12);
}

.btn-outline:hover {
  border-color: var(--hcl-brand-9);
  color: var(--hcl-brand-9);
}

/* 5. BARRA DE NAVEGAÇÃO (NAVBAR) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 1000;
  transition: all 0.4s var(--ease-expo);
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--hcl-neutral-4);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.floating-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 6px 6px 24px;
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.5s var(--ease-expo);
}

.floating-wrapper.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-logo {
  color: var(--hcl-neutral-12);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--hcl-brand-gradient);
  text-decoration: none;
  transition: all 0.3s ease;
}

.floating-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.nav-inner {
  max-width: var(--bde-section-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--hcl-neutral-12);
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-studio {
  font-weight: 300;
  opacity: 0.7;
}

.logo-dot {
  background: var(--hcl-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 4px;
}

.logo-name {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: normal;
}

.nav-links {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

.nav-mobile-cta {
  display: none !important;
}

.nav-link {
  font-size: var(--hfs-text-s);
  font-weight: 500;
  color: var(--hcl-neutral-11);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: var(--hcl-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 6. SEÇÃO HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.midiaBackground {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.midiaBackground::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8, 8, 8, 0.7), rgba(8, 8, 8, 0.7));
  z-index: 1;
}

.midiaBackground img,
.midiaBackground video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  transition: opacity 1s ease;
}

.hero-media-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero-media-desktop {
    display: none;
  }
  .hero-media-mobile {
    display: block;
  }
}

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

.hero-title {
  font-size: var(--hfs-h0);
  line-height: 1;
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: var(--hfs-text-l);
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--hcl-neutral-10);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Contêiner de Partículas */
.dan-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 7. SUBSTITUTO DE BENTO (CARDS EMPILHADOS) */
.services-card-info h3 {
  font-size: var(--hfs-h2);
  margin-bottom: 1.5rem;
}

.services-card-info p {
  font-size: var(--hfs-text-m);
  margin-bottom: 2rem;
  color: var(--hcl-neutral-11);
}

.services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.services-tag {
  background: var(--hcl-neutral-3);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--hcl-neutral-12);
}

.services-card-image {
  background: var(--hcl-neutral-3);
  border-radius: 20px;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  position: relative;
}

.services-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* =============================
   SEÇÃO DE TRANSIÇÃO (REVELAÇÃO EM PÍLULA)
   ============================= */
.pill-reveal-section {
  position: relative;
  height: 200vh;
  /* scroll suficiente para mover a animação sem um grande espaço em branco */
  z-index: 20;
  background: var(--hcl-neutral-1);
}

/* contêiner fixo (sticky) — recorta a pílula em expansão na área da viewport */
.pill-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  /* deve ser hidden — a pílula escala 40x e é recortada na viewport */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Conteúdo de impacto sobreposto dentro da pílula — aparece quando a pílula preenche a tela */
.pill-impact-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  background: #fff;
  color: #000;
  overflow-y: auto;
  scrollbar-width: none;
  /* Esconder barra de rolagem no Firefox */
  -ms-overflow-style: none;
  /* Esconder barra de rolagem no IE/Edge */
}

.pill-impact-overlay::-webkit-scrollbar {
  display: none;
  /* Esconder barra de rolagem no Chrome/Safari */
}

.pill-impact-overlay .container {
  width: 100%;
  padding: 160px 24px 80px;
  /* Padding superior aumentado para evitar sobreposição da navbar */
}

.pill-impact-overlay .section-label {
  display: inline-block;
  background: var(--hcl-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pill-impact-overlay .section-title {
  color: #0a0a0a;
  font-weight: 500;
  /* Alterado de 800 para 500 (Medium) conforme solicitado */
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.pill-impact-overlay .section-title em {
  display: inline-block;
  font-style: italic;
  text-decoration: none;
  color: #0a0a0a;
}

.pill-impact-overlay .impact-author {
  color: #555;
}

.pill-impact-overlay .impact-author::before {
  background: var(--hcl-brand-9);
}

.pill-impact-overlay .impact-intro {
  color: #444;
  border-left-color: var(--hcl-brand-9);
}

.pill-impact-overlay .stat-number {
  color: #0a0a0a;
}

.pill-impact-overlay .impact-stat-item p {
  color: #444;
}

.pill-impact-overlay .impact-sources {
  color: #999;
}

.pill-impact-overlay.visible {
  pointer-events: auto;
}

/* padrão de grade da pílula vazada (hollow-pill) */
.pill-reveal-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='300' viewBox='0 0 160 300' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='20' y='20' width='120' height='260' rx='60' fill='none' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 160px 300px;
}

/* a pílula branca — começa pequena no centro */
.expanding-pill {
  width: 140px;
  height: 300px;
  background: #ffffff;
  border-radius: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  will-change: transform, border-radius;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.25);
  z-index: 2;
  transform-origin: center center;
  /* sempre escala a partir do centro */
}

/* SVG de texto com "CONTINUE DESCENDO" rotativo */
.pill-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  overflow: hidden;
}

.pill-text-svg {
  width: 130px;
  height: 130px;
  animation: rotateText 8s linear infinite;
  flex-shrink: 0;
}

.pill-text-svg text {
  fill: #333;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-family: var(--hff-sans, sans-serif);
}

@keyframes rotateText {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* remover estilos antigos de overlay */
.pill-reveal-overlay {
  display: none !important;
}

.pill-overflow {
  display: none !important;
}

/* 7.5 SEÇÃO DE IMPACTO (Revelada no Tema Claro) */
.impact {
  background: #ffffff;
  color: #000000;
  position: relative;
  z-index: 5;
  padding: 0 0 100px;
  /* sem padding no topo — a seção aparece nivelada após a revelação da pílula */
  margin-top: 0;
}

/* Grade lado a lado: imagem à esquerda, conteúdo à direita */
.impact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: center;
}

/* Ordem reversa: a imagem vem em segundo no HTML mas renderiza primeiro visualmente */
.impact-grid .impact-image {
  order: 1;
}

.impact-grid .impact-content {
  order: 2;
}

.impact .section-label {
  display: inline-block;
  background: var(--hcl-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.impact .section-title {
  color: #0a0a0a;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.impact .section-title em {
  display: inline-block;
  font-style: italic;
  text-decoration: none;
  color: #0a0a0a;
}

.impact-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  color: #555;
  margin-bottom: 2rem;
}

.impact-author::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--hcl-brand-gradient);
  flex-shrink: 0;
}

.impact-intro {
  font-size: 18px;
  color: #444;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.7;
  border-left: 3px solid var(--hcl-brand-light);
  padding-left: 1.25rem;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 2rem;
}

.impact-stat-item {
  background: #f7f7f7;
  padding: 40px 24px;
  border-radius: 50%;
  /* Alterado para circular conforme solicitado */
  aspect-ratio: 1 / 1;
  /* Garantir círculo perfeito */
  border: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Removida borda azul conforme solicitado */
/* .impact-stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--hcl-brand-9);
  border-radius: 0 4px 4px 0;
} */

.stat-number {
  display: block;
  font-size: 3rem;
  /* Um pouco maior para contexto de fonte serif */
  font-weight: 700;
  font-family: 'Times New Roman', Times, serif;
  /* Alterado para Times New Roman */
  background: var(--hcl-brand-9);
  /* Usando cor de marca em vez de gradiente para clareza na serif */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.impact-stat-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #111;
  font-weight: 500;
}

.impact-sources {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #777;
  font-weight: 600;
}

.impact-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.14);
  /* Aro decorativo */
  outline: 1px solid #e0e0e0;
  outline-offset: 8px;
}

.impact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animação de Revelação de Imagem */
.dan-image-reveal {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.dan-image-reveal__element {
  width: 100%;
  height: 100%;
  transform: scale(1.1);
  transition: transform 1.5s var(--ease-expo);
}

.impact-image:hover .dan-image-reveal__element {
  transform: scale(1);
}

/* 8. SOBRE (GLITCH E LINHAS) */
.about_home {
  padding: 160px 0;
  background: #050505;
  position: relative;
  overflow: hidden;
}

.dan-interactive-lines-v4 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
  /* Ainda mais sutil */
  pointer-events: none;
}

/* =============================
   ABOUT SPLIT (NOVO LAYOUT)
   ============================= */
.about-split-section {
  padding: 140px 0;
  background-color: var(--hcl-neutral-1);
}

.about-split.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-split-image {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 600px;
  background: var(--hcl-neutral-2);
}

.about-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.6s ease;
}

.about-split-image:hover img {
  filter: grayscale(0%) contrast(1);
}

.about-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.about-split-logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--hcl-neutral-12);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2.5rem;
}

.about-split-logo .logo-studio {
  font-weight: 300;
  opacity: 0.7;
}

.about-split-logo .logo-dot {
  background: var(--hcl-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-split-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.about-split-text p {
  font-size: var(--hfs-text-m);
  color: var(--hcl-neutral-10);
  line-height: 1.8;
}

.about-split-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 40px;
  column-gap: 20px;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 3.5rem;
}

.about-split-metric h3 {
  font-size: var(--hfs-h1);
  font-weight: 700;
  color: var(--hcl-neutral-12);
  margin-bottom: 8px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.about-split-metric p {
  font-size: var(--hfs-text-s);
  color: var(--hcl-neutral-9);
  text-transform: lowercase;
}

.about-split-cta {
  margin-top: auto;
}

.about-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--hfs-text-s);
  font-weight: 600;
  color: var(--hcl-neutral-12);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hcl-neutral-12);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-icon-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.about-link-arrow:hover {
  color: var(--hcl-brand-light);
  border-bottom-color: var(--hcl-brand-light);
}

.about-link-arrow:hover .about-icon-arrow {
  transform: translate(6px, -6px);
}

@media (max-width: 1024px) {
  .about-split.grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-split-image {
    min-height: 400px;
  }
  .about-split-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .about-split-metrics {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
    padding: 30px 0;
  }
}


/* 9. FAQ & ACCORDION */
.faq-item {
  border-bottom: 1px solid var(--hcl-neutral-4);
}

.faq-question {
  width: 100%;
  padding: 30px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--hcl-neutral-12);
  font-size: var(--hfs-text-l);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.4s var(--ease-expo);
  background: var(--hcl-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform-origin: center;
}

.faq-icon.open {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s var(--ease-expo);
  color: var(--hcl-neutral-10);
}

.faq-answer.open {
  max-height: 200px;
  padding-bottom: 30px;
}

/* 10. FOOTER */
.footer {
  padding: 100px 0 40px;
  background: var(--hcl-neutral-1);
  border-top: 1px solid var(--hcl-neutral-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--hcl-neutral-12);
}

.footer-desc {
  max-width: 300px;
  color: var(--hcl-neutral-10);
}

.footer-col-title {
  font-size: 14px;
  color: var(--hcl-neutral-12);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--hcl-neutral-10);
}

.footer-links a:hover {
  color: var(--hcl-brand-9);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid var(--hcl-neutral-4);
  font-size: 12px;
  color: var(--hcl-neutral-9);
}


/* 7.6 CONTACT SECTION REDESIGN */
.contact {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: var(--hcl-neutral-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container-contact {
  position: relative;
  z-index: 2;
  width: 100%;
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.contact-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  text-transform: uppercase;
  user-select: none;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 60px 24px;
    border-radius: 32px;
  }

  .contact-bg-text {
    font-size: 20vw;
  }
}

/* ============================================================
   11. HAMBURGER MENU
   ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hcl-neutral-4);
  border-radius: 8px;
  cursor: pointer;
  z-index: 1100;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.nav-hamburger:hover {
  border-color: var(--hcl-neutral-7);
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--hcl-neutral-12);
  border-radius: 2px;
  transition: all 0.35s var(--ease-expo);
  transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-links.mobile-open {
  display: flex;
}

/* ============================================================
   12. RESPONSIVIDADE COMPLETA
   ============================================================ */

/* ── NOTEBOOK / LARGE TABLET (≤ 1280px) ── */
@media (max-width: 1280px) {
  .dan-stacking-cards__card {
    padding: 50px;
    gap: 50px;
    min-height: 440px;
  }

  .impact-grid {
    gap: 60px;
  }

  .about-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {

  /* Stacking cards — single column */
  .dan-stacking-cards__card {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 40px;
    min-height: auto;
  }

  /* Impact section */
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .impact-grid .impact-image {
    order: 1;
    max-width: 400px;
    margin: 0 auto;
  }

  .impact-grid .impact-content {
    order: 2;
  }

  .impact-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* About */
  .about-bento {
    gap: 60px;
  }

  .about-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .metric-card {
    padding: 30px;
  }

  .metric-num {
    font-size: 3.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Portfólio */
  .portfolio-wrapper {
    padding: 60px 30px;
  }

  /* Seção da pílula — simplificar no tablet */
  .pill-impact-overlay .container {
    padding: 120px 24px 60px;
  }
}

/* ── LANDSCAPE MOBILE / TABLET PEQUENO (≤ 768px) ── */
@media (max-width: 768px) {

  /* Navbar — mostrar hambúrguer */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 1050;
    padding: 80px 24px;
  }

  .nav-desktop-cta {
    display: none !important;
  }

  .nav-mobile-cta {
    display: inline-flex !important;
  }

  .nav-links {
    transform: none !important;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-link {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--hcl-neutral-11);
  }

  .nav-links .btn-primary {
    margin-left: 0 !important;
    padding: 16px 40px !important;
    font-size: 1rem !important;
    width: auto;
    text-align: center;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Principal (Hero) */
  .hero {
    padding-top: 80px;
    min-height: 100svh;
  }

  .hero-content {
    padding: 0 16px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    max-width: 360px;
  }

  /* Serviços */
  .services {
    /* Removed pin spacing */
  }

  .dan-stacking-cards__card {
    border-radius: 28px;
    padding: 32px 24px;
    gap: 32px;
  }

  .services-card-image {
    min-height: 220px;
  }

  .services-card-info h3 {
    font-size: var(--hfs-h3);
  }

  /* Portfólio */
  .portfolio {
    padding: 70px 0;
  }

  .portfolio-wrapper {
    border-radius: 24px;
    padding: 40px 20px;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }

  .portfolio-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .portfolio-card {
    flex: 0 0 280px;
  }

  /* Depoimentos */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 32px 20px;
  }

  .testimonial-header {
    max-height: 120px;
    opacity: 1;
    margin-bottom: 24px;
  }

  /* Seção da Pílula (Pill Section) */
  .pill-reveal-section {
    height: 400vh;
    /* Aumentado para dar mais tempo de visualização no tablet/mobile */
  }

  .pill-impact-overlay .container {
    padding: 120px 20px 80px;
    /* Reduzido padding superior para a foto aparecer antes */
  }

  .pill-sticky {
    overflow: hidden;
    /* Mantido hidden para o corte da pílula funcionar, scroll é controlado pela altura da seção */
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .impact-grid .impact-image {
    display: block;
    max-width: 200px;
    /* Reduzido para sobrar mais espaço para o texto */
    margin: 0 auto;
  }

  .impact-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .impact-stat-item {
    padding: 20px 12px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .impact-stat-item p {
    font-size: 12px;
  }

  /* Sobre */
  .about_home {
    padding: 100px 0;
  }

  .about-bento {
    gap: 50px;
  }

  .about-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .about-text {
    font-size: 1rem;
  }

  .about-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .metric-card {
    padding: 20px 12px;
  }

  .metric-num {
    font-size: 2.8rem;
  }

  /* FAQ */
  .faq-question {
    font-size: var(--hfs-text-m);
    padding: 24px 0;
  }

  /* Contact */
  .contact-card {
    padding: 60px 24px;
    border-radius: 32px;
  }

  .contact-bg-text {
    font-size: 20vw;
  }

  /* Rodapé (Footer) */
  .footer {
    padding: 70px 0 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ── MOBILE RETRATO (≤ 480px) ── */
@media (max-width: 480px) {

  /* Global */
  :root {
    --bde-section-horizontal-padding: 16px;
  }

  /* Navbar */
  .nav-logo {
    font-size: 1rem;
  }

  /* Principal (Hero) */
  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .btn-primary,
  .btn-outline {
    padding: 16px 24px;
    font-size: 0.875rem;
  }

  /* Serviços */
  .services {
    /* Removed pin spacing */
  }

  .dan-stacking-cards__card {
    top: 80px;
    border-radius: 24px;
    padding: 28px 20px;
  }

  .dan-stacking-cards {
    gap: 28px;
  }

  .services-card-image {
    min-height: 180px;
  }

  /* Portfólio */
  .portfolio-card {
    flex: 0 0 260px;
  }

  /* Estatísticas de Impacto */
  .impact-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .impact-stat-item {
    border-radius: 16px;
    aspect-ratio: auto;
    padding: 24px 20px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 16px;
  }

  .stat-number {
    font-size: 2.5rem;
    min-width: 80px;
    margin-bottom: 0;
  }

  /* Métricas do Sobre: empilhamento vertical a partir de 480px */
  .about-metrics {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .metric-card {
    aspect-ratio: auto;
    border-radius: 20px;
    padding: 28px 24px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 20px;
  }

  .metric-num {
    font-size: 3rem;
    min-width: 80px;
    margin-bottom: 0;
  }

  .metric-card p {
    max-width: 100%;
  }

  /* Footer */
  .footer-logo {
    font-size: 1.2rem;
  }
}

/* ── MOBILE PEQUENO 420px (foco especial) ── */
@media (max-width: 440px) {

  /* Navbar */
  .nav-inner {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.6rem);
    line-height: 1.05;
  }

  .hero-sub {
    font-size: 0.9rem;
    padding: 0 4px;
  }

  .hero-content {
    padding: 0 12px;
  }

  /* Seções */
  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    margin-bottom: 2rem;
  }

  /* Cards empilhados de serviços */
  .dan-stacking-cards__card {
    padding: 24px 16px;
    top: 72px;
    border-radius: 20px;
  }

  .services-card-info h3 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .services-tags {
    gap: 6px;
  }

  .services-tag {
    font-size: 11px;
    padding: 5px 10px;
  }

  .services-card-image {
    min-height: 160px;
    border-radius: 14px;
  }

  /* Portfólio */
  .portfolio-wrapper {
    border-radius: 20px;
    padding: 28px 16px;
  }

  .portfolio-card {
    flex: 0 0 240px;
  }

  .portfolio-header {
    gap: 16px;
    margin-bottom: 24px;
  }

  .portfolio-nav-btn {
    width: 44px;
    height: 44px;
  }

  /* Depoimentos */
  .testimonial-card {
    padding: 24px 16px;
  }

  .testimonial-avatar {
    width: 56px;
    height: 56px;
  }

  /* Pílula & Impacto */
  .pill-reveal-section {
    height: 600vh;
    /* Aumentado drasticamente para permitir que o conteúdo longo seja visto totalmente no mobile */
  }

  .pill-impact-overlay .container {
    padding: 320px 16px 60px;
    /* Aumentado de 80px para 120px para garantir que a foto não fique atrás da navbar */
  }

  .pill-sticky {
    overflow: hidden;
  }

  .pill-impact-overlay .section-title {
    font-size: 1.3rem;
    /* Tamanho fixo menor para garantir que caiba */
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .impact-intro {
    font-size: 14px;
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .impact-author {
    font-size: 14px;
    margin-bottom: 1rem;
  }

  .impact-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 1rem;
  }

  .impact-stat-item {
    padding: 12px 16px;
    border-radius: 12px;
    background: #f9f9f9;
    min-height: 0;
  }

  .stat-number {
    font-size: 1.5rem;
    min-width: 50px;
    margin-right: 12px;
  }

  .impact-stat-item p {
    font-size: 11px;
    margin: 0;
  }

  .impact-sources {
    font-size: 10px;
    margin-top: 5px;
  }

  .impact-grid .impact-image {
    max-width: 160px;
    /* Foto ainda menor para liberar espaço vertical */
    margin-bottom: 20px;
  }

  .expanding-pill {
    width: 110px;
    height: 240px;
  }

  .pill-text-svg {
    width: 100px;
    height: 100px;
  }

  /* About */
  .about_home {
    padding: 80px 0;
  }

  .about-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .about-text {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .metric-num {
    font-size: 2.6rem;
  }

  /* FAQ */
  .faq-question {
    font-size: 0.95rem;
    padding: 20px 0;
    gap: 12px;
  }

  .faq-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  /* Contact */
  .contact {
    padding: 80px 0;
  }

  .contact-card {
    padding: 48px 20px;
    border-radius: 24px;
  }

  .contact-card .section-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    margin-bottom: 2rem !important;
  }

  .contact-card .btn-primary {
    font-size: 0.95rem !important;
    padding: 16px 24px !important;
  }

  /* Rodapé (Footer) */
  .footer {
    padding: 60px 0 28px;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-logo {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }

  .footer-desc {
    font-size: 0.875rem;
  }

  .footer-col-title {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .footer-links li {
    margin-bottom: 10px;
  }

  .footer-links a {
    font-size: 0.875rem;
  }

  .footer-bottom {
    font-size: 11px;
    padding-top: 28px;
    gap: 6px;
  }
}