/* =========================================================
   FORMIGUEIRO — OFFICIAL LANDING PAGE
   Visual: Terra, madeira, folhas, ouro e fantasia natural
   Mobile first | Sem frameworks
========================================================= */

/* =========================
   01. VARIÁVEIS
========================= */

:root {
  --bg: #1a1008;
  --bg-deep: #110b06;
  --earth: #3b2412;
  --earth-dark: #26170d;
  --earth-light: #50331b;

  --gold: #f2b84b;
  --gold-light: #ffdc85;
  --gold-dark: #bc812c;

  --cream: #fff3d1;
  --text: #e9ddc1;
  --muted: #c8b695;

  --green: #6bbf3a;
  --green-light: #9bd66d;

  --red: #c0392b;
  --red-light: #ee6952;

  --border: rgba(242, 184, 75, 0.18);
  --border-strong: rgba(242, 184, 75, 0.42);

  --shadow:
    0 24px 70px rgba(0, 0, 0, 0.35);

  --font-body:
    "Segoe UI",
    Tahoma,
    Geneva,
    Verdana,
    sans-serif;

  --font-display:
    "Palatino Linotype",
    "Book Antiqua",
    Palatino,
    Georgia,
    serif;

  --container: 1200px;
  --header-height: 76px;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================
   02. RESET E BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--bg);
  background: var(--gold);
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

svg {
  overflow: visible;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 5px;
}

:focus:not(:focus-visible) {
  outline: none;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
}

h1,
h2,
h3,
h4,
strong {
  overflow-wrap: break-word;
}

p {
  margin-bottom: 1.2em;
}

button {
  color: inherit;
}

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

.section {
  position: relative;
  padding-block: 88px;
  isolation: isolate;
}

.section--earth {
  background:
    radial-gradient(
      ellipse at 15% 15%,
      rgba(122, 74, 28, 0.14),
      transparent 45%
    ),
    radial-gradient(
      ellipse at 90% 80%,
      rgba(124, 79, 27, 0.11),
      transparent 40%
    ),
    #24160c;
}

.section--deep {
  background:
    radial-gradient(
      ellipse at 80% 15%,
      rgba(110, 74, 28, 0.09),
      transparent 40%
    ),
    var(--bg-deep);
}

.section--earth::before,
.section--deep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.13;

  background-image:
    radial-gradient(
      rgba(242, 184, 75, 0.3) 0.7px,
      transparent 0.7px
    );

  background-size: 19px 19px;
}

.section--earth::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-strong),
    transparent
  );
}

.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 9999;

  padding: 12px 20px;
  border-radius: 8px;

  background: var(--gold);
  color: var(--bg);
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

/* =========================
   03. TIPOGRAFIA
========================= */

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.kicker-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.75;
}

.section-title {
  margin: 17px 0 25px;

  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.09;

  color: var(--cream);
}

.section-title span {
  display: block;
  color: var(--gold);
}

.section-lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.65;
  color: var(--cream);
}

.section-lead strong {
  color: var(--gold-light);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 46px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .section-kicker {
  justify-content: center;
}

.section-heading p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.section-heading--center p {
  margin-inline: auto;
}

.mini-label {
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================
   04. BOTÕES
========================= */

.btn {
  position: relative;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  min-height: 48px;
  padding: 13px 22px;

  border: 1px solid transparent;
  border-radius: 10px;

  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1.3;
  text-align: center;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(0);
}

.btn--gold {
  color: #1a1008;
  background: linear-gradient(
    145deg,
    #ffe091 0%,
    #f2b84b 48%,
    #d99531 100%
  );

  border-color: #ffe39e;

  box-shadow:
    0 5px 0 #89551e,
    0 14px 34px rgba(242, 184, 75, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.btn--gold:hover {
  background: linear-gradient(
    145deg,
    #ffe9ae,
    #f7c768 55%,
    #e5a747
  );

  box-shadow:
    0 7px 0 #89551e,
    0 20px 44px rgba(242, 184, 75, 0.28);
}

.btn--gold:active {
  box-shadow:
    0 2px 0 #89551e,
    0 8px 18px rgba(242, 184, 75, 0.15);
}

.btn--outline {
  color: var(--cream);
  background: rgba(20, 12, 6, 0.46);
  border-color: rgba(255, 243, 209, 0.35);

  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(59, 36, 18, 0.88);
}

.btn--large {
  min-height: 61px;
  padding: 17px 24px;
  font-size: 0.84rem;
}

.btn--download .icon {
  width: 21px;
  height: 21px;
}

.btn--download .icon--arrow {
  width: 17px;
  height: 17px;
  margin-left: 3px;
  transition: transform 0.2s ease;
}

.btn--download:hover .icon--arrow {
  transform: translateX(4px);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;

  border-radius: 50%;
  background: var(--green);

  box-shadow: 0 0 12px rgba(107, 191, 58, 0.55);
}

/* =========================
   05. HEADER
========================= */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;

  min-height: var(--header-height);

  background: linear-gradient(
    180deg,
    rgba(16, 9, 4, 0.88),
    rgba(16, 9, 4, 0.32)
  );

  border-bottom: 1px solid rgba(242, 184, 75, 0.1);

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(22, 13, 7, 0.97);
  border-bottom-color: var(--border-strong);

  box-shadow:
    0 8px 35px rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 135px;
  height: 53px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.3));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 25px);
  margin-left: auto;
}

