* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #07090f;
  --panel: rgba(15, 18, 28, 0.84);
  --panel-strong: rgba(20, 24, 36, 0.95);
  --line: rgba(219, 181, 91, 0.22);
  --gold: #d7b35b;
  --gold-soft: #f0d58c;
  --text: #f5f7fb;
  --muted: #9ba4b5;
  --green: #58d68d;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 72% 28%, rgba(177, 56, 36, 0.22), transparent 32%),
    radial-gradient(circle at 20% 20%, rgba(84, 58, 128, 0.18), transparent 34%),
    linear-gradient(135deg, #07090f 0%, #0b0d15 45%, #11101a 100%);
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(3,5,10,.12), rgba(3,5,10,.72));
}

.topbar {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  font-family: "Cinzel", serif;
  font-size: 12px;
  color: var(--gold-soft);
}

.brand-mark::first-line {
  transform: rotate(-45deg);
}

.brand-text,
.footer-brand {
  font-family: "Cinzel", serif;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-text span,
.footer-brand span,
.hero h1 span {
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  color: #c7ced9;
  text-decoration: none;
  font-size: 14px;
  transition: .2s ease;
}

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

.top-discord {
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 7px;
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0 92px;
}

.hero-content {
  max-width: 680px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(88, 214, 141, .28);
  background: rgba(88, 214, 141, .06);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #a9efc4;
  margin-bottom: 26px;
}

.pulse,
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(88,214,141,.75);
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2.2px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(58px, 7.6vw, 106px);
  line-height: .95;
  letter-spacing: -2px;
  text-shadow: 0 8px 30px rgba(0,0,0,.5);
}

.hero h2 {
  margin-top: 18px;
  font-family: "Cinzel", serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
}

.hero-description {
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #d0aa50, #9e742a);
  color: #0a0b10;
  box-shadow: 0 12px 30px rgba(158,116,42,.22);
}

.btn-secondary {
  color: #e7eaf0;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.03);
}

.status-card {
  width: min(100%, 500px);
  margin-top: 30px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,12,18,.65);
  border-radius: 9px;
}

.status-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.status-value {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(215,179,91,.12) 0%, transparent 62%);
  border: 1px solid rgba(215,179,91,.13);
  box-shadow:
    0 0 0 30px rgba(215,179,91,.02),
    0 0 0 80px rgba(215,179,91,.015);
}

.crest {
  width: 210px;
  height: 210px;
  position: relative;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(215,179,91,.16), rgba(7,9,15,.8));
  box-shadow: 0 0 50px rgba(215,179,91,.16);
}

.crest::before,
.crest::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(240,213,140,.35);
}

.crest::after {
  inset: 34px;
}

.crest-inner {
  transform: rotate(-45deg);
  font-family: "Cinzel", serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--gold-soft);
  text-shadow: 0 0 20px rgba(215,179,91,.3);
}

.hero-panel p {
  margin-top: 88px;
  color: #8e93a0;
  font-size: 11px;
  letter-spacing: 3px;
  z-index: 2;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 100px 0;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 36px;
}

.section-heading h3,
.community h3 {
  font-family: "Cinzel", serif;
  font-size: clamp(32px, 4vw, 48px);
}

.section-heading > p:last-child,
.community-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

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

.platform-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 240px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, rgba(20,24,36,.9), rgba(10,12,19,.82));
  border-radius: 12px;
}

.platform-card.featured {
  border-color: rgba(215,179,91,.3);
}

.platform-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(215,179,91,.08);
  border: 1px solid var(--line);
  color: var(--gold-soft);
  font-size: 22px;
  margin-bottom: 48px;
}

.platform-card h4 {
  font-family: "Cinzel", serif;
  font-size: 22px;
}

.platform-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.coming-soon {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.community {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0 100px;
}

.community-card {
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(215,179,91,.08), rgba(10,12,18,.88) 38%),
    rgba(10,12,18,.9);
  border-radius: 14px;
}

.community-card > div {
  max-width: 720px;
}

footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #777f8e;
  font-size: 12px;
}

