/* ============================================================
   JUDAH CO. - Design System
   Tema master dark grafite + acento dourado oficial.
   Unica inversao clara: tile Apple.
   ============================================================ */

:root {
  --bg-0: #0B0B0D;
  --bg-1: #131316;
  --bg-2: #1C1C1F;
  --hairline: rgba(244, 244, 242, 0.08);
  --text-0: #F4F4F2;
  --text-1: #B9B9BE;
  --text-2: #8A8A90;
  --gold: #DAA521;
  --gold-2: #A57B0F;
  --gold-hover: #E4B93E;
  --gold-pressed: #B98D14;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --sombra-produto: 0 24px 60px rgba(0, 0, 0, 0.35);
  --raio-card: 16px;
}

/* ============================================================
   FONTES self-hosted
   Tiradas do Google Fonts para o caminho critico: antes eram
   CSS remoto -> woff2 remoto (dois dominios encadeados). Agora
   saem do mesmo host, com preload no HTML.
   Geist e variavel: um arquivo cobre 300 e 600.
   ============================================================ */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Reset e base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* video entra junto: sem isso o tamanho intrinseco do arquivo (1440px)
   vira o min-content da coluna e estoura grids estreitos */
img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

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

::selection { background: var(--gold); color: var(--bg-0); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* no tile claro o dourado cai para 2:1; ali o foco usa a tinta da Apple */
.tile-apple :focus-visible { outline-color: #1D1D1F; }

.container {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
}

.container-estreito { max-width: 720px; }

/* Ancoras nao ficam escondidas sob a nav fixa */
[id] { scroll-margin-top: 88px; }

/* Grain fixo, nunca em container que rola */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Tipografia ---------- */

.display-xl {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-0);
}

.display-air {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text-0);
}

.display-lg {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-0);
}

.title {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text-0);
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  max-width: 34em;
}

.caption { font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }

.micro { font-size: 0.75rem; line-height: 1.5; color: var(--text-2); }

.eyebrow {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ---------- Botoes (Shape Lock: interativo = pill) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  border-radius: 9999px;
  border: 0;
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.5s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.2s var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn-gold:active { background: var(--gold-pressed); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--bg-0);
}

.btn-gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-hover)); }

.btn-gold .ico-wa { color: var(--bg-0); }

.btn-grande { height: 56px; padding: 0 36px; font-size: 1.0625rem; }

.btn-nav { height: 40px; padding: 0 20px; font-size: 0.9375rem; }

/* Botao dentro de tile de marca: cor local via data-brand */
.btn-tile { background: var(--tile-accent, var(--gold)); color: #fff; }
.btn-tile:hover { filter: brightness(1.12); }

.btn-claro { background: #F4F4F2; color: #101013; }
.btn-claro:hover { background: #fff; }

.link-secundario {
  display: inline-flex;
  align-items: center;
  height: 48px;
  color: var(--text-1);
  border-bottom: 1px solid var(--hairline);
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.link-secundario:hover { color: var(--text-0); border-color: var(--gold); }

/* ---------- Nav ---------- */

#nav-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transition: background-color 0.5s var(--ease);
}

.nav.scrolled {
  background: rgba(11, 11, 13, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img { width: 96px; height: 96px; object-fit: contain; }

/* text-0 e nao text-1: sobre o tile Apple a nav semitransparente clareia
   e o cinza medio cairia abaixo de AA */
.nav-links {
  display: flex;
  gap: 28px;
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-0);
}

.nav-links a { opacity: 0.86; transition: opacity 0.4s var(--ease); }
.nav-links a:hover { opacity: 1; }

/* Botao do menu: so aparece abaixo de 1068px */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9999px;
  background: rgba(244, 244, 242, 0.08);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-0);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- D1. Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero picture { display: contents; }

.hero-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  z-index: -2;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 11, 13, 0.94) 30%, rgba(11, 11, 13, 0.55) 62%, rgba(11, 11, 13, 0.25));
}

