/* ==========================================================================
   UrbanBoxMachine — Landing Page
   Paleta: dark premium (zinc) + acento esmeralda (conveniência/tecnologia)
   ========================================================================== */

:root {
  /* Cores da marca */
  --bg: #030303; /* Preto profundo premium */
  --surface: #09090b;
  --surface-2: #121215;
  --border: rgba(255, 255, 255, 0.06);
  --text: #FAFAFA;
  --text-muted: #A1A1AA;
  --accent: #10B981;
  --accent-light: #34D399;
  --accent-dark: #052E22;
  --gradient: linear-gradient(135deg, #34D399 0%, #06b6d4 100%); /* Esmeralda a ciano elétrico */

  /* Tipografia e espaçamento */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 20px; /* Cantos levemente mais arredondados estilo mobile premium */
  --radius-sm: 12px;
  --container: 1160px;
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Grid Overlay e Brilhos Ambientais ---------- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -99;
  pointer-events: none;
  background-size: 36px 36px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -100;
  opacity: 0.08;
  will-change: transform;
}
.ambient-glow--1 {
  top: -15%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}
.ambient-glow--2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
}

/* Tipografia de títulos */
h1, h2, h3, h4,
.section__title,
.hero__title,
.bento-card__title,
.nav__link,
.badge,
.hero__stats strong,
.btn {
  font-family: var(--font-display);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Compensa o header fixo nos links de âncora */
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

/* ---------- Acessibilidade: respeita preferência por menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Mostra tudo imediatamente, sem deslocamento */
  .reveal, .anim, .hero__title .word {
    opacity: 1 !important;
    transform: none !important;
  }
  .zoom-on-scroll img { transform: none !important; }
  /* Sem lanterna animada: máquinas visíveis num brilho médio e estável */
  .hero__flashlight { animation: none !important; }
  .hero__machines--lit {
    -webkit-mask-image: none !important;
            mask-image: none !important;
    filter: brightness(0.6) saturate(1) !important;
  }
  .hero__beam { display: none !important; }
}

/* ---------- Utilitários ---------- */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Sistema de animação de entrada (IntersectionObserver) ----------
   .anim + data-anim define a direção; .is-visible (via JS) dispara.
   data-delay no HTML vira transition-delay inline. */