.site-nav > a:not(.mobile-download) {
  color: #e7d7b9;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;

  transition: color 0.2s ease;
}

.site-nav > a:not(.mobile-download):hover {
  color: var(--gold);
}

.site-nav > a[aria-current="location"] {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn--header {
  min-height: 40px;
  padding: 10px 15px;
  font-size: 0.76rem;
}

.btn--header .icon {
  width: 17px;
  height: 17px;
}

.mobile-download,
.menu-toggle {
  display: none;
}

/* =========================
   06. HERO
========================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;

  min-height: 780px;
  min-height: min(900px, 100svh);
  padding-top: calc(var(--header-height) + 70px);
  padding-bottom: 130px;

  overflow: hidden;
  isolation: isolate;

  background: #201208;
}

.hero-background,
.hero-overlay,
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-background {
  z-index: -4;
  overflow: hidden;
}

.hero-background__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  transform:
    translate3d(0, var(--hero-offset, 0px), 0)
    scale(1.09);

  will-change: transform;
}

.hero-overlay {
  z-index: -3;

  background:
    linear-gradient(
      90deg,
      rgba(17, 10, 5, 0.96) 0%,
      rgba(21, 12, 5, 0.88) 25%,
      rgba(21, 12, 5, 0.64) 52%,
      rgba(21, 12, 5, 0.22) 100%
    ),
    linear-gradient(
      0deg,
      rgba(17, 10, 5, 0.92) 0%,
      transparent 42%
    );
}

.hero-vignette {
  z-index: -2;

  background:
    radial-gradient(
      ellipse at 70% 50%,
      transparent 15%,
      rgba(10, 5, 2, 0.4) 100%
    );
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 700px) 1fr;
  align-items: center;
  gap: 30px;
}

.hero-content {
  max-width: 700px;
  padding-bottom: 15px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 22px;
  padding: 8px 14px;

  border: 1px solid rgba(242, 184, 75, 0.28);
  border-radius: 100px;

  color: var(--gold-light);
  background: rgba(24, 14, 6, 0.64);

  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.hero-logo {
  width: clamp(220px, 34vw, 390px);
  height: auto;
  max-height: 190px;

  margin-bottom: 11px;

  object-fit: contain;
  object-position: left;

  filter:
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

.hero h1 {
  max-width: 730px;
  margin-bottom: 23px;

  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.2vw, 5.35rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.06;

  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero-description {
  max-width: 560px;
  margin-bottom: 14px;

  color: #f0e5cc;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.8;
}

.hero-emphasis {
  margin-bottom: 33px;

  color: var(--gold-light);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-download-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;

  margin-top: 25px;

  color: #e0cba4;
  font-size: 0.77rem;
  font-weight: 650;
}

.download-info-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.download-info-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-dark);
}

.hero-side-note {
  justify-self: end;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  margin-top: 190px;
  padding-left: 20px;

  border-left: 2px solid rgba(242, 184, 75, 0.58);

  text-shadow: 0 2px 12px #000;
}

.hero-side-note > span {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.hero-side-note strong {
  color: var(--cream);
  font-size: 0.86rem;
  line-height: 1.7;
  letter-spacing: 0.12em;
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;

  border-top: 1px solid rgba(242, 184, 75, 0.18);

  background: linear-gradient(
    90deg,
    rgba(20, 11, 5, 0.93),
    rgba(39, 23, 11, 0.85)
  );

  backdrop-filter: blur(12px);
}

.hero-bottom__inner {
  display: flex;
  align-items: center;
  min-height: 101px;
  gap: 35px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-stat strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.hero-stat span {
  max-width: 115px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.45;
  letter-spacing: 0.09em;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;

  color: var(--gold-light);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.14em;

  transition: color 0.2s ease;
}

.scroll-indicator:hover {
  color: var(--cream);
}

.scroll-indicator .icon {
  width: 18px;
  height: 18px;
  animation: arrow-bounce 2s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(4px);
  }
}

/* =========================
   07. SOBRE
========================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 46px;
  align-items: center;
}

.about-copy > p:not(.section-lead) {
  max-width: 660px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 5px;

  border-bottom: 1px solid var(--gold-dark);

  color: var(--gold);
  font-size: 0.91rem;
  font-weight: 800;

  transition:
    color 0.2s ease,
    gap 0.2s ease;
}

.text-link:hover {
  gap: 16px;
  color: var(--gold-light);
}

.text-link .icon {
  width: 18px;
  height: 18px;
}

.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  min-height: 435px;
  padding: 45px 30px 38px;

  overflow: hidden;

  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);

  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(242, 184, 75, 0.15),
      transparent 47%
    ),
    repeating-radial-gradient(
      circle at 50% 25%,
      transparent 0,
      transparent 28px,
      rgba(242, 184, 75, 0.045) 29px,
      transparent 30px
    ),
    linear-gradient(
      160deg,
      #422810,
      #211409 70%
    );

  box-shadow: var(--shadow);
}

.about-visual::before,
.about-visual::after {
  content: "✦";
  position: absolute;
  color: rgba(242, 184, 75, 0.4);
  font-size: 26px;
}

.about-visual::before {
  top: 15px;
  left: 24px;
}

.about-visual::after {
  right: 24px;
  bottom: 15px;
}

.about-emblem {
  position: relative;

  display: grid;
  place-items: center;

  width: 166px;
  height: 166px;
  margin-bottom: 32px;
  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      #71441c 0%,
      #3b2412 65%,
      #241409 100%
    );

  border: 3px double var(--gold-dark);

  box-shadow:
    0 0 0 9px rgba(242, 184, 75, 0.055),
    0 0 60px rgba(242, 184, 75, 0.13),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.about-emblem__circle {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 220, 133, 0.4);
  border-radius: 50%;
}

.about-emblem__symbol {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 5.5rem;
  line-height: 1;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
}

.about-emblem__label {
  position: absolute;
  bottom: -12px;

  padding: 5px 13px;
  background: #39200f;
  border: 1px solid var(--gold-dark);
  border-radius: 30px;

  color: var(--gold-light);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.about-visual__content {
  max-width: 380px;
  text-align: center;
}

.about-visual blockquote {
  margin: 12px 0 20px;

  font-family: var(--font-display);
  font-size: clamp(1.16rem, 2.1vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--cream);
}

.about-rule {
  width: 65px;
  height: 1px;
  margin: 0 auto 15px;
  background: var(--gold-dark);
}

.about-signature {
  color: var(--gold-light);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

/* =========================
   08. CARACTERÍSTICAS
========================= */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
}

