:root {
  --bg: #0b1220;
  --bg2: #111a2e;
  --card: #16233f;
  --text: #f4f7ff;
  --muted: #a8b3cc;
  --line: #2a3b63;
  --accent: #29d3a2;
  --accent2: #4f7cff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #0e1528 100%);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(11, 18, 32, 0.85);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 24px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--accent);
}

.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.nav a:hover { color: var(--text); }

.section { padding: 56px 0; }
.section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
p { color: var(--muted); margin: 0 0 12px; }

.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.6fr 1fr;
}

.chip {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid #2f6f66;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.hero-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 10px; margin-top: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.top-gap { margin-top: 16px; }

.btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #26b88f 100%);
  color: #04110d;
  border: 0;
  font-weight: 700;
}
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { border-color: var(--accent2); color: var(--accent2); }

.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

.card {
  background: linear-gradient(180deg, #15213b 0%, #101c35 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.stats ul { list-style: none; padding: 0; margin: 0; }
.stats li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #2b3f68;
}
.stats li:last-child { border-bottom: 0; }

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  border-bottom: 1px solid #2b3f68;
  text-align: left;
  padding: 8px 4px;
  color: var(--muted);
  font-size: 14px;
}

.list { margin: 0; padding-left: 18px; color: var(--muted); }
.list li { margin-bottom: 8px; }
.list strong { color: var(--text); }

.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button {
  border: 1px solid var(--line);
  color: var(--muted);
  background: #131e38;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.tabs button.active {
  border-color: var(--accent2);
  color: var(--text);
  background: #1c2a4d;
}

input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f1730;
  color: var(--text);
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: #c7d4f5;
  background: #0d1530;
  border: 1px solid #2a3b63;
  border-radius: 10px;
  padding: 10px;
  min-height: 120px;
}

.muted { color: var(--muted); font-size: 13px; }
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-grid, .grid.cols-2, .grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
}