.hero-grid { padding: 128px 0 96px; }

/* Largo o bastante pra headline fechar em 2 linhas no desktop */
.hero-conteudo { max-width: 820px; }

.hero-conteudo .lead { margin-top: 24px; color: var(--text-1); }

.hero-acoes {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---------- D2. Marquee (unico da pagina) ---------- */

.marquee {
  border-block: 1px solid var(--hairline);
  padding: 28px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-grupo {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

/* SVG do Simple Icons nao tem dimensao intrinseca: travar pela altura */
/* Todo icone do Simple Icons vem em viewBox 24x24: um simbolo preenche o
   quadrado, uma wordmark ocupa so uma faixa. Sem escala por marca, Sony e
   Samsung sairiam 6x menores que Apple. Os valores abaixo igualam o peso
   optico, nao a altura do arquivo. */
.marquee-grupo img {
  opacity: 0.75;
  height: 30px;
  width: auto;
  object-fit: contain;
}

.marquee-grupo img[src$="sony.svg"],
.marquee-grupo img[src$="samsung.svg"] { height: 76px; }

.marquee-grupo img[src$="dji.svg"] { height: 48px; }

.marquee-grupo img[src$="jbl.svg"] { height: 44px; }

.marquee-grupo img[src$="meta.svg"] { height: 34px; }

/* opacity fica no proprio token: aplicar 0.75 por cima derrubaria o
   contraste para 3.6:1, abaixo de AA */
.marquee-wordmark {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  color: var(--text-2);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Tiles de marca (gap 0, a cor divide) ---------- */

.tile { padding: 80px 0; }

.tile-header { text-align: left; }

.tile-header .lead { margin-top: 16px; }

.tile-foot {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* --- D3. Apple: a UNICA inversao clara --- */

[data-brand="apple"] { --tile-accent: #0071E3; }

.tile-apple {
  background: #F5F5F7;
  color: #6E6E73;
  padding: 96px 0;
}

.tile-apple .display-xl,
.tile-apple .title { color: #1D1D1F; }

.tile-apple .lead { color: #6E6E73; }

.tile-apple .caption { color: #636366; }

.apple-stage { position: relative; margin-top: 56px; }

.apple-items {
  width: min(100% - 48px, 1200px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

/* min-width auto de grid item deixaria a midia inflar a coluna */
.apple-items > * { min-width: 0; }

.apple-item { text-align: center; }

.apple-item img,
.apple-item video {
  margin-inline: auto;
  max-height: 420px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* PNG transparente ganha a sombra unica do sistema.
   O JPG oficial ja vem com o mesmo #F5F5F7 do tile, entao dispensa blend. */
.apple-item img[src*=".png"] { filter: drop-shadow(var(--sombra-produto)); }

/* Levitacao sutil e continua no produto em cena */
.apple-item img { animation: levitar 6s ease-in-out infinite; }

@keyframes levitar {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.apple-item figcaption { margin-top: 24px; }

.apple-item figcaption strong {
  display: block;
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #1D1D1F;
}

.apple-item figcaption span { display: block; margin-top: 6px; color: #6E6E73; }

/* Terceira linha do palco: cobertura de linha sem entulhar a cena */
/* #636366 e nao o cinza padrao da Apple: em 13px sobre o parchment
   #F5F5F7, o #86868B fica em 3,3:1 e reprova o AA */
.apple-item figcaption .apple-familia {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #636366;
  max-width: 32ch;
  margin-inline: auto;
}

/* Observacao discreta sob um bloco de texto (Xbox/Switch, Canon/Tamron).
   A discricao vem do tamanho, nao de opacity: 0.85 sobre o fundo escuro
   derrubava o texto para 4,4:1 e reprovava o AA. */
.entrelinha { margin-top: 14px; }

.apple-progress { display: none; }

/* Estado pinado (classe adicionada pelo GSAP no desktop) */
.pin-active .apple-pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-top: 72px;
}

.pin-active .apple-stage { height: 52svh; min-height: 380px; margin-top: 0; }

.pin-active .apple-items {
  display: block;
  position: relative;
  height: 100%;
}

.pin-active .apple-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: transform, opacity;
}

.pin-active .apple-item img,
.pin-active .apple-item video { max-height: 38svh; }

.pin-active .apple-item:first-child { opacity: 1; }

.pin-active .apple-stage .apple-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.pin-active .tile-foot { margin-top: 0; }

.apple-progress i {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(29, 29, 31, 0.25);
  transition: background-color 0.3s var(--ease), height 0.3s var(--ease);
}

.apple-progress i.on { background: #1D1D1F; height: 20px; }

/* --- D4. Sony / PlayStation --- */

/* Simbolos PlayStation em outline, duas camadas de profundidade.
   No pan (desktop) o GSAP move cada camada num fator diferente do track. */
.sony-wrap { position: relative; overflow: hidden; }

.sony-simbolos {
  position: absolute;
  inset: 0;
  width: 300vw;
  color: #0070D1;
  pointer-events: none;
  z-index: 0;
}

.sony-simbolos-fundo { opacity: 0.07; }
.sony-simbolos-frente { opacity: 0.11; }

.ps-s { position: absolute; height: auto; }

.sony-track { position: relative; z-index: 1; }

/* Glow azul pulsando atras do produto nos dois primeiros paineis */
.sony-painel { position: relative; }

.sony-painel:nth-child(-n+2)::before {
  content: "";
  position: absolute;
  right: 6%;
  top: 50%;
  width: min(56vw, 760px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(0, 112, 209, 0.14), transparent 62%);
  animation: ps-glow 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ps-glow {
  0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(0.94); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.06); }
}


[data-brand="sony"] { --tile-accent: #0070D1; }

.tile-sony {
  background: #08080B;
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
}

.sony-painel { padding: 96px 0; }

.painel-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  gap: 48px;
  min-height: 70svh;
}

.painel-invertido { direction: rtl; }
.painel-invertido > * { direction: ltr; }

.painel-texto .lead { margin-top: 16px; color: rgba(255, 255, 255, 0.7); }

.painel-texto .btn { margin-top: 32px; }

.painel-img {
  width: 100%;
  max-height: 60svh;
  object-fit: contain;
  filter: drop-shadow(var(--sombra-produto));
  will-change: transform;
}

/* Estado pan horizontal (classe via GSAP desktop) */
.pan-active .sony-wrap { overflow: hidden; }

.pan-active .sony-track {
  display: flex;
  width: max-content;
}

/* flex: 0 0 evita que o painel encolha e desalinhe o pan */
.pan-active .sony-painel {
  flex: 0 0 100vw;
  width: 100vw;
  padding: 0;
  display: flex;
  align-items: center;
  min-height: 100svh;
}

/* Painel 3 do pan: acessorios PlayStation compostos */
.painel-acessorios {
  position: relative;
  min-height: 380px;
}

.painel-acessorios .acessorio-portal {
  width: 92%;
  height: auto;
  filter: drop-shadow(var(--sombra-produto));
}

.painel-acessorios .acessorio-pulse {
  position: absolute;
  right: -2%;
  bottom: -8%;
  width: 42%;
  height: auto;
  filter: drop-shadow(var(--sombra-produto));
}

/* --- D5. Xbox: spotlight central, verde escopado ao tile --- */

[data-brand="xbox"] { --tile-accent: #107C10; }

.tile-xbox {
  background: #0B0F0B;
  padding: 96px 0;
  overflow: hidden;
}

.xbox-palco {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.xbox-texto .lead { margin-top: 16px; margin-inline: auto; }

.xbox-produto {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 720px);
  margin-block: 16px;
}

.xbox-produto img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--sombra-produto));
  animation: levitar 6s ease-in-out infinite;
}

/* Halo verde pulsando atras do console */
.xbox-halo {
  position: absolute;
  inset: -30%;
  border-radius: 9999px;
  background:
    radial-gradient(circle, rgba(16, 124, 16, 0.55), transparent 58%),
    radial-gradient(circle, rgba(64, 208, 64, 0.2), transparent 38%);
  filter: blur(30px);
  animation: halo 9s ease-in-out infinite;
}

@keyframes halo {
  0%, 100% { opacity: 0.7; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.08); }
}

.chips-centro { justify-content: center; }

/* --- D6. Nintendo: split diagonal Joy-Con --- */

.tile-nintendo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #101014;
  padding: 96px 0;
}

/* Campos diagonais nas cores dos Joy-Cons, escurecidos o bastante
   para o texto branco passar AA por cima */
.nintendo-campos {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.nintendo-campos span {
  position: absolute;
  inset: 0;
}

.campo-vermelho {
  background: linear-gradient(135deg, #8E0009 0%, #5C0308 46%, transparent 46.2%);
}

.campo-azul {
  background: linear-gradient(135deg, transparent 53.8%, #04566B 54%, #073F52 100%);
}

.nintendo-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
}

.nintendo-texto {
  background: rgba(11, 11, 13, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--raio-card);
  padding: clamp(24px, 3vw, 40px);
}

.nintendo-texto .lead { margin-top: 16px; }
.nintendo-texto .chips { margin-top: 24px; }
.nintendo-texto .btn { margin-top: 28px; }

.nintendo-produto {
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--sombra-produto));
  animation: levitar 7s ease-in-out infinite;
}

/* Janela secundaria da dobra de cameras (cena de lentes) */
.cameras-janela-dupla {
  display: grid;
  gap: 16px;
}

.cameras-lentes {
  width: 78%;
  margin-left: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra-produto);
}

.cameras-lentes img { width: 100%; height: auto; display: block; }

/* --- D5. DJI --- */

.tile-dji {
  position: relative;
  background: linear-gradient(180deg, var(--bg-0), #16202E);
  overflow: hidden;
  isolation: isolate;
  padding: 140px 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

/* A cena em video e a protagonista da dobra: opacidade cheia,
   sobredimensionada para o parallax leve do scroll */
.dji-ceu {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  z-index: -3;
  will-change: transform;
}

/* sobredimensionado porque sofre parallax de ate -22%: sem folga
   apareceria uma emenda dura no rodape da dobra. O lado esquerdo leva
   reforco horizontal para o texto sobre a cena de video. */
.dji-scrim {
  position: absolute;
  inset: -30% 0;
  height: 160%;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 11, 13, 0.82) 0%, rgba(11, 11, 13, 0.38) 48%, transparent 64%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.85) 20%, transparent 45%, transparent 62%, rgba(11, 11, 13, 0.85) 80%);
  will-change: transform;
}

.dji-drone {
  position: absolute;
  right: -2%;
  bottom: 4%;
  width: min(46vw, 660px);
  height: auto;
  z-index: -1;
  transform: rotate(-2deg);
  filter: drop-shadow(var(--sombra-produto));
  will-change: transform;
}

.dji-conteudo { max-width: 520px; position: relative; z-index: 1; }

/* Texto sobre video: sombra garante leitura mesmo na nevoa clara */
.dji-conteudo .display-air,
.dji-conteudo .lead { text-shadow: 0 2px 24px rgba(11, 11, 13, 0.55); }

.marca-destaque { color: var(--gold); font-weight: 600; }

.dji-conteudo .lead { margin-top: 16px; }

.dji-conteudo .btn { margin-top: 36px; }

.chips {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.chips li {
  padding: 10px 20px;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  background: rgba(19, 19, 22, 0.55);
  color: var(--text-1);
  font-size: 0.9375rem;
}

/* --- D6. Cameras Sony (bloco criadores): split com janela de video --- */

.tile-cameras {
  background: #0A0A0E;
  border-top: 1px solid var(--hairline);
  padding: 96px 0;
}

.cameras-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.cameras-janela {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sombra-produto);
}

.cameras-janela video {
  display: block;
  width: 100%;
  height: auto;
}

.cameras-texto .lead { margin-top: 16px; }

.cameras-texto .btn { margin-top: 36px; }

/* --- D6. Samsung: segunda inversao clara (decisao do cliente),
   linguagem visual de samsung.com: cinza claro + cards brancos com
   sombra suave (excecao de sombra escopada a este tile) --- */

.tile-samsung {
  background: #EFF0F2;
  color: #4A4A50;
  padding: 96px 0;
}

.tile-samsung .display-lg { color: #17171A; }

.tile-samsung .lead { color: #4A4A50; margin-top: 16px; }

.tile-samsung :focus-visible { outline-color: #17171A; }

.samsung-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.samsung-hero-card,
.samsung-mini {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(23, 23, 26, 0.08);
}

.samsung-hero-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Aurora pastel sutil dentro do card grande */
.samsung-hero-card::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 44% at 85% 16%, rgba(123, 184, 255, 0.2), transparent 70%),
    radial-gradient(34% 40% at 12% 92%, rgba(200, 168, 255, 0.16), transparent 70%);
  filter: blur(40px);
  animation: aurora 18s ease-in-out infinite alternate;
}

.samsung-hero-texto { min-width: 0; }

.samsung-hero-card h3 {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #17171A;
}

.samsung-hero-card p { margin-top: 14px; }

.samsung-hero-card .btn { margin-top: 28px; position: relative; z-index: 1; }

.samsung-hero-card img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 14px;
}

.btn-preto { background: #101013; color: #F4F4F2; }
.btn-preto:hover { background: #26262B; }

.samsung-mini {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.samsung-mini h3 {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #17171A;
  margin-top: 8px;
}

.samsung-mini p { font-size: 0.9375rem; color: #4A4A50; }

.samsung-mini img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}

/* Anel do Circle to Search: aro em gradiente aurora, puro CSS */
.samsung-anel {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: conic-gradient(from 40deg, #7BB8FF, #C8A8FF, #FFC9A8, #7BB8FF);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  margin-bottom: 10px;
}

/* ---------- Secoes Judah (tema master) ---------- */

.secao { padding: 96px 0; }

/* Secoes estaticas abaixo da dobra nao pagam style/layout no load.
   As dobras com pin GSAP (apple/sony/samsung/dji) ficam de fora. */
#xbox, #nintendo, #cameras, #samsung, #vitrine, #seminovos, #como-funciona, #showroom {
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}

.cta-final, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

.secao-alt { background: var(--bg-1); }

.secao .display-lg { max-width: 18em; }

.secao .lead { margin-top: 16px; }

/* --- D7. Bento vitrine: 6 itens = 6 celulas --- */

/* 6 itens em 3x3: a celula grande ocupa 2x2, as 5 restantes fecham a malha */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 16px;
  margin-top: 48px;
}

.bento-cel {
  position: relative;
  overflow: hidden;
  border-radius: var(--raio-card);
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  display: block;
}

.bento-grande { grid-column: span 2; grid-row: span 2; }

.bento-cel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

/* Vinheta dourada + brilho que varre a celula no hover */
.bento-cel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 90% at 50% 110%, rgba(218, 165, 33, 0.07), transparent 55%);
  pointer-events: none;
}

.bento-cel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 42%, rgba(244, 244, 242, 0.07) 50%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}

.bento-cel:hover::after { transform: translateX(120%); }

/* Em touch nao existe hover: a varredura roda sozinha, escalonada por
   celula para nao piscar tudo junto */
@media (hover: none) {
  .bento-cel::after {
    animation: varrer 7s var(--ease) infinite;
  }

  .bento-cel:nth-child(2)::after { animation-delay: 0.9s; }
  .bento-cel:nth-child(3)::after { animation-delay: 1.8s; }
  .bento-cel:nth-child(4)::after { animation-delay: 2.7s; }
  .bento-cel:nth-child(5)::after { animation-delay: 3.6s; }
  .bento-cel:nth-child(6)::after { animation-delay: 4.5s; }
}

@keyframes varrer {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

.bento-cel:hover img { transform: scale(1.05); }

.bento-cel { transition: transform 0.5s var(--ease); }

.bento-cel:hover { transform: translateY(-6px); }

.bento-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(11, 11, 13, 0.88) 55%);
  z-index: 1;
}

.bento-seta {
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: rgba(244, 244, 242, 0.1);
  color: var(--text-0);
  font-size: 0.9375rem;
  transition: background-color 0.5s var(--ease), transform 0.5s var(--ease);
}

.bento-cel:hover .bento-seta {
  background: var(--gold);
  color: var(--bg-0);
  transform: translate(2px, -2px);
}

.bento-info strong {
  display: block;
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  color: var(--text-0);
  padding-right: 44px;
}

.bento-info > span:not(.bento-seta) { font-size: 0.875rem; color: var(--text-1); padding-right: 44px; display: block; }

/* Celulas com PNG de produto sobre cena gerada:
   o fundo e a cena, o produto flutua por cima com sombra propria */
.bento-cel img[src*=".png"] {
  object-fit: contain;
  padding: 5% 8% 28%;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
}



/* Lark M2 vem em formato banner largo: menos respiro lateral */
.bento-cel img[src*="lark-m2"] { padding: 4% 4% 30%; }

/* --- D8. Seminovos --- */

.seminovos-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

/* min-width auto de grid item deixaria a faixa de tabs inflar a coluna */
.seminovos-grid > * { min-width: 0; }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  height: 44px;
  padding: 0 24px;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-1);
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.tab:hover { color: var(--text-0); }

.tab.on { background: var(--text-0); color: var(--bg-0); border-color: var(--text-0); }

.seminovos-tabs-area > .caption { margin-top: 16px; }

.tab-painel {
  display: none;
  margin-top: 24px;
}

.tab-painel.on { display: block; animation: painel-in 0.25s var(--ease); }

@keyframes painel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chips-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  color: var(--text-1);
  font-size: 0.9375rem;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.chip:hover { background: var(--gold); border-color: var(--gold); color: var(--bg-0); }

.seminovos-selo { position: relative; }

.seminovos-selo {
  position: relative;
}

.seminovos-selo img {
  border-radius: var(--raio-card);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 40%;
  transition: opacity 0.25s var(--ease);
}

/* A foto acompanha a tab ativa: a que sai some, a que entra aparece */
.seminovos-selo img.trocando { opacity: 0; }

.selo-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(11, 11, 13, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  border-radius: var(--raio-card);
  padding: 18px 20px;
}

.selo-card strong {
  display: block;
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 600;
  color: var(--gold);
}

.selo-card span { font-size: 0.875rem; color: var(--text-1); }

/* --- D9. Como funciona: textura de cimento do showroom + glow dourado --- */

#como-funciona {
  position: relative;
  isolation: isolate;
}

#como-funciona::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/.netlify/images?url=/images/judah/textura-cimento.jpg&w=1600&q=60");
  background-size: cover;
  background-position: center;
  opacity: 0.07;
}

#como-funciona::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(circle, rgba(218, 165, 33, 0.06), transparent 60%);
  pointer-events: none;
}

