/* Estética inspirada no site de modelos da Porsche: fundo claro, tipografia
   grande e leve, muito respiro, números em destaque, fotos com canto arredondado
   e seções escuras pra cabine e design. */

:root {
  --tinta: #010205;
  --texto: #2b2c30;
  --cinza: #6b6d70;
  --linha: #d8d8db;
  --superficie: #eeeff2;
  --fundo: #ffffff;
  --escuro: #0e0e12;
  --escuro-2: #1a1b1f;
  --escuro-texto: #f2f2f4;
  --escuro-cinza: #9a9ca1;
  --raio: 16px;
  --raio-btn: 8px;
  --margem: clamp(16px, 5vw, 80px);
  --largura: 1160px;
  --fonte: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; }
h3 { font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

section, .hero { padding: clamp(56px, 7vw, 104px) var(--margem); }
section > *, .hero > * { max-width: var(--largura); margin-left: auto; margin-right: auto; }

/* Blocos de texto estreitos ficam alinhados à esquerda do container */
.editorial__texto, .design__texto, .powertrain__texto, .interior__lead {
  margin-left: max(0px, calc((100% - var(--largura)) / 2)) !important;
}

.sobretitulo { font-size: 14px; color: var(--cinza); margin-bottom: 12px; letter-spacing: 0.02em; }

/* Texto que ainda falta preencher: aparece marcado pra ninguém esquecer */
.falta { background: #fff4c2; color: #6b5300; border-radius: 4px; padding: 0 6px; }
.escuro .falta { background: #3d3510; color: #ffe27a; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px; padding: 0 var(--margem);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.rolou { border-bottom-color: var(--linha); }
.nav__menu {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 0; padding: 8px 0; font-size: 15px;
}
.nav__burger, .nav__burger::before, .nav__burger::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s;
}
.nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { top: -6px; }
.nav__burger::after { top: 6px; }
.nav__menu[aria-expanded="true"] .nav__burger { background: transparent; }
.nav__menu[aria-expanded="true"] .nav__burger::before { transform: translateY(6px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .nav__burger::after { transform: translateY(-6px) rotate(-45deg); }
.nav__marca {
  font-size: 15px; font-weight: 500; letter-spacing: 0.42em; text-decoration: none;
  padding-left: 0.42em; /* compensa o espaçamento da última letra */
}
.nav__marca img { height: 46px; width: auto; display: block; }
.nav__marca { padding-left: 0; }
.rodape__logo { width: 86px; height: auto; margin-bottom: 4px; }
.rodape__modelo { color: #fff; font-size: 15px; font-weight: 500; letter-spacing: 0.42em; padding-left: 0.42em; margin-bottom: 8px; }
.nav__acao { justify-self: end; font-size: 15px; text-decoration: none; }
.nav__acao:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu {
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--fundo); border-bottom: 1px solid var(--linha);
  padding: 24px var(--margem) 32px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 24px;
}
.menu[hidden] { display: none; }
.menu a { text-decoration: none; padding: 10px 0; font-size: 18px; border-bottom: 1px solid var(--superficie); }
.menu a:hover { color: var(--cinza); }

/* ---------- Hero: só o carro, como na Porsche ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(calc(100svh - 64px), 760px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(56px, 7vw, 96px);
}
.hero__palco {
  position: relative; width: min(900px, 82vw); max-width: none;
  padding-top: clamp(84px, 15vw, 210px); /* espaço pro nome atrás do carro */
}
/* faixa cinza atrás do carro, cortada na altura do eixo, igual ao chão do site da Porsche */
.hero__palco::before {
  content: ""; position: absolute; z-index: -2;
  left: 50%; width: 100vw; transform: translateX(-50%);
  top: -100vh; bottom: 26%;
  background: linear-gradient(180deg, #fff 55%, #ececef 100%);
}
.hero__nome {
  position: absolute; z-index: -1; left: 50%; top: 0;
  transform: translateX(-50%);
  font-family: "Yellowtail", cursive; font-size: clamp(64px, 12vw, 176px); line-height: 1;
  color: #dedee2; white-space: nowrap; letter-spacing: 0;
  pointer-events: none; user-select: none;
}
.hero__carro { position: relative; width: 100%; height: auto; }
.hero__sombra {
  position: absolute; z-index: -1; left: 4%; right: 2%; bottom: -1.5%; height: 9%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.55), rgba(0,0,0,.18) 55%, transparent 75%);
  filter: blur(6px);
}
.hero__segmentos { margin-top: clamp(32px, 4vw, 56px); }
.hero__descer {
  position: absolute; bottom: 24px; left: 50%; width: 22px; height: 22px; margin-left: -11px;
  border-right: 1.5px solid var(--cinza); border-bottom: 1.5px solid var(--cinza);
  transform: rotate(45deg); opacity: .7;
  animation: descer 2.4s ease-in-out infinite;
}
@keyframes descer { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }

/* entrada: nome aparece, carro chega da direita, sombra assenta */
.js .hero__nome { animation: nomeEntra 1.6s cubic-bezier(.2,.7,.2,1) both; }
.js .hero__carro { animation: carroEntra 1.5s .25s cubic-bezier(.16,.84,.3,1) both; }
.js .hero__sombra { animation: sombraEntra 1.2s .9s ease-out both; }
.js .hero__segmentos { animation: sobe .9s 1.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes nomeEntra { from { opacity: 0; transform: translateX(-50%) translateY(30px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes carroEntra { from { opacity: 0; translate: 14% 0; } to { opacity: 1; translate: 0 0; } }
@keyframes sombraEntra { from { opacity: 0; } to { opacity: 1; } }
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.segmentos {
  display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px;
  background: var(--superficie); border-radius: 999px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.segmentos::-webkit-scrollbar { display: none; }
.segmentos a, .segmentos button {
  border: 0; background: transparent; text-decoration: none; white-space: nowrap;
  padding: 8px 18px; border-radius: 999px; font-size: 15px; color: var(--cinza);
  transition: background .25s, color .25s;
}
.segmentos .ativo { background: var(--fundo); color: var(--tinta); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.segmentos a:hover, .segmentos button:hover { color: var(--tinta); }

.acoes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 180px; padding: 13px 26px; border-radius: var(--raio-btn);
  font-size: 15px; text-decoration: none; border: 1px solid var(--tinta);
  transition: background .2s, color .2s;
}
.btn--primario { background: var(--tinta); color: #fff; }
.btn--primario:hover { background: #2b2c30; }
.btn--secundario { background: transparent; }
.btn--secundario:hover { background: var(--tinta); color: #fff; }

/* ---------- Números ---------- */
.numeros { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.numeros__lista {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-top: 1px solid var(--linha); padding-top: 32px;
}
.numero__rotulo { font-size: 14px; color: var(--cinza); }
.numero__valor {
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 300;
  margin-top: 8px;
}
.numero__valor span { font-size: 0.32em; letter-spacing: 0; margin-left: 6px; color: var(--cinza); font-weight: 400; }
.link-seta { display: inline-block; margin-top: 32px; font-size: 15px; text-decoration: none; }
.link-seta::after { content: " →"; transition: margin .2s; }
.link-seta:hover::after { margin-left: 4px; }
.numeros > .link-seta { display: block; }

/* ---------- Editorial ---------- */
.editorial { padding-top: 0; }
.editorial__texto { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.editorial__texto p { margin-top: 20px; font-size: 19px; color: var(--texto); }
  display: grid; gap: 16px;
  grid-template-columns: 2.4fr 1fr;
}

/* ---------- Trilho das equipes ---------- */
.equipes-scroll { background: var(--superficie); }
.cabeca {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.cabeca .segmentos { margin-top: 0; }
.setas { display: flex; gap: 8px; }
.seta {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linha);
  background: var(--fundo); font-size: 18px; transition: border-color .2s;
}
.seta:hover { border-color: var(--tinta); }
.trilho {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 330px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 4px; outline: none;
}
.trilho::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start; text-decoration: none;
  background: var(--fundo); border-radius: var(--raio); overflow: hidden;
  display: flex; flex-direction: column; padding-bottom: 28px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.card:hover { transform: translateY(-4px); }
.card figure { aspect-ratio: 3 / 2; overflow: hidden; background: var(--superficie); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.04); }
.card h3 { margin: 24px 24px 0; }
.card > p:last-child { margin: 10px 24px 0; color: var(--texto); font-size: 16px; }

/* ---------- Blocos de engenharia ---------- */
.blocos { display: grid; gap: clamp(64px, 9vw, 128px); }
.bloco {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  width: 100%;
}
.bloco--inverte { grid-template-columns: 1fr 1fr; }
.bloco--so-texto { grid-template-columns: minmax(0, 760px); }
.bloco--so-texto + .duo { margin-top: calc(-1 * clamp(16px, 3vw, 48px)); }
.bloco--inverte .bloco__foto, .bloco--inverte .pilha { order: 2; }
.bloco__foto { border-radius: var(--raio); overflow: hidden; background: var(--superficie); }
.bloco__foto img { width: 100%; }
.bloco__foto { max-width: 500px; width: 100%; justify-self: center; }
.pilha { display: grid; gap: 16px; max-width: 440px; width: 100%; justify-self: center; }
.pilha figure { position: relative; border-radius: var(--raio); overflow: hidden; background: #000; }
.pilha img { width: 100%; height: auto; }
.pilha figcaption, .duo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 13px;
}
.pilha figcaption strong { font-weight: 500; }
.bloco__texto h2 { font-size: clamp(26px, 2.6vw, 36px); }
.bloco__texto > p:not(.sobretitulo) { margin-top: 18px; color: var(--texto); }

.specs { margin: 28px 0 0; }
.specs div {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 12px 0; border-bottom: 1px solid var(--linha); font-size: 15px;
}
.specs div:first-child { border-top: 1px solid var(--linha); }
.specs dt { color: var(--cinza); }
.specs dd { margin: 0; text-align: right; }

.bloco__foto--retrato { max-width: 400px; justify-self: center; width: 100%; }
.duo { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: calc(-1 * clamp(32px, 5vw, 80px)); }
.duo figure { border-radius: var(--raio); overflow: hidden; background: #000; position: relative; }
.duo img { width: 100%; height: auto; }
.duo--freios { max-width: 800px; margin-left: auto; margin-right: auto; }
.duo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 14px;
}
.duo figcaption strong { font-weight: 500; }
.duo--largo { margin-top: 0; width: 100%; grid-template-columns: 1fr 1.4fr; }
.duo--largo figure { aspect-ratio: auto; height: clamp(220px, 26vw, 380px); }

/* Carro recortado sobre fundo de estúdio */
.vitrine { background: linear-gradient(180deg, #fbfbfc 0%, #ececef 70%, #e2e3e6 100%) !important; }
.vitrine img { object-fit: contain !important; padding: 7% 6%; }
.editorial--so-texto { padding-bottom: clamp(16px, 3vw, 40px); }

/* ---------- Seções escuras ---------- */
.escuro { background: var(--escuro); color: var(--escuro-texto); }
.escuro .sobretitulo, .escuro .numero__rotulo { color: var(--escuro-cinza); }

.design__texto { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.design__texto p:last-child { margin-top: 20px; font-size: 19px; color: #c9cacd; }
.design__grade { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.design__grade figure { border-radius: var(--raio); overflow: hidden; aspect-ratio: 16 / 9; }
.design__grade img { width: 100%; height: 100%; }

/* ---------- Powertrain ---------- */
.powertrain { display: grid; gap: 48px; }
.powertrain__texto { max-width: 760px; }
.powertrain__texto p:not(.sobretitulo) { margin-top: 18px; color: var(--texto); }
.powertrain__texto p.falta { display: inline-block; }
.numeros__lista--compacta { width: 100%; }
.numeros__lista--compacta .numero__valor { font-size: clamp(32px, 3.6vw, 48px); display: inline-block; }

.powertrain__specs { width: 100%; margin-top: 0; }
.super { background: var(--superficie); border-radius: var(--raio); padding: clamp(24px, 3vw, 40px); width: 100%; }
.super p { margin-top: 12px; color: var(--texto); max-width: 760px; }

/* ---------- Frase de fecho ---------- */
.fecho { text-align: center; padding-top: clamp(96px, 14vw, 200px); padding-bottom: clamp(96px, 14vw, 200px); }
.fecho__frase { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.035em; }
.fecho + .rodape { border-top: 1px solid #222329; }
.fecho .acoes { margin-top: 40px; }
.fecho .btn--primario { background: #fff; color: var(--tinta); border-color: #fff; }
.fecho .btn--primario:hover { background: #d9dadd; }
.fecho .btn--secundario { color: #fff; border-color: #6b6d70; }
.fecho .btn--secundario:hover { background: #fff; color: var(--tinta); border-color: #fff; }
.rodape__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.rodape__links a { text-decoration: none; color: #c9cacd; }
.rodape__links a:hover { color: #fff; }
.rodape__creditos { font-size: 12px; color: #6b6d70; }
.powertrain .bloco { margin-top: clamp(32px, 5vw, 72px); }

/* ---------- Configurador de cor ---------- */
.cores { background: var(--superficie); }
.cores .segmentos { background: #e1e2e6; }
.palco {
  position: relative; overflow: hidden; border-radius: var(--raio); isolation: isolate;
  aspect-ratio: 2.3 / 1;
  background: linear-gradient(180deg, #fbfbfc 0%, #ececef 68%, #dfe0e4 68%, #e9eaed 100%);
}
.palco__foto {
  position: absolute; left: 7%; top: 8%; width: 86%; height: 79%;
  object-fit: contain; object-position: center bottom;
  transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.palco__foto.trocando { opacity: 0; transform: translateX(-2%); }
.palco__sombra {
  position: absolute; z-index: -1; left: 12%; right: 12%; bottom: 9%; height: 8%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.42), rgba(0,0,0,.12) 60%, transparent 76%);
  filter: blur(5px);
}
.paleta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 28px;
}
.paleta__nome { font-size: 22px; }
.paleta__botoes { display: flex; gap: 14px; }
.cor {
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  background: var(--c); position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), inset 0 -8px 14px rgba(0,0,0,.25), inset 0 6px 10px rgba(255,255,255,.18);
}
.cor::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid transparent; transition: border-color .2s;
}
.cor.ativo::after { border-color: var(--tinta); }
.cor:hover::after { border-color: var(--cinza); }

/* ---------- Interior ---------- */
.segmentos--escuro { background: var(--escuro-2); }
.segmentos--escuro button { color: var(--escuro-cinza); }
.segmentos--escuro .ativo { background: #34353a; color: #fff; box-shadow: none; }
.segmentos--escuro button:hover { color: #fff; }
.interior__lead { max-width: 760px; font-size: 19px; color: #c9cacd; margin-bottom: clamp(32px, 4vw, 48px); }
.interior__grade { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.interior__grade figure { border-radius: var(--raio); overflow: hidden; background: var(--escuro-2); aspect-ratio: 540 / 390; }
.interior__grade .interior__grande { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.interior__grade img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.interior__grade img.trocando { opacity: 0; }

/* ---------- Ficha técnica ---------- */
.ficha h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.ficha__grupos { border-top: 1px solid var(--linha); }
.ficha details { border-bottom: 1px solid var(--linha); }
.ficha summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: clamp(20px, 2vw, 24px);
}
.ficha summary::-webkit-details-marker { display: none; }
.ficha summary::after { content: "+"; font-size: 28px; font-weight: 300; transition: transform .3s; }
.ficha details[open] summary::after { transform: rotate(45deg); }
.ficha .specs { margin: 0 0 28px; max-width: 760px; }
.ficha .specs div:first-child { border-top: 0; }
.ficha .specs div:last-child { border-bottom: 0; }

/* ---------- Equipe ---------- */
.equipe { background: var(--superficie); }
.equipe h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.equipe__grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.membro { background: var(--fundo); border-radius: var(--raio); padding: 28px; }
.membro .card__num { margin: 0 0 6px; }
.membro ul { list-style: none; margin: 16px 0 0; padding: 4px 8px; display: grid; gap: 6px; font-size: 15px; }
.membro ul.falta { display: grid; }

/* ---------- Rodapé ---------- */
.rodape {
  background: var(--escuro); color: var(--escuro-cinza);
  padding: 56px var(--margem); text-align: center; font-size: 14px;
  display: grid; gap: 12px; justify-items: center;
}
.rodape .nav__marca { color: #fff; font-size: 18px; margin-bottom: 8px; }

/* ---------- Animação de entrada ---------- */
.js .revela { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .revela.visivel { opacity: 1; transform: none; }
.js figure.revela img, .js .revela figure img { transform: scale(1.08); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.js figure.revela.visivel img, .js .revela.visivel figure img { transform: none; }

/* nav some ao descer e volta ao subir */
.nav { transition: border-color .3s, transform .45s cubic-bezier(.2,.7,.2,1); }
.nav.escondida { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revela { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .bloco, .bloco--inverte { grid-template-columns: 1fr; }
  .bloco--inverte .bloco__foto, .bloco--inverte .pilha { order: 0; }
  .equipe__grade { grid-template-columns: 1fr 1fr; }
  .duo, .duo--largo { grid-template-columns: 1fr; margin-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__acao { font-size: 14px; }
  .numeros__lista { grid-template-columns: 1fr; gap: 28px; }
  .design__grade { grid-template-columns: 1fr; }
            .trilho { grid-auto-columns: 82%; }
  .setas { display: none; }
  .palco { aspect-ratio: 4 / 3; }
  .palco__foto { left: 3%; width: 94%; }
  .interior__grade { grid-template-columns: 1fr; }
  .equipe__grade { grid-template-columns: 1fr; }
  .btn { min-width: 0; flex: 1; }
  .hero { min-height: 0; padding-top: 56px; padding-bottom: 88px; }
  .hero__palco { width: 100%; }
  .hero__descer { bottom: 28px; }
}
