/* ===========================================================
   SWELL FILMES — Identidade visual
   Paleta + tokens herdados da proposta comercial
   =========================================================== */

:root {
  --bg:           #0A0A0B;
  --bg-elev:      #0E0E10;
  --panel:        #111113;
  --panel-2:      #16161A;
  --line:         #23232A;
  --line-strong:  #342B20;
  --ink:          #F5F3EE;
  --ink-dim:      #A5A5AC;
  --ink-mute:     #7C7C82;
  --accent:       #E8892B;
  --accent-warm:  #FFA94A;
  --accent-deep:  #B8651B;
  --accent-dim:   #3A2413;
  --ok:           #7FE0B0;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);

  /* Sistema de radius: 3 tokens consistentes */
  --radius-sm: 6px;        /* inputs */
  --radius: 10px;          /* cards, forms, panels */
  --radius-pill: 999px;    /* botões, pills */

  --shadow-glow: 0 10px 32px rgba(232,137,43,.18), 0 0 0 1px rgba(232,137,43,.22);
  --shadow-glow-strong: 0 14px 40px rgba(232,137,43,.28), 0 0 0 1px rgba(232,137,43,.38);

  /* Focus visible — acessibilidade */
  --focus-ring: 2px solid var(--accent);
  --focus-offset: 3px;
}

/* Focus visível em tudo que é interativo (acessibilidade) */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

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

html {
  scroll-behavior: smooth;
  /* Compensa header fixo quando o usuário entra direto por #hash (URL/share) */
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* iOS overscroll bounce escuro pra combinar com o tema */
  background-color: var(--bg);
  -webkit-tap-highlight-color: rgba(232,137,43,.25);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Previne overflow horizontal em qualquer descendente */
html, body { max-width: 100%; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent); }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Selection */
::selection { background: var(--accent); color: #000; }

/* Scrollbar dark */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a31; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* ===========================================================
   TIPOGRAFIA UTILITÁRIA
   =========================================================== */
.display {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
}

.upc {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.accent { color: var(--accent); }

/* ===========================================================
   ELEMENTOS REUTILIZÁVEIS
   =========================================================== */

/* Tags / pills */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  border-radius: 3px;
}
.tag-accent {
  border-color: var(--accent);
  color: var(--accent);
}

/* LED dot */
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}
.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

/* Hairline divisória */
.hairline {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  line-height: 1;
  /* Apple HIG: tap target mínimo 44px */
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}
.btn-sm { padding: 10px 18px; font-size: 13px; min-height: 40px; }
.btn-lg { padding: 16px 28px; font-size: 16px; min-height: 52px; }
.btn-block { width: 100%; }

.btn-accent {
  background: var(--accent);
  color: var(--bg);
}
.btn-accent:hover {
  background: var(--accent-warm);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,137,43,.4);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,137,43,.05);
}

/* Card base — hover glow accent */
[data-card] {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease, background .3s ease;
}
[data-card]:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
[data-card][data-accent="true"] {
  background: linear-gradient(135deg, rgba(232,137,43,.08), var(--panel));
  border-color: var(--line-strong);
}
[data-card][data-accent="true"]:hover {
  box-shadow: var(--shadow-glow-strong);
}