.feature-card {
  position: relative;
  min-height: 315px;
  padding: 28px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(82, 50, 24, 0.45),
      rgba(30, 19, 10, 0.95)
    );

  border: 1px solid var(--border);
  border-radius: var(--radius);

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s var(--ease);
}

.feature-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    transparent
  );

  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);

  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.25);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 27px;
}

.feature-card__icon {
  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  background: linear-gradient(
    145deg,
    #65401e,
    #32200f
  );

  border: 1px solid rgba(242, 184, 75, 0.32);
  border-radius: 14px;

  color: var(--gold);

  box-shadow:
    inset 0 1px rgba(255, 220, 133, 0.12);
}

.feature-card__icon .icon {
  width: 30px;
  height: 30px;
}

.feature-number {
  color: rgba(242, 184, 75, 0.35);
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
}

.feature-card h3 {
  margin-bottom: 14px;

  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.8;
}

.feature-tag {
  display: inline-block;
  margin-top: auto;
  color: var(--green-light);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

/* =========================
   09. CARTAS
========================= */

.cards-showcase {
  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 50% 55%,
      rgba(190, 123, 30, 0.13),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      #29190d,
      #1b1008
    );
}

.cards-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 70px,
      rgba(242, 184, 75, 0.022) 71px,
      transparent 72px
    );
}

.upgrade-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 1040px;
  margin-inline: auto;
}

.upgrade-card {
  --card-accent: #cba36a;
  --card-glow: rgba(203, 163, 106, 0.11);

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;

  min-height: 342px;
  padding: 35px 23px 28px;

  border: 2px solid var(--card-accent);
  border-radius: 16px;

  background:
    radial-gradient(
      circle at 50% 36%,
      var(--card-glow),
      transparent 52%
    ),
    linear-gradient(
      155deg,
      #4a311c,
      #231509 70%
    );

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.24),
    inset 0 0 0 5px rgba(0, 0, 0, 0.28),
    inset 0 0 0 6px rgba(255, 255, 255, 0.04);

  text-align: center;

  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s ease;
}

.upgrade-card:hover {
  transform: translateY(-10px) rotate(-1deg);

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.34),
    0 0 35px var(--card-glow);
}

.upgrade-card--common {
  --card-accent: #bda27e;
  --card-glow: rgba(189, 162, 126, 0.15);
}

.upgrade-card--rare {
  --card-accent: #74b5ec;
  --card-glow: rgba(65, 145, 235, 0.22);
}

.upgrade-card--epic {
  --card-accent: #ce7dfb;
  --card-glow: rgba(166, 77, 235, 0.24);
}

.upgrade-card__ornament {
  position: absolute;
  top: 10px;
  left: 12px;
  color: var(--card-accent);
  opacity: 0.7;
  font-size: 14px;
}

