/* Nex Core Editor - site (nexcore.nexblood.online) */
:root {
  --bg: #060912;
  --bg2: #0b1020;
  --card: rgba(20, 27, 46, .72);
  --card-solid: #121a2e;
  --line: rgba(130, 150, 200, .16);
  --line2: rgba(130, 150, 200, .28);
  --text: #e8ecf6;
  --muted: #98a2bd;
  --dim: #6b7591;
  --blue: #3b82f6;
  --blue2: #60a5fa;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 16px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --grad: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 55%, #22d3ee 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--blue2); text-decoration: none; }
a:hover { color: #93c5fd; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: Sora, Inter, "Segoe UI", sans-serif; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* fundo */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow::before, .bg-glow::after {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; filter: blur(140px); opacity: .22;
}
.bg-glow::before { background: #2563eb; top: -420px; left: -260px; animation: float 18s ease-in-out infinite alternate; }
.bg-glow::after { background: #7c3aed; top: 10%; right: -420px; animation: float 22s ease-in-out infinite alternate-reverse; }
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); opacity: .35;
}
@keyframes float { to { transform: translate(120px, 80px) scale(1.1); } }

/* navegacao */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(6, 9, 18, .7); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-family: Sora, Inter, sans-serif; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: #fff; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); color: var(--text); border-radius: 10px; width: 42px; height: 38px; font-size: 18px; cursor: pointer; }

/* botoes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer;
  padding: 11px 20px; border-radius: 12px; font: 600 15px/1 Inter, "Segoe UI", sans-serif; color: #fff; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--grad); box-shadow: 0 10px 30px -10px rgba(59, 130, 246, .7); background-size: 160% 160%; }
.btn-primary:hover { color: #fff; transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 14px 34px -10px rgba(139, 92, 246, .8); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn-danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .35); color: #fecaca; }
.btn-danger:hover { background: rgba(248, 113, 113, .2); color: #fff; }

/* hero */
.hero { padding: 88px 0 40px; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(59, 130, 246, .08); color: #bfdbfe; font-size: 13px; font-weight: 600; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 18px 0 18px; font-weight: 800; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--dim); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓ "; color: var(--green); }

/* janela do editor (ilustracao) */
.mock { position: relative; border-radius: 18px; border: 1px solid var(--line2); background: linear-gradient(180deg, #121a2f, #0c1222); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .02) inset; overflow: hidden; transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); }
.mock::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 220px at 70% -10%, rgba(96, 165, 250, .18), transparent); pointer-events: none; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 12px; color: var(--dim); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #334; display: inline-block; }
.mock-bar i:nth-child(1) { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar b { margin-left: 10px; font-weight: 500; }
.mock-body { display: grid; grid-template-columns: 170px 1fr; min-height: 330px; }
.mock-side { border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mock-side div { height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .04); display: flex; align-items: center; padding: 0 9px; font-size: 11.5px; color: var(--muted); gap: 7px; }
.mock-side div.on { background: rgba(59, 130, 246, .2); color: #dbeafe; }
.mock-side div em { width: 14px; height: 14px; border-radius: 4px; background: var(--grad); opacity: .8; flex: none; }
.mock-main { padding: 14px; display: grid; gap: 10px; align-content: start; }
.mock-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.mock-row span:last-child { height: 24px; border-radius: 7px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 9px; color: var(--text); }
.mock-3d { margin-top: 6px; height: 132px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 70%, rgba(139, 92, 246, .35), transparent 60%), linear-gradient(180deg, #0f1730, #0a0f1f); position: relative; overflow: hidden; }
.mock-3d::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px; border: 2px solid rgba(147, 197, 253, .7); border-radius: 14px; transform: rotateX(60deg) rotateZ(45deg); animation: spin 8s linear infinite; box-shadow: 0 0 30px rgba(96, 165, 250, .5); }
.mock-3d::after { content: "Prévia 3D · engine do jogo"; position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: var(--muted); }
@keyframes spin { to { transform: rotateX(60deg) rotateZ(405deg); } }

/* secoes */
section.block { padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--blue2); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 10px 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(10px); transition: .2s; }
.card:hover { border-color: var(--line2); transform: translateY(-2px); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(59, 130, 246, .22), rgba(139, 92, 246, .22)); border: 1px solid var(--line2); margin-bottom: 16px; color: #c7d2fe; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 24px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-weight: 700; font-size: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card-solid); }
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); }

/* planos */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 22px; }
.plan.hl { border-color: rgba(96, 165, 250, .6); background: linear-gradient(180deg, rgba(59, 130, 246, .16), rgba(20, 27, 46, .8)); box-shadow: 0 20px 60px -30px rgba(59, 130, 246, .8); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 18px; }
.plan .price { font-family: Sora, Inter, sans-serif; font-size: clamp(24px, 2.2vw, 31px); font-weight: 800; margin: 10px 0 0; letter-spacing: -.03em; white-space: nowrap; }
.plan .price small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.hero .wrap > *, .grid > *, .dash-grid > * { min-width: 0; }
.plan .per { color: var(--muted); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; font-size: 14.5px; color: #cbd5e1; flex: 1; }
.plan li::before { content: "✓"; color: var(--green); margin-right: 8px; font-weight: 700; }
.plans-note { text-align: center; color: var(--dim); font-size: 14px; margin-top: 22px; }
.trial-banner { margin: 0 auto 30px; max-width: 760px; display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .06); }
.trial-banner b { color: #a7f3d0; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--blue2); font-size: 22px; line-height: 1; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta { text-align: center; padding: 64px 30px; border-radius: 24px; border: 1px solid var(--line2); background: radial-gradient(700px 260px at 50% 0%, rgba(59, 130, 246, .25), transparent), var(--card-solid); }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.cta p { color: var(--muted); margin: 0 0 26px; font-size: 18px; }

footer { border-top: 1px solid var(--line); padding: 34px 0 44px; margin-top: 60px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* paginas de texto */
.page { padding: 60px 0; }
.page h1 { font-size: 40px; margin-bottom: 26px; }
.prose { max-width: 820px; white-space: pre-line; color: #cbd5e1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.release { margin-bottom: 18px; }
.release h3 { font-size: 20px; display: flex; gap: 12px; align-items: baseline; }
.release h3 small { font-size: 14px; color: var(--dim); font-weight: 500; font-family: Inter, sans-serif; }
.release .notes { white-space: pre-line; color: #cbd5e1; margin-top: 10px; }

/* formularios / conta */
.auth { max-width: 440px; margin: 50px auto; }
.tabs { display: flex; gap: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 5px; margin-bottom: 22px; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 10px; border-radius: 9px; font: 600 14.5px Inter, sans-serif; cursor: pointer; }
.tabs button.on { background: rgba(59, 130, 246, .2); color: #fff; }
label.field { display: block; margin-bottom: 14px; font-size: 14px; color: var(--muted); font-weight: 500; }
.field input, .field select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(6, 9, 18, .6); color: var(--text); font: 15px Inter, sans-serif; outline: none; transition: .15s; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 16px; }
.check input { margin-top: 4px; accent-color: var(--blue); }
.msg { padding: 12px 14px; border-radius: 11px; font-size: 14.5px; margin-bottom: 14px; border: 1px solid; }
.msg.err { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .35); color: #fecaca; }
.msg.ok { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .35); color: #a7f3d0; }
.msg.info { background: rgba(96, 165, 250, .08); border-color: rgba(96, 165, 250, .35); color: #bfdbfe; }
.link-btn { background: none; border: 0; color: var(--blue2); cursor: pointer; font: inherit; padding: 0; }

.dash { padding: 40px 0 20px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-head h1 { font-size: 30px; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 18px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lic { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 14px; background: rgba(6, 9, 18, .35); }
.lic-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.lic-top h3 { font-size: 17px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.b-ok { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.b-warn { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.b-bad { background: rgba(248, 113, 113, .14); color: #fca5a5; }
.b-info { background: rgba(96, 165, 250, .14); color: #93c5fd; }
.key { display: flex; gap: 8px; align-items: center; margin: 14px 0; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font: 600 15px/1.2 Consolas, "Cascadia Mono", monospace; letter-spacing: .03em; overflow-x: auto; }
.key span { flex: 1; white-space: nowrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14.5px; color: var(--muted); }
.kv b { color: var(--text); font-weight: 600; }
.machines { margin-top: 12px; font-size: 14px; }
.machine { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--dim); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px 6px; border-bottom: 1px solid var(--line); }

.modal { position: fixed; inset: 0; z-index: 100; background: rgba(2, 4, 10, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal-box { width: min(760px, 100%); max-height: 90vh; overflow: auto; background: var(--card-solid); border: 1px solid var(--line2); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.modal-box h2 { font-size: 22px; margin-bottom: 6px; }
.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.pick label { border: 1px solid var(--line2); border-radius: 12px; padding: 14px; cursor: pointer; transition: .15s; display: block; }
.pick input { display: none; }
.pick label:has(input:checked) { border-color: var(--blue); background: rgba(59, 130, 246, .12); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.pick b { display: block; }
.pick small { color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: rot .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes rot { to { transform: rotate(360deg); } }

.pulse { animation: pulse 1.6s ease-in-out 4; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, .25); } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links, .nav.open .nav-right { display: flex; }
  .nav.open .wrap { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .nav.open .nav-links { flex-direction: column; width: 100%; gap: 12px; order: 3; }
  .nav.open .nav-right { width: 100%; order: 4; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  section.block { padding: 64px 0; }
  .trial-banner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