.anim {
  opacity: 0;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.anim[data-anim="fade-up"]    { transform: translateY(36px); }
.anim[data-anim="fade-left"]  { transform: translateX(40px); }
.anim[data-anim="fade-right"] { transform: translateX(-40px); }
.anim[data-anim="zoom"]       { transform: scale(0.92); }
.anim[data-anim="fade"]       { transform: none; }
.anim.is-visible { opacity: 1; transform: none; }

/* Compat: estilo antigo, caso algum .reveal permaneça */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

/* Estado "scrolled": fundo translúcido com blur (estilo Vercel/Linear) */
.header.is-scrolled {
  background: rgba(9, 9, 11, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo img { height: 38px; width: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--text); }

.nav__link:not(.nav__link--cta)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__link:not(.nav__link--cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link--cta {
  color: var(--bg);
  background: var(--accent-light);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav__link--cta:hover, .nav__link--cta:focus-visible {
  color: var(--bg);
  background: #6EE7B7;
  transform: translateY(-1px);
}

/* Hambúrguer (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero — cinematográfico full-bleed
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: clamp(7rem, 14vw, 9rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

/* ----- Fundo "lanterna" (flashlight) ----- */
/* Permite animar a posição da luz via CSS (idle) e JS (cursor) */
@property --fx { syntax: '<length>'; inherits: true; initial-value: -400px; }
@property --fy { syntax: '<length>'; inherits: true; initial-value: -400px; }

.hero__flashlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Duas máquinas lado a lado (cada <img> ocupa metade da largura) */
.hero__machines {
  position: absolute;
  inset: 0;
  display: flex;
}
.hero__machines img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

/* Camada base: máquinas "apagadas" (escuras), sempre visíveis */
.hero__machines--dark {
  z-index: 0;
  filter: brightness(0.2) saturate(0.8) contrast(1.05);
}

/* Camada iluminada: revelada só no círculo da lanterna (máscara radial) */
.hero__machines--lit {
  z-index: 1;
  filter: brightness(1.12) saturate(1.18) contrast(1.04);
  -webkit-mask-image: radial-gradient(circle 200px at var(--fx) var(--fy),
    #000 0%, #000 26%, rgba(0,0,0,0.45) 52%, transparent 74%);
          mask-image: radial-gradient(circle 200px at var(--fx) var(--fy),
    #000 0%, #000 26%, rgba(0,0,0,0.45) 52%, transparent 74%);
}

/* Halo de luz esverdeado que reforça a sensação de lanterna */
.hero__beam {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle 240px at var(--fx) var(--fy),
    rgba(110, 231, 183, 0.22), rgba(52, 211, 153, 0.07) 42%, transparent 70%);
  mix-blend-mode: screen;
}

/* Movimento idle: a luz "procura" sozinha até o usuário assumir o controle */
.hero:not(.is-lit) .hero__flashlight {
  animation: idle-beam 9s ease-in-out infinite;
}
@keyframes idle-beam {
  0%   { --fx: 32vw; --fy: 42vh; }
  25%  { --fx: 62vw; --fy: 30vh; }
  50%  { --fx: 74vw; --fy: 60vh; }
  75%  { --fx: 44vw; --fy: 66vh; }
  100% { --fx: 32vw; --fy: 42vh; }
}

/* Scrim: escurece esquerda (texto) e base; centro/direita ficam livres p/ a luz */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(9,9,11,0.92) 0%, rgba(9,9,11,0.6) 30%, rgba(9,9,11,0.2) 52%, transparent 70%),
    linear-gradient(0deg, var(--bg) 1%, transparent 24%);
}

.hero__glow {
  position: absolute;
  top: -10%;
  left: 25%;
  z-index: 3;
  width: 800px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Dica de interação (some quando a lanterna é ativada) */
.hero__hint {
  position: absolute;
  bottom: 1.5rem;
  right: 1.75rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(24, 24, 27, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: opacity 0.4s ease;
}
.hero.is-lit .hero__hint { opacity: 0; }
@media (max-width: 768px) { .hero__hint { display: none; } }

/* position relative serve de âncora para as estatísticas (canto inferior direito) */
.hero__inner { display: block; position: relative; }
/* z-index 5 mantém o texto acima do scrim (z3) e da lanterna */
.hero__content { max-width: 680px; position: relative; z-index: 5; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero__title {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}
.hero__title .line { display: block; }

/* Reveal palavra por palavra: cada .word sobe de baixo com clip */
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.1em);
  animation: word-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* Como os .word são inline-block, o gradiente do pai não os preenche.
   Reaplicamos o clip do gradiente em cada palavra da linha colorida. */
.hero__title .text-gradient .word {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes word-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #D4D4D8;
  max-width: 540px;
  margin-bottom: 2.25rem;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Estatísticas — base (mobile/tablet): em fluxo, abaixo dos botões */
.hero__stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.25rem;
  position: relative;
  z-index: 5;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__stats span { font-size: 0.82rem; color: var(--text-muted); }

/* Desktop (>1024px): painel vertical no canto superior direito,
   alinhado ao topo do conteúdo (não colide com os botões embaixo). */
@media (min-width: 1025px) {
  .hero__stats {
    position: absolute;
    right: -3rem; /* Desloca mais para a extrema direita */
    top: 55%; /* Centraliza mais abaixo verticalmente */
    translate: 0 -50%; /* Alinhamento vertical preciso sem conflitar com transform da animação */
    margin-top: 0;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: var(--radius);
    background: rgba(9, 9, 11, 0.42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
  }
  .hero__stats li { align-items: flex-end; text-align: right; }
}

/* Indicador de scroll: "mouse" com bolinha que desce */
.hero__scroll {
  position: absolute;
  z-index: 5;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent-light);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  color: var(--bg);
  background: var(--accent-light);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: #6EE7B7;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
}

.btn--whatsapp {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.btn--whatsapp:hover, .btn--whatsapp:focus-visible {
  background: #1F1F23;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ==========================================================================
   Seções (estrutura comum)
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface); }

/* Seções com foto de fundo + overlay escuro. O overlay garante legibilidade
   do header e dos cards (agora liquid glass); a imagem aparece no meio. */
#beneficios,
#como-funciona {
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#beneficios {
  background-image:
    linear-gradient(180deg, rgba(9, 9, 11, 0.94) 0%, rgba(9, 9, 11, 0.78) 48%, rgba(9, 9, 11, 0.95) 100%),
    url("../assets/img/maquina_machine.jpg");
}
#como-funciona {
  background-image:
    linear-gradient(180deg, rgba(9, 9, 11, 0.94) 0%, rgba(9, 9, 11, 0.78) 48%, rgba(9, 9, 11, 0.95) 100%),
    url("../assets/img/operacao.jpg");
}

.section__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.section__text {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
  max-width: 60ch;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}
.section__header .section__text { margin-inline: auto; }

.section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* ==========================================================================
   Benefícios (cards)
   ========================================================================== */
/* ==========================================================================
   Bento Grid (Benefícios)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  grid-auto-rows: minmax(160px, auto);
}

.bento-card {
  position: relative;
  background: rgba(16, 16, 19, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
  z-index: 1;
}

/* Border Glow Spotlight effect using CSS masking */
.bento-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    250px circle at var(--mx, 50%) var(--my, 50%),
    rgba(52, 211, 153, 0.35),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.bento-card:hover {
  transform: translateY(-6px);
  background: rgba(24, 24, 27, 0.5);
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.bento-card:hover::after {
  opacity: 1;
}

/* Bento grid sizing modifiers */
.bento-card--large {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, rgba(16, 16, 19, 0.45) 0%, rgba(9, 9, 11, 0.25) 100%);
}

.bento-card--medium {
  grid-column: span 2;
}

.bento-card--full {
  grid-column: span 4;
}

/* Bento card typography & items */
.bento-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.bento-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.3;
}

.bento-card--large .bento-card__title {
  font-size: 1.6rem;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.bento-card__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento-card--large .bento-card__text {
  font-size: 1.02rem;
  max-width: 90%;
}

.bento-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-light);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.12);
  transition: background 0.3s ease, color 0.3s ease;
}

.bento-card:hover .bento-card__icon {
  background: var(--accent-light);
  color: var(--bg);
}

.bento-card__icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-card:hover .bento-card__icon svg {
  transform: scale(1.1) rotate(-8deg);
}

/* Card 1 Mini Dashboard Styling */
.bento-card__mini-dashboard {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.25rem;
}

.mini-db__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mini-db__icon {
  color: var(--accent-light);
  font-weight: bold;
}

/* Card 2 Header Row for Medium Cards */
.bento-card__header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.bento-card__header-row .bento-card__icon {
  margin-bottom: 0;
}

.bento-card__header-row .bento-card__title {
  margin-bottom: 0;
}

/* Card 2 Signal Animation */
.bento-card__signal {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-light);
  z-index: 2;
}

