:root {
  --bg: #06110b;
  --panel: #10241a;
  --panel2: #142d20;
  --line: #2b5239;
  --text: #f3fff5;
  --muted: #a8c6b0;
  --green: #65e786;
  --lime: #c0fa62;
  --gold: #ffd15c;
  --red: #ff6868;
  --sun: #ff9d4d;
  --sky: #6fd7ff;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, Arial, sans-serif;
}
a {
  color: inherit;
}

/* TOPBAR */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 max(24px, calc((100% - 1420px) / 2));
  background: #06110be8;
  border-bottom: 1px solid #315940;
  backdrop-filter: blur(14px);
}
.logo {
  text-decoration: none;
  font: 1rem 'Press Start 2P';
  margin-right: auto;
}
.logo span {
  color: var(--green);
}
.topbar nav {
  display: flex;
  gap: 22px;
}
.topbar nav a,
.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
}
.topbar a:hover {
  color: white;
}
.mini-download {
  padding: 10px 15px;
  border-radius: 8px;
  color: #07120b;
  background: var(--green);
  text-decoration: none;
  font-weight: 900;
}

/* HEADER STATS (contador de visitas) */
.header-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 120px max(24px, calc((100% - 1420px) / 2)) 80px;
  background: url('https://www.minecraft.net/content/dam/minecraftnet/games/minecraft/key-art/About-Minecraft_Featured-Image-0_570x321.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #041009f7 0%, #06110bd9 45%, #07120a55),
    linear-gradient(0deg, #06110b 0%, transparent 35%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 790px;
}
.pill,
.kicker {
  display: inline-block;
  color: var(--lime);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin: 18px 0 24px;
}
.hero h1 span {
  color: var(--green);
  text-shadow: 0 0 35px #55e47d55;
}
.hero p {
  max-width: 700px;
  color: #d0e8d6;
  font-size: 1.13rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

/* BOTÃO MINECRAFT */
.minecraft-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 19px;
  border: 1px solid #6bb36d;
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, #236b37, #559f45 50%, #265d33);
  box-shadow: inset 0 2px #fff2, 0 9px 25px #0007;
  text-decoration: none;
  font-weight: 900;
}
.minecraft-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}
.minecraft-btn svg {
  width: 31px;
}
.minecraft-btn small {
  display: block;
  color: #daf3dd;
  font-weight: 500;
  font-size: 0.67rem;
  margin-top: 3px;
}
.ghost-btn {
  padding: 16px 19px;
  border: 1px solid #789782;
  border-radius: 9px;
  text-decoration: none;
}
.upload-note {
  font-size: 0.78rem !important;
  color: var(--gold) !important;
}
.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 25px;
  right: 40px;
  color: #b8d3bf;
  font-size: 0.73rem;
}