.upgrade-card__rarity {
  color: var(--card-accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.24em;
}

.upgrade-card__art {
  display: grid;
  place-items: center;

  width: 115px;
  height: 115px;
  margin: 23px 0 18px;

  border: 1px solid var(--card-accent);
  border-radius: 50%;

  color: var(--card-accent);
  background:
    radial-gradient(
      circle,
      var(--card-glow),
      rgba(12, 8, 5, 0.85)
    );

  font-size: 4rem;
  line-height: 1;

  box-shadow:
    0 0 35px var(--card-glow),
    inset 0 0 22px var(--card-glow);
}

.upgrade-card h3 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.upgrade-card p {
  max-width: 245px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
}

.upgrade-footnote {
  max-width: 760px;
  margin: 34px auto 0;

  color: var(--muted);
  font-size: 0.87rem;
  text-align: center;
  line-height: 1.9;
}

/* =========================
   10. GALERIA
========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(145px, 27vw, 225px);
  gap: 12px;
}

.gallery-card {
  position: relative;
  display: block;

  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;

  overflow: hidden;

  border: 1px solid rgba(242, 184, 75, 0.25);
  border-radius: 13px;

  background: #120b06;
  text-align: left;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-card:hover {
  border-color: var(--gold);

  box-shadow:
    0 0 0 1px rgba(242, 184, 75, 0.18),
    0 15px 35px rgba(0, 0, 0, 0.3);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition:
    transform 0.65s var(--ease),
    filter 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.13);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    0deg,
    rgba(12, 7, 3, 0.94) 0%,
    rgba(12, 7, 3, 0.16) 65%,
    transparent 100%
  );

  pointer-events: none;
}

.gallery-card__overlay {
  position: absolute;
  z-index: 2;
  left: 17px;
  right: 35px;
  bottom: 17px;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gallery-card__category {
  color: var(--gold);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.gallery-card__overlay strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(0.93rem, 1.9vw, 1.4rem);
  line-height: 1.25;
}

.gallery-card--featured .gallery-card__overlay {
  left: 25px;
  bottom: 27px;
}

.gallery-card--featured .gallery-card__overlay strong {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.gallery-card__expand {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;

  display: grid;
  place-items: center;

  width: 32px;
  height: 32px;

  border: 1px solid rgba(255, 243, 209, 0.4);
  border-radius: 8px;

  color: var(--cream);
  background: rgba(18, 10, 5, 0.65);

  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.gallery-card:hover .gallery-card__expand {
  background: var(--gold);
  color: var(--bg);
}

.gallery-card__expand .icon {
  width: 17px;
  height: 17px;
}

.gallery-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 25px 0 0;

  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.gallery-hint .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* =========================
   11. COLÔNIA E INIMIGOS
========================= */

.colony-section {
  overflow: hidden;
}

.colony-group + .colony-group {
  margin-top: 80px;
}

.group-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-bottom: 25px;
  padding-bottom: 19px;

  border-bottom: 1px solid var(--border);
}

.group-heading__eyebrow {
  color: var(--green-light);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.group-heading__eyebrow--danger {
  color: var(--red-light);
}

.group-heading h3 {
  margin: 6px 0 0;

  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.group-heading__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;
  border: 1px solid;
  border-radius: 100px;

  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.group-heading__badge--ally {
  color: var(--green-light);
  background: rgba(107, 191, 58, 0.07);
  border-color: rgba(107, 191, 58, 0.4);
}

.group-heading__badge--enemy {
  color: var(--red-light);
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.4);
}

.unit-grid,
.enemy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.unit-card {
  position: relative;
  min-width: 0;
  overflow: hidden;

  border: 1px solid rgba(242, 184, 75, 0.17);
  border-radius: 16px;

  background: linear-gradient(
    160deg,
    #352110,
    #21140a
  );

  transition:
    transform 0.3s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.unit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 184, 75, 0.47);

  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.3);
}

.unit-card__image {
  position: relative;
  display: grid;
  place-items: center;

  aspect-ratio: 1 / 1;
  padding: 12px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 65%,
      rgba(126, 88, 36, 0.47),
      transparent 64%
    ),
    repeating-radial-gradient(
      ellipse at 50% 65%,
      transparent 0,
      transparent 18px,
      rgba(242, 184, 75, 0.05) 19px,
      transparent 20px
    ),
    #33200f;
}

.unit-card__image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-dark),
    transparent
  );
}

.unit-card__image img {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 100%;

  object-fit: contain;

  filter: drop-shadow(
    0 12px 12px rgba(0, 0, 0, 0.4)
  );

  transition: transform 0.45s var(--ease);
}

.unit-card:hover .unit-card__image img {
  transform: scale(1.09) translateY(-4px);
}

.unit-card__info {
  padding: 18px 15px 23px;
  text-align: center;
}

