:root {
  --bg: #0b0c0e;
  --ink: #f4f5f6;
  --muted: #a9afb8;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(12, 13, 16, 0.62);
  --accent: #3d6bff;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
body { font-family: "Sora", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.vignette { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.42) 100%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.38), transparent 16%, transparent 70%, rgba(0, 0, 0, 0.5)); }

/* ---------- topo ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 26px; z-index: 5; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { height: 38px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-weight: 700; letter-spacing: 0.22em; font-size: 15px; }
.brand-text i { font-style: normal; font-weight: 400; letter-spacing: 0.46em; font-size: 8.5px; margin-top: 5px; color: var(--muted); }
.brand-tag { margin-left: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.actions { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; font-size: 12.5px; font-weight: 500;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s; white-space: nowrap; }
.chip:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }
.chip.on { background: var(--ink); color: #0b0c0e; border-color: var(--ink); }
.chip.icon { width: 40px; padding: 0; justify-content: center; font-size: 16px; }
.chip .ic { font-size: 13px; opacity: 0.9; }

/* ---------- cartão da etapa ---------- */
.card { position: fixed; left: 26px; bottom: 112px; width: min(400px, calc(100vw - 52px)); padding: 26px 26px 24px; z-index: 4;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.card.swap { opacity: 0; transform: translateY(14px); }
.card-count { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.card-count span:first-child { font-size: 30px; font-weight: 300; letter-spacing: -0.02em; }
.card-count em { font-style: normal; font-size: 12px; color: var(--muted); }
.card-kicker { margin-left: auto; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.card h2 { font-size: 25px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 10px; }
.card p { font-size: 13.5px; line-height: 1.65; color: #d2d6dc; font-weight: 300; }
.facts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.facts li { font-size: 11.5px; padding: 7px 11px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); }
.photo { margin-top: 16px; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 12px; text-align: left;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); transition: background 0.25s; }
.photo:hover { background: rgba(255, 255, 255, 0.1); }
.photo img { width: 74px; height: 52px; object-fit: cover; border-radius: 8px; }
.photo span { font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.photo small { color: var(--muted); font-weight: 300; }
.cta { display: inline-flex; margin-top: 16px; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 99px;
  background: var(--ink); color: #0b0c0e; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: transform 0.25s; }
.cta:hover { transform: translateY(-2px); }
[hidden] { display: none !important; }

/* ---------- trilho de etapas ---------- */
.rail { position: fixed; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; align-items: center; gap: 10px; z-index: 4;
  padding: 0 20px; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.rail ol { list-style: none; padding: 6px; margin: 0; display: flex; gap: 2px; max-width: calc(100vw - 150px); overflow-x: auto; scrollbar-width: none;
  background: var(--glass); border: 1px solid var(--line); border-radius: 99px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.rail ol::-webkit-scrollbar { display: none; }
.rail li button { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: 99px; font-size: 12px; font-weight: 500;
  color: var(--muted); white-space: nowrap; transition: background 0.3s, color 0.3s; }
.rail li button b { font-weight: 400; font-size: 10.5px; opacity: 0.7; }
.rail li button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.rail li.on button { background: var(--ink); color: #0b0c0e; }
.nav-btn { width: 52px; height: 52px; flex: none; border-radius: 50%; font-size: 18px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: background 0.25s; }
.nav-btn:hover { background: rgba(255, 255, 255, 0.16); }

.hint { position: fixed; right: 26px; bottom: 112px; z-index: 3; font-size: 11.5px; color: rgba(255, 255, 255, 0.72); font-weight: 300;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); transition: opacity 1s; pointer-events: none; max-width: 300px; text-align: right; line-height: 1.6; }
.hint.gone { opacity: 0; }

/* ---------- botão do som: sempre com ícone de alto-falante e texto, inclusive em telas estreitas ---------- */
#btn-sound .snd-on { display: none; } #btn-sound.on .snd-on { display: inline; } #btn-sound.on .snd-off { display: none; }
#btn-sound { border-color: rgba(255, 255, 255, 0.34); }

/* ---------- modo caminhar ---------- */
.pad { position: fixed; right: 26px; bottom: 104px; z-index: 5; display: none; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(2, 52px); gap: 6px; }
.pad button { background: var(--glass); border: 1px solid var(--line); border-radius: 12px; font-size: 19px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  touch-action: none; user-select: none; -webkit-user-select: none; }
.pad button.on, .pad button:active { background: var(--ink); color: #0b0c0e; }
.pad .up { grid-column: 2; grid-row: 1; } .pad .left { grid-column: 1; grid-row: 2; } .pad .down { grid-column: 2; grid-row: 2; } .pad .right { grid-column: 3; grid-row: 2; }
.walk-hint { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 4; display: none; margin: 0; padding: 8px 16px; border-radius: 99px; font-size: 12px; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); pointer-events: none; }
body.is-walk .pad { display: grid; } body.is-walk .walk-hint { display: block; }
body.is-walk .card, body.is-walk .hint, body.is-walk #hotspots { opacity: 0; pointer-events: none; }
body.is-intro .pad, body.is-intro .walk-hint { display: none; }
@media (max-width: 820px) { .pad { right: 14px; bottom: 84px; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(2, 46px); } .walk-hint { display: none !important; } }

/* ---------- pontos de interesse ---------- */
#hotspots { position: fixed; inset: 0; pointer-events: none; z-index: 2; transition: opacity 0.4s; }
#hotspots.hide { opacity: 0; }
#hotspots.hide .hs { pointer-events: none; }
.hs { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; pointer-events: auto; padding: 4px; margin: -17px 0 0 -17px;
  will-change: transform; transition: opacity 0.3s; }
.hs i { position: relative; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); flex: none;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22), 0 6px 20px rgba(0, 0, 0, 0.5); transition: transform 0.3s var(--ease); }
.hs i::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #0b0c0e; }
.hs i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.8); animation: pulse 2.4s var(--ease) infinite; }
.hs span { padding: 7px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 500; white-space: nowrap; background: var(--glass);
  border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background 0.25s, color 0.25s; }
.hs:hover i { transform: scale(1.15); }
.hs:hover span { background: var(--ink); color: #0b0c0e; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(2); opacity: 0; } }

/* ---------- abertura ---------- */
.intro { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; padding: clamp(28px, 6vw, 84px);
  background: linear-gradient(100deg, rgba(8, 9, 11, 0.9) 0%, rgba(8, 9, 11, 0.62) 42%, rgba(8, 9, 11, 0.1) 75%),
              linear-gradient(to top, rgba(8, 9, 11, 0.75), transparent 45%);
  transition: opacity 1s var(--ease), visibility 1s; }
.intro-inner { max-width: 640px; }
.intro-inner > * { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; }
.intro-inner > :nth-child(2) { animation-delay: 0.1s; } .intro-inner > :nth-child(3) { animation-delay: 0.2s; }
.intro-inner > :nth-child(4) { animation-delay: 0.32s; } .intro-inner > :nth-child(5) { animation-delay: 0.44s; }
.intro-inner > :nth-child(6) { animation-delay: 0.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.intro-mark { height: 84px; width: auto; margin-bottom: 30px; }
.eyebrow { font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.intro h1 { font-size: clamp(36px, 5.4vw, 68px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 22px; }
.lead { font-size: clamp(14px, 1.3vw, 16.5px); line-height: 1.7; font-weight: 300; color: #d5d9de; max-width: 520px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn-primary, .btn-ghost { height: 56px; padding: 0 28px; border-radius: 99px; font-size: 14.5px; font-weight: 600; transition: transform 0.3s var(--ease), background 0.3s; }
.btn-primary { background: var(--ink); color: #0b0c0e; display: inline-flex; align-items: center; gap: 14px; }
.btn-primary span { transition: transform 0.3s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); } .btn-primary:hover span { transform: translateX(5px); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.32); font-weight: 500; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.intro-foot { margin-top: 44px; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); font-weight: 300; }

body.is-intro .top .actions, body.is-intro .card, body.is-intro .rail, body.is-intro .hint, body.is-intro #hotspots, body.is-intro .brand-tag { opacity: 0; pointer-events: none; }
body.is-intro .brand { opacity: 0; }
body.is-intro .card { transform: translateY(24px); }
body:not(.is-intro) .intro { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- lightbox / fades ---------- */
.lightbox { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(5, 6, 8, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 5vmin; }
.lightbox figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
.lightbox figcaption { font-size: 12.5px; color: var(--muted); }
#lb-close { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; font-size: 24px; border: 1px solid var(--line); }
.fade { position: fixed; inset: 0; background: #07080a; opacity: 0; pointer-events: none; z-index: 8; transition: opacity 0.45s; }
.fade.on { opacity: 1; }
.loader { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: grid; place-items: center; transition: opacity 0.8s, visibility 0.8s; }
.loader span { width: 150px; height: 1px; background: rgba(255, 255, 255, 0.16); position: relative; overflow: hidden; }
.loader span::after { content: ""; position: absolute; inset: 0; width: 40%; background: #fff; animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
.loader.done { opacity: 0; visibility: hidden; }

/* ---------- telas pequenas ---------- */
@media (max-width: 820px) {
  .top { padding: 14px 16px; }
  .brand-tag, .chip .lbl { display: none; }
  .chip { width: 40px; padding: 0; justify-content: center; }
  #btn-sound, #btn-gates, #btn-shopgate, #btn-dock, #btn-stock, #btn-warranty, #btn-heli { width: auto; padding: 0 12px; } #btn-sound .lbl, #btn-gates .lbl, #btn-shopgate .lbl, #btn-dock .lbl, #btn-stock .lbl, #btn-warranty .lbl, #btn-heli .lbl { display: inline; font-size: 11.5px; }
  .actions { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100vw - 150px); row-gap: 6px; }
  .card { left: 16px; right: 16px; width: auto; bottom: 92px; padding: 18px 18px 16px; }
  .card h2 { font-size: 20px; } .card p { font-size: 12.5px; line-height: 1.55; }
  .card-count span:first-child { font-size: 22px; } .card-count { margin-bottom: 8px; }
  .facts, .photo { display: none; }
  .rail { bottom: 16px; gap: 8px; padding: 0 12px; }
  .rail ol { max-width: calc(100vw - 130px); } .rail li button span { display: none; } .rail li.on button span { display: inline; }
  .nav-btn { width: 44px; height: 44px; }
  .hint { display: none; }
  .hs span { display: none; }
  .intro { align-items: flex-end; padding: 24px 22px 36px; background: linear-gradient(to top, rgba(8, 9, 11, 0.94) 30%, rgba(8, 9, 11, 0.3)); }
  .btn-primary, .btn-ghost { height: 52px; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) { .hs i::after { animation: none; } }

/* ---------- slogan ---------- */
.intro-slogan { margin: -8px 0 22px; font-size: clamp(15px, 2.1vw, 22px); font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: #fff; }
.intro-slogan::after { content: ""; display: block; width: 56px; height: 2px; margin: 14px 0 0; background: #16baaf; }

/* ---------- aviso de portão fechado ---------- */
.gate-ask { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 30px 24px; border-radius: 18px; background: rgba(11, 12, 14, 0.82); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-align: center; max-width: calc(100vw - 32px); }
.gate-ask[hidden] { display: none; }
.gate-ask strong { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: #fff; }
.gate-ask #ga-close { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: rgba(255, 255, 255, 0.6); font-size: 20px; cursor: pointer; }
body.is-intro .gate-ask { display: none; }

/* ---------- painel de informações compacto: título e duas linhas; o restante abre em "Ler mais" ---------- */
.card { width: min(340px, calc(100vw - 32px)); padding: 16px 18px 14px; left: 20px; }
.card-count { margin-bottom: 6px; } .card-count span:first-child { font-size: 20px; }
.card h2 { font-size: 18px; margin-bottom: 6px; }
.card p { font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card:not(.open) .facts, .card:not(.open) .photo, .card:not(.open) .cta { display: none; }
.card.open p { display: block; overflow: visible; }
.card.open .facts { display: flex; margin-top: 12px; } .card.open .photo { display: flex; margin-top: 12px; }
.card-more { margin-top: 8px; padding: 0; background: none; border: 0; color: #16baaf; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
@media (max-width: 820px) { .card { left: 16px; right: auto; width: min(340px, calc(100vw - 32px)); bottom: 92px; padding: 14px 16px 12px; } .card h2 { font-size: 17px; } }

/* a fileira de botões quebra em mais de uma linha quando não cabe na janela (antes os últimos ficavam fora da tela) */
.top { align-items: flex-start; }
.actions { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
.chip.walk:not(.on) { border-color: var(--teal, #16baaf); }

/* tela de escolha de idioma: a primeira que aparece, com o galpão girando ao fundo */
.lang { position: fixed; inset: 0; z-index: 11; display: flex; align-items: center; justify-content: center;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(ellipse at center, rgba(8, 9, 11, 0.42), rgba(8, 9, 11, 0.84)); transition: opacity 0.6s, visibility 0.6s; }
.lang-inner { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 760px; }
.lang-mark { height: clamp(84px, 14vw, 136px); width: auto; }
.lang-slogan { margin: 20px 0 44px; font-size: clamp(12px, 1.6vw, 15px); font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: #fff; }
.lang-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; }
.lang-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 14px 10px; border-radius: 18px; cursor: pointer;
  font: inherit; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(12, 13, 16, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s; }
.lang-flag { width: 60px; height: 40px; border-radius: 6px; margin-bottom: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 6px 18px rgba(0, 0, 0, 0.4); }
.lang-btn { padding-block: 20px; }
.lang-btn b { font-size: 19px; font-weight: 600; } .lang-btn span { font-size: 11.5px; letter-spacing: 0.08em; opacity: 0.7; }
.lang-btn:hover, .lang-btn:focus-visible { transform: translateY(-3px); background: var(--ink); color: #0b0c0e; border-color: var(--ink); outline: none; }
@media (max-width: 640px) { .lang-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lang-slogan { margin-bottom: 30px; } }
:lang(zh) .brand-tag { white-space: nowrap; letter-spacing: 0.12em; }
body:not(.is-lang) .lang { opacity: 0; visibility: hidden; pointer-events: none; }
body.is-lang .intro { opacity: 0; visibility: hidden; pointer-events: none; }

/* os quadros de idioma ficam mais baixos, de 2 a 4,6 cm conforme a altura da tela (em telas largas e altas o bastante para caberem) */
@media (min-width: 641px) and (min-height: 560px) { .lang-list { transform: translateY(clamp(2cm, 19vh, 4.6cm)); } }

/* celular: só os botões principais ficam na barra; os demais abrem pelo menu (☰) */
.menu-toggle { display: none; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; font-size: 17px; }
  .actions { max-width: none; flex-wrap: nowrap; gap: 6px; row-gap: 6px; }
  .actions > .chip { display: none; order: 2; }
  .actions > #btn-walk, .actions > #btn-present, .actions > #btn-sound, .actions > #btn-menu { display: inline-flex; order: 0; }
  #btn-sound { width: 40px; padding: 0; } #btn-sound .lbl { display: none; }
  .actions.open { position: absolute; top: 8px; right: 8px; left: 8px; z-index: 6; flex-wrap: wrap; justify-content: flex-end; padding: 6px 8px 10px;
    border-radius: 24px; background: rgba(10, 11, 14, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.12); }
  .actions.open::before { content: ""; order: 1; flex: 0 0 100%; height: 0; }
  .actions.open > .chip { display: inline-flex; }
  .actions.open > .chip:not(#btn-walk):not(#btn-present):not(#btn-sound):not(#btn-menu) { width: auto; padding: 0 12px; }
  .actions.open > .chip:not(#btn-walk):not(#btn-present):not(#btn-sound):not(#btn-menu) .lbl { display: inline; font-size: 11.5px; }
  .actions.open > #btn-full { display: none; }
}
