/* ================= MODOS: ligeiros / pesados ================= */
:root { --mode-glow: rgba(227,6,19,.10); }
:root[data-mode="pesados"] { --mode-glow: rgba(44,79,174,.28); }
.hero { background: radial-gradient(70% 90% at 78% 40%, var(--mode-glow) 0%, transparent 60%), radial-gradient(80% 90% at 75% 40%, #1d2029 0%, var(--bg) 70%); }
:root[data-mode="pesados"] .hero-stage::before { background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 26px), linear-gradient(180deg, transparent, rgba(44,79,174,.18)); }

.mode-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 30px; background: var(--bg-2); flex-shrink: 0; }
.mode-switch button { position: relative; z-index: 1; background: none; border: 0; padding: 8px 16px; font: 700 13px/1 var(--f-display); letter-spacing: .04em; color: var(--muted); transition: color .25s; white-space: nowrap; }
.mode-switch button.on { color: #fff; }
.ms-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 30px; background: var(--red); transition: transform .45s cubic-bezier(.65,0,.35,1); }
.mode-switch[data-m="pesados"] .ms-ind { transform: translateX(100%); }
.cats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cats.two .cat { padding: 26px 28px 22px; gap: 10px; }
.cats.two .cat .stage { aspect-ratio: 16 / 7; }
.cats.two .chips { margin-top: 4px; }
.seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proto-menu .pm { text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 4px; font-size: 14px; color: var(--red-hi); font-weight: 600; }
.proto-menu .pm:hover { background: var(--surface); }