.unit-card__role {
  display: block;
  margin-bottom: 8px;

  color: var(--green-light);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.unit-card__info h4 {
  margin-bottom: 9px;

  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
}

.unit-card__info p {
  margin-bottom: 0;

  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

.unit-card--queen {
  border-color: rgba(242, 184, 75, 0.52);
}

.unit-card--queen .unit-card__image {
  background:
    radial-gradient(
      circle,
      rgba(192, 57, 43, 0.25),
      transparent 68%
    ),
    linear-gradient(
      145deg,
      #60331e,
      #29170b
    );
}

.unit-card--queen .unit-card__role {
  color: var(--gold);
}

.unit-card--enemy {
  border-color: rgba(192, 57, 43, 0.23);
}

.unit-card--enemy .unit-card__role {
  color: var(--red-light);
}

.unit-card--enemy .unit-card__image {
  background:
    radial-gradient(
      circle,
      rgba(170, 52, 34, 0.2),
      transparent 70%
    ),
    linear-gradient(
      145deg,
      #3c2216,
      #21130e
    );
}

.unit-card--boss {
  border-color: rgba(230, 80, 48, 0.65);

  background: linear-gradient(
    160deg,
    #4c2317,
    #1c0e0b
  );
}

.unit-card--boss .unit-card__image {
  background:
    radial-gradient(
      circle at 50% 65%,
      rgba(187, 52, 35, 0.32),
      transparent 70%
    ),
    #33170e;
}

.unit-card--boss .unit-card__role {
  color: #ff9477;
}

.boss-mark {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;

  padding: 5px 9px;
  border: 1px solid rgba(255, 145, 100, 0.55);
  border-radius: 5px;

  background: rgba(91, 17, 12, 0.88);
  color: #ffb29b;

  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

/* =========================
   12. COMO JOGAR
========================= */

.controls-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  align-items: center;
}

.controls-intro > p {
  max-width: 460px;
  color: var(--muted);
}

.controls-tip {
  display: flex;
  gap: 15px;

  max-width: 450px;
  margin-top: 32px;
  padding: 22px;

  border: 1px solid rgba(107, 191, 58, 0.25);
  border-radius: 13px;

  background: rgba(83, 123, 36, 0.08);
}

.controls-tip__icon {
  flex: 0 0 auto;
  color: var(--green-light);
  font-size: 1.7rem;
  line-height: 1;
}

.controls-tip strong {
  display: block;
  margin-bottom: 8px;

  color: var(--green-light);
  font-size: 0.69rem;
  letter-spacing: 0.13em;
}

.controls-tip p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.8;
}

.controls-panel {
  overflow: hidden;

  border: 1px solid rgba(242, 184, 75, 0.42);
  border-radius: 14px;

  background: #1c120a;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 4px rgba(242, 184, 75, 0.03);
}

.controls-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 17px 20px;

  background: linear-gradient(
    90deg,
    #684019,
    #36220f
  );

  border-bottom: 2px solid var(--gold-dark);

  color: var(--gold-light);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.controls-panel__lights {
  display: flex;
  gap: 5px;
}

.controls-panel__lights i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 220, 133, 0.35);
}

.controls-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.controls-table thead {
  background: rgba(242, 184, 75, 0.055);
}

.controls-table th {
  padding: 16px 12px;

  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-align: left;
}

.controls-table th:first-child,
.controls-table td:first-child {
  width: 43%;
  padding-left: 20px;
}

.controls-table th:last-child,
.controls-table td:last-child {
  padding-right: 20px;
}

.controls-table td {
  padding: 16px 12px;

  border-top: 1px solid rgba(242, 184, 75, 0.1);

  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.controls-table tbody tr {
  transition: background 0.2s ease;
}

.controls-table tbody tr:hover {
  background: rgba(242, 184, 75, 0.05);
}

kbd {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px 1px;

  border: 1px solid rgba(242, 184, 75, 0.38);
  border-bottom-width: 3px;
  border-radius: 6px;

  background: #412a15;
  color: var(--gold-light);

  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.4;
  white-space: normal;
}

.controls-panel__footer {
  padding: 14px 20px;

  border-top: 1px solid var(--border);
  background: rgba(242, 184, 75, 0.035);

  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.controls-panel__footer span {
  margin-right: 7px;
  color: var(--green);
  font-size: 0.55rem;
}

/* =========================
   13. REQUISITOS E FAQ
========================= */

.requirements-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 30px;
}

.requirements-card {
  overflow: hidden;

  border: 1px solid var(--border-strong);
  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      #392410,
      #231509
    );

  box-shadow: var(--shadow);
}

.requirements-card__header {
  display: flex;
  align-items: center;
  gap: 17px;

  padding: 26px 23px;

  border-bottom: 1px solid var(--border);

  background: rgba(242, 184, 75, 0.06);
}

.requirements-card__symbol {
  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;
  flex-shrink: 0;

  color: var(--gold);
  font-size: 2rem;

  border: 1px solid var(--border-strong);
  border-radius: 10px;

  background: rgba(242, 184, 75, 0.08);
}

