:root {
  --bg: #0b0a0d;
  --bg-alt: rgba(16, 14, 18, .4);
  --surface: rgba(22, 19, 26, .78);
  --border: rgba(255, 238, 214, 0.08);
  --border-strong: rgba(255, 238, 214, 0.16);
  --text: #f3eee6;
  --muted: #9b948a;
  --accent: #d4ad6a;
  --accent-2: #f1d9a4;
  --radius: 14px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Cinzel", Georgia, serif;
}
::selection { background: var(--accent); color: #1a1408; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html { background: var(--bg); }
body {
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fundo do site: cenário do Mir, desfocado e escurecido, fixo ao rolar */
body::before {
  content: ""; position: fixed; inset: -40px; z-index: -2; pointer-events: none;
  background: url("img/bg/fundo.png") center 30% / cover no-repeat;
  filter: blur(14px) saturate(1.25);
  opacity: .55;
  animation: bgDrift 40s ease-in-out infinite alternate;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, transparent 0%, rgba(11,10,13,.35) 60%),
    linear-gradient(180deg, rgba(11,10,13,.25), rgba(11,10,13,.6) 70%, rgba(11,10,13,.78));
}
@keyframes bgDrift { to { transform: scale(1.08) translate(-1%, -1%); } }
.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: 0; font-weight: 600; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 10px;
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #1d1609; box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 32px -6px rgba(212, 173, 106, .55); }
.btn--ghost { border-color: var(--border-strong); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center; font-size: 18px;
  transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.06); border-color: var(--class-color, var(--accent)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .7; }
.gradient { color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 10, 12, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--border);
}
.header__inner { height: 72px; display: flex; align-items: center; gap: 32px; }
/* Logo: "AEGIS" pequeno em dourado + "Mir4" em pincel, com o 4 vermelho */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; flex: none; }
.logo__aegis {
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .5em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 -2px 3px;
}
.logo__mir {
  font-family: "Kaushan Script", cursive; font-size: 34px; color: #fff;
  letter-spacing: .01em; transform: skewX(-6deg);
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.logo__mir em {
  font-style: normal; color: #e0262f; margin-left: 1px;
  text-shadow: 0 0 14px rgba(224,38,47,.55);
}
.logo:hover .logo__mir em { text-shadow: 0 0 20px rgba(224,38,47,.9); }
.nav { display: flex; gap: 28px; margin-right: auto; }
.nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 10px; }

/* Seletor de idioma */
.lang { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lang select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  height: 38px; padding: 0 34px 0 14px; border-radius: 10px;
  font: 600 13px var(--font); color: var(--text);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23d4ad6a' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") right 13px center no-repeat,
    rgba(255,255,255,.04);
  border: 1px solid var(--border-strong);
  transition: border-color .2s;
}
.lang select:hover, .lang select:focus { border-color: var(--accent); outline: none; }
.lang select option { background: #17141c; color: var(--text); }

.menu-toggle { display: none; width: 40px; height: 40px; position: relative; }
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text);
  transition: transform .3s, top .3s;
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.menu-open .menu-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 220px; pointer-events: none;
  background: linear-gradient(transparent, rgba(11,10,13,.5));
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,173,106,.22), rgba(120,60,40,.10) 40%, transparent 68%);
  filter: blur(30px); animation: float 12s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-50%, -52%) scale(1.06); } }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__side .eyebrow { text-shadow: 0 2px 10px rgba(0,0,0,.9); }

