/* ==========================================================================
   Grand Stories International Roleplay — site do servidor
   Paleta e escala tipográfica: tema escuro (cinzas 900→100, laranja primário,
   vermelho, amarelo, verde, azul Discord). Animações só com transform/opacity.
   ========================================================================== */

:root {
  /* cinzas */
  --white: #fff;
  --gray-100: #f8f9fa;
  --gray-200: #e0e0e0;
  --gray-300: #b0b0b0;
  --gray-400: #8a8a8a;
  --gray-500: #444;
  --gray-600: #2a2a2a;
  --gray-700: #1a1a1a;
  --gray-800: #0d0d0d;
  --gray-900: #080808;
  --black: #000;

  /* cores */
  --blue: #375a7f;
  --pink: #e83e8c;
  --red: #e74c3c;
  --orange: #f5a623;
  --yellow: #e8d44d;
  --green: #2ecc71;
  --teal: #20c997;
  --discord: #5865f2;

  /* papéis */
  --primary: var(--orange);
  --danger: var(--red);
  --warning: var(--yellow);
  --success: var(--green);
  --info: var(--discord);
  --body-bg: var(--gray-900);
  --body-color: var(--gray-200);
  --card-bg: var(--gray-800);
  --card-cap: var(--gray-700);
  --border: var(--gray-700);

  --grad: linear-gradient(90deg, var(--orange), var(--red) 55%, var(--pink));
  --font: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --wordmark: "Bebas Neue", Impact, "Arial Narrow", sans-serif;

  --header-h: 72px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--body-bg);
  color: var(--body-color);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- tipografia ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 900; font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: var(--orange);
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--grad); }
.title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .94; letter-spacing: .01em; color: var(--white);
  margin-top: 14px;
}
.title--sm { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--gray-100); line-height: 1.6; max-width: 62ch; margin-top: 22px; }
p { color: var(--gray-300); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 900; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--orange); color: #0a0a0a; }
.btn--primary:hover { background: #ffb845; }
.btn--discord { background: var(--discord); color: var(--white); }
.btn--discord:hover { background: #6d78f5; }
.btn--discord svg { flex: none; }
.btn--forum { background: var(--white); color: #0a0a0a; }
.btn--forum:hover { background: #ffe6b3; }
.btn--forum svg { flex: none; transition: transform .25s var(--ease); }
.btn--forum:hover svg { transform: translateX(5px); }
.btn--xl { min-height: 68px; padding: 0 44px; font-size: 1.1rem; }
.btn--ghost { background: transparent; color: var(--gray-100); border-color: var(--gray-500); min-height: 42px; padding: 0 20px; }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--lg { min-height: 58px; padding: 0 38px; font-size: 1rem; }
.btn em { white-space: nowrap; font-style: normal; font-size: .62rem; letter-spacing: .14em; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .28); }
.btn[aria-disabled="true"] { opacity: .8; }
.btn[aria-disabled="true"]:not(:where(.hero *)) { cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-solid, .nav.is-open { background: rgba(8, 8, 8, .94); border-bottom-color: var(--border); }
.nav__bar { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); white-space: nowrap; flex: none; }
.brand__mark { width: 48px; height: 48px; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-family: var(--wordmark); font-weight: 400; font-size: 1.4rem; letter-spacing: .08em; }
.brand__text i { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .34em; color: var(--gray-300); }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu a { white-space: nowrap; color: var(--gray-200); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.menu a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.menu .menu__forum { background: var(--white); color: #0a0a0a; margin-left: 8px; }
.menu .menu__forum:hover { background: #ffe6b3; color: #0a0a0a; }
.menu .menu__cta { background: var(--orange); color: #0a0a0a; margin-left: 4px; }
.menu .menu__cta:hover { background: #ffb845; color: #0a0a0a; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--gray-600); border-radius: 999px; background: rgba(13, 13, 13, .7); }
.lang button { border: 0; background: transparent; color: var(--gray-300); font-weight: 900; font-size: .72rem; letter-spacing: .12em; padding: 7px 11px; border-radius: 999px; transition: background-color .2s, color .2s; }
.lang button:hover { color: var(--white); }
.lang button[aria-pressed="true"] { background: var(--orange); color: #0a0a0a; }
.burger { flex: none; display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.nav.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { opacity: 0; }
.nav.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .burger { display: block; }
  .lang { margin-left: 0; }
  .menu {
    position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: rgba(8, 8, 8, .98); border-bottom: 1px solid var(--border); padding: 10px var(--gutter) 22px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .2s, visibility .2s;
  }
  .nav.is-open .menu { transform: none; opacity: 1; visibility: visible; }
  .menu a { padding: 15px 6px; border-radius: 0; border-bottom: 1px solid var(--gray-700); font-size: .95rem; }
  .menu .menu__forum { margin: 16px 0 0; border-radius: 999px; text-align: center; border: 0; }
  .menu .menu__cta { margin: 10px 0 0; border-radius: 999px; text-align: center; border: 0; }
  .nav__bar { gap: 12px; }
  .lang { margin-left: auto; }
  .burger { margin-left: 0; }
}
@media (max-width: 420px) { .brand__text i { display: none; } }
@media (max-width: 600px) { .brand { flex: 0 1 auto; min-width: 0; } .brand__mark { width: 40px; height: 40px; } .brand__text b { font-size: 1.2rem; letter-spacing: .05em; } .lang { flex: none; } .lang button { padding: 7px 9px; } }
@media (max-width: 380px) { .nav__bar { gap: 8px; } .brand { gap: 8px; } .brand__text b { font-size: 1.05rem; letter-spacing: .03em; } .lang button { padding: 6px 8px; font-size: .68rem; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; background: linear-gradient(#1c1530, #6b2a3a 55%, #f5762a); }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform: translate3d(0, calc(var(--py, 0) * 9%), 0) scale(1.08); will-change: transform;
  animation: heroIn 1.8s var(--ease) both;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, .6) 0%, rgba(8, 8, 8, .1) 24%, rgba(8, 8, 8, .18) 46%, rgba(8, 8, 8, .86) 84%, var(--body-bg) 100%),
    linear-gradient(90deg, rgba(8, 8, 8, .86) 0%, rgba(8, 8, 8, .62) 38%, rgba(8, 8, 8, .12) 72%, rgba(8, 8, 8, 0) 100%);
}
@media (max-width: 760px) { .hero__shade { background: linear-gradient(180deg, rgba(8, 8, 8, .6) 0%, rgba(8, 8, 8, .45) 40%, rgba(8, 8, 8, .9) 82%, var(--body-bg) 100%); } }
.hero__content { padding: calc(var(--header-h) + 60px) 0 clamp(90px, 14vh, 150px); transform: translate3d(0, calc(var(--py, 0) * -46px), 0); opacity: calc(1 - var(--py, 0) * 1.3); will-change: transform, opacity; }
.hero__eyebrow, .hero__title, .hero__lead, .hero__actions { animation: rise .9s var(--ease) both; }
.hero__content { position: relative; }
.hero__eyebrow { color: var(--orange); font-weight: 900; font-size: .85rem; letter-spacing: .3em; text-transform: uppercase; animation-delay: .15s; }
.hero__title { display: flex; flex-direction: column; margin-top: 14px; animation-delay: .28s; }
.hero__word {
  font-family: var(--wordmark); font-weight: 400; font-size: clamp(3.6rem, 13.5vw, 11.5rem); line-height: .86; letter-spacing: .01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, .45));
}
.hero__sub { font-family: var(--wordmark); font-weight: 400; font-size: clamp(1.4rem, 4.6vw, 3.6rem); letter-spacing: .28em; color: var(--white); margin-top: 6px; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.hero__lead { max-width: 58ch; margin-top: 26px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--gray-100); text-shadow: 0 2px 18px rgba(0, 0, 0, .7); animation-delay: .42s; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation-delay: .54s; }
.hero__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; animation: rise .9s var(--ease) .66s both; }
.hero__langs a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 9px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(8, 8, 8, .55); color: var(--gray-200); font-weight: 900; font-size: .72rem; letter-spacing: .12em; text-decoration: none; backdrop-filter: blur(6px); transition: border-color .2s, background-color .2s, color .2s, transform .25s var(--ease); }
.hero__langs a:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .4); color: var(--white); }
.hero__langs a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.hero__langs .flag { flex: none; width: 22px; height: 16px; border-radius: 2px; }
html[data-lang="en"] .hero__langs [data-set-lang="en"], html[data-lang="pt"] .hero__langs [data-set-lang="pt"], html[data-lang="es"] .hero__langs [data-set-lang="es"],
html[data-lang="fr"] .hero__langs [data-set-lang="fr"], html[data-lang="it"] .hero__langs [data-set-lang="it"], html[data-lang="ru"] .hero__langs [data-set-lang="ru"],
html[data-lang="th"] .hero__langs [data-set-lang="th"], html[data-lang="ko"] .hero__langs [data-set-lang="ko"], html[data-lang="tr"] .hero__langs [data-set-lang="tr"] { border-color: var(--orange); background: rgba(245, 166, 35, .16); color: var(--white); }
@media (max-width: 560px) { .hero__langs { gap: 6px; } .hero__langs a { height: 32px; padding: 0 9px 0 7px; } }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--gray-200); font-size: .7rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.hero__scroll i { width: 2px; height: 44px; background: linear-gradient(var(--orange), transparent); transform-origin: top; animation: drip 1.8s var(--ease) infinite; }

@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 0, 0) scale(1.22); } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 560px) { .hero__scroll { display: none; } .hero__actions .btn { flex: 1 1 100%; padding: 0 18px; font-size: .86rem; letter-spacing: .05em; } }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker { overflow: hidden; background: var(--orange); color: #0a0a0a; border-block: 1px solid #000; }
.ticker__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.ticker ul { display: flex; flex: none; }
.ticker li { font-family: var(--display); font-size: 1.5rem; letter-spacing: .1em; text-transform: uppercase; padding: 10px 0; white-space: nowrap; display: flex; align-items: center; }
.ticker li::after { content: "✦"; font-size: .9rem; padding: 0 26px; opacity: .75; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ==========================================================================
   SEÇÕES
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; content-visibility: auto; contain-intrinsic-size: auto 900px; }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); border-color: var(--orange); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: .03em; color: var(--white); text-transform: uppercase; margin: 6px 0 10px; }
.card__num { font-family: var(--display); font-size: 1.1rem; letter-spacing: .2em; color: var(--orange); }