.requirements-card__header h3 {
  margin: 5px 0 0;

  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.requirements-list {
  margin: 0;
  padding: 8px 24px;
}

.requirements-list > div {
  display: flex;
  flex-direction: column;
  gap: 6px;

  padding: 19px 0;

  border-bottom: 1px solid rgba(242, 184, 75, 0.11);
}

.requirements-list > div:last-child {
  border-bottom: none;
}

.requirements-list dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.requirements-list dd {
  margin: 0;

  color: var(--cream);
  font-size: 0.93rem;
  font-weight: 800;
}

.requirements-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 17px 24px;

  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);

  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.faq h3 {
  margin-bottom: 23px;

  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.faq-item {
  margin-bottom: 11px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: rgba(59, 36, 18, 0.37);

  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.faq-item[open] {
  border-color: rgba(242, 184, 75, 0.48);
  background: rgba(59, 36, 18, 0.62);
}

.faq-item summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  padding: 19px 20px;

  list-style: none;

  color: var(--cream);
  font-size: 0.91rem;
  font-weight: 750;
  line-height: 1.5;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-item__icon {
  position: relative;

  width: 22px;
  height: 22px;
  flex: 0 0 auto;

  border-radius: 50%;
  background: rgba(242, 184, 75, 0.1);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;

  background: var(--gold);

  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-item__icon::before {
  width: 10px;
  height: 2px;
}

.faq-item__icon::after {
  width: 2px;
  height: 10px;
}

.faq-item[open] .faq-item__icon::after {
  transform:
    translate(-50%, -50%)
    rotate(90deg);
}

.faq-item__answer {
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-item__answer p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.85;
}

/* =========================
   14. DOWNLOAD FINAL
========================= */

.download-section {
  position: relative;
  overflow: hidden;

  padding-block: 100px;

  background:
    radial-gradient(
      ellipse at 26% 50%,
      rgba(164, 93, 28, 0.23),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #3e250f,
      #1b1008 75%
    );

  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.download-section__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    repeating-radial-gradient(
      circle at 25% 50%,
      transparent 0,
      transparent 70px,
      rgba(242, 184, 75, 0.035) 71px,
      transparent 72px
    );
}

.download-layout {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 45px;
}

.download-art {
  position: relative;
  display: grid;
  place-items: center;

  width: min(100%, 360px);
  aspect-ratio: 1 / 1;

  margin-inline: auto;
}

.download-art img {
  position: relative;
  z-index: 2;

  width: 66%;
  aspect-ratio: 1 / 1;
  object-fit: cover;

  border: 3px solid rgba(255, 217, 134, 0.65);
  border-radius: 27%;

  box-shadow:
    0 0 45px rgba(242, 184, 75, 0.23),
    0 20px 50px rgba(0, 0, 0, 0.44);
}

.download-art__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(242, 184, 75, 0.3);
}

.download-art__ring--outer {
  inset: 0;
  border-style: dashed;
  animation: ring-spin 55s linear infinite;
}

.download-art__ring--inner {
  inset: 10%;

  box-shadow:
    0 0 40px rgba(242, 184, 75, 0.12);
}

.download-art__spark {
  position: absolute;
  z-index: 3;
  color: var(--gold-light);
  text-shadow: 0 0 18px var(--gold);
}

.download-art__spark--one {
  top: 7%;
  right: 13%;
  font-size: 2rem;
}

.download-art__spark--two {
  left: 2%;
  bottom: 24%;
  font-size: 2.7rem;
}

.download-art__spark--three {
  bottom: 6%;
  right: 22%;
  font-size: 1.3rem;
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.download-content {
  max-width: 650px;
}

.download-content .section-title {
  margin-bottom: 27px;
}

.download-content > p {
  max-width: 540px;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.9;
}

.download-actions {
  margin-top: 32px;
}

.download-meta {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 23px;
  margin-bottom: 0;

  color: var(--muted);
  font-size: 0.79rem;
}

/* =========================
   15. FOOTER
========================= */

.footer {
  background: #100a05;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;

  padding-top: 60px;
  padding-bottom: 50px;
}

.footer-brand img {
  width: 170px;
  height: 65px;
  object-fit: contain;
  object-position: left;
}

.footer-brand p {
  max-width: 290px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px 20px;
}

.footer-nav a {
  width: fit-content;
  color: var(--muted);
  font-size: 0.84rem;

  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-credits p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-credits a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(242, 184, 75, 0.35);
  text-underline-offset: 4px;
}

.footer-credits a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;

  padding-block: 22px;

  color: #af9875;
  font-size: 0.71rem;
}

.footer-motto {
  color: var(--gold-dark);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.09em;
}

/* =========================
   16. LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;

  width: min(1100px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;

  overflow: auto;
  overscroll-behavior: contain;

  border: 1px solid rgba(242, 184, 75, 0.6);
  border-radius: 15px;

  background: #170e08;
  color: var(--cream);

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.75);
}

.lightbox::backdrop {
  background: rgba(4, 3, 2, 0.91);
  backdrop-filter: blur(8px);
}

.lightbox__shell {
  padding: 12px;
}

.lightbox__top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 4px 5px 14px;
}

.lightbox__counter {
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox__close {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border: 1px solid var(--border-strong);
  border-radius: 9px;

  background: #392311;
  color: var(--cream);

  font-size: 1.9rem;
  line-height: 1;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lightbox__close:hover {
  background: var(--gold);
  color: var(--bg);
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 180px;
  overflow: hidden;

  background: #0b0704;
  border-radius: 8px;
}

.lightbox__stage img {
  display: block;

  width: 100%;
  height: auto;
  max-height: min(68dvh, 750px);

  object-fit: contain;
}

.lightbox__nav {
  position: absolute;
  z-index: 5;
  top: 50%;

  display: grid;
  place-items: center;

  width: 44px;
  height: 52px;

  border: 1px solid rgba(255, 243, 209, 0.25);
  border-radius: 8px;

  background: rgba(20, 11, 5, 0.8);
  color: var(--cream);

  font-size: 2.5rem;
  line-height: 1;

  transform: translateY(-50%);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lightbox__nav:hover {
  background: var(--gold);
  color: var(--bg);
}

.lightbox__nav--previous {
  left: 12px;
}

.lightbox__nav--next {
  right: 12px;
}

.lightbox__description {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 18px 7px 7px;
}

.lightbox__description h2 {
  margin-bottom: 5px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.lightbox__description p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.lightbox__keyboard-hint {
  flex-shrink: 0;
  color: var(--gold-dark);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.07em;
}

/* =========================
   17. REVELAÇÃO AO ROLAR
========================= */

.has-js .reveal {
  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-js .features-grid .reveal:nth-child(2),
.has-js .unit-grid .reveal:nth-child(2),
.has-js .enemy-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.has-js .features-grid .reveal:nth-child(3),
.has-js .unit-grid .reveal:nth-child(3),
.has-js .enemy-grid .reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.has-js .upgrade-cards .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.has-js .upgrade-cards .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

/* =========================
   18. RESPONSIVIDADE
========================= */

@media (min-width: 580px) {

  .container {
    width: min(100% - 48px, var(--container));
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upgrade-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upgrade-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 365px);
    justify-self: center;
  }

  .unit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .enemy-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-grid {
    gap: 16px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 768px) {

  .section {
    padding-block: 115px;
  }

  .hero {
    min-height: 760px;
  }

  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(30px, 5vw, 85px);
  }

  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-card {
    padding: 29px;
  }

  .upgrade-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  .upgrade-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(170px, 17vw, 250px);
  }

  .unit-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .unit-card__info {
    padding: 19px 12px 25px;
  }

  .unit-card__info p {
    font-size: 0.76rem;
  }

  .controls-layout {
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(35px, 5vw, 80px);
  }

  .requirements-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
  }

  .download-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(45px, 7vw, 105px);
  }

  .download-art {
    width: min(100%, 430px);
  }

  .footer-main {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 60px;
  }

}

