:root {
  --bg: #0e1116;
  --surface: #161b22;
  --border: #262d37;
  --text: #e8edf3;
  --muted: #95a1af;
  --accent: #2f80ff;   /* Hevy-style vivid blue */
  --accent-soft: #1a3a6b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header { padding: 20px clamp(16px, 6vw, 64px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 34px; height: 34px;
  display: block;
}
.name { font-weight: 700; font-size: 18px; }
.badge {
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
}

main { flex: 1; padding: clamp(24px, 6vw, 64px); max-width: 880px; margin: 0 auto; width: 100%; }

.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; }
.hero .accent { color: var(--accent); }
.hero p { margin-top: 14px; color: var(--muted); }

.steps { margin-top: 40px; display: grid; gap: 18px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  min-width: 0; /* let the pre scroll instead of widening the grid card */
}
.step h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.num {
  background: var(--accent-soft);
  color: var(--accent);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 14px;
}
.step p, .step li { color: var(--muted); font-size: 14.5px; }
p.keynote {
  margin: 14px 0 0;
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.85;
  text-align: center;
}

.tabs {
  display: flex;
  gap: 6px;
  background: #0a0d12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-top: 14px;
}
.tab-button {
  flex: 1;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  transition: color 0.15s ease, background 0.15s ease;
}
.tab-button:hover { color: var(--text); }
.tab-button.is-active { background: var(--accent-soft); color: var(--accent); }

.panel { display: none; }
.panel.is-active { display: block; }

.mini-steps {
  margin: 16px 0 0;
  padding-left: 24px;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 14.5px;
}
.mini-steps li { min-width: 0; } /* let nested pre scroll instead of widening the grid item */
.mini-steps li::marker { color: var(--accent); font-weight: 700; }
.mini-steps strong { color: var(--text); }

.code-wrap { position: relative; }
.code-wrap .copy-button { position: absolute; top: 18px; right: 8px; }
.copy-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  transition: background 0.15s ease;
}
.copy-button:hover { background: rgba(255, 255, 255, 0.16); }

.url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0a0d12;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
}
.url-row code { flex: 1; overflow-x: auto; white-space: nowrap; color: var(--accent); }
.step ul { padding-left: 20px; }
.step a { color: var(--accent); }

.shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.signup {
  margin-top: 40px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 65%);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 28px 22px;
  text-align: center;
}
.signup h2 { font-size: 22px; }
.signup p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 52ch;
  margin: 8px auto 18px;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(47, 128, 255, 0.45);
}
.proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
.proof strong { color: var(--text); }
.proof .sep { color: var(--border); }

.status {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.status h2 { font-size: 17px; margin-bottom: 2px; grid-column: 1 / -1; }
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14.5px;
  min-width: 0;
}
@media (max-width: 560px) {
  .status { grid-template-columns: 1fr; }
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.dot.up {
  background: #2ecc71;
  animation: pulse 2s ease-out infinite;
}
.dot.down { background: #e74c3c; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .dot.up { animation: none; }
}
.status-label { margin-left: auto; color: var(--muted); font-size: 13px; }

pre {
  background: #0a0d12;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
  margin: 10px 0;
}
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: #c9d6e3; }
.j-p { color: #8b98a5; }            /* punctuation */
.j-k { color: #79b8ff; }            /* keys */
.j-s { color: #85e89d; }            /* string values */
.j-v { color: #ffab70; }            /* placeholder the user must replace */
.hint { font-size: 13px; }

footer {
  border-top: 1px solid var(--border);
  padding: 18px clamp(16px, 6vw, 64px);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* stacks back to two lines on narrow screens */
  gap: 6px 16px;
}
footer p { margin: 0; }
footer a { color: var(--accent); }

@media (max-width: 480px) {
  .brand { flex-wrap: wrap; }
  .hero h1 { font-size: 30px; }
  .step { padding: 16px; }
  pre { padding: 10px; }
  code { font-size: 11.5px; }
  .status-row { font-size: 13.5px; padding: 10px 12px; }
}