/* ---- faixa do fórum ---- */
.forumband { position: relative; padding: clamp(46px, 6.5vw, 84px) 0; border-bottom: 1px solid var(--border); background: linear-gradient(100deg, rgba(88, 101, 242, .24), rgba(232, 62, 140, .14) 55%, transparent 90%), var(--gray-800); }
.forumband__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.forumband__text { max-width: 62ch; }
.forumband__text p:not(.kicker) { margin-top: 14px; font-size: 1.1rem; color: var(--gray-200); }
.forumband .btn { flex: none; }
@media (max-width: 640px) { .forumband .btn { width: 100%; } }

/* ---- foco ---- */
.focus { background: radial-gradient(90% 60% at 100% 0%, rgba(232, 62, 140, .11), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(245, 166, 35, .1), transparent 60%); }
.focus__text { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; margin: 8px 0 54px; }
.focus__text .lead { margin-top: 22px; }
.focus__text p:last-child { margin-top: 26px; }
@media (max-width: 900px) { .focus__text { grid-template-columns: 1fr; gap: 0; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; border-top: 1px solid var(--border); padding-top: 40px; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 8vw, 6rem); line-height: .9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-weight: 700; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gray-300); margin-top: 8px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }

/* ---- cadeia ---- */
.chain { background: var(--gray-800); border-block: 1px solid var(--border); }
.chain__intro { margin-bottom: 46px; }
.chain__tabs { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding-top: 6px; }
.chain__line { position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 30px; height: 3px; background: var(--gray-600); border-radius: 3px; overflow: hidden; }
.chain__line::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease); }
.node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; background: transparent; border: 0; padding: 0 4px 6px; color: var(--gray-300); }
.node span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--gray-900); border: 2px solid var(--gray-600); font-family: var(--display); font-size: 1.3rem; letter-spacing: .04em; transition: transform .3s var(--ease), background-color .3s, border-color .3s, color .3s; }
.node b { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; transition: color .2s; }
.node:hover span { border-color: var(--orange); color: var(--white); }
.node[aria-selected="true"] span { background: var(--orange); border-color: var(--orange); color: #0a0a0a; transform: scale(1.14); }
.node[aria-selected="true"] b { color: var(--white); }
.node.is-done span { border-color: var(--orange); color: var(--orange); }
@media (max-width: 900px) {
  .chain__tabs { display: flex; overflow-x: auto; gap: 8px; padding: 6px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .chain__line { display: none; }
  .node { flex: 0 0 auto; min-width: 104px; scroll-snap-align: center; }
}
.chain__panels { margin-top: 34px; }
.panel { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); background: linear-gradient(135deg, rgba(245, 166, 35, .08), transparent 55%), var(--gray-900); animation: panelIn .5s var(--ease) both; overflow: hidden; }
.panel__num { font-family: var(--display); font-size: clamp(6rem, 16vw, 13rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(245, 166, 35, .55); }
.panel h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.4rem); text-transform: uppercase; letter-spacing: .02em; color: var(--white); line-height: 1; }
.panel p { margin-top: 14px; font-size: 1.08rem; max-width: 60ch; }
@keyframes panelIn { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .panel { grid-template-columns: 1fr; gap: 6px; } .panel__num { font-size: 5.5rem; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--gray-700); border: 1px solid var(--gray-600); color: var(--gray-100); font-size: .8rem; font-weight: 700; letter-spacing: .05em; }