@media (min-width: 1024px) {

  .hero {
    min-height: 840px;
  }

  .hero-logo {
    width: 390px;
  }

  .hero-content {
    padding-top: 20px;
  }

  .about-visual {
    min-height: 515px;
  }

}

/* =========================
   19. MENU MOBILE
========================= */

@media (max-width: 1060px) {

  .site-nav {
    gap: 12px;
  }

  .site-nav > a:not(.mobile-download) {
    font-size: 0.72rem;
  }

  .brand img {
    width: 116px;
  }

}

@media (max-width: 860px) {

  :root {
    --header-height: 70px;
  }

  .header-inner {
    position: relative;
  }

  .brand img {
    width: 143px;
    height: 48px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    width: 44px;
    height: 44px;

    border: 1px solid var(--border-strong);
    border-radius: 9px;

    background: rgba(59, 36, 18, 0.65);
  }

  .menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;

    background: var(--gold-light);
    border-radius: 2px;

    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    max-height: calc(100dvh - 90px);
    overflow-y: auto;

    margin: 0;
    padding: 10px;

    background: rgba(27, 16, 8, 0.99);
    border: 1px solid var(--border-strong);
    border-radius: 13px;

    box-shadow:
      0 22px 45px rgba(0, 0, 0, 0.55);
  }

  .has-js .site-nav {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translateY(-10px);

    transition:
      visibility 0.25s,
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .has-js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav > a:not(.mobile-download) {
    padding: 13px 16px;

    font-size: 0.92rem;
    border-bottom: 1px solid rgba(242, 184, 75, 0.08);
  }

  .site-nav > a:last-child {
    border-bottom: 0;
  }

  .mobile-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 12px;
    padding: 14px;

    border: 1px solid #ffe39e;
    border-radius: 8px;

    background: var(--gold);
    color: var(--bg);

    font-size: 0.87rem;
    font-weight: 850;
  }

  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-side-note {
    display: none;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(17, 10, 5, 0.96),
        rgba(17, 10, 5, 0.7) 70%,
        rgba(17, 10, 5, 0.4)
      ),
      linear-gradient(
        0deg,
        rgba(17, 10, 5, 0.87),
        transparent 55%
      );
  }

  .hero {
    min-height: 770px;
    min-height: max(770px, 100svh);
  }

  .hero-bottom__inner {
    gap: 22px;
  }

  .scroll-indicator {
    display: none;
  }

}

/* =========================
   20. TELAS PEQUENAS
========================= */