/* CARD DE ENGAJAMENTO NO HERO (canto superior direito) */
.hero-download-counter {
  position: absolute;
  z-index: 3;
  top: 96px;
  right: 30px;
  background: rgba(6, 17, 11, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(101, 231, 134, 0.3);
  border-radius: 16px;
  padding: 14px 22px;
  text-align: center;
  max-width: 200px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.counter-badge {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.counter-badge strong {
  font-size: inherit;
}
.counter-text {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* SECTIONS */
.section,
.dark-section {
  padding: 110px max(24px, calc((100% - 1420px) / 2));
}
.dark-section {
  background: radial-gradient(circle at 8% 0%, #ff9d4d14, transparent 40%),
    radial-gradient(circle at 96% 25%, #65e78620, transparent 45%),
    radial-gradient(circle at 50% 100%, #6fd7ff12, transparent 50%),
    #091811;
}
.purpose {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.section h2,
.dark-section h2 {
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 1.05;
  margin: 13px 0 22px;
  letter-spacing: -0.04em;
}
.section-copy p,
.section-heading p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
.image-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 70px #0008;
}
.image-frame img {
  display: block;
  width: 100%;
  min-height: 390px;
  object-fit: cover;
}
.image-frame span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 12px;
  border-radius: 7px;
  background: #07110ddd;
}
.stat-row {
  display: flex;
  gap: 35px;
  margin-top: 34px;
}
.stat-row div {
  display: grid;
}
.stat-row strong {
  color: var(--green);
  font-size: 2.3rem;
}
.stat-row span {
  color: var(--muted);
  font-size: 0.74rem;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 45px;
}

/* FEATURES */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.feature-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, var(--panel2), var(--panel));
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, var(--green));
}
.feature-card:nth-child(1) { --accent: var(--green); }
.feature-card:nth-child(2) { --accent: var(--sun); }
.feature-card:nth-child(3) { --accent: var(--red); }
.feature-card:nth-child(4) { --accent: var(--gold); }
.feature-card:nth-child(5) { --accent: var(--sky); }
.feature-card:nth-child(6) { --accent: #b98bff; }
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent, var(--green));
}
.feature-card i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  font-style: normal;
  font-size: 1.3rem;
  transition: transform 0.3s;
}
.feature-card i svg {
  width: 32px;
  height: 32px;
}
.feature-card:hover i {
  transform: rotate(-6deg) scale(1.08);
}
.feature-card h3 {
  margin: 19px 0 8px;
}
.feature-card p,
.bot-profile p {
  color: var(--muted);
  line-height: 1.55;
}

/* BOTS */
.bot-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bot-profile {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  transition: transform 0.3s, border-color 0.3s;
}
.bot-profile:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}
.avatar-wrap {
  position: relative;
  flex: 0 0 86px;
}
.avatar-wrap img {
  width: 86px;
  height: 86px;
  border-radius: 10px;
  image-rendering: pixelated;
  background: #1c3727;
}
.avatar-wrap span {
  position: absolute;
  right: -5px;
  bottom: -5px;
  padding: 4px;
  border-radius: 5px;
  color: #07120b;
  background: var(--lime);
  font-size: 0.6rem;
  font-weight: 900;
}
.bot-profile small {
  color: var(--green);
  font-size: 0.65rem;
  text-transform: uppercase;
}
.bot-profile h3 {
  font-size: 1.4rem;
  margin: 5px 0;
}
.bot-profile p {
  font-size: 0.78rem;
  margin: 0;
}

/* PROFESSION NOTE */
.profession-note {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #6d5c24;
  border-radius: 12px;
  background: #2b250e;
}
.profession-note strong {
  color: var(--gold);
  white-space: nowrap;
}
.profession-note p {
  margin: 0;
  color: #eadca9;
}

/* INSTALAÇÃO STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.step {
  position: relative;
  min-height: 220px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  overflow: hidden;
  isolation: isolate;
}
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--step-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
}
.step::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(9, 24, 17, 0.65), rgba(9, 24, 17, 0.94));
}
.step b {
  color: #386548;
  font-size: 2.5rem;
}
.step h3 {
  font-size: 1.2rem;
}
.step p,
.step code {
  color: var(--muted);
  line-height: 1.6;
}
.step code,
.warning code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #06110b;
}

/* GEMINI */
.gemini-card {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 60px;
  padding: 45px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #142d20, #0d1f16);
}
.gemini-card ol {
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}
.gemini-card li + li {
  margin-top: 9px;
}
.gemini-card a {
  color: var(--green);
}
.key-visual {
  align-self: center;
  padding: 28px;
  border: 1px solid #3b6549;
  border-radius: 14px;
  background: #06110b;
  font-family: monospace;
  text-align: center;
}
.key-visual span,
.key-visual small {
  display: block;
  color: var(--muted);
}
.key-visual strong {
  display: block;
  margin: 18px 0;
  color: var(--green);
  font-size: 1.3rem;
}

/* UPDATES */
.protection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.safe,
.changed {
  padding: 28px;
  border-radius: 15px;
  border: 1px solid;
}
.safe {
  border-color: #3c8050;
  background: #102719;
}
.changed {
  border-color: #756528;
  background: #28230e;
}
.safe h3 {
  color: var(--green);
}
.changed h3 {
  color: var(--gold);
}
.protection-grid li {
  margin: 11px 0;
  color: var(--muted);
}
.warning {
  margin-top: 18px;
  padding: 20px;
  border-left: 4px solid var(--red);
  background: #321313;
  color: #ffd5d5;
}