/* ---- rota × lei ---- */
.route { margin-top: clamp(70px, 9vw, 120px); }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; position: relative; }
.lane { border: 1px solid var(--border); border-radius: var(--radius); background: var(--gray-900); padding: clamp(24px, 3.4vw, 40px); }
.lane h4 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; letter-spacing: .04em; text-transform: uppercase; }
.lane--route h4 { color: var(--orange); } .lane--law h4 { color: #8b95ff; }
.lane ol { counter-reset: s; margin-top: 18px; position: relative; }
.lane ol::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: var(--gray-600); }
.lane li { counter-increment: s; position: relative; padding: 0 0 22px 52px; display: flex; flex-direction: column; }
.lane li:last-child { padding-bottom: 0; }
.lane li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .85rem; background: var(--gray-900); border: 2px solid currentColor; }
.lane--route li::before { color: var(--orange); } .lane--law li::before { color: #8b95ff; }
.lane li b { color: var(--white); font-size: 1.05rem; letter-spacing: .03em; }
.lane li span { color: var(--gray-300); font-size: .96rem; }
@media (max-width: 860px) { .lanes { grid-template-columns: 1fr; } }

/* ---- faixa de imagem ---- */
.band { position: relative; min-height: clamp(420px, 70vh, 680px); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; z-index: -2; transform: translate3d(0, calc(var(--band, 0) * 8%), 0) scale(1.14); will-change: transform; }
.band__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--gray-800), rgba(8, 8, 8, .35) 30%, rgba(8, 8, 8, .35) 70%, var(--body-bg)); }
.band__quote { text-align: center; padding-block: 60px; }
.band__quote blockquote { font-family: var(--display); font-size: clamp(2.6rem, 7.5vw, 6.2rem); line-height: .95; text-transform: uppercase; color: var(--white); text-shadow: 0 6px 34px rgba(0, 0, 0, .6); max-width: 18ch; margin-inline: auto; }
.band__quote figcaption { margin-top: 22px; font-weight: 900; font-size: .8rem; letter-spacing: .34em; text-transform: uppercase; color: var(--orange); }

