:root {
  --bg: #0b0b0f;
  --panel: #141419;
  --panel-2: #1b1b22;
  --line: #26262f;
  --text: #e9e9f0;
  --muted: #8a8a99;
  --accent: #8a5cff;
  --accent-2: #e04cff;
  --grad: linear-gradient(90deg, var(--accent), var(--accent-2));
  --ok: #3ddc84;
  --danger: #ff4d6a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10; height: 62px;
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
  background: rgba(11,11,15,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 2px; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: 3px; font-weight: 600; }
.links { display: flex; gap: 20px; flex: 1; }
.links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.seg button { padding: 3px 10px; border-radius: 5px; color: var(--muted); font-weight: 700; font-size: 12px; }
.seg button.on { background: var(--grad); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 9px;
  background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 10px 30px -12px var(--accent-2);
  transition: filter .15s, transform .1s; text-align: left;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.big { padding: 14px 22px; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn b, .btn small { display: block; }
.btn small { font-weight: 500; opacity: .85; font-size: 12px; }
.btn.ghost { background: #5865f2; box-shadow: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 60px; border-bottom: 1px solid var(--line); }
.hero-bg {
  position: absolute; inset: 0; background: url("assets/hero.webp") center / cover no-repeat; opacity: .35; filter: saturate(1.1);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 10%, rgba(138,92,255,.35), transparent 50%), radial-gradient(circle at 10% 90%, rgba(224,76,255,.18), transparent 45%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 20px; background: rgba(20,20,25,.8); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.pill.muted { color: var(--muted); }
.pill b { color: var(--text); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.live .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1; font-weight: 900; letter-spacing: 4px; }
h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #c8c8d4; font-size: 18px; margin: 18px 0 26px; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { color: var(--muted); font-size: 13px; margin-top: 14px; }
.window {
  border-radius: 12px; overflow: hidden; border: 1px solid #2f2f3a; background: var(--panel);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(138,92,255,.15), 0 0 60px -20px rgba(138,92,255,.5);
}
.hero-shot .window { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }

/* Sections */
.section { padding: 80px 20px 0; }
.section h2 { font-size: 34px; font-weight: 800; letter-spacing: .5px; }
.sub { color: var(--muted); margin: 6px 0 28px; max-width: 680px; }
.grid { display: grid; gap: 14px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #3a3a48; transform: translateY(-2px); }
.card .ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: rgba(138,92,255,.15); color: var(--accent); font-size: 18px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 4px; }
.card p { color: var(--muted); font-size: 14px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 16px; }
.tabs button { padding: 7px 14px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; }
.tabs button.on { background: var(--grad); color: #fff; border-color: transparent; }
.window.big img { width: 100%; }
.caption { color: var(--muted); text-align: center; margin-top: 12px; font-size: 14px; }

.mods { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.mod-cat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mod-cat h3 { padding: 11px 16px; background: var(--panel-2); font-size: 15px; position: relative; }
.mod-cat h3::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); }
.mod-cat ul { list-style: none; padding: 8px 0; }
.mod-cat li { padding: 6px 16px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.mod-cat li span { color: var(--muted); font-size: 12px; text-align: right; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 1px 6px; border-radius: 4px; background: rgba(255,77,106,.15); color: var(--danger); border: 1px solid rgba(255,77,106,.5); white-space: nowrap; align-self: center; }
.tag.ok { background: rgba(138,92,255,.15); color: var(--accent); border-color: rgba(138,92,255,.5); }

.servers { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.server { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.server .logo { height: 96px; display: grid; place-items: center; padding: 14px; background: radial-gradient(circle at 50% 120%, rgba(138,92,255,.25), transparent 70%), var(--panel-2); }
.server .logo img { max-height: 66px; object-fit: contain; }
.server .info { padding: 10px 14px; }
.server b { display: block; }
.server small { color: var(--muted); }
.server .ip { cursor: pointer; }
.server .ip:hover { color: var(--accent); }

.news { display: grid; gap: 12px; max-width: 820px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.post .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 7px; border-radius: 4px; background: var(--grad); color: #fff; }
.badge.log { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); }
.post .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.post p { white-space: pre-wrap; color: #c8c8d4; margin-top: 8px; max-height: 220px; overflow: hidden; position: relative; }
.post.open p { max-height: none; }
.post .more { color: var(--accent); font-weight: 600; font-size: 13px; margin-top: 6px; }
.empty { color: var(--muted); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: 8px; }

.final { text-align: center; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final .aura { width: 64px; filter: drop-shadow(0 10px 30px rgba(255,43,74,.4)); }

.footer { border-top: 1px solid var(--line); background: var(--panel); padding: 28px 0; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 30px; }
.foot-brand small { display: block; color: var(--muted); font-size: 12px; }
.foot-links { display: flex; gap: 18px; color: var(--muted); font-weight: 600; font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.legal { width: 100%; color: #5e5e66; font-size: 12px; }

/* Download dialog */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.65); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.dialog { width: min(480px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.dialog h3 { font-size: 20px; }
.dialog p { color: var(--muted); margin: 6px 0 14px; }
.bar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
#dl-bar { height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.steps { margin: 16px 0 0 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.steps b { color: var(--text); }
.dialog-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.btn.ghost.small { background: var(--panel-2); border: 1px solid var(--line); }

/* Account */
.account-btn {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line); font-weight: 700; font-size: 13px;
}
.account-btn:hover { border-color: var(--accent); }
.account-btn img { width: 22px; height: 22px; border-radius: 4px; image-rendering: pixelated; }
.dialog.wide { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.dialog h4 { margin: 18px 0 8px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.acc-head { display: flex; gap: 18px; align-items: center; }
.acc-head img { width: 90px; height: 180px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 10px 20px rgba(138,92,255,.35)); }
.acc-head h3 { font-size: 26px; }
.mono { font-family: Consolas, monospace; font-size: 12px; color: var(--muted); word-break: break-all; }
#acc-meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.acc-capes { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-cape { width: 74px; text-align: center; font-size: 11px; color: var(--muted); }
.acc-cape div {
  width: 40px; height: 64px; margin: 0 auto 4px; border-radius: 3px; background-repeat: no-repeat;
  background-size: 256px 128px; background-position: -4px -4px; image-rendering: pixelated; border: 2px solid transparent;
}
.acc-cape.on div { border-color: var(--accent); }
.acc-cape.on { color: var(--text); }
.acc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-tags span { padding: 3px 10px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; margin: 14px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; }
.check b, .check small { display: block; }
.check small { color: var(--muted); font-size: 12px; }
.steps li b { color: var(--text); }

@media (max-width: 900px) {
  .links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shot .window { transform: none; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav { padding: 0 16px; gap: 10px; }
  .brand small { display: none; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 56px 16px 0; }
  .wrap { padding: 0 16px; }
  .btn.big { width: 100%; }
}