.footer-brand {
  color: white;
  margin-bottom: 10px;
}

.disclaimer {
  margin-top: 7px;
  color: #5f6673;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
    gap: 30px;
  }

  .hero-panel {
    min-height: 340px;
  }

  .hero-panel::before {
    width: 300px;
    height: 300px;
  }

  .crest {
    width: 160px;
    height: 160px;
  }

  .crest-inner {
    font-size: 42px;
  }

  .hero-panel p {
    margin-top: 60px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .community-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: 72px;
  }

  .brand-text {
    font-size: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .top-discord {
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 74px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .status-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 74px 0;
  }

  .community {
    padding-bottom: 74px;
  }

  .community-card {
    padding: 28px 22px;
  }
}

/* MIR4Guard official icon */
.brand-mark { overflow: hidden; background: #050505; }
.brand-mark img { width: 145%; height: 145%; object-fit: contain; transform: rotate(-45deg); }
.crest { overflow: hidden; background: #050505; }
.crest-inner { width: 100%; height: 100%; display: block; transform: rotate(-45deg) scale(1.42); }
.crest-inner img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }


/* CORREÇÃO LOGO MIR4GUARD — mostrar a arte completa, sem cortar o nome */
.crest img,
.crest-inner img,
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
}

.crest,
.crest-inner {
  overflow: visible;
}

.crest img,
.crest-inner img {
  transform: rotate(-45deg);
  max-width: 92%;
  max-height: 92%;
}


/* ==========================================================
   FIX DEFINITIVO — ÍCONE PRINCIPAL MIR4GUARD
   Mantém a imagem original reta, inteira e centralizada.
   ========================================================== */
.hero-panel {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-panel .crest {
  width: 390px !important;
  height: 390px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.hero-panel .crest::before,
.hero-panel .crest::after {
  display: none !important;
  content: none !important;
}

.hero-panel .crest-inner {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transform: none !important;
  overflow: visible !important;
}

.hero-panel .crest-inner img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.45));
}

.hero-panel > p {
  margin-top: 22px !important;
}

@media (max-width: 900px) {
  .hero-panel .crest {
    width: min(360px, 82vw) !important;
    height: min(360px, 82vw) !important;
  }
}


/* NOVA LOGO MIR4GUARD — usa diretamente o PNG enviado pelo usuário */
.brand-mark img,
.hero-panel .crest-inner img {
  background: transparent !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.hero-panel .crest,
.hero-panel .crest-inner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


/* ==========================================================
   FIX DO ÍCONE PEQUENO DO CABEÇALHO
   Usa a mesma logo enviada, reta e sem losango/corte.
   ========================================================== */
.topbar .brand {
  gap: 10px;
}

.topbar .brand-mark {
  width: 52px !important;
  height: 52px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transform: none !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

.topbar .brand-mark img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

@media (max-width: 560px) {
  .topbar .brand-mark {
    width: 44px !important;
    height: 44px !important;
  }
}


/* ==========================================================
   NOVO FUNDO DO SITE DE MANUTENÇÃO
   Usa diretamente a imagem enviada pelo usuário.
   ========================================================== */
.page-bg {
  background:
    linear-gradient(
      to bottom,
      rgba(5, 7, 14, 0.34) 0%,
      rgba(5, 7, 14, 0.46) 42%,
      rgba(5, 7, 14, 0.82) 100%
    ),
    url("mir4guard-background.png") center center / cover no-repeat fixed !important;
}

.page-bg::before {
  display: none !important;
}

.page-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(4, 6, 12, 0.68) 0%,
      rgba(4, 6, 12, 0.46) 44%,
      rgba(4, 6, 12, 0.34) 100%
    ) !important;
}

@media (max-width: 900px) {
  .page-bg {
    background-position: 43% center !important;
    background-attachment: scroll !important;
  }

  .page-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(4, 6, 12, 0.48) 0%,
        rgba(4, 6, 12, 0.68) 60%,
        rgba(4, 6, 12, 0.88) 100%
      ) !important;
  }
}