/* ---- idiomas ---- */
.talk__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
@media (max-width: 960px) { .talk__grid { grid-template-columns: 1fr; } }
.talk__text p:not(.kicker):not(.lead):not(.demo__who):not(.demo__note) { margin-top: 20px; }
.demo { margin-top: 36px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); padding: 22px 24px; max-width: 560px; }
.demo__who { font-size: .78rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-400); }
.demo__bubble { margin-top: 12px; padding: 16px 20px; border-radius: 18px 18px 18px 4px; background: linear-gradient(135deg, rgba(245, 166, 35, .18), rgba(232, 62, 140, .14)); border: 1px solid rgba(245, 166, 35, .35); min-height: 62px; }
.demo__bubble p { color: var(--white); font-size: 1.15rem; animation: panelIn .35s var(--ease) both; }
.demo__tabs { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-300); }
.demo__tabs button { border: 1px solid var(--gray-600); background: transparent; color: var(--gray-200); border-radius: 999px; padding: 6px 14px; font-weight: 900; font-size: .74rem; letter-spacing: .1em; transition: background-color .2s, color .2s, border-color .2s; }
.demo__tabs button:hover { border-color: var(--orange); }
.demo__tabs button[aria-pressed="true"] { background: var(--orange); color: #0a0a0a; border-color: var(--orange); }
.demo__note { margin-top: 12px; font-size: .88rem; color: var(--gray-400); }

.talk__rt { font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: .04em; text-transform: uppercase; color: var(--white); text-align: center; }
.rings { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 22px auto 0; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 2px solid; display: flex; align-items: flex-start; justify-content: center; }
.ring em { font-style: normal; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; transform: translateY(-50%); background: var(--body-bg); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.ring--4 { width: 100%; height: 100%; color: var(--pink); border-color: rgba(232, 62, 140, .55); background: radial-gradient(closest-side, transparent 60%, rgba(232, 62, 140, .07)); }
.ring--3 { width: 68%; height: 68%; color: var(--red); border-color: rgba(231, 76, 60, .6); }
.ring--2 { width: 32%; height: 32%; color: var(--orange); border-color: rgba(245, 166, 35, .8); }
.ring--1 { width: 15%; height: 15%; color: var(--yellow); border-color: var(--yellow); }
.ring--1 em { display: none; }
.ring--4::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(232, 62, 140, .5); animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.14); opacity: 0; } }
.ring__you { position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 6px rgba(255, 255, 255, .15); }
.legend { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 8px 30px; margin-top: 26px; font-size: .85rem; font-weight: 700; color: var(--gray-200); }
.legend li { display: flex; align-items: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot--1 { background: var(--yellow); } .dot--2 { background: var(--orange); } .dot--3 { background: var(--red); } .dot--4 { background: var(--pink); }

.phone { margin-top: clamp(50px, 7vw, 90px); }
.phone__card { display: flex; gap: clamp(20px, 3vw, 36px); align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--border); background: linear-gradient(120deg, rgba(88, 101, 242, .16), transparent 60%), var(--gray-800); }
.phone__icon { flex: none; width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center; background: var(--gray-900); border: 1px solid var(--gray-600); color: var(--orange); }
.phone__icon svg { width: 46px; height: 46px; }
.phone__card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.6rem); text-transform: uppercase; letter-spacing: .03em; color: var(--white); }
.phone__card p { margin-top: 10px; max-width: 70ch; }
@media (max-width: 640px) { .phone__card { flex-direction: column; align-items: flex-start; } }

/* ---- lei ---- */
.law { background: var(--gray-800); border-block: 1px solid var(--border); }
.tiers { margin-top: 44px; }
.tier { border-radius: var(--radius); padding: 26px; border: 1px solid var(--border); background: var(--gray-900); position: relative; overflow: hidden; }
.tier::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.tier p { margin-top: 14px; color: var(--gray-100); font-size: 1.02rem; }
.tier--1 { --c: var(--gray-300); } .tier--2 { --c: var(--yellow); } .tier--3 { --c: var(--red); } .tier--4 { --c: var(--green); }
.badge { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 900; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; background: var(--c, var(--gray-600)); color: #0a0a0a; }
.tier--1 .badge { background: var(--gray-700); color: var(--gray-100); border: 1px solid var(--gray-500); }
.badge--life { --c: var(--white); background: var(--white); color: #0a0a0a; flex: none; white-space: nowrap; }
.lifenote { display: flex; gap: 16px; align-items: center; margin-top: 20px; padding: 18px 24px; border-radius: var(--radius); border: 1px dashed rgba(245, 166, 35, .55); background: rgba(245, 166, 35, .06); }
.lifenote p { color: var(--gray-100); }
@media (max-width: 640px) { .lifenote { flex-direction: column; align-items: flex-start; } }
.institutions { margin-top: 56px; }
.inst { padding: 26px 22px; border-left: 3px solid var(--orange); background: linear-gradient(90deg, rgba(245, 166, 35, .07), transparent); }
.inst svg { width: 44px; height: 44px; color: var(--orange); }
.inst h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; text-transform: uppercase; color: var(--white); margin: 12px 0 6px; }
.inst p { font-size: .96rem; }

/* ---- personagem ---- */
.char__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .char__grid { grid-template-columns: 1fr; } }
.ck { margin-top: 34px; padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card-bg); }
.ck h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; text-transform: uppercase; letter-spacing: .03em; color: var(--white); }
.ck p { margin-top: 8px; }
.skills { display: grid; gap: 20px; padding: clamp(24px, 3.4vw, 40px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--border); background: var(--gray-800); }
.skills li { display: grid; gap: 8px; }
.skills span { font-weight: 900; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-100); }
.bar { display: block; height: 10px; border-radius: 10px; background: var(--gray-700); overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 10px; background: var(--grad); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease) calc(var(--d, 0) * 1ms); }
.js .skills.in .bar__fill, .no-js .bar__fill { transform: scaleX(var(--v)); }
html:not(.js) .bar__fill { transform: scaleX(var(--v)); }