@media (max-width: 579px) {

  .section {
    padding-block: 77px;
  }

  .section-kicker {
    gap: 8px;
    font-size: 0.62rem;
    letter-spacing: 0.115em;
  }

  .kicker-line {
    width: 17px;
  }

  .section-title {
    margin-top: 13px;
    margin-bottom: 22px;
    font-size: clamp(2.25rem, 9.5vw, 3.3rem);
  }

  .section-heading {
    margin-bottom: 31px;
  }

  .section-heading p {
    font-size: 0.93rem;
  }

  .btn--header {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.72rem;
  }

  .btn--header .icon {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .brand img {
    width: 123px;
  }

  .hero {
    min-height: 810px;
    min-height: max(810px, 100svh);

    padding-top: 145px;
    padding-bottom: 125px;

    align-items: flex-start;
  }

  .hero-background__image {
    object-position: 62% center;
  }

  .hero-eyebrow {
    margin-bottom: 20px;
    font-size: 0.58rem;
    letter-spacing: 0.105em;
  }

  .hero-logo {
    width: min(72%, 305px);
    max-height: 145px;
    margin-bottom: 13px;
  }

  .hero h1 {
    margin-bottom: 21px;
    font-size: clamp(3.1rem, 12vw, 4.4rem);
  }

  .hero-description {
    font-size: 0.97rem;
    line-height: 1.75;
  }

  .hero-emphasis {
    font-size: 0.83rem;
    margin-bottom: 27px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .btn--outline {
    min-height: 51px;
  }

  .hero-download-info {
    gap: 10px;
    font-size: 0.69rem;
  }

  .hero-bottom__inner {
    justify-content: space-between;
    gap: 10px;
    min-height: 89px;
  }

  .hero-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .hero-stat strong {
    font-size: 1.8rem;
  }

  .hero-stat span {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
  }

  .about-visual {
    min-height: 400px;
  }

  .feature-card {
    min-height: 0;
  }

  .gallery-card__overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .gallery-card__overlay strong {
    font-size: 0.92rem;
  }

  .gallery-card__category {
    font-size: 0.53rem;
  }

  .gallery-card__expand {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
  }

  .gallery-card__expand .icon {
    width: 13px;
    height: 13px;
  }

  .gallery-hint {
    font-size: 0.73rem;
    line-height: 1.6;
  }

  .group-heading {
    align-items: flex-end;
  }

  .group-heading__badge {
    padding: 6px 9px;
    font-size: 0.53rem;
  }

  .unit-card__image {
    padding: 9px;
  }

  .unit-card__info {
    padding: 14px 9px 20px;
  }

  .unit-card__role {
    min-height: 2.5em;
    font-size: 0.53rem;
  }

  .unit-card__info p {
    font-size: 0.71rem;
  }

  .enemy-grid {
    gap: 12px;
  }

  .controls-table th:first-child,
  .controls-table td:first-child {
    width: 43%;
    padding-left: 12px;
  }

  .controls-table th:last-child,
  .controls-table td:last-child {
    padding-right: 12px;
  }

  .controls-table td {
    padding: 14px 8px;
    font-size: 0.76rem;
  }

  .controls-table th {
    padding: 13px 8px;
    font-size: 0.62rem;
  }

  kbd {
    padding: 3px 6px;
    font-size: 0.69rem;
  }

  .download-section {
    padding-block: 77px;
  }

  .download-art {
    width: min(100%, 270px);
  }

  .download-layout {
    gap: 15px;
  }

  .download-content {
    text-align: center;
  }

  .download-content .section-kicker {
    justify-content: center;
  }

  .download-content > p {
    font-size: 0.96rem;
  }

  .download-actions .btn {
    width: 100%;
  }

  .download-meta {
    justify-content: center;
    font-size: 0.71rem;
    line-height: 1.5;
  }

  .footer-main {
    padding-top: 45px;
    gap: 30px;
  }

  .footer-motto {
    line-height: 1.7;
  }

  .lightbox__shell {
    padding: 7px;
  }

  .lightbox__nav {
    width: 34px;
    height: 46px;
    font-size: 2.1rem;
  }

  .lightbox__nav--previous {
    left: 5px;
  }

  .lightbox__nav--next {
    right: 5px;
  }

  .lightbox__description {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .lightbox__description h2 {
    font-size: 1.15rem;
  }

  .lightbox__keyboard-hint {
    font-size: 0.55rem;
  }

}

/* =========================
   21. TELAS MUITO ESTREITAS
========================= */

@media (max-width: 370px) {

  .container {
    width: min(100% - 26px, var(--container));
  }

  .brand img {
    width: 105px;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .hero-eyebrow {
    font-size: 0.52rem;
  }

  .hero-stat strong {
    font-size: 1.6rem;
  }

  .hero-stat span {
    font-size: 0.48rem;
  }

  .gallery-grid {
    grid-auto-rows: 145px;
    gap: 8px;
  }

  .unit-grid,
  .enemy-grid {
    gap: 9px;
  }

  .unit-card__info h4 {
    font-size: 1rem;
  }

}

/* =========================
   22. ACESSIBILIDADE E MOVIMENTO
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .has-js .reveal,
  .has-js .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-background__image {
    transform: none !important;
    will-change: auto !important;
  }

  .download-art__ring--outer {
    animation: none !important;
  }

}

/* =========================
   23. CONTRASTE FORÇADO
========================= */

@media (forced-colors: active) {

  .btn,
  .feature-card,
  .unit-card,
  .upgrade-card,
  .requirements-card,
  .faq-item,
  .gallery-card {
    border: 1px solid CanvasText;
  }

  .btn:focus-visible,
  button:focus-visible,
  a:focus-visible,
  summary:focus-visible {
    outline: 3px solid Highlight;
  }

  .status-dot {
    border: 1px solid CanvasText;
  }

}