/* ---------- ecrã de escolha ---------- */
html.gate-open, html.gate-open body { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 90; overflow-y: auto; background: radial-gradient(60% 50% at 25% 60%, rgba(227,6,19,.12), transparent 70%), radial-gradient(60% 50% at 75% 60%, rgba(44,79,174,.18), transparent 70%), var(--bg); padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(20px + env(safe-area-inset-bottom, 0px)); }
.gate-inner { max-width: 1440px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.gate-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.gate-top .logo svg { height: 54px; width: auto; }
.gate-head { display: flex; flex-direction: column; gap: 12px; }
.gate-head h1 { font-size: clamp(38px, 6vw, 72px); font-stretch: 125%; font-weight: 900; }
.gate-head p { margin: 0; color: var(--muted); font-size: 17px; max-width: 52ch; }
.gate-choices { display: flex; gap: 16px; flex: 1; min-height: 430px; }
.gate-card { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; text-align: left; padding: 28px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, #0e0f13 100%); transition: flex-grow .55s cubic-bezier(.65,0,.35,1), border-color .25s; }
.gate-card:hover, .gate-card:focus-visible { flex-grow: 1.35; border-color: var(--red); }
.gate-art { position: absolute; inset: 0 0 auto 0; height: 52%; pointer-events: none; }
.ga { position: absolute; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ga .veh-svg { width: 100%; height: auto; display: block; }
.ga-0 { right: 4%; bottom: 0; width: min(72%, 400px); z-index: 2; }
.ga-1 { left: 4%; bottom: 16%; width: min(52%, 290px); opacity: .55; }
.gate-card:hover .ga-0 { transform: translateX(-4%) scale(1.03); }
.gate-card:hover .ga-1 { transform: translateX(3%); }
.gate-text { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.gate-h { font: 900 clamp(30px, 4vw, 48px)/1 var(--f-display); font-stretch: 125%; color: var(--fg); }
.gate-d { color: var(--muted); font-size: 15px; max-width: 40ch; }
.gate-go { position: relative; z-index: 3; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--r); background: var(--red); color: #fff; font: 700 13px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; transition: gap .25s; }
.gate-card:hover .gate-go { gap: 14px; }
.gc-pesados .gate-go { background: var(--fg); color: var(--bg); }
.gc-pesados:hover, .gc-pesados:focus-visible { border-color: var(--blue-soft); }
.gate-note { margin: 0; color: var(--dim); font-size: 13px; }
.gate-foot { color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); padding-top: 16px; }

/* ================= ANIMAÇÕES DE ENTRADA ================= */
@keyframes rvUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rvFade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@keyframes driveIn { from { opacity: 0; transform: translateX(12%); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes slabIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { transform: translateX(-105%) skewX(-12deg); } 42%, 58% { transform: translateX(0) skewX(-12deg); } 100% { transform: translateX(105%) skewX(-12deg); } }
@keyframes sweepTxt { 0%, 30% { opacity: 0; transform: skewX(12deg) translateX(-30px); } 45%, 60% { opacity: 1; transform: skewX(12deg); } 80%, 100% { opacity: 0; transform: skewX(12deg) translateX(30px); } }
.rv { animation: rvUp .75s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
.rv-fast { animation: rvFade .4s ease-out both; animation-delay: var(--d, 0ms); }
.header.boot { animation: dropIn .6s cubic-bezier(.2,.7,.2,1) both; }
.hero.play .hero-copy > * { animation: rvUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero.play .hero-copy > :nth-child(2) { animation-delay: 80ms; } .hero.play .hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero.play .hero-copy > :nth-child(4) { animation-delay: 230ms; } .hero.play .hero-copy > :nth-child(5) { animation-delay: 300ms; }
.hero.play .hero-copy > :nth-child(6) { animation-delay: 360ms; } .hero.play .hero-copy > :nth-child(7) { animation-delay: 420ms; }
.hero.play h1 .slab { animation: slabIn .7s .35s cubic-bezier(.65,0,.35,1) both; }
.hero.play .hero-stage > .veh-svg, .hero.play .hero-stage > .photo { animation: driveIn 1.1s .1s cubic-bezier(.2,.75,.2,1) both; }
.hero.play .hero-stage::before { animation: rvFade 1s both; }
.gate.play .gate-top, .gate.play .gate-head > *, .gate.play .gate-note, .gate.play .gate-foot { animation: rvUp .8s cubic-bezier(.2,.7,.2,1) both; }
.gate.play .gate-head > :nth-child(2) { animation-delay: 90ms; } .gate.play .gate-head > :nth-child(3) { animation-delay: 170ms; }
.gate.play .gate-card { animation: rvUp .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(250ms + var(--i) * 120ms); }
.gate.play .ga-0 { animation: driveIn 1.2s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(450ms + var(--i) * 120ms); }
.gate.play .gate-note, .gate.play .gate-foot { animation-delay: 600ms; }
.sweep { position: fixed; inset: 0 -12%; z-index: 100; background: var(--red); display: grid; place-items: center; animation: sweep 1s cubic-bezier(.65,0,.35,1) both; pointer-events: none; }
.sweep span { font: 900 clamp(36px, 7vw, 90px)/1 var(--f-display); font-stretch: 125%; color: #fff; text-transform: uppercase; animation: sweepTxt 1s both; }
.vcard .stage .veh-svg, .vcard .stage .photo { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.vcard:hover .stage .veh-svg, .vcard:hover .stage .photo { transform: scale(1.04); }

@media (max-width: 1080px) { .mode-switch { margin-left: auto; } .header-actions { margin-left: 0; } }
@media (max-width: 760px) {
  .gate { padding-inline: 16px; }
  .gate-choices { flex-direction: column; min-height: 0; }
  .gate-card { min-height: 280px; padding: 22px; }
  .gate-card:hover { flex-grow: 1; }
  .cats.two { grid-template-columns: minmax(0, 1fr); }
  .mode-switch button { padding: 8px 11px; font-size: 12px; }
  .header .wrap { gap: 12px; }
}
@media (max-width: 400px) { .logo svg { height: 36px; } .header-actions .fav-link { display: none; } }
@media (prefers-reduced-motion: reduce) { .sweep { display: none; } }