/* ---- cenas ---- */

/* ---- entrar ---- */
.join { overflow: hidden; isolation: isolate; background: var(--gray-900); }
.join__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 12% 80%; z-index: -2; transform: scale(1.6); transform-origin: 14% 84%; }
.join__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--body-bg) 0%, rgba(8, 8, 8, .8) 30%, rgba(8, 8, 8, .86) 70%, var(--body-bg) 100%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; counter-reset: st; }
.steps li { padding: 24px; border-radius: var(--radius); background: rgba(13, 13, 13, .82); border: 1px solid var(--border); }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #0a0a0a; font-family: var(--display); font-size: 1.5rem; }
.steps h3 { margin-top: 16px; font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; text-transform: uppercase; color: var(--white); }
.steps p { margin-top: 6px; font-size: .96rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.join__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.addr { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; padding: 14px 18px; border: 1px solid var(--gray-600); border-radius: var(--radius); background: rgba(13, 13, 13, .85); width: fit-content; max-width: 100%; }
.addr span { font-weight: 900; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-400); }
.addr code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--white); font-size: 1rem; word-break: break-all; }

/* ---- faq ---- */
.faq__wrap { max-width: 860px; }
.faq__list { margin-top: 30px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 700; font-size: 1.12rem; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-size: 1.8rem; font-weight: 300; color: var(--orange); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 70ch; animation: panelIn .35s var(--ease) both; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); background: var(--gray-800); padding: 54px 0 46px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-end; }
.footer__brand { color: var(--white); display: flex; align-items: center; gap: 14px; }
.footer__logo { width: 56px; height: 56px; flex: none; object-fit: contain; }
.footer__brand b { font-family: var(--wordmark); font-weight: 400; font-size: 1.8rem; letter-spacing: .08em; }
.footer__brand i { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .32em; color: var(--gray-300); margin-left: 8px; }
.footer__tag { margin-top: 6px; color: var(--gray-100); }
.footer__legal { margin-top: 14px; max-width: 72ch; font-size: .84rem; color: var(--gray-400); }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer__forum { font-weight: 900; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: #0a0a0a; background: var(--white); border-radius: 999px; padding: 12px 22px; }
.footer__forum:hover { background: #ffe6b3; }
.footer__top { font-weight: 900; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--orange); border: 1px solid var(--gray-600); border-radius: 999px; padding: 12px 22px; }
.footer__top:hover { border-color: var(--orange); }

/* ==========================================================================
   REVELAÇÃO AO ROLAR (só com JS ativo; só transform/opacity)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   MOVIMENTO REDUZIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track { animation: none; }
  .hero__img, .hero__content, .band__img { transform: none !important; opacity: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
  .bar__fill { transform: scaleX(var(--v)) !important; }
}

/* ==========================================================================
   SELETOR DE IDIOMA (bandeiras), SEÇÃO "EM BREVE" E TIPOGRAFIA POR IDIOMA
   ========================================================================== */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.flag { display: inline-block; flex: none; vertical-align: middle; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.i18n-pending [data-i18n] { visibility: hidden; }

.langsel { position: relative; flex: none; }
.langbtn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 13px 0 11px; border: 1px solid var(--gray-600); border-radius: 999px; background: rgba(13, 13, 13, .78); color: var(--gray-100); font-weight: 900; font-size: .74rem; letter-spacing: .12em; transition: border-color .2s, background-color .2s; }
.langbtn:hover, .langbtn[aria-expanded="true"] { border-color: var(--orange); background: rgba(26, 26, 26, .95); }
.langbtn__caret { transition: transform .2s var(--ease); }
.langbtn[aria-expanded="true"] .langbtn__caret { transform: rotate(180deg); }
.langmenu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: 248px; max-height: min(72vh, 480px); overflow: auto; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--gray-600); border-radius: 16px; background: rgba(13, 13, 13, .98); box-shadow: 0 18px 50px rgba(0, 0, 0, .65); animation: panelIn .2s var(--ease) both; }
.langmenu li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--gray-100); font-weight: 700; font-size: .95rem; }
.langmenu li:hover { background: var(--gray-700); }
.langmenu li:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; background: var(--gray-700); }
.langmenu li[aria-selected="true"] { background: rgba(245, 166, 35, .16); color: var(--white); }
.langmenu__name { flex: 1; }
.langmenu__code { font-size: .68rem; letter-spacing: .14em; color: var(--gray-400); }
@media (max-width: 1180px) { .langsel { margin-left: auto; } }
@media (max-width: 380px) { .langbtn { height: 40px; padding: 0 10px 0 9px; gap: 6px; } .langbtn__code { display: none; } }