.signal-pulse {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent-light);
  opacity: 0;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.3); opacity: 0.8; }
  80%, 100% { transform: scale(1.2); opacity: 0; }
}

/* Card 8 Content Styling */
.bento-card__content--row {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.bento-card__icon--large {
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

.bento-card__icon--large svg {
  width: 28px;
  height: 28px;
}

.bento-card__text-block {
  flex: 1;
}

.bento-card__text-block .bento-card__title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Como Funciona (etapas)
   ========================================================================== */
.steps-wrapper {
  position: relative;
  width: 100%;
}

.steps-progress-line {
  position: absolute;
  top: 1.75rem;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 1;
  will-change: transform;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
  z-index: 2;
}

.step {
  position: relative;
  background: rgba(16, 16, 19, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
  z-index: 1;
}

.step::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    200px circle at var(--mx, 50%) var(--my, 50%),
    rgba(52, 211, 153, 0.35),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.2);
  background: rgba(24, 24, 27, 0.4);
}

.step:hover::after {
  opacity: 1;
}

.step__number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bg);
  background: var(--gradient);
  margin-bottom: 1.15rem;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
  position: relative;
  z-index: 3;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Onde Atendemos (chips)
   ========================================================================== */
.places {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 880px;
  margin-inline: auto;
}