/* Cursor REC custom */
.rec-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(232, 30, 30, .9);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  border-radius: 3px;
  opacity: 0;
  transform: translate(16px, 16px);
  transition: opacity .2s ease;
}
.rec-cursor.active { opacity: 1; }
.rec-cursor .dot {
  background: white;
  box-shadow: 0 0 6px white;
  animation: blink 1s infinite;
  width: 5px; height: 5px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 10, 11, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 11, .88);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity .2s ease;
}
.brand:hover { opacity: .8; }
/* Logo wordmark — proporção 1165:327 (~3.56:1) */
.brand img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-desktop a {
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 500;
  position: relative;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease, left .25s ease;
}
.nav-desktop a:hover {
  color: var(--ink);
}
.nav-desktop a:hover::after {
  width: 100%;
  left: 0;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.live-dot {
  font-size: 11px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot .dot {
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}
.clock {
  font-size: 11px;
  color: var(--ink-mute);
  min-width: 64px;
  text-align: right;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  /* Tap target Apple HIG */
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  bottom: 0;
  background: rgba(10, 10, 11, .98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* hidden by default — controlled por .open */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 49;
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.nav-mobile a {
  padding: 18px 4px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.nav-mobile a::after {
  content: '→';
  color: var(--accent);
  font-size: 16px;
  opacity: .6;
}
.nav-mobile a.btn {
  margin-top: 20px;
  border-bottom: none;
  justify-content: center;
  padding: 16px;
}
.nav-mobile a.btn::after { display: none; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  /* 100vh tem bug no iOS (inclui address bar). dvh = dynamic viewport height */
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px var(--gutter) 80px;
  /* Respeita notch do iPhone */
  padding-top: max(120px, calc(env(safe-area-inset-top) + 100px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 0%, rgba(232,137,43,.10), transparent 60%),
              radial-gradient(ellipse at 70% 100%, rgba(232,137,43,.06), transparent 60%),
              var(--bg);
}

/* Vídeo de fundo */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  filter: saturate(.85) contrast(1.05);
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,.45) 0%, rgba(10,10,11,.15) 40%, rgba(10,10,11,.85) 100%),
    radial-gradient(ellipse at 30% 30%, rgba(232,137,43,.06), transparent 60%);
}

.hero-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: .55;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .6;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* Gradiente lateral que protege a área do form de competição visual */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(270deg, rgba(10,10,11,.45), transparent);
  z-index: 3;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .hero::after { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 4;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-size: clamp(48px, 8.5vw, 132px);
  margin: 28px 0 24px;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-dim);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 36px;
}
.hero-sub em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat .mono {
  font-size: 10px;
  color: var(--ink-mute);
}
.stat .display {
  font-size: clamp(28px, 3vw, 38px);
}
.stat .mono { font-size: 11px; }

/* Lead form lateral hero */
.hero-form {
  background: linear-gradient(180deg, rgba(17,17,19,.92), rgba(14,14,16,.92));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(8px);
  position: relative;
}
.hero-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(180deg, rgba(232,137,43,.4), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.form-head {
  margin-bottom: 24px;
}
.form-head .mono.upc {
  font-size: 10px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.form-head h3.display {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}
.form-head p {
  font-size: 13px;
  color: var(--ink-dim);
}

/* Form fields */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field .mono.upc {
  font-size: 10px;
  color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  /* 16px é o mínimo para iOS não aplicar zoom automático ao focar */
  font-size: 16px;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, background .2s ease;
  width: 100%;
  /* Remove estilização nativa do iOS/Safari */
  -webkit-appearance: none;
  appearance: none;
  /* Mínimo de 44px de altura para tap target Apple HIG */
  min-height: 48px;
}
.field select {
  /* Custom dropdown arrow porque -webkit-appearance: none removeu */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23A5A5AC' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field textarea {
  min-height: 96px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel-2);
}
.field textarea {
  resize: vertical;
  font-family: 'Archivo', sans-serif;
}

.form-foot {
  font-size: 10px;
  color: var(--ink-mute);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--ink-mute);
  pointer-events: none;
}
.scroll-hint .line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--ink-mute), transparent);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
/* Esconde scroll-hint quando o hero não cabe na tela toda */
@media (max-height: 760px) {
  .scroll-hint { display: none; }
}

/* ===========================================================
   CLIENTES / TICKER
   =========================================================== */
.clients {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 32px 0;
  overflow: hidden;
}
.clients-head {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto 24px;
  padding: 0 var(--gutter);
}
.clients-head .mono.upc {
  font-size: 11px;
  color: var(--ink-mute);
  white-space: nowrap;
}
.ticker {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 40px;
  animation: ticker 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-track span {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(22px, 2.8vw, 36px);
  color: var(--ink-mute);
  letter-spacing: -0.02em;
  opacity: .55;
  transition: opacity .3s ease, color .3s ease;
}
.ticker-track span:hover {
  opacity: 1;
  color: var(--ink);
}
.ticker-sep {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--line-strong);
  align-self: center;
  opacity: .6;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ===========================================================
   SEÇÕES GENÉRICAS
   =========================================================== */
.section {
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
}
.tag-line {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
}
.section-head h2.display {
  font-size: clamp(36px, 5.5vw, 72px);
  text-wrap: balance;
}

/* ===========================================================
   MANIFESTO
   =========================================================== */
.manifesto-text {
  max-width: 720px;
}
.manifesto-text p {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--ink-dim);
  margin-bottom: 20px;
  line-height: 1.6;
}
.manifesto-text p strong {
  color: var(--ink);
  font-weight: 600;
}
.manifesto-text p:last-child {
  margin-bottom: 0;
}