/* Coluna do meio: personagem com as bordas esfumadas (não invade texto nem cartão) */
.hero__stage { position: relative; z-index: 1; align-self: stretch; min-height: 520px; pointer-events: none; }
.hero__char {
  position: absolute; left: -22%; right: -22%; bottom: -60px; height: min(84vh, 820px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: idle 6s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(#000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent), linear-gradient(#000 72%, transparent);
  mask-composite: intersect;
}
.hero__char .char {
  height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: center bottom;
  transition: opacity .6s, filter .6s;
}
.hero__stage.is-swapping .char { opacity: 0; filter: blur(8px); }
.hero__glow { background: radial-gradient(circle, color-mix(in srgb, var(--hero-color, var(--accent)) 26%, transparent), rgba(120,60,40,.08) 40%, transparent 68%); transition: background 1s; }

.hero__caption {
  position: absolute; right: max(24px, calc((100% - 1440px) / 2)); bottom: 4%; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right;
}
.hero__caption > span:first-child { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero__caption strong {
  font-family: var(--display); font-size: 26px; font-weight: 600;
  color: var(--hero-color, var(--accent)); transition: color .6s;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}
.hero__caption:hover strong { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.hero__dots { display: flex; gap: 6px; margin-top: 8px; }
.hero__dots i { width: 14px; height: 2px; background: rgba(255,255,255,.2); transition: background .4s, width .4s; }
.hero__dots i.is-on { width: 28px; background: var(--hero-color, var(--accent)); }
.hero__content {
  position: relative; z-index: 1;
  width: min(1440px, 100% - 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 360px; gap: 24px; align-items: center;
}
.hero__main { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.hero__side { position: relative; z-index: 2; text-align: center; }
.hero__side .discord-card { margin-top: 4px; padding: 96px 28px 28px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero__side .discord-card__mark { font-size: 190px; }
.hero__side .discord-card__title { font-size: 34px; white-space: nowrap; }
.hero__title { font-size: clamp(40px, 4.6vw, 76px); font-weight: 700; margin-bottom: 24px; max-width: 640px; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.hero__text { max-width: 460px; color: var(--muted); font-size: 18px; margin-bottom: 36px; }
.hero .hero__cta { justify-content: flex-start; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.stats {
  display: flex; gap: 48px; margin-top: 72px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stats dt { font-size: 11px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.stats dd { font-family: var(--display); font-size: 30px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6fe0a0; box-shadow: 0 0 0 4px rgba(111,224,160,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(111,224,160,0); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 560px; margin-bottom: 56px; }
.section__head h2, .download h2, .cta h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 600; margin-bottom: 16px; }
.section__head p { color: var(--muted); font-size: 17px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row h2 { margin-bottom: 0; }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; overflow: hidden;
  padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,238,214,.03), transparent 60%), var(--surface);
  border: 1px solid var(--border);
  transition: border-color .3s, transform .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transition: transform .5s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card__num {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); font-size: 15px; color: var(--accent); margin-bottom: 44px;
}
.card__num small { font-family: var(--font); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center; margin: 4px 0 34px 4px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent);
  transform: rotate(45deg);
}
.card__icon > span { transform: rotate(-45deg); }

/* ---------- Classes ---------- */
.carousel__controls { display: flex; align-items: center; gap: 10px; }
.carousel__counter { font-family: var(--display); color: var(--muted); font-size: 14px; margin-right: 8px; font-variant-numeric: tabular-nums; }

.class-view {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.25fr; min-height: 460px;
  border-radius: 20px; border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(20,18,26,.85), rgba(10,10,14,.9));
}
.class-view__info { order: -1; align-self: center; padding: 48px 56px; position: relative; z-index: 3; }
.class-view__counter {
  display: block; font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: .2em; color: var(--class-color, var(--accent)); margin-bottom: 14px;
}
.class-view__art { position: relative; min-height: 460px; perspective: 700px; }
.class-view__stripe {
  position: absolute; inset: 0 -20% 0 -10%;
  background: linear-gradient(170deg,
    color-mix(in srgb, var(--class-color, var(--accent)) 32%, transparent),
    color-mix(in srgb, var(--class-color, var(--accent)) 6%, transparent));
  clip-path: polygon(42% 0, 88% 0, 54% 100%, 8% 100%);
  transition: background .5s;
}
.class-view__art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--class-color, var(--accent)) 30%, transparent), transparent 55%);
}
.rune { color: var(--class-color, var(--accent)); transition: color .5s; }
.rune svg { width: 100%; height: 100%; display: block; animation: spin 40s linear infinite; }
.rune--back { position: absolute; inset: 6%; opacity: .1; }
.rune--back svg { animation-direction: reverse; animation-duration: 80s; }
.rune-floor {
  position: absolute; left: 50%; bottom: 0; width: 78%; aspect-ratio: 1;
  transform: translate(-50%, 34%) rotateX(74deg); opacity: .55;
  filter: drop-shadow(0 0 6px var(--class-color, var(--accent)));
}
@keyframes spin { to { transform: rotate(360deg); } }

.char-wrap {
  position: absolute; inset: 6% 8% 3%; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center;
  animation: idle 4.5s ease-in-out infinite;
  transition: opacity .3s, transform .3s;
}
.char { height: 100%; width: auto; max-width: 100%; overflow: visible;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--class-color, var(--accent)) 45%, transparent)); }
.char--img { object-fit: contain; object-position: bottom; }
.char .pulse { animation: glowPulse 2.4s ease-in-out infinite; }
.char .bob { animation: bob 3s ease-in-out infinite; }
@keyframes idle { 50% { transform: translateY(-8px); } }
@keyframes glowPulse { 50% { opacity: .55; } }
@keyframes bob { 50% { transform: translateY(-5px); } }

