* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; color: #2c2c2c; background: #fafafa; -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; }

/* Nav */
header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 10; }
.nav-inner { max-width: 960px; margin: 0 auto; padding: 0 24px; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1rem; letter-spacing: 0.12em; color: #111; text-decoration: none; }
nav { display: flex; gap: 24px; align-items: center; }
nav a { font-size: 0.85rem; font-weight: 500; color: #666; text-decoration: none; }
nav a:hover { color: #111; }
.nav-cta { background: #111; color: #fff !important; padding: 6px 14px; border-radius: 6px; }
.nav-cta:hover { background: #333; }

/* Layout */
.container { max-width: 960px; margin: 0 auto; padding: 32px 24px; }
main { min-height: calc(100vh - 130px); }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* Headings */
h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.subtitle { color: #666; font-size: 0.95rem; margin-bottom: 32px; }

/* Cards */
.card { background: #fff; border: 1px solid #eaeaea; border-radius: 10px; padding: 24px; margin-bottom: 16px; }
.card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: #555; margin-bottom: 6px; }
.form-group input, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.9rem; font-family: inherit; background: #fff; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #111; }
.form-group .hint { font-size: 0.8rem; color: #888; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; border-radius: 6px; font-size: 0.88rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #333; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { border: 1px solid #ddd; color: #333; background: transparent; }
.btn-outline:hover { border-color: #999; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: 10px 12px; font-size: 0.88rem; border-bottom: 1px solid #f0f0f0; }
table th { color: #888; font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
table td { font-family: 'JetBrains Mono', monospace; font-size: 0.84rem; }

/* Status badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-failed { background: #fef2f2; color: #991b1b; }
.badge-suspended { background: #f3f4f6; color: #4b5563; }
.badge-established { background: #dcfce7; color: #166534; }
.badge-down { background: #fef2f2; color: #991b1b; }

/* Code blocks */
.code-block { background: #1e1e2e; color: #cdd6f4; padding: 20px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; line-height: 1.7; overflow-x: auto; margin: 16px 0; white-space: pre; }
.code-block .comment { color: #6c7086; }

/* Stats */
.stat { text-align: center; }
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.8rem; color: #888; margin-top: 2px; }

/* Footer */
footer { border-top: 1px solid #eee; }
.footer-inner { max-width: 960px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; font-size: 0.82rem; color: #999; }
.footer-inner a { color: #666; text-decoration: none; }

/* Responsive */
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .card-grid { grid-template-columns: 1fr; } }