.manifesto-kpis {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kpi-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kpi-card .mono.upc {
  font-size: 10px;
  color: var(--ink-mute);
}
.kpi-card .kpi-value {
  font-size: 64px;
  line-height: 0.9;
  margin: 8px 0;
}
.kpi-card .mono:not(.upc) {
  font-size: 12px;
  color: var(--ink-dim);
}
.kpi-trend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 4px;
}
.kpi-accent .kpi-ba {
  color: var(--accent);
  font-size: 84px;
}
.kpi-accent .mono.upc { color: var(--accent); }

/* ===========================================================
   SERVIÇOS
   =========================================================== */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.servico-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}
.servico-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 4px;
}
.servico-icon svg { stroke-width: 1.75; }
.servico-card .mono.upc {
  font-size: 10px;
  color: var(--ink-mute);
}
.servico-card h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.servico-card p {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.6;
}
.servico-featured {
  position: relative;
}
.servico-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 9px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(232,137,43,.1);
  border: 1px solid var(--accent);
  border-radius: 3px;
}

/* ===========================================================
   CASES
   =========================================================== */
.section-sub {
  font-size: clamp(14px, 1.15vw, 16px);
  color: var(--ink-dim);
  max-width: 640px;
  line-height: 1.55;
  margin-top: 4px;
}

.cases-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -32px 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.cases-filter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-mute);
  background: var(--panel);
  transition: all .2s ease;
  white-space: nowrap;
}
.cases-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0A0B;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 16px;
}
.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.case-card.case-large {
  grid-column: span 2;
  grid-row: span 2;
}
.case-large .case-meta {
  padding: 28px 32px;
}
.case-large .case-meta h3 {
  font-size: 22px;
}
.case-img {
  flex: 1;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--panel);
  position: relative;
  overflow: hidden;
  transition: transform .4s ease;
}
.case-card:hover .case-img {
  transform: scale(1.02);
}
.case-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6));
  opacity: 0;
  transition: opacity .3s ease;
}
.case-card:hover .case-img::after { opacity: 1; }

.case-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(232,137,43,.5);
}
.case-card:hover .case-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.case-play svg { width: 24px; height: 24px; margin-left: 3px; }