.demo__tabs { flex-wrap: wrap; }
.demo__tabs button { display: inline-flex; align-items: center; gap: 6px; }
.demo__bubble p[lang="th"], .demo__bubble p[lang="ko"] { line-height: 1.7; }

.soon { border-bottom: 1px solid var(--border); background: radial-gradient(80% 60% at 0% 0%, rgba(245, 166, 35, .12), transparent 60%), radial-gradient(70% 60% at 100% 100%, rgba(232, 62, 140, .12), transparent 60%), var(--body-bg); }
.soon__grid { margin-top: 42px; }
.soon .card h3 { font-size: 1.7rem; }
.soon__tag { margin-top: clamp(36px, 5vw, 60px); text-align: center; font-family: var(--display); font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Cirílico: a Lato e a Bebas Neue não têm letras russas, então a página /ru/ carrega PT Sans (texto) e
   Oswald (títulos) — o build põe o <link> no <head>. Tailandês e coreano usam as fontes do sistema. */
html[lang="ru"] { --display: Oswald, "Bebas Neue", Impact, sans-serif; --font: "PT Sans", Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
html[lang="th"], html[lang="ko"] { --display: system-ui, "Leelawadee UI", "Noto Sans Thai", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
html:is([lang="ru"], [lang="th"], [lang="ko"]) :is(.title, .card h3, .panel h3, .lane h4, .band__quote blockquote, .talk__rt, .phone__card h3, .inst h3, .ck h3, .steps h3, .ticker li, .stats b, .soon__tag) { font-weight: 700; }
html:is([lang="th"], [lang="ko"]) :is(.title, .card h3, .panel h3, .lane h4, .band__quote blockquote, .talk__rt, .phone__card h3, .inst h3, .ck h3, .steps h3, .soon__tag) { line-height: 1.25; letter-spacing: 0; }
html:is([lang="th"], [lang="ko"]) :is(.kicker, .hero__eyebrow, .node b, .btn, .badge, .menu a, .footer__forum, .footer__top) { letter-spacing: .04em; }
html[lang="ko"] p, html[lang="th"] p { line-height: 1.75; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }

/* ==========================================================================
   VITRINE "DIRETO DO SERVIDOR", SISTEMAS E LIGHTBOX
   ========================================================================== */
.show { padding-top: clamp(64px, 8vw, 110px); }
.xlate { margin-top: 40px; border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); background: linear-gradient(135deg, rgba(245, 166, 35, .08), transparent 55%), var(--gray-900); padding: clamp(18px, 3vw, 32px); }
.xlate__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; }
.xlate__head b { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: .04em; text-transform: uppercase; color: var(--white); line-height: 1.05; }
.xlate__head small { font-size: .95rem; color: var(--gray-300); }
.xlate__pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(10px, 2vw, 22px); }
.xlate__box { position: relative; margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--gray-600); background: #000; }
.xlate__box img { width: 100%; height: auto; }
.xlate__lang { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 8px; border-radius: 999px; background: rgba(8, 8, 8, .78); border: 1px solid rgba(255, 255, 255, .22); font-size: .7rem; font-weight: 900; letter-spacing: .12em; color: var(--white); }
.xlate__arrow { color: var(--orange); display: grid; place-items: center; }
@media (max-width: 760px) { .xlate__pair { grid-template-columns: 1fr; } .xlate__arrow { transform: rotate(90deg); } }

.show__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.tile { position: relative; grid-column: span 4; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card-bg); }
.tile--xl { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.tile > a { position: absolute; inset: 0; display: block; color: inherit; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile > a:hover img { transform: scale(1.045); }
.tile > a:focus-visible { outline-offset: -3px; }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; padding: 44px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .86)); pointer-events: none; }
.tile__cap b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .04em; line-height: 1.05; text-transform: uppercase; color: var(--white); }
.tile__cap small { font-size: .82rem; color: var(--gray-200); line-height: 1.35; }
.tile--xl .tile__cap b { font-size: clamp(1.8rem, 3vw, 2.6rem); }
@media (max-width: 999px) {
  .show__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile--xl { grid-column: span 1; grid-row: auto; aspect-ratio: 16 / 9; }
  .tile--xl { grid-column: 1 / -1; }
}
@media (max-width: 559px) { .show__grid { grid-template-columns: 1fr; } .tile { grid-column: 1 / -1; } }

