:root {
  color-scheme: dark;
  --bg: #0f1419;
  --surface: #1a2332;
  --surface2: #1f2838;
  --border: #2d3a4f;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --brand: #e8ecf4;
  --brand-glow: #cbd5e1;
  --accent: #e8ecf4;
  --accent-hover: #f8fafc;
  --success: #86b89a;
  --warn: #d4a84a;
  --danger: #e07a7a;
  --radius: 6px;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, #1a2030 0%, transparent 58%),
    var(--bg);
  color: var(--text);
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: block;
  border-radius: var(--radius);
}

.brand-mark:not(img) {
  display: grid;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, 0.28);
  background: rgba(148, 163, 184, 0.12);
  color: var(--brand-glow);
  font-weight: 700;
  font-size: 1.35rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.15;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

a {
  color: var(--brand-glow);
}

a:hover {
  color: var(--brand);
}

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem;
}

.card-cta {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card-cta:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
}

.check-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.label {
  font-size: 0.85rem;
  color: var(--muted);
}

input[type="text"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.9rem;
}

.btn {
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #0f1419;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.check-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.5;
}

.check-result.ok {
  border-color: color-mix(in srgb, var(--success) 50%, var(--border));
}

.check-result.warn {
  border-color: color-mix(in srgb, var(--warn) 50%, var(--border));
}

.check-result.bad {
  border-color: color-mix(in srgb, var(--danger) 50%, var(--border));
}

.check-result dl {
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
}

.check-result dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.check-result dd {
  margin: 0;
}

.check-result ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.hidden {
  display: none !important;
}

.steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.steps ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.steps li {
  margin-bottom: 0.5rem;
}

.footer {
  text-align: center;
  line-height: 1.6;
}

code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