.case-meta {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel);
  border-top: 1px solid transparent;
}
.case-meta .mono.upc {
  font-size: 10px;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.case-meta h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.case-meta p.mono {
  font-size: 12px;
  color: var(--ink-dim);
}

.cases-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ===========================================================
   PROCESSO / STEPS
   =========================================================== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.step {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}
.step-num {
  font-size: 48px;
  color: var(--accent);
  opacity: .4;
}
.step h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.step-final .step-num { opacity: 1; }

/* ===========================================================
   TIME
   =========================================================== */
.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.time-card {
  padding: 0;
  overflow: hidden;
}
/* Lift menor no time-card pra não ficar estranho com foto grande */
.time-card[data-card]:hover {
  transform: translateY(-2px);
}
.time-photo {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center top;
  background-color: var(--panel-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  filter: grayscale(.15) contrast(1.02);
  transition: filter .3s ease;
}
.time-card:hover .time-photo {
  filter: grayscale(0) contrast(1.05);
}
.time-info {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.time-info h3 {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.time-info .mono.upc {
  font-size: 10px;
  color: var(--accent);
}
.time-info p {
  font-size: 13px;
  color: var(--ink-dim);
  margin-top: 8px;
  line-height: 1.5;
}

/* ===========================================================
   FAQ
   =========================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .25s ease, background .25s ease;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(232,137,43,.05), var(--panel));
}
.faq-item summary {
  padding: 22px 24px;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  min-height: 64px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s ease, background .25s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #000;
}
.faq-body {
  padding: 0 28px 24px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* ===========================================================
   CTA FINAL
   =========================================================== */
.cta-final {
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 80% 20%, rgba(232,137,43,.10), transparent 50%);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-text .tag-line { margin-bottom: 16px; display: inline-block; }
.cta-text h2.display {
  font-size: clamp(40px, 6vw, 80px);
  margin-bottom: 24px;
}
.cta-text > p {
  font-size: 17px;
  color: var(--ink-dim);
  margin-bottom: 32px;
  max-width: 480px;
}

.cta-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.cta-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-dim);
}
.cta-checks .check {
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.cta-checks strong { color: var(--ink); font-weight: 600; }

.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-dim);
  transition: all .2s ease;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-form {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}
.cta-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(180deg, rgba(232,137,43,.4), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 64px var(--gutter) 32px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p.mono {
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.7;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col .mono.upc {
  font-size: 10px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col a svg {
  color: var(--ink-mute);
  flex-shrink: 0;
  transition: color .2s ease;
}
.footer-col a:hover svg { color: var(--accent); }
.footer-col a:hover { color: var(--accent); }
.status-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink-mute);
}

/* ===========================================================
   REVEAL (animação ao scroll)
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===========================================================
   RESPONSIVO
   Breakpoints:
     - ≥ 1281px : desktop (estilos base)
     - 981-1280 : laptop pequeno
     - 781-980  : tablet (2 colunas)
     - 481-780  : mobile grande
     - ≤ 480px  : mobile pequeno (iPhone SE etc)
   =========================================================== */

/* ── TABLET ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .case-card.case-large {
    grid-column: span 2;
    grid-row: auto;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .time-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-form {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
  /* Em tablet, hero pode ter altura auto se o conteúdo for grande */
  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 60px;
  }
}

/* ── MOBILE GRANDE ──────────────────────────────────────────── */
@media (max-width: 780px) {
  /* Header */
  .header-inner {
    padding: 12px var(--gutter);
    gap: 12px;
  }
  .nav-desktop { display: none; }
  .header-meta .live-dot,
  .header-meta .clock { display: none; }
  .header-meta { gap: 8px; }
  .header-meta .btn-accent { display: none; } /* CTA já tá no menu mobile */
  .nav-toggle { display: flex; }

  /* Mobile: desliga vídeo (economiza dados/bateria), mantém só o poster como bg estático */
  .hero-video {
    display: none;
  }
  .hero-video-wrap {
    background-image: url('../assets/video/hero-bg-poster.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.30;
  }

  /* Hero compacto pra caber bem em 100dvh */
  .hero {
    padding-top: 90px;
    padding-bottom: 48px;
    min-height: auto;
  }
  .hero-title {
    font-size: clamp(40px, 11.5vw, 64px);
    margin: 20px 0 18px;
  }
  .hero .tag-accent {
    font-size: 10px;
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .hero-cta-row {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
  }
  .hero-cta-row .btn {
    width: 100%;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 24px;
  }
  .stat .display {
    font-size: clamp(22px, 7vw, 32px);
  }
  .hero-form {
    padding: 24px 22px;
  }
  .form-head h3.display { font-size: 24px; }
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Mais pulmão de respiração geral entre seções */
  .section {
    padding: 64px var(--gutter);
  }
  .section-head {
    margin-bottom: 40px;
    gap: 12px;
  }
  .section-head h2.display {
    font-size: clamp(32px, 8vw, 48px);
  }

  /* Cards/grids viram 1 coluna */
  .servicos-grid,
  .cases-grid,
  .time-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .case-card.case-large {
    grid-column: span 1;
  }
  .servico-card {
    min-height: 0;
    padding: 28px 24px;
  }
  .step {
    min-height: 0;
    padding: 24px 20px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step-num {
    font-size: 40px;
  }

  /* KPIs viram coluna */
  .manifesto-kpis {
    margin-top: 8px;
  }
  .kpi-card .kpi-value { font-size: 52px; }
  .kpi-accent .kpi-ba { font-size: 64px; }

  /* Time em 1 coluna: foto retrato pra não cortar rostos */
  .time-photo {
    aspect-ratio: 1/1;
    background-position: center 25%;
  }

  /* Cases mobile: aspect-ratio fixo, fica mais agradável */
  .case-img {
    aspect-ratio: 16/10;
    min-height: 0;
  }
  /* Play visível direto no mobile (não há hover) */
  .case-play {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(.85);
    width: 52px;
    height: 52px;
  }
  .case-play svg { width: 20px; height: 20px; }

  /* Cases filtros viram scroll horizontal em mobile */
  .cases-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: -24px calc(var(--gutter) * -1) 32px;
    padding: 0 var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    /* Permite scroll suave em iOS */
    -webkit-overflow-scrolling: touch;
  }
  .cases-filters::-webkit-scrollbar { display: none; }
  .cases-filter {
    flex-shrink: 0;
    font-size: 11px;
    padding: 10px 14px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  /* FAQ mobile */
  .faq-item summary {
    padding: 18px 20px;
    font-size: 15px;
    gap: 12px;
  }
  .faq-icon { width: 28px; height: 28px; font-size: 16px; }
  .faq-body {
    padding: 0 20px 20px;
    font-size: 14px;
  }

  /* CTA final */
  .cta-final { padding-top: 64px; }
  .cta-form { padding: 28px 22px; }
  .cta-text h2.display { font-size: clamp(36px, 9vw, 56px); }
  .cta-contacts { flex-direction: column; align-items: stretch; }
  .contact-link { justify-content: center; }

  /* Footer */
  .site-footer {
    padding: 48px var(--gutter) max(24px, env(safe-area-inset-bottom));
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Otimizações ocultas em mobile */
  .scroll-hint { display: none; }
  .rec-cursor { display: none; }

  /* Canvas ondas: menos opacidade pra não sobrecarregar com bg poster */
  .hero-waves {
    opacity: 0.6;
    mix-blend-mode: normal;
  }

  /* Brand wordmark um pouco menor em mobile */
  .brand img { height: 24px; }

  /* Clients ticker */
  .clients {
    padding: 24px 0;
  }
  .clients-head {
    margin-bottom: 16px;
    gap: 12px;
  }
  .clients-head .mono.upc { font-size: 10px; }
}

/* ── MOBILE PEQUENO (iPhone SE, etc) ────────────────────────── */
@media (max-width: 480px) {
  :root {
    --gutter: 18px;
  }
  .header-inner { padding: 10px 16px; }
  .brand img { height: 22px; }

  .hero {
    padding-top: 84px;
  }
  .hero-title {
    font-size: clamp(36px, 12vw, 52px);
    line-height: .95;
  }
  .hero-sub { font-size: 14px; }

  /* 3 stats juntos podem espremer — quebra em 2+1 visual */
  .hero-stats {
    gap: 10px;
  }
  .stat .display { font-size: clamp(20px, 6.5vw, 28px); }
  .stat .mono { font-size: 9px; }

  /* Form hero */
  .hero-form { padding: 20px 18px; border-radius: 10px; }
  .form-head h3.display { font-size: 22px; }
  .form-head p { font-size: 12px; }

  /* Tag accent menor */
  .tag { font-size: 10px; padding: 5px 8px; }

  /* Clientes ticker */
  .clients-head {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 18px;
  }
  .clients-head .hairline { display: none; }
  .ticker-track { gap: 24px; }
  .ticker-track span { font-size: 22px; }

  /* Section heads */
  .section { padding: 56px var(--gutter); }
  .section-head h2.display {
    font-size: clamp(28px, 9vw, 40px);
  }
  .tag-line { font-size: 10px; }

  /* Cards padding */
  .servico-card,
  .step,
  .kpi-card {
    padding: 22px 18px;
  }

  /* FAQ mais compacto */
  .faq-item summary { padding: 16px 18px; font-size: 14px; min-height: 56px; }
  .faq-body { padding: 0 18px 18px; font-size: 13.5px; }

  /* CTA */
  .cta-form { padding: 24px 18px; }
  .cta-text h2.display { font-size: clamp(30px, 10vw, 44px); }
  .cta-checks li { font-size: 14px; gap: 10px; }

  /* Footer */
  .footer-inner { padding-bottom: 32px; gap: 32px; }
  .footer-brand img { height: 28px; }
}

/* ── MOBILE EXTRA PEQUENO (≤360px — Galaxy Fold fechado etc) ── */
@media (max-width: 360px) {
  .hero-title { font-size: clamp(32px, 11vw, 42px); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats .stat:nth-child(3) { grid-column: span 2; text-align: center; }
}

/* ===========================================================
   ACCESSIBILITY / MOTION
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .ticker-track { animation: none; }
  .hero-waves { display: none; }
  .hero-video { display: none; }
}
