:root {
  --bg: #0b0d13;
  --surface: #121622;
  --surface-alt: #181d2e;
  --surface-hover: #1e2438;
  --border: #252c40;
  --border-subtle: #1c2233;
  --accent: #420560;
  --accent-light: #6a1b9a;
  --accent-glow: rgba(66, 5, 96, 0.35);
  --text: #e6edf3;
  --text-dim: #8b949e;
  --text-muted: #57606a;
  --success: #238636;
  --success-glow: rgba(35, 134, 54, 0.2);
  --warning: #d29922;
  --error: #f85149;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 700;
  color: #ffffff;
}

h2 {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #ffffff;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #ffffff;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
  max-width: 760px;
  color: var(--text);
}

.text-dim {
  color: var(--text-dim);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
}

.hero {
  padding: 48px 0 32px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--surface-alt);
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

pre, code.block {
  overflow-x: auto;
  white-space: pre;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  padding: 16px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #e6edf3;
  margin: 16px 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: #e6edf3;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 24px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  min-height: 40px;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--text-dim);
  color: #ffffff;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent-light);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: #9c27b0;
  color: #ffffff;
}

@media (max-width: 480px) {
  .btn-row .btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
    padding: 12px 20px;
  }
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 480px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-subtle);
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-operational {
  background: var(--success-glow);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.4);
}

.badge-warning {
  background: rgba(210, 153, 34, 0.15);
  color: #e3b341;
  border: 1px solid rgba(210, 153, 34, 0.4);
}

.badge-error {
  background: rgba(248, 81, 73, 0.15);
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.4);
}

.meta-spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.meta-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
}

.meta-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.meta-value {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  font-family: var(--font-mono);
}

.footer {
  margin-top: 64px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
}