.sys { border-top: 1px solid var(--border); background: radial-gradient(70% 50% at 100% 0%, rgba(232, 62, 140, .09), transparent 60%), var(--body-bg); }
.sys__list { display: grid; gap: 26px; margin-top: 48px; }
.sysitem { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(22px, 4vw, 56px); padding: clamp(22px, 3.5vw, 44px); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); background: linear-gradient(135deg, rgba(245, 166, 35, .07), transparent 55%), var(--gray-900); }
.sysitem:nth-child(even) .sysitem__fig { order: -1; }
.sysitem h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: .03em; line-height: 1.05; text-transform: uppercase; color: var(--white); }
.sysitem p { margin-top: 14px; }
.sysitem .chips { margin-top: 20px; }
.sysitem__fig { margin: 0; }
.sysitem__fig a { display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--gray-600); background: #000; cursor: zoom-in; }
.sysitem__fig img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.sysitem__fig a:hover img { transform: scale(1.03); }
html[lang="pt-BR"] .only-other, html:not([lang="pt-BR"]) .only-pt { display: none; }
@media (max-width: 859px) { .sysitem { grid-template-columns: 1fr; } .sysitem:nth-child(even) .sysitem__fig { order: 0; } }

.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--white); }
.lb::backdrop { background: rgba(4, 4, 4, .92); }
.lb[open] { animation: lbIn .25s ease both; }
@keyframes lbIn { from { opacity: 0; } }
.lb__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px clamp(12px, 5vw, 72px) 84px; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 80px rgba(0, 0, 0, .7); }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px clamp(56px, 8vw, 110px); text-align: center; font-size: .95rem; color: var(--gray-100); }
.lb__btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(13, 13, 13, .8); color: var(--white); transition: border-color .2s, background-color .2s; }
.lb__btn:hover { border-color: var(--orange); background: rgba(30, 30, 30, .95); }
.lb__btn--close { top: 14px; right: 14px; }
.lb__btn--prev { left: clamp(8px, 2vw, 22px); top: 50%; translate: 0 -50%; }
.lb__btn--next { right: clamp(8px, 2vw, 22px); top: 50%; translate: 0 -50%; }
@media (prefers-reduced-motion: reduce) { .tile img, .sysitem__fig img { transition: none; } .lb[open] { animation: none; } }

/* Menu compacto automático: o JS (fitNav) liga .is-compact quando o menu completo não cabe no idioma atual. */
.nav.is-compact .burger { display: block; margin-left: 0; }
.nav.is-compact .nav__bar { gap: 12px; }
.nav.is-compact .langsel { margin-left: auto; }
.nav.is-compact .menu {
  position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; margin: 0;
  background: rgba(8, 8, 8, .98); border-bottom: 1px solid var(--border); padding: 10px var(--gutter) 22px;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .2s, visibility .2s;
}
.nav.is-compact.is-open .menu { transform: none; opacity: 1; visibility: visible; }
.nav.is-compact .menu a { padding: 15px 6px; border-radius: 0; border-bottom: 1px solid var(--gray-700); font-size: .95rem; }
.nav.is-compact .menu .menu__forum { margin: 16px 0 0; border-radius: 999px; text-align: center; border: 0; }
.nav.is-compact .menu .menu__cta { margin: 10px 0 0; border-radius: 999px; text-align: center; border: 0; }

.tile--wide { grid-column: span 8; aspect-ratio: auto; }
@media (max-width: 999px) { .tile--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; } }
.scenes { padding-bottom: clamp(24px, 4vw, 48px); }

/* ==========================================================================
   TRADUÇÃO EM DESTAQUE, CARROSSEL DO FÓRUM E BANDEIRAS DO TOPO
   ========================================================================== */