.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

.casting .char { animation: cast .7s ease-out; }
@keyframes cast {
  25% { transform: translateY(-10px) scale(1.04); filter: brightness(1.6) drop-shadow(0 0 40px var(--class-color)); }
}
.shake { animation: shake .45s; }
@keyframes shake {
  20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); }
  60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, -1px); }
}

.class-view.is-changing .char-wrap,
.class-view.is-changing .class-view__info > * { opacity: 0; transform: translateY(8px); }
.class-view__info > * { transition: opacity .35s, transform .35s; }

/* Habilidades */
.skills-panel {
  margin-top: 16px; padding: 28px 32px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
}
.skills__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.skills__head h3 { font-size: 22px; font-weight: 600; }
.skills__head small { font-size: 13px; color: var(--muted); }
.skills__list { display: flex; flex-wrap: wrap; gap: 18px 12px; margin-top: 24px; }
.skill {
  width: 90px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; line-height: 1.3; text-align: center; color: var(--muted);
  transition: color .2s;
}
.skill__icon {
  position: relative; overflow: hidden; flex: none;
  --size: 74px;
  width: var(--size); height: var(--size); border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; color: #fff;
  background: radial-gradient(circle at 35% 28%,
    color-mix(in srgb, var(--class-color) 70%, #fff),
    var(--class-color) 30%,
    color-mix(in srgb, var(--class-color) 35%, #000) 70%, #08080b);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.14), inset 0 -10px 18px rgba(0,0,0,.55), 0 6px 18px rgba(0,0,0,.45);
  text-shadow: 0 0 10px rgba(255,255,255,.8), 0 2px 4px rgba(0,0,0,.6);
  transition: transform .2s, box-shadow .2s;
}
/* Grade de ícones: quadrados de 200px; cada ícone tem centro em (77,77) e ~148px de diâmetro */
.skill__icon.has-sprite {
  --k: calc(var(--size) / 148);
  background-repeat: no-repeat; background-color: #08080b;
  background-size: calc(var(--k) * 2600) calc(var(--k) * 1600);
  background-position:
    calc(var(--k) * (var(--col) * -200 - 3))
    calc(var(--k) * (var(--row) * -200 - 3));
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.skill:not(.is-active) .skill__icon.has-sprite { filter: saturate(.85) brightness(.9); }
.skill:hover .skill__icon.has-sprite { filter: none; }
.skill__icon--lg { --size: 84px; flex: none; font-size: 30px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--class-color), 0 0 26px var(--class-color); }
.skill__icon > span { position: relative; z-index: 1; }
.skill:hover { color: var(--text); }
.skill:hover .skill__icon { transform: translateY(-3px) scale(1.05); }
.skill.is-active { color: var(--class-color); font-weight: 600; }
.skill.is-active .skill__icon {
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--class-color), 0 0 26px var(--class-color),
    inset 0 -10px 18px rgba(0,0,0,.4);
}
.skill__icon::after {
  content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.6);
  transform: translateY(100%);
}
.skill__icon.cooling::after { animation: cooldown 1.4s linear; }
@keyframes cooldown { from { transform: translateY(0); } to { transform: translateY(-100%); } }

.skill-detail {
  margin-top: 24px; padding: 20px 24px; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(255,255,255,.02);
  border-left: 3px solid var(--class-color);
  display: flex; align-items: center; gap: 22px;
}
.skill-detail__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.skill-detail h4 { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.skill-detail__kind { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--class-color); margin-bottom: 6px; }
.skill-detail p { color: var(--muted); font-size: 14px; }
.skill-meta { display: flex; gap: 28px; margin-top: 14px; }
.skill-meta div { display: flex; flex-direction: column; }
.skill-meta span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.skill-meta strong { font-family: var(--display); font-size: 16px; color: var(--class-color); }
.tag--sm { margin: 0; padding: 4px 10px; font-size: 11px; border-color: color-mix(in srgb, var(--class-color) 50%, transparent); color: var(--class-color); }
.tag {
  display: inline-block; font-size: 12px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--muted); margin-bottom: 20px;
}
.class-view__name { font-size: clamp(36px, 5vw, 56px); font-weight: 600; margin-bottom: 8px; }
.class-view__tagline { color: var(--class-color, var(--accent)); margin-bottom: 16px; transition: color .4s; }
.class-view__desc { color: var(--muted); margin-bottom: 24px; max-width: 420px; }
.class-view__desc .tag { margin: 0 6px 0 0; padding: 3px 10px; font-size: 11px; vertical-align: 2px; }
.class-view__info .carousel__controls { margin-top: 28px; }
.class-view__info .bars { max-width: 420px; }

