/* =====================================================================
   Início
   ===================================================================== */

/* ---------- topo ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 2px solid var(--line); }
.hero .sunset { --sun-x: 72%; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px;
  /* o topo preenche a tela inteira, em qualquer altura de tela */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  align-content: center;
  padding-block: clamp(40px, 6vw, 72px) clamp(96px, 10vw, 128px);
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-status {
  display: inline-flex; align-items: center; gap: 12px; min-height: 36px; padding: 6px 14px 6px 12px;
  font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--text-2);
  background: rgba(26, 20, 17, .7); border: 2px solid var(--line-2);
}
.hero h1 { display: grid; line-height: .95; text-transform: uppercase; font-family: var(--pixel); font-weight: 400; }
.hero .h1-top { font-size: clamp(26px, 4vw, 40px); color: var(--text); letter-spacing: .12em; }
.hero .h1-main {
  font-size: clamp(54px, 10.5vw, 120px); letter-spacing: .01em;
  background: linear-gradient(180deg, #FFE36B 0%, var(--yellow) 30%, var(--orange) 72%, #F26B2E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 var(--step));
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.ip-btn-xl { min-height: 72px; }
/* IP + Discord ocupam exatamente a largura do botão da loja embaixo */
.hero .hero-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; width: min(100%, 560px); }
.hero .hero-cta .ip-btn { width: 100%; }
.hero .hero-cta .ip-text { flex: 1; }
.hero-cta .btn-discord { min-height: 72px; margin-bottom: 6px; padding: 0 26px; font-size: 17px; }
.hero-cta .btn-discord svg { width: 22px; height: 22px; }
.ip-btn-xl .ip-value { font-size: clamp(16px, 2.2vw, 22px); }
.hero-shop {
  display: flex; align-items: center; gap: 18px; width: min(100%, 560px); padding: 14px 18px 14px 14px;
  color: var(--text); text-decoration: none;
  background: rgba(26, 20, 17, .82); border: 2px solid var(--line-2); box-shadow: 0 4px 0 #0A0706;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s var(--ease);
}
.hero-shop:hover { color: var(--text); border-color: var(--yellow); transform: translateY(-2px); box-shadow: 0 6px 0 #0A0706; }
.hero-shop:active { transform: translateY(4px); box-shadow: none; }
.hs-icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; color: #1A0E06;
  background: linear-gradient(180deg, #FFE36B, var(--yellow) 40%, var(--orange));
  box-shadow: inset 0 3px 0 rgba(255,255,255,.5), inset 0 -4px 0 rgba(122,46,16,.35), 0 4px 0 var(--step);
  transition: transform .25s var(--ease);
}
.hs-icon svg { width: 26px; height: 26px; }
.hero-shop:hover .hs-icon { transform: translateY(-2px) rotate(-6deg); }
.hs-text { display: grid; gap: 2px; min-width: 0; }
.hs-text b { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--yellow); }
.hs-text span { font-size: 14px; color: var(--muted); }
.hs-go { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex: none; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--text-2); }
.hs-go svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.hero-shop:hover .hs-go { color: var(--yellow); }
.hero-shop:hover .hs-go svg { transform: translateX(4px); }
@media (max-width: 520px) { .hs-go span, .hs-go { font-size: 0; gap: 0; } .hs-go svg { width: 22px; height: 22px; } .hs-icon { width: 44px; height: 44px; } }

