:root {
  --bg: #080d16;
  --bg-soft: #0d1524;
  --panel: rgba(15, 24, 40, 0.78);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #e6edf7;
  --muted: #8fa0b7;
  --faint: #5f718a;
  --sky: #7dd3fc;
  --mint: #2dd4bf;
  --amber: #fbbf24;
  --danger: #fb7185;
  --radius: 16px;
  --font: "Inter", "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(45, 212, 191, 0.10), transparent 60%),
    radial-gradient(800px 500px at 10% 0%, rgba(125, 211, 252, 0.08), transparent 55%),
    var(--bg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code, pre, .mono { font-family: var(--mono); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  backdrop-filter: blur(18px);
  background: rgba(8, 13, 22, 0.66);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #06121d;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  font-family: var(--mono);
  font-weight: 900;
  font-size: 15px;
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 13.5px; color: var(--muted); }
.nav-links a:hover, .nav-links .link-button:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.03);
}
.inline-form { display: inline; }
.link-button { border: 0; background: none; color: var(--muted); padding: 0; }

main { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  min-height: 620px;
  padding: 76px 0 66px;
}
.hero-glow {
  position: absolute;
  inset: 80px 20% auto 35%;
  height: 360px;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.16), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.1; }
.hero h1 { margin-top: 20px; font-size: clamp(46px, 6vw, 76px); font-weight: 700; }
h1 em { color: var(--sky); font-style: normal; }
.lead { max-width: 560px; margin: 24px 0 0; color: var(--muted); font-size: 16.5px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 18px; margin-top: 30px; color: var(--faint); font-size: 12px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 650;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  background: linear-gradient(135deg, var(--sky), var(--mint));
  color: #06121d;
  box-shadow: 0 14px 40px rgba(45, 212, 191, 0.14);
}
.button.ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,0.025); }
.button.full { width: 100%; }
.button:disabled { opacity: .55; cursor: not-allowed; }

.hero-panel { position: relative; z-index: 1; }
.panel-window {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 29, 48, 0.94), rgba(10, 17, 30, 0.94));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}
.window-dot { width: 7px; height: 7px; border-radius: 50%; }
.window-dot.red { background: #f87171; }
.window-dot.amber { background: #fbbf24; }
.window-dot.green { background: #34d399; }
.window-title { margin-left: 6px; }
.window-terminal { margin: 0; padding: 26px 18px 30px; min-height: 150px; white-space: pre-wrap; word-break: break-all; color: var(--sky); font-size: 13px; }
.window-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 5px 9px;
  font-size: 11px;
  white-space: nowrap;
}
.mini-button:hover { background: rgba(255,255,255,0.08); }
.mini-button.danger { color: var(--danger); border-color: rgba(251, 113, 133, 0.25); }
.floating-card {
  position: absolute;
  right: -18px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e1929;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: rotate(-2deg);
}
.floating-icon { color: var(--amber); }
.floating-card strong { display: block; font-size: 12px; }
.floating-card small { display: block; color: var(--muted); font-size: 10.5px; }

.section { padding: 78px 0; border-top: 1px solid rgba(148, 163, 184, 0.08); }
.section-head { max-width: 620px; margin-bottom: 34px; }
.section-head h2, .page-head h1 { margin-top: 14px; font-size: clamp(32px, 4vw, 48px); }
.section-head p, .page-head p { color: var(--muted); margin: 16px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 31, 50, 0.55), rgba(11, 18, 31, 0.55));
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover { border-color: rgba(125, 211, 252, 0.3); transform: translateY(-2px); }
.feature-num { color: var(--faint); font-family: var(--mono); font-size: 10px; }
.feature-card h3 { margin-top: 22px; font-size: 17px; }
.feature-card p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }

.install-section { padding-top: 48px; }
.install-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(500px 220px at 0% 0%, rgba(125, 211, 252, 0.09), transparent 60%),
    rgba(14, 23, 39, 0.8);
}
.install-card h2 { margin-top: 14px; font-size: clamp(30px, 4vw, 44px); }
.install-card p { color: var(--muted); }
.command-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #08111e;
  font-size: 12px;
  overflow: hidden;
}
.command-box code { flex: 1; color: var(--sky); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); padding-left: 24px; }
.steps li { display: flex; gap: 14px; padding: 0 0 22px; }
.steps li:last-child { padding-bottom: 0; }
.steps li > span { color: var(--mint); font-family: var(--mono); font-size: 11px; padding-top: 3px; }
.steps strong { font-size: 13px; }
.steps p { margin: 3px 0 0; font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 10px; }
.fineprint { margin-top: 16px; color: var(--faint); font-size: 11px; }