.place {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.place:hover {
  transform: translateY(-4px);
  border-color: var(--accent-light);
  background: rgba(16, 185, 129, 0.04);
  box-shadow: 0 8px 24px -8px rgba(16, 185, 129, 0.25);
}
.place svg {
  width: 20px;
  height: 20px;
  color: var(--accent-light);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.place:hover svg {
  transform: scale(1.15) rotate(8deg);
}


/* ==========================================================================
   Contato / Formulário
   ========================================================================== */
.section--contact {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 55%),
    var(--surface);
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.contact__channels li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact__channels svg { width: 20px; height: 20px; color: var(--accent-light); flex-shrink: 0; }
.contact__channels a { transition: color 0.2s ease; }
.contact__channels a:hover { color: var(--accent-light); }

.form {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group { display: flex; flex-direction: column; gap: 0.45rem; }

.form__group label {
  font-size: 0.85rem;
  font-weight: 600;
}
.form__group label span[aria-hidden] { color: var(--accent-light); }
.form__optional { color: var(--text-muted); font-weight: 400; font-size: 0.78rem; }

.form__group input,
.form__group textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: #52525B; }

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}

/* Borda vermelha apenas após tentativa de envio (classe via JS) */
.form.was-validated input:invalid,
.form.was-validated textarea:invalid {
  border-color: #F87171;
}

textarea { resize: vertical; min-height: 110px; }

.form__feedback {
  display: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}
.form__feedback.is-success {
  display: block;
  color: var(--accent-light);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.form__feedback.is-error {
  display: block;
  color: #FCA5A5;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__brand img { height: 36px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer__col h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col li, .footer__col a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--accent-light); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  text-align: center;
}
.footer__bottom p { font-size: 0.85rem; color: #52525B; }

/* ==========================================================================
   WhatsApp flutuante
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: #25D366;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  animation: float-btn 3s ease-in-out infinite;
}
.whatsapp-fab:hover {
  animation-play-state: paused;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}

@keyframes float-btn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(150px, auto);
  }
  .bento-card--large,
  .bento-card--medium,
  .bento-card--full {
    grid-column: span 2;
  }
  .bento-card__content--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps-progress-line { display: none; } /* Desativa a linha horizontal no tablet/mobile */
}

@media (max-width: 768px) {
  /* Menu mobile: painel deslizante abaixo do header */
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
  }
  .nav__link {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
  }
  .nav__link--cta {
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.85rem;
  }

  .nav-toggle { display: flex; }

  .section__grid,
  .contact { grid-template-columns: 1fr; }

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-left: 3.5rem;
  }
  .step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
  }
  .step__number {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .form__row { grid-template-columns: 1fr; }

  /* Linha conectora vertical no mobile */
  .steps-wrapper {
    padding-left: 0.5rem;
  }
  .steps-progress-line {
    display: block;
    left: 42px;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    height: calc(100% - 4rem);
    transform-origin: top center;
    transform: scaleY(0);
  }
}

@media (max-width: 540px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--large,
  .bento-card--medium,
  .bento-card--full {
    grid-column: span 1;
  }
  .bento-card--large {
    grid-row: span 1;
  }
  .bento-card__mini-dashboard {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .hero__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .whatsapp-fab { width: 50px; height: 50px; bottom: 1rem; right: 1rem; }
}

/* ==========================================================================
   EFEITOS CINEMATOGRÁFICOS
   ========================================================================== */

/* ---------- Barra de progresso de leitura ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--gradient);
  z-index: 200;
  will-change: transform;
}

/* ---------- Grain (textura de filme) ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.04;
  /* Ruído gerado em SVG inline: sem requisição de imagem */
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.6s steps(2) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-3%, 2%); }
  100% { transform: translate(2%, -2%); }
}