/* FINAL CTA */
.final-cta {
  padding: 130px 24px;
  text-align: center;
  background: radial-gradient(circle, #1a4a2a, #07130c 65%);
}
.final-cta h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
  margin: 18px;
}
.final-cta .download {
  width: max-content;
  margin: 0 auto;
  text-align: left;
}
.final-cta .reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CARD DE CONTADOR DE DOWNLOADS (na final) */
.download-counter-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 12px 28px;
  background: rgba(6, 17, 11, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid #3b6b4c;
  border-radius: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
.download-counter-card:hover {
  transform: scale(1.02);
}
.dl-icon {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
}
.dl-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.dl-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* MODAL DE DOWNLOAD */
body.modal-open {
  overflow: hidden;
}
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dl-modal.open {
  display: flex;
}
.dl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 7, 0.75);
  backdrop-filter: blur(6px);
}
.dl-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 38px;
  box-shadow: 0 30px 80px #000a;
  animation: dlPop 0.22s ease;
}
@keyframes dlPop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.dl-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #06110b;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}
.dl-modal-close:hover {
  color: white;
  border-color: var(--green);
}
.dl-modal-box h3 {
  font-size: 1.7rem;
  margin: 8px 0 22px;
  letter-spacing: -0.02em;
}
.dl-explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}
.dl-explain-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid;
}
.dl-explain-card.safe {
  border-color: #3c8050;
  background: #102719;
}
.dl-explain-card.changed {
  border-color: #756528;
  background: #28230e;
}
.dl-explain-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.dl-explain-card.safe strong {
  color: var(--green);
}
.dl-explain-card.changed strong {
  color: var(--gold);
}
.dl-explain-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.dl-options {
  display: grid;
  gap: 10px;
}
.dl-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #06110b;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.dl-option:hover {
  transform: translateX(3px);
  border-color: var(--green);
}
.dl-option-icon {
  font-size: 1.4rem;
  flex: 0 0 auto;
}
.dl-option-text {
  display: grid;
  gap: 2px;
}
.dl-option-text strong {
  font-size: 0.95rem;
}
.dl-option-text small {
  color: var(--muted);
  font-size: 0.72rem;
}
.dl-tag {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.dl-tag.safe {
  background: #16351f;
  color: var(--green);
}
.dl-tag.beta {
  background: #33230f;
  color: var(--gold);
}
.dl-option.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* FOOTER */
footer {
  display: flex;
  justify-content: space-between;
  padding: 24px max(24px, calc((100% - 1420px) / 2));
  color: #789480;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}
footer a {
  color: var(--green);
  text-decoration: none;
}
.footer-left,
.footer-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.65s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* RESPONSIVO */
@media (max-width: 1000px) {
  .topbar nav {
    display: none;
  }
  .purpose,
  .gemini-card {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .bot-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .topbar {
    height: 64px;
    gap: 12px;
  }
  .back {
    font-size: 0;
  }
  .back::after {
    content: '← Voltar';
    font-size: 0.72rem;
  }
  .logo {
    font-size: 0.72rem;
  }
  .mini-download {
    display: none;
  }
  .header-stats .visitor-count {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  .section,
  .dark-section {
    padding: 75px 18px;
  }
  .feature-grid,
  .steps,
  .bot-showcase,
  .protection-grid {
    grid-template-columns: 1fr;
  }
  .purpose {
    gap: 35px;
  }
  .stat-row {
    gap: 18px;
  }
  .gemini-card {
    padding: 23px;
  }
  .profession-note,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .image-frame img {
    min-height: 260px;
  }
  .hero-download-counter {
    top: 76px;
    right: 12px;
    padding: 10px 14px;
    max-width: 150px;
  }
  .counter-badge {
    font-size: 1.2rem;
  }
  .counter-text {
    font-size: 0.65rem;
  }
  .download-counter-card {
    padding: 8px 18px;
    gap: 10px;
  }
  .dl-icon {
    font-size: 1.6rem;
  }
  .dl-number {
    font-size: 1.8rem;
  }
  .dl-modal-box {
    padding: 26px 20px;
  }
  .dl-explain {
    grid-template-columns: 1fr;
  }
  .dl-option {
    flex-wrap: wrap;
  }
  .dl-tag {
    margin-left: 46px;
  }
}