.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.bar__label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.bar__track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--class-color, var(--accent)) 50%, #fff 0%), var(--class-color, var(--accent))); transition: width .6s cubic-bezier(.2,.8,.2,1); }

.class-tabs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-bottom: 16px; }
.class-tab {
  padding: 12px 6px 12px; border-radius: 12px; font-size: 13px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.class-tab__thumb {
  height: 92px; width: 100%; display: flex; justify-content: center; align-items: flex-end;
  filter: grayscale(1) brightness(.7); transition: filter .3s, transform .3s;
}
.class-tab__thumb .char { height: 100%; filter: none; }
.class-tab:hover { color: var(--text); border-color: var(--border-strong); }
.class-tab:hover .class-tab__thumb { filter: grayscale(.3) brightness(.95); transform: translateY(-2px); }
.class-tab.is-active {
  color: var(--text); border-color: var(--class-color);
  background: linear-gradient(180deg, color-mix(in srgb, var(--class-color) 18%, transparent), var(--surface));
  box-shadow: 0 0 24px -10px var(--class-color);
}
.class-tab.is-active .class-tab__thumb { filter: none; }

/* ---------- Discord ---------- */
.discord-sec { padding: 40px 0 40px; text-align: center; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .7; }
.discord-card {
  position: relative; overflow: hidden; text-align: left;
  max-width: 460px; margin: 6px auto 0; padding: 120px 32px 32px;
  border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  background:
    radial-gradient(400px circle at 100% 0%, rgba(124,104,216,.25), transparent 60%),
    linear-gradient(180deg, rgba(26,20,40,.85), rgba(14,12,20,.92));
  box-shadow: 0 30px 80px -30px rgba(88,101,242,.45);
}
.discord-card__mark {
  position: absolute; right: 24px; top: -20px;
  font-family: var(--display); font-weight: 700; font-size: 220px; line-height: 1;
  color: var(--accent); opacity: .14; pointer-events: none;
}
.discord-card__kicker {
  position: relative; display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.discord-card__title { position: relative; font-size: clamp(32px, 6vw, 42px); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.discord-card p { position: relative; color: #d8d2e6; margin-bottom: 24px; }
.btn--discord {
  position: relative; width: 100%; height: 52px; border-radius: 6px;
  background: linear-gradient(90deg, #7b68d8, #5865f2); color: #fff;
  text-transform: uppercase; letter-spacing: .04em; font-size: 15px;
  border: 1px solid rgba(255,255,255,.18);
}
.btn--discord:hover { box-shadow: 0 10px 30px -6px rgba(88,101,242,.7); }

.discord-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 15px;
  border-radius: 999px; color: #fff; background: linear-gradient(90deg, #7b68d8, #5865f2);
  box-shadow: 0 12px 30px -8px rgba(88,101,242,.8);
  transform: translateY(100px); opacity: 0; pointer-events: none;
  transition: transform .35s, opacity .35s, box-shadow .2s;
}
.discord-fab.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.discord-fab span {
  max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 14px;
  transition: max-width .35s;
}
.discord-fab:hover span { max-width: 180px; }
.discord-fab:hover { box-shadow: 0 14px 36px -6px rgba(88,101,242,1); }

/* ---------- Download ---------- */
.download { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.download__intro p { color: var(--muted); font-size: 17px; margin-bottom: 32px; }
.download__intro .hero__cta { justify-content: flex-start; }
.specs { list-style: none; margin-top: 40px; border-top: 1px solid var(--border); }
.specs li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.specs span { color: var(--muted); }

.steps { list-style: none; display: grid; gap: 12px; }
.step {
  display: flex; gap: 20px; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.step { transition: border-color .3s; }
.step:hover { border-color: var(--border-strong); }
.step__num {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding: 72px 64px; border-radius: 24px; border: 1px solid var(--border);
  background:
    radial-gradient(700px circle at 85% 50%, rgba(192,132,252,.20), transparent 60%),
    radial-gradient(500px circle at 0% 100%, rgba(212,173,106,.10), transparent 60%),
    var(--surface);
}
.cta > div { position: relative; z-index: 1; }
.cta > div:first-of-type { max-width: 500px; }
.cta__art {
  position: absolute; left: 44%; bottom: -12%; height: 130%; width: auto; pointer-events: none;
  opacity: .45;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent), linear-gradient(#000 60%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent), linear-gradient(#000 60%, transparent);
}
.cta p { color: var(--muted); font-size: 17px; }
.cta__side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta__side small { color: var(--muted); font-size: 12px; max-width: 260px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq-layout .section__head { position: sticky; top: 110px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color .2s;
}
.faq summary:hover, .faq details[open] summary { color: var(--accent-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--muted); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 620px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer p, .footer small { color: var(--muted); font-size: 14px; }
.footer p { margin-top: 8px; }
.footer__nav { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.footer__nav a:hover { color: var(--text); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 14px 20px; border-radius: 999px; font-size: 14px;
  background: var(--text); color: var(--bg);
  transition: opacity .3s, transform .3s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Telas médias: texto + Discord; personagem vai para o fundo, entre os dois */
@media (max-width: 1280px) {
  .hero__content { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
  .hero__stage { position: absolute; inset: 0; z-index: 0; opacity: .45; min-height: 0; }
  .hero__char { left: 48%; right: -18%; }
}
@media (max-width: 900px) {
  .hero__caption { display: none; }
  .hero__content { grid-template-columns: 1fr; gap: 40px; }
  .hero__stage { opacity: .3; }
  .hero__char { left: 10%; right: -40%; }
  .hero__side { max-width: 440px; width: 100%; text-align: left; }
  .hero__side .eyebrow--center { justify-content: flex-start; }
  .hero__side .eyebrow--center::after { display: none; }
}
@media (max-width: 700px) {
  .hero__stage { opacity: .22; }
}

@media (max-width: 960px) {
  .grid--3 { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; gap: 32px; }
  .class-view { grid-template-columns: 1fr; }
  .class-view__info { order: 0; padding: 8px 28px 32px; }
  .class-view__art { min-height: 360px; }
  .class-tabs { grid-template-columns: repeat(4, 1fr); }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout .section__head { position: static; }
  .cta__art { right: -10%; opacity: .3; }
  .cta { padding: 40px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .header__actions .btn--ghost { display: none; }
  .lang__label { display: none; }
  .lang select { height: 36px; padding: 0 28px 0 10px; max-width: 120px; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    background: rgba(10,10,12,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .menu-open .header { background: rgba(10,10,12,.97); }
  .header__inner { justify-content: space-between; }
}

@media (max-width: 560px) {
  .section { padding: 80px 0; }
  .stats { gap: 28px; }
  .stats dd { font-size: 22px; }
  .class-view__info { padding: 4px 20px 24px; }
  .class-view__art { min-height: 300px; }
  .class-tab__thumb { height: 64px; }
  .class-tab { font-size: 12px; }
  .skills-panel { padding: 22px 16px; }
  .skills__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 16px 4px; }
  .skill { width: auto; }
  .skill__icon { --size: 66px; }
  .card, .step { padding: 24px; }
  .cta { padding: 28px; }
  .hero__cta .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