.hero-art { position: relative; justify-self: center; width: min(100%, 350px); transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .4s var(--ease); }
.emblem { width: 100%; animation: float 6s ease-in-out infinite; }
.emblem-shadow {
  display: block; width: 62%; height: 18px; margin: 18px auto 0;
  background: #0A0706; opacity: .55;
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  animation: shadow 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes shadow { 0%, 100% { transform: scaleX(1); opacity: .55; } 50% { transform: scaleX(.86); opacity: .38; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 28px; }
  .hero-art { grid-row: 1; width: min(36vw, 150px); }
  .emblem-shadow { margin-top: 10px; height: 12px; }
}
@media (max-width: 520px) {
  .hero-cta, .hero .hero-cta { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-cta .ip-btn, .hero-cta .btn { width: 100%; }
}

/* ---------- como entrar ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 32px; right: 32px; top: 31px; height: 2px; z-index: -1;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 18px);
}
.step { display: grid; gap: 10px; align-content: start; justify-items: start; }
.step-n {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px;
  font-family: var(--display); font-weight: 700; font-size: 28px; color: #1A0E06;
  background: linear-gradient(180deg, #FFE36B, var(--yellow) 40%, var(--orange));
  box-shadow: inset 0 3px 0 rgba(255,255,255,.5), inset 0 -4px 0 rgba(122,46,16,.35), 0 5px 0 var(--step);
}
.step h3 { font-size: 19px; }
.step p { color: var(--muted); }
.step p strong { color: var(--text-2); font-weight: 700; }
.cmd-ip { padding: 0; cursor: pointer; transition: border-color .15s; }
.cmd-ip:hover { border-color: var(--yellow); }
.cmd-ip .cmd-icon { display: grid; place-items: center; width: 40px; background: var(--plate-2); border-left: 2px solid var(--line-2); color: var(--muted); }
.cmd-ip .cmd-icon svg { width: 16px; height: 16px; }
.cmd-ip.is-copied { border-color: var(--money); }
.cmd-ip.is-copied .cmd-icon { color: var(--money); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 31px; right: auto; top: 32px; bottom: 32px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 10px, transparent 10px 18px); }
  .step { grid-template-columns: 64px 1fr; column-gap: 18px; }
  .step-n { grid-row: span 3; margin: 0; }
  .step > :not(.step-n) { grid-column: 2; }
}

/* ---------- o que tem ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { display: grid; gap: 10px; align-content: start; --accent: var(--yellow); }
.feature::before { content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.feature:hover::before, .feature:focus-visible::before { transform: scaleX(1); }
.feature h3 { font-size: 20px; margin-top: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature p strong { color: var(--text-2); }
.feature code { font-family: var(--display); font-weight: 700; font-size: .9em; color: var(--yellow); }
.feature .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--accent); }
.feature .more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.feature:hover .more svg { transform: translateX(4px); }
.feature .px { transition: transform .25s var(--ease); }
.feature:hover .px { transform: translateY(-3px) rotate(-6deg); }
.feature-hero { grid-column: span 2; grid-row: span 2; align-content: end; padding: clamp(24px, 3vw, 36px); min-height: 320px; overflow: hidden; isolation: isolate; }
.feature-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background:
    radial-gradient(ellipse 80% 70% at 85% 0%, #3D1C0F 0 22%, #2B160E 22% 44%, #1F130E 44% 66%, transparent 66%);
}
.feature-hero .px { width: 72px; height: 72px; }
.feature-hero h3 { font-size: clamp(26px, 3vw, 34px); }
.feature-hero p { font-size: 17px; color: var(--text-2); max-width: 46ch; }
.elo-row { display: flex; gap: 6px; height: 40px; align-items: center; }
.elo-row img { width: 32px; height: 32px; image-rendering: pixelated; transition: transform .25s var(--ease); }
.feature-elo:hover .elo-row img { transform: translateY(-3px); }
.feature-elo:hover .elo-row img:nth-child(2) { transition-delay: .04s; }
.feature-elo:hover .elo-row img:nth-child(3) { transition-delay: .08s; }
.feature-elo:hover .elo-row img:nth-child(4) { transition-delay: .12s; }
.feature-wide { grid-column: span 2; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .feature-hero, .feature-wide { grid-column: auto; grid-row: auto; min-height: 0; } }

/* ---------- novidades ---------- */
.news-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.news-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.news { list-style: none; border-top: 2px solid var(--line); }
.news li { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 20px 0; border-bottom: 2px solid var(--line); }
.news time { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--orange); padding-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
.news h3 { font-size: 17px; margin-bottom: 4px; }
.news p { color: var(--muted); font-size: 15px; }
.news code { font-family: var(--display); font-weight: 700; font-size: .9em; color: var(--yellow); }
@media (max-width: 820px) { .news-grid { grid-template-columns: 1fr; gap: 0; } .news-grid .section-head { position: static; } .news li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- chamada final ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-top: 2px solid var(--line); }
.cta-band .sunset { --sun-x: 50%; }
.cta-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(24px, 5vw, 64px); padding-block: clamp(56px, 8vw, 96px) clamp(110px, 12vw, 140px); max-width: 920px; }
.cta-inner img { width: clamp(110px, 16vw, 170px); animation: float 6s ease-in-out infinite; }
.cta-inner > div { display: grid; gap: 14px; justify-items: start; }
.cta-inner h2 { font-size: clamp(30px, 5vw, 52px); }
.cta-inner p { color: var(--text-2); font-size: 18px; }
.cta-inner .hero-cta { margin-top: 8px; }
@media (max-width: 640px) { .cta-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; } .cta-inner > div { justify-items: center; } }

/* ---------- faixa divisora entre seções ---------- */
.divider { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.divider::before { content: ""; display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.divider + .section { padding-top: clamp(56px, 8vw, 104px); }

/* ---------- Discord ---------- */
.dc-card { background: var(--plate); border: 2px solid var(--line); border-top: 4px solid #5865F2; }
.dc-head { display: flex; align-items: center; gap: 18px; padding: 22px 24px; flex-wrap: wrap; }
.dc-logo { display: grid; place-items: center; width: 56px; height: 56px; flex: none; background: #5865F2; color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 4px 0 #2B2F80; }
.dc-logo svg { width: 30px; height: 30px; }
.dc-info { display: grid; gap: 4px; min-width: 0; }
.dc-info h3 { font-size: 20px; }
.dc-status { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; }
.dc-head .btn { margin-left: auto; }
.dc-members { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 18px 24px 22px; border-top: 2px solid var(--line); }
.dc-members:empty { display: none; }
.dc-members li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.dc-ava { position: relative; width: 32px; height: 32px; flex: none; }
.dc-ava img { width: 32px; height: 32px; background: var(--plate-3); border: 2px solid var(--line-2); }
.dc-ava::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border: 3px solid var(--plate); background: var(--st, var(--money)); }
.dc-more { color: var(--muted); }
@media (max-width: 560px) { .dc-head .btn { margin-left: 0; width: 100%; } }