/* --- D9. Timeline como funciona --- */

.timeline {
  list-style: none;
  padding: 0;
  margin-top: 48px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--hairline));
  transform-origin: top;
}

/* Linha desenhada pelo scroll onde houver suporte */
@supports (animation-timeline: view()) {
  .timeline::before {
    animation: desenhar linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 70%;
  }
  @keyframes desenhar {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
  }
}

.timeline li {
  position: relative;
  padding: 0 0 40px 44px;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: var(--bg-0);
  border: 2px solid var(--gold);
}

.timeline li p { margin-top: 6px; }

.nota-garantia { margin-top: 40px; }

/* --- D10. Showroom / galeria --- */

.galeria {
  columns: 3 260px;
  column-gap: 16px;
  margin-top: 48px;
}

.galeria img {
  border-radius: var(--raio-card);
  margin-bottom: 16px;
  break-inside: avoid;
  transition: transform 0.6s var(--ease);
}

.galeria img:hover { transform: scale(1.03); }

.showroom-acoes {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* --- D11. CTA final --- */

.cta-final {
  position: relative;
  background: var(--bg-1);
  border-top: 1px solid rgba(218, 165, 33, 0.35);
  padding: 140px 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.cta-leao {
  position: absolute;
  right: -8%;
  bottom: -22%;
  width: min(60vw, 680px);
  height: auto;
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
}

.cta-conteudo { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.cta-conteudo .lead { color: var(--text-1); }

.cta-conteudo .btn { margin-top: 12px; }

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

.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.footer-marca img { width: 104px; height: 104px; object-fit: contain; }

.footer-marca p { margin-top: 16px; font-size: 0.9375rem; }

.footer-marca a { color: var(--text-1); }
.footer-marca a:hover { color: var(--gold); }

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-size: 0.9375rem;
  color: var(--text-1);
}

.footer-links a:hover { color: var(--text-0); }

.footer-legal .micro + .micro { margin-top: 16px; }

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

@media (max-width: 1068px) {

  .nav-toggle { display: flex; }

  /* Menu vira painel de vidro abaixo da barra */
  .nav-links {
    position: fixed;
    inset: 64px 0 auto;
    flex-direction: column;
    gap: 0;
    background: var(--bg-0);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    padding: 8px 24px 24px;
    font-size: 1.0625rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }

  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-links a:last-child { border-bottom: 0; }

  .nav.menu-aberto .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav.menu-aberto { background: var(--bg-0); }
}

@media (max-width: 767px) {

  .container { width: min(100% - 32px, 1200px); }

  .nav-inner { width: min(100% - 32px, 1200px); gap: 12px; }

  .nav-logo img { width: 76px; height: 76px; }

  .hero-grid { padding: 112px 0 72px; }

  .hero-foto { object-position: center 42%; }

  .hero-scrim {
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.82), rgba(11, 11, 13, 0.62));
  }

  .btn-nav span { display: none; }
  .btn-nav { padding: 0; gap: 0; width: 40px; justify-content: center; flex: 0 0 auto; }

  .tile, .secao { padding: 64px 0; }

  .tile-apple { padding: 72px 0; }

  /* Apple mobile: pilha vertical (horizontal escondia produto).
     Sem card branco: o proprio fundo #F5F5F7 do tile e o do render,
     entao o produto deixa de parecer recortado. */
  .apple-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    width: auto;
    padding: 0;
  }

  .apple-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* a largura manda no mobile: com max-height o MacBook (2400x1367)
     estourava 462px numa tela de 390 e empurrava a nav */
  .apple-item img,
  .apple-item video {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
  }

  /* Sony mobile: paineis empilhados */
  .painel-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 32px;
  }

  .sony-painel { padding: 64px 0; }

  .sony-painel + .sony-painel { border-top: 1px solid rgba(255, 255, 255, 0.06); }

  /* Sem pan no mobile: as camadas de 300vw sairiam da tela; cada painel
     ganha um simbolo estatico discreto via fundo */
  .sony-simbolos { display: none; }

  .sony-painel {
    background-repeat: no-repeat;
    background-size: 200px;
  }

  .sony-painel:nth-child(1) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,12 92,84 8,84' fill='none' stroke='%230070D1' stroke-opacity='0.1' stroke-width='4'/%3E%3C/svg%3E");
    background-position: 118% 8%;
  }

  .sony-painel:nth-child(2) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='38' fill='none' stroke='%230070D1' stroke-opacity='0.1' stroke-width='4'/%3E%3C/svg%3E");
    background-position: -12% 92%;
  }

  .sony-painel:nth-child(3) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M18 18 L82 82 M82 18 L18 82' fill='none' stroke='%230070D1' stroke-opacity='0.1' stroke-width='4'/%3E%3C/svg%3E");
    background-position: 115% 90%;
  }

  .painel-img { max-height: 40svh; }

  .tile-dji { min-height: 0; padding: 96px 0 200px; }

  .cameras-grid { grid-template-columns: 1fr; }

  .cameras-lentes { width: 100%; margin-left: 0; }

  .xbox-produto { width: min(100%, 320px); }

  /* Diagonal vira split horizontal: em tela estreita a diagonal
     cortaria o texto */
  .campo-vermelho { background: linear-gradient(180deg, #8E0009 0%, #5C0308 48%, transparent 48.2%); }
  .campo-azul { background: linear-gradient(180deg, transparent 51.8%, #04566B 52%, #073F52 100%); }

  .nintendo-grid { grid-template-columns: 1fr; }

  .painel-acessorios { min-height: 0; }

  .painel-acessorios .acessorio-pulse { bottom: -4%; }

  .samsung-grid { grid-template-columns: 1fr; }

  .samsung-hero-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 20px 28px;
  }

  /* o CTA precisa de respiro antes da foto: colado, lia como sobreposto */
  .samsung-hero-card .btn { margin-top: 24px; }

  /* Card de produto no celular abre pela imagem, como no samsung.com */
  .samsung-hero-card img { order: -1; max-height: 260px; }

  /* Celular fraco nao paga blur animado: aurora vira gradiente fixo */
  .samsung-hero-card::before {
    animation: none;
    filter: blur(24px);
  }

  .sony-painel:nth-child(-n+2)::before { animation: none; }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  /* numa coluna so, o span 2 criaria coluna implicita e zeraria 2 celulas */
  .bento-grande { grid-column: span 1; grid-row: span 2; }

  .seminovos-grid { grid-template-columns: 1fr; }

  .seminovos-selo { max-width: 420px; }

  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }

  .tab { flex: 0 0 auto; }

  .galeria { columns: 2 150px; }

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

  .cta-final { padding: 96px 0; }

  .cta-leao { right: -24%; bottom: -10%; width: 80vw; }
}

/* ---------- AOS: so o subset usado (fade-up), inline pra tirar o
   CSS do unpkg do caminho critico de renderizacao ---------- */

[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

[data-aos^="fade"] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-timing-function: var(--ease);
}

[data-aos^="fade"].aos-animate { opacity: 1; transform: translate3d(0, 0, 0); }

[data-aos="fade-up"] { transform: translate3d(0, 40px, 0); }

[data-aos][data-aos-delay="60"] { transition-delay: 0s; }
[data-aos][data-aos-delay="60"].aos-animate { transition-delay: 60ms; }
[data-aos][data-aos-delay="120"] { transition-delay: 0s; }
[data-aos][data-aos-delay="120"].aos-animate { transition-delay: 120ms; }
[data-aos][data-aos-delay="180"] { transition-delay: 0s; }
[data-aos][data-aos-delay="180"].aos-animate { transition-delay: 180ms; }

/* ---------- Acessibilidade: reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {

  html { scroll-behavior: auto; }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .marquee-grupo[aria-hidden="true"] { display: none; }

  .marquee-grupo { flex-wrap: wrap; gap: 40px; justify-content: center; padding-right: 0; }

  .bento-cel, .bento-cel img, .galeria img, .btn { transition: none; }

  [data-aos^="fade"] { opacity: 1; transform: none; transition: none; }

  .samsung-hero-card::before,
  .sony-painel:nth-child(-n+2)::before,
  .apple-item img,
  .xbox-halo,
  .xbox-produto img,
  .nintendo-produto { animation: none; }

  .bento-cel::after { display: none; animation: none; }

  @supports (animation-timeline: view()) {
    .timeline::before { animation: none; transform: none; }
  }
}