.row-head { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; }
.text-link { color: var(--sky); font-size: 12.5px; }
.release-list { border-top: 1px solid var(--line); }
.release-row {
  display: grid;
  grid-template-columns: 130px 190px 1fr 30px;
  gap: 18px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .15s ease;
}
.release-row:hover { background: rgba(255,255,255,0.025); }
.release-row.static { grid-template-columns: 130px 190px 1fr auto; }
.release-version { font-family: var(--mono); font-size: 12px; color: var(--sky); }
.release-meta { color: var(--faint); font-size: 11px; font-family: var(--mono); }
.release-note { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release-arrow { color: var(--muted); text-align: right; }
.dot { margin: 0 7px; color: var(--faint); }

.page-head { padding-bottom: 36px; }
.page-head h1 { max-width: 680px; }
.empty-state { padding: 54px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state.compact { padding: 28px; }
.empty-mark { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 12px; background: var(--sky); color: #06121d; font-family: var(--mono); font-weight: 900; }
.empty-state h3 { font-size: 18px; }
.empty-state p { color: var(--muted); font-size: 13px; }

.auth-shell { display: grid; place-items: center; min-height: 70vh; padding: 70px 0; }
.auth-card { width: min(430px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14, 23, 39, 0.9); box-shadow: 0 30px 80px rgba(0,0,0,0.28); }
.auth-card h1 { margin-top: 12px; font-size: 30px; }
.auth-card > .muted { margin: 10px 0 22px; font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #08111e;
  color: var(--text);
  padding: 10px 11px;
  outline: none;
  font-size: 13px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(125, 211, 252, 0.55); }
.field textarea { resize: vertical; min-height: 76px; }
.full { width: 100%; }
.alert { margin: 0 0 16px; padding: 10px 13px; border-radius: 9px; font-size: 12.5px; border: 1px solid; }
.alert.error { color: #fecdd3; background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.3); }
.alert.ok { color: #a7f3d0; background: rgba(45, 212, 191, 0.08); border-color: rgba(45, 212, 191, 0.25); }
.error-card { text-align: center; }
.error-code { color: var(--mint); font-family: var(--mono); font-size: 12px; }

.admin-shell { padding: 48px 0 78px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.admin-head h1 { margin-top: 10px; font-size: 34px; }
.admin-head p { margin: 8px 0 0; font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(14, 23, 39, 0.7); }
.stat-card span { display: block; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin-top: 5px; font-size: 24px; letter-spacing: -0.04em; }
.admin-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; margin-bottom: 16px; }
.admin-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 23, 39, 0.74); }
.card-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2 { font-size: 17px; }
.card-head p { margin: 4px 0 0; font-size: 11.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-field input { padding: 8px; background: rgba(8, 17, 30, 0.7); }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.api-code { margin: 0 0 12px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #08111e; color: var(--sky); font-size: 11px; white-space: pre-wrap; word-break: break-all; }
.tip { margin-top: 16px; padding: 13px; border: 1px dashed var(--line-strong); border-radius: 9px; color: var(--muted); font-size: 12px; }
.tip strong { color: var(--text); }
.tip ol { margin: 8px 0 0 16px; padding: 0; }
.releases-admin { margin-top: 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; color: var(--faint); font-weight: 500; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.09); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.right { text-align: right; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; align-items: center; }
.row-actions form { display: inline; }
.notes-cell { max-width: 220px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-family: var(--mono); }
.badge.ok { color: #a7f3d0; background: rgba(45, 212, 191, 0.1); }
.badge.off { color: var(--muted); background: rgba(148, 163, 184, 0.1); }

.footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 30px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: start; }
.footer-brand { margin-bottom: 8px; }
.footer p, .footer-meta { color: var(--faint); font-size: 11px; margin: 0; }
.footer-links { display: flex; gap: 18px; color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; gap: 38px; }
  .hero-panel { max-width: 560px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .install-card, .admin-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 620px) {
  .nav { padding: 14px 18px; }
  .nav-links { gap: 12px; font-size: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }
  main { padding: 0 18px; }
  .hero h1 { font-size: 46px; }
  .feature-grid, .stat-grid { grid-template-columns: 1fr; }
  .release-row, .release-row.static { grid-template-columns: 1fr; gap: 5px; }
  .release-arrow { display: none; }
  .install-card { padding: 24px; }
  .admin-head { display: block; }
  .admin-actions { margin-top: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 18px; }
}