/* ---------- Marquee (faixa de texto rolante) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.25rem;
}
.marquee::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%);
}
/* Fundo "vidro fosco": foto da máquina bem escurecida + blur forte (igual aos cards) */
.marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(9, 9, 11, 0.9), rgba(9, 9, 11, 0.9)),
    url("../assets/img/machine_bebida.jpg") center / cover;
  filter: blur(10px);
  transform: scale(1.15); /* evita bordas transparentes geradas pelo blur */
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
/* Texto preenchido e legível (antes era só contorno fino, ilegível) */
.marquee__group span {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #E4E4E7;
  white-space: nowrap;
}
/* Separador em verde acento (toque editorial) */
.marquee__group b {
  color: var(--accent-light);
  font-size: 0.7em;
  margin-inline: clamp(1rem, 2.2vw, 1.75rem);
  opacity: 0.9;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Seção Sobre: card de vidro sobre a foto ---------- */
.section--sobre {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section--sobre .container {
  display: flex;
  justify-content: center;
}
.sobre__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.sobre__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: sobre-crossfade 18s infinite;
}
.sobre__slide:nth-child(1) { animation-delay: 0s; }
.sobre__slide:nth-child(2) { animation-delay: 6s; }
.sobre__slide:nth-child(3) { animation-delay: 12s; }

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

@keyframes sobre-crossfade {
  0%, 22% { opacity: 1; }
  33%, 88% { opacity: 0; }
  100% { opacity: 1; }
}


/* Escurece as bordas com uma vinheta radial e a base, integrando o card centralizado */
.sobre__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(9, 9, 11, 0.35) 0%, rgba(9, 9, 11, 0.85) 100%),
    linear-gradient(0deg, var(--bg) 1%, transparent 30%, transparent 70%, rgba(9, 9, 11, 0.6) 100%);
}
/* Card de vidro fosco com o texto */
.sobre__card {
  max-width: 720px;
  width: 100%; /* Garante responsividade em telas menores */
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: rgba(16, 16, 19, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.sobre__card .section__title { margin-bottom: 1.25rem; }
.sobre__card .section__text:last-child { margin-bottom: 0; }

.sobre__places {
  margin-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}
.sobre__places-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 0.85rem;
  font-weight: 700;
}
.sobre__places-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
}
@media (max-width: 480px) {
  .sobre__places-list {
    grid-template-columns: 1fr;
  }
}
.sobre__places-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.sobre__places-list li .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-light);
}


/* Zoom-on-scroll: --p (0→1) é atualizado pelo JS conforme a foto cruza a tela */
.zoom-on-scroll { --p: 0; }
.zoom-on-scroll img {
  transform: scale(calc(1.18 - 0.18 * var(--p)));
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ---------- Seção de citação com parallax ---------- */
.quote {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.quote__bg {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  will-change: transform;
}
.quote__bg img { width: 100%; height: 100%; object-fit: cover; }
.quote__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg) 4%, rgba(9,9,11,0.72) 50%, var(--bg) 96%);
}
.quote__text {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Linha conectora dinâmica controlada por JavaScript scroll */
.steps.is-visible .steps-progress-line {
  /* O preenchimento da timeline agora é ativado dinamicamente por JS */
}

/* ---------- Botões magnéticos ---------- */
.magnetic {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background 0.2s ease;
  will-change: transform;
}
