/* ============================================================
   CraftLauncher · site público
   Paleta original: violeta + ciano sobre fundo quase preto
   ============================================================ */

:root {
  --bg: #0b0b14;
  --bg-2: #10101c;
  --surface: #151524;
  --surface-2: #1b1b2e;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f3f2ff;
  --muted: #a09fb8;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --cyan: #22d3ee;
  --green: #34d399;
  --danger: #fb7185;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img, canvas { display: block; max-width: 100%; }
::selection { background: rgba(139, 92, 246, .4); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.fine a { color: var(--violet-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- fundo ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}
.bg-orb { position: fixed; z-index: -2; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .28; }
.bg-orb--one { width: 520px; height: 520px; background: var(--violet); top: -180px; left: -120px; }
.bg-orb--two { width: 460px; height: 460px; background: var(--cyan); top: 280px; right: -200px; opacity: .16; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 20, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand__name { font-weight: 800; font-size: 18px; letter-spacing: -.4px; }
.brand__name span { color: var(--violet-2); }
.brand__cube { width: 26px; height: 26px; position: relative; display: inline-block; transform: rotate(45deg); border-radius: 6px;
  background: linear-gradient(135deg, var(--violet), #6d28d9); box-shadow: 0 0 20px rgba(139,92,246,.45); }
.brand__cube i { position: absolute; background: rgba(255,255,255,.75); border-radius: 1px; }
.brand__cube i:nth-child(1) { width: 12px; height: 3px; top: 8px; left: 7px; }
.brand__cube i:nth-child(2) { width: 3px; height: 12px; top: 7px; left: 12px; }
.brand__cube i:nth-child(3) { width: 4px; height: 4px; top: 11px; left: 11px; background: var(--cyan); }
.brand__cube--sm { width: 20px; height: 20px; border-radius: 5px; }
.brand__cube--sm i:nth-child(1) { width: 9px; top: 6px; left: 5px; }
.brand__cube--sm i:nth-child(2) { height: 9px; top: 5px; left: 9px; }
.brand__cube--sm i:nth-child(3) { top: 8px; left: 8px; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; color: var(--muted); border-radius: 8px; font-size: 14px; transition: .2s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 11px 18px;
  font-weight: 650; font-size: 14px; line-height: 1.2; transition: transform .15s, filter .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--sm { padding: 8px 13px; font-size: 13px; }
.btn--lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--violet), #6d28d9); box-shadow: 0 8px 26px rgba(109,40,217,.35); }
.btn--primary:hover { filter: brightness(1.1); }
.btn--ghost { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255,255,255,.09); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase;
  letter-spacing: 1.8px; font-size: 11px; font-weight: 750; color: var(--violet-2); margin-bottom: 14px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.14); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 88px 0 92px; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -2.2px; margin: 0 0 20px; font-weight: 850; }
.hero h1 span { background: linear-gradient(100deg, var(--violet-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 0 30px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; gap: 38px; margin-top: 44px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 25px; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* mockup */
.hero__visual { position: relative; }
.mock {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong);
  background: var(--surface); box-shadow: var(--shadow); transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  transition: transform .4s ease;
}
.hero__visual:hover .mock { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.mock__bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #0e0e1a; border-bottom: 1px solid var(--line); }
.mock__dot { width: 8px; height: 8px; border-radius: 50%; background: #3a3a52; }
.mock__dot:first-child { background: #fb7185; }
.mock__title { margin-left: auto; font-size: 11px; color: var(--muted); }
.mock__body { display: grid; grid-template-columns: 62px 1fr; min-height: 340px; }
.mock__side { background: #10101c; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; }
.mock__logo { color: var(--violet-2); font-size: 20px; }
.mock__nav { color: #5a5a76; font-size: 15px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.mock__nav.is-on { color: var(--text); background: rgba(139,92,246,.2); }
.mock__avatar { margin-top: auto; width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #00aaaa, #3f3f92); border: 1px solid var(--line-strong); }
.mock__main { padding: 26px 24px; }
.mock__main small { color: var(--muted); font-size: 12px; }
.mock__main h3 { margin: 2px 0 18px; font-size: 22px; }
.mock__card { border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 16px; }
.mock__card label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.mock__select { display: flex; justify-content: space-between; background: #10101c; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 12px; }
.mock__row { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 12px; color: var(--muted); }
.mock__skin { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg,#c68c53 50%,#00aaaa 50%); }
.mock__play { text-align: center; padding: 12px; border-radius: 9px; font-weight: 800; letter-spacing: 1px; color: #fff; background: linear-gradient(135deg, var(--violet), #6d28d9); }
.float-chip {
  position: absolute; padding: 8px 13px; border-radius: 10px; font-size: 12px; font-weight: 650;
  background: rgba(21,21,36,.92); border: 1px solid var(--line-strong); box-shadow: var(--shadow); backdrop-filter: blur(8px);
  animation: float 5s ease-in-out infinite;
}
.float-chip--one { top: 28px; right: -14px; color: var(--green); }
.float-chip--two { bottom: 34px; left: -22px; color: var(--cyan); animation-delay: -2.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- seções ---------- */
.section { padding: 92px 0; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1.2px; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head--row { max-width: none; text-align: left; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head--row h2 { margin-bottom: 4px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: .2s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.4); }
.feature__ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: rgba(139,92,246,.14); margin-bottom: 16px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* download */
.download-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.download-grid h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.3px; margin: 0 0 14px; }
.steps { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: center; }
.steps li > span { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(139,92,246,.16); color: var(--violet-2); font-weight: 800; }
.steps strong { display: block; font-size: 14px; }
.steps small { color: var(--muted); font-size: 12.5px; }
.download-card { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.download-card__top { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.download-card__top strong { display: block; }
.download-card__top small { color: var(--muted); }
.download-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 20px 0; }
.download-card__meta span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.download-card__meta strong { font-size: 14px; }
.download-card__code { background: #0d0d18; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px; margin-bottom: 16px; }
.download-card__code small { display: block; color: var(--muted); font-size: 11px; }
.download-card__code code { font-size: 12px; color: var(--cyan); }

/* skins */
.gallery-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 22px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; min-width: 260px; flex: 1; max-width: 360px; }
.search span { color: var(--muted); font-size: 20px; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); padding: 10px 0; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; transition: .2s; }
.chip:hover { color: var(--text); }
.chip.is-active { color: #fff; background: rgba(139,92,246,.22); border-color: rgba(139,92,246,.5); }
.skin-layout { display: grid; grid-template-columns: 1fr 280px; gap: 22px; align-items: start; }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; min-height: 300px; }
.skin-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px 12px; text-align: center; transition: .2s; cursor: pointer; overflow: hidden; }
.skin-card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,.5); }
.skin-card.is-selected { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet), 0 12px 30px rgba(109,40,217,.2); }
.skin-card canvas { width: 84px; height: 108px; margin: 0 auto 8px; image-rendering: pixelated; }
.skin-card strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skin-card small { color: var(--muted); font-size: 10.5px; }
.skin-card__tag { position: absolute; top: 8px; right: 8px; font-size: 9px; letter-spacing: .6px; color: var(--cyan); text-transform: uppercase; }
.skeleton { height: 188px; border-radius: 14px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.preview-panel { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.preview-panel__head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.pill { background: rgba(34,211,238,.13); color: var(--cyan); border-radius: 999px; padding: 3px 9px; font-size: 10px; }
.preview-stage { height: 220px; display: grid; place-items: center; margin: 14px 0 6px; border-radius: 12px; background: radial-gradient(circle at 50% 70%, rgba(139,92,246,.18), transparent 65%), #0e0e1a; border: 1px solid var(--line); }
.preview-stage canvas { width: 168px; height: 210px; image-rendering: pixelated; }
.preview-panel h3 { margin: 10px 0 0; font-size: 17px; }
.preview-panel .muted { font-size: 12px; margin: 0 0 16px; }
.preview-panel__actions { display: grid; gap: 8px; }
.preview-panel .fine { margin: 12px 0 0; }

/* notícias */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.news-card__tag { display: inline-block; font-size: 10px; letter-spacing: 1px; color: var(--violet-2); background: rgba(139,92,246,.14); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }
.news-card h3 { margin: 0 0 8px; font-size: 16px; }
.news-card p { color: var(--muted); font-size: 13.5px; margin: 0; }
.news-card time { display: block; margin-top: 16px; color: #6f6e88; font-size: 11px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.faq-grid h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1.2px; margin: 0 0 12px; }
.faq-list { display: grid; gap: 10px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { padding: 16px 0; cursor: pointer; font-weight: 650; font-size: 14px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--violet-2); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.faq code { background: #0d0d18; padding: 1px 5px; border-radius: 4px; color: var(--cyan); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 34px 0; background: #08080f; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-size: 12.5px; }
.footer .fine { width: 100%; text-align: center; border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5,5,12,.78); backdrop-filter: blur(6px); }
.modal__box {
  position: relative; width: min(100%, 440px); max-height: min(90vh, 760px); overflow-y: auto;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
  animation: pop .2s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal__close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; }
.modal__box h2 { margin: 0 0 18px; font-size: 22px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 9px 14px; font-size: 13.5px; font-weight: 650; }
.tab.is-active { color: var(--text); border-color: var(--violet); }
.panel { display: none; }
.panel.is-active { display: block; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; background: #0e0e1a; border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 9px; padding: 11px 12px; outline: 0; transition: .2s;
}
.field input:focus, .field select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.panel .btn--block { margin-top: 12px; }
.notice { border-radius: 10px; padding: 14px; margin-bottom: 16px; font-size: 13px; }
.notice--ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #bbf7d0; }
.notice p { margin: 4px 0 0; color: var(--muted); }
.token-box { display: flex; gap: 8px; align-items: center; background: #0d0d18; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.token-box code { flex: 1; font-size: 11.5px; color: var(--cyan); word-break: break-all; }
.token-box--inline { margin: 4px 0 0; }
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.profile-head canvas { width: 64px; height: 80px; image-rendering: pixelated; border-radius: 10px; background: #0e0e1a; border: 1px solid var(--line); }
.profile-head strong { font-size: 18px; display: block; }
.profile-head small { color: var(--muted); font-size: 11px; }
.profile-skin { display: flex; justify-content: space-between; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin-bottom: 16px; font-size: 13px; }
.profile-skin span { color: var(--muted); }
.modal__error { margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.3); color: #fecdd3; font-size: 12.5px; }
.drop { display: grid; place-items: center; gap: 4px; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 26px; margin-bottom: 14px; text-align: center; cursor: pointer; transition: .2s; }
.drop:hover, .drop.is-over { border-color: var(--violet); background: rgba(139,92,246,.08); }
.drop input { width: 100%; font-size: 11px; color: var(--muted); }
.drop span { font-size: 13px; }
.drop small { color: var(--muted); font-size: 11px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 18px; font-size: 13px; box-shadow: var(--shadow); animation: pop .2s ease-out; }
.toast[hidden] { display: none; }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero__visual { max-width: 560px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .skin-layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; max-width: 340px; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 20px; background: #10101c; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .header-inner { gap: 10px; }
  .section { padding: 64px 0; }
  .hero__stats { gap: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-head--row { align-items: start; }
  .skin-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
  .gallery-tools { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
}
