:root {
  --bg: #0f1419;
  --panel: #1a222c;
  --text: #e8eef4;
  --muted: #8b9aab;
  --accent: #3d9cfd;
  --ok: #3ecf8e;
  --err: #f07178;
  --line: #2a3542;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1b2a3d 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #1a2830 0%, transparent 50%),
    var(--bg);
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  margin-top: auto;
  border-bottom: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.user { color: var(--muted); font-size: 0.95rem; }

.wrap {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.hero h1, section h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.hero p, .muted, .hint {
  color: var(--muted);
  line-height: 1.5;
}

.btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}

.btn:hover { border-color: var(--accent); text-decoration: none; }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #041018;
  font-weight: 600;
}

.panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--panel) 92%, black);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th, .table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

code, .small {
  font-family: var(--mono);
  font-size: 0.8rem;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.tag.ok {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.flash.ok {
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}

.flash.err {
  border-color: color-mix(in srgb, var(--err) 45%, var(--line));
  background: color-mix(in srgb, var(--err) 12%, transparent);
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.form input, .form select {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0c1117;
  color: var(--text);
}

.hint { font-weight: 400; font-size: 0.85rem; }

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch a {
  color: var(--muted);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch a.active,
.lang-switch a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.landing-hero {
  padding: 1rem 0 0.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.lead {
  font-size: 1.1rem;
  max-width: 42rem;
  line-height: 1.55;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.steps, .feature-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}

.steps li, .feature-list li { margin: 0.45rem 0; }

.cmd-block {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: #0c1117;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
}

.stat-list {
  margin: 0.5rem 0 0;
}

.stat-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.stat-list dt { color: var(--muted); font-weight: 500; }
.stat-list dd { margin: 0; font-weight: 600; font-family: var(--mono); }

.table.compact td { padding: 0.4rem 0.35rem; }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; }
  nav { flex-wrap: wrap; justify-content: flex-end; }
}