.tx { background: radial-gradient(60% 45% at 12% 0%, rgba(245, 166, 35, .17), transparent 62%), radial-gradient(55% 50% at 92% 14%, rgba(88, 101, 242, .2), transparent 62%), radial-gradient(70% 55% at 50% 100%, rgba(232, 62, 140, .14), transparent 66%), var(--body-bg); border-bottom: 1px solid var(--border); }
.xstage__head { max-width: 980px; margin-inline: auto; text-align: center; }
.xstage__head .kicker { justify-content: center; }
.xstage__head .lead { margin-inline: auto; }
.title--xxl { font-size: clamp(3.3rem, 10vw, 8rem); line-height: .9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flagwall { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.flagwall li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--gray-600); border-radius: 999px; background: rgba(13, 13, 13, .72); color: var(--white); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.flagwall .flag { width: 26px; height: 19px; }
.xflow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(14px, 3vw, 40px); margin-top: 44px; }
.xcard { margin: 0; padding: 14px; border: 1px solid var(--gray-600); border-radius: calc(var(--radius) + 6px); background: rgba(13, 13, 13, .8); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.xcard__top { display: flex; align-items: center; gap: 10px; padding: 2px 6px 12px; font-weight: 900; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-300); }
.xcard__top b { margin-left: auto; color: var(--orange); letter-spacing: .14em; }
.xcard img { width: 100%; height: auto; border-radius: 12px; }
.xengine { display: grid; justify-items: center; gap: 12px; text-align: center; }
.xengine__orb { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--grad); color: #0a0a0a; }
.xengine__orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); animation: pulse 2.2s ease-out infinite; }
.xengine__lbl { max-width: 12ch; font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-200); }
.xstage__cap { margin-top: 18px; text-align: center; color: var(--gray-300); }
.xstage__cap b { color: var(--white); font-weight: 900; margin-right: 8px; }
.xsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 46px; counter-reset: st; }
.xsteps li { position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); }
.xsteps li::before { counter-increment: st; content: counter(st); display: block; font-family: var(--display); font-size: 3.4rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xsteps b { display: block; margin-top: 6px; font-family: var(--display); font-weight: 400; font-size: 1.8rem; letter-spacing: .03em; text-transform: uppercase; color: var(--white); line-height: 1.05; }
.xsteps p { margin-top: 8px; }
.xfeat { margin-top: 18px; }
.xfeat .card h3 { font-size: 1.7rem; }
.tx .talk__grid { margin-top: clamp(64px, 9vw, 120px); }
@media (max-width: 860px) { .xflow { grid-template-columns: 1fr; } .xengine { grid-auto-flow: column; justify-content: center; } .xengine__orb { width: 64px; height: 64px; } .xengine__orb svg { width: 26px; height: 26px; } .xsteps { grid-template-columns: 1fr; } }

.forumcar { position: relative; padding: clamp(56px, 8vw, 110px) 0; border-bottom: 1px solid var(--border); background: linear-gradient(110deg, rgba(88, 101, 242, .22), rgba(232, 62, 140, .12) 55%, transparent), var(--body-bg); }
.forumcar .lead { max-width: 70ch; }
.car { margin-top: 34px; }
.car__track { position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: calc(var(--radius) + 6px); }
.car__track::-webkit-scrollbar { display: none; }
.car__slide { position: relative; flex: 0 0 min(88%, 1040px); aspect-ratio: 16 / 9; margin: 0; scroll-snap-align: start; overflow: hidden; border: 1px solid var(--gray-600); border-radius: calc(var(--radius) + 6px); background: #000; }
.car__slide a { position: absolute; inset: 0; display: block; color: inherit; cursor: zoom-in; }
.car__slide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.car__slide a[data-pos="bottom"] img { object-position: center bottom; }
.car__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 56px 22px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); pointer-events: none; }
.car__cap b { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: .04em; line-height: 1.05; text-transform: uppercase; color: var(--white); }
.car__cap small { font-size: .9rem; color: var(--gray-200); }
.car__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.car__dots { display: flex; gap: 8px; }
.car__dots button { width: 36px; height: 6px; padding: 0; border: 0; border-radius: 4px; background: var(--gray-600); transition: background-color .25s; }
.car__dots button[aria-current="true"] { background: var(--orange); }
.car__btns { display: flex; gap: 10px; }
.car__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gray-600); background: rgba(13, 13, 13, .8); color: var(--white); transition: border-color .2s, background-color .2s; }
.car__btn:hover { border-color: var(--orange); }
.forumcar__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 34px; }
.forumcar__foot p { max-width: 62ch; font-size: 1.1rem; color: var(--gray-200); }
@media (max-width: 559px) { .car__slide { flex-basis: 92%; } .car__dots button { width: 26px; } }

/* ==========================================================================
   DEVTAB — mostrador do iFruit 18 encostado na borda da tela
   ========================================================================== */
.devtab { position: fixed; right: 0; top: 60%; z-index: 45; display: flex; align-items: center; translate: 168px -50%; transition: translate .45s var(--ease); text-decoration: none; }
.devtab:hover, .devtab:focus-visible { translate: 0 -50%; }
.devtab__handle { flex: none; display: flex; align-items: center; gap: 7px; padding: 11px 14px 11px 12px; margin-right: -14px; border-radius: 14px 0 0 14px; background: var(--grad); color: #0a0a0a; font-weight: 900; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; box-shadow: -8px 10px 26px rgba(0, 0, 0, .45); }
.devtab__img { width: 190px; height: auto; filter: drop-shadow(-16px 20px 36px rgba(0, 0, 0, .6)); }
@media (max-width: 999px) { .devtab { display: none; } }
@media (prefers-reduced-motion: reduce) { .devtab { transition: none; } }

/* ==========================================================================
   LANGHINT — aviso "este site também existe no seu idioma" (app.js)
   ========================================================================== */
.langhint { position: fixed; left: 50%; bottom: 22px; z-index: 80; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 28px); padding: 12px 14px 12px 18px; border: 1px solid var(--gray-600); border-radius: 18px; background: rgba(13, 13, 13, .97); box-shadow: 0 18px 50px rgba(0, 0, 0, .65); color: var(--gray-100); opacity: 0; transform: translate(-50%, 24px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.langhint.is-in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.langhint .flag { flex: none; border-radius: 3px; }
.langhint__text { margin: 0; font-weight: 700; font-size: .98rem; line-height: 1.35; }
.langhint__actions { display: flex; flex: none; gap: 8px; }
.langhint button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gray-600); background: transparent; color: var(--gray-200); font-weight: 900; font-size: .82rem; letter-spacing: .04em; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.langhint button:hover { border-color: var(--gray-400); color: var(--white); }
.langhint .langhint__go { border-color: var(--orange); background: var(--orange); color: #0a0a0a; }
.langhint .langhint__go:hover { border-color: #ffb845; background: #ffb845; color: #0a0a0a; }
.langhint button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 640px) { .langhint { flex-wrap: wrap; justify-content: center; width: calc(100vw - 28px); padding: 14px; text-align: center; } .langhint__text { flex: 1 1 60%; text-align: left; } .langhint__actions { flex: 1 1 100%; } .langhint__actions button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .langhint { transition: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
