:root {
  --bg: #0b0f14;
  --bg2: #0f151d;
  --panel: #131b25;
  --line: #233040;
  --fg: #e8eef6;
  --dim: #8b9aab;
  --accent: #5ad1a0;
  --accent2: #7aa2ff;
  --warn: #f0b429;
  --bad: #ff6b6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 20% -10%, #123027 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 0%, #142238 0%, transparent 55%), var(--bg);
  color: var(--fg);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent2); text-decoration: none; }
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  border-right: 1px solid var(--line);
  padding: 22px 18px;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 26px;
  background: linear-gradient(180deg, rgba(19,27,37,.85), rgba(11,15,20,.4));
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-size: 18px; letter-spacing: .2px; }
.brand img { width: 30px; height: 30px; image-rendering: pixelated; }
.brand b { color: var(--accent); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a {
  color: var(--dim); padding: 9px 11px; border-radius: 9px; font-size: 14px;
}
.side nav a:hover { color: var(--fg); background: #141d27; }
.side nav a.active { color: var(--fg); background: #17222e; box-shadow: inset 2px 0 0 var(--accent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.pill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
main { padding: 0 44px 60px; max-width: 1180px; }

.hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 30px; padding: 58px 0 26px; align-items: center; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .18em; font-weight: 600; }
h1 { font-size: 46px; line-height: 1.08; margin: 12px 0 16px; letter-spacing: -.02em; }
h1 span { color: var(--accent); }
.lede { color: var(--dim); font-size: 16px; max-width: 620px; }
.lede b { color: var(--fg); }
.launch { margin-top: 26px; display: flex; flex-direction: column; gap: 9px; max-width: 520px; }
.launch label { font-size: 11px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.launch-row { display: flex; gap: 10px; }
select, input {
  background: var(--panel); color: var(--fg); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; font: inherit;
}
select:focus, input:focus { outline: none; border-color: var(--accent2); }
#version { flex: 1; min-width: 180px; }
.btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--fg);
  border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { border-color: #3a4a5e; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06231a; }
.btn.primary:hover { filter: brightness(1.06); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.dim { color: var(--dim); }
.small { font-size: 12px; }

.hero-art { position: relative; height: 300px; display: grid; place-items: center; padding-bottom: 30px; }
.hero-art .glow { position: absolute; inset: 10%; background: radial-gradient(circle, rgba(90,209,160,.22), transparent 65%); filter: blur(18px); }
.cube { width: 172px; height: 172px; animation: float 6s ease-in-out infinite; position: relative; filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)); }
@keyframes float { 0%,100% { transform: translateY(-6px) rotate(-2deg); } 50% { transform: translateY(10px) rotate(2deg); } }
.hero-art .stat {
  position: absolute; left: 0; bottom: 0; background: rgba(19,27,37,.85);
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; display: flex; gap: 8px; align-items: baseline;
}
.hero-art .stat b { font-size: 19px; color: var(--accent); }
.hero-art .stat span { font-size: 11px; color: var(--dim); }
.hero-art .stat.second { left: auto; right: 0; bottom: 0; }
.hero-art .stat.second b { color: var(--accent2); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 18px 0 44px; }
.card { background: linear-gradient(180deg, rgba(23,34,46,.75), rgba(19,27,37,.55)); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.card h3 { margin: 0 0 6px; font-size: 14px; }
.card p { margin: 0; color: var(--dim); font-size: 13px; }
.card code, pre code, td code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #b9e6d3; }

.section { padding: 34px 0 8px; border-top: 1px solid var(--line); }
.section h2 { font-size: 22px; margin: 0 0 10px; letter-spacing: -.01em; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 14px; }
.mod { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.mod h4 { margin: 0; font-size: 14px; }
.mod .meta { color: var(--dim); font-size: 11px; }
.mod .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mod a { font-size: 12px; margin-top: 2px; }
.pill.native { color: var(--accent); border-color: #2a5a45; }
.pill.port { color: var(--warn); border-color: #5a4a2a; }
.pill.content { color: var(--accent2); border-color: #2a3f5a; }
.pill.blocked { color: var(--bad); border-color: #5a2a2a; }

.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.note { background: rgba(19,27,37,.7); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.note h3 { margin: 0 0 8px; font-size: 14px; }
.note p { margin: 0 0 8px; color: var(--dim); font-size: 13px; }
.note p b { color: var(--fg); }
.list { margin: 0; padding-left: 18px; color: var(--dim); font-size: 13px; }
.list li { margin: 4px 0; }
pre { background: #0a0f15; border: 1px solid var(--line); border-radius: 12px; padding: 16px; overflow: auto; }
pre .k { color: #c792ea; } pre .s { color: #b9e6d3; } pre .n { color: #f0b429; }

.table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 10px; }
.tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #1b2531; font-size: 13px; }
.tr:last-child { border-bottom: 0; }
.tr span:first-child { color: var(--dim); }
.tr:first-child { background: #101821; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.metric { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #1d2531; }
.metric:last-of-type { border-bottom: 0; }
.metric b { font-size: 18px; color: var(--accent); min-width: 62px; }
.metric span { color: var(--dim); font-size: 12px; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 34px 0 0; color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); margin-top: 30px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side-foot { margin: 0; flex-direction: row; align-items: center; }
  main { padding: 0 20px 40px; }
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-art { display: none; }
  h1 { font-size: 34px; }
  .split { grid-template-columns: 1fr; }
}

.upload {
  border: 1px dashed #33404f; border-radius: 12px; padding: 18px 14px; text-align: center;
  cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, background .15s;
}
.upload:hover, .upload.over { border-color: var(--accent); background: rgba(90,209,160,.04); }
.upload b { font-size: 13px; }
.upload span { font-size: 11px; color: var(--dim); }
.upload-status { margin-top: 8px; min-height: 18px; }
.upload-status.ok { color: var(--accent); }
.upload-status.bad { color: var(--bad); }
