:root {
  --bg: #0e0f12;
  --panel: #15171c;
  --border: #262a32;
  --text: #e6e8ee;
  --muted: #8b90a0;
  --accent: #95d600;
  --accent-dim: #6f9f02;
  --accent-2: #9147ff;
  --good: #aef13d;
  --warn: #ffb454;

  /* Aptos with safe fallbacks */
  --font-body: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.6 var(--font-body);
  background: var(--bg);
}

/* ---------- global header ---------- */

.site {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand { display: block; line-height: 0; }
.brandLogo {
  width: min(480px, 86vw);
  height: auto;
  display: block;
}

/* breadcrumb stays monospace — it's part of the brand */
.crumbs {
  font: 12px/1.4 var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: center;
}
.crumbs a,
.crumbs a:visited { color: var(--accent); text-decoration: none; }
.crumbs a:hover { color: var(--good); }
.crumbs a .gg,
.crumbs a:hover .gg { color: inherit; }
.crumbs .sep { color: #3a4150; margin: 0 4px; }

/* ---------- layout ---------- */

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 20px 48px;
}

.head h1 {
  margin: 0 0 24px;
  font: 700 24px/1.2 var(--font-body);
}
.head h1::before {
  content: ">";
  color: var(--accent);
  font-family: var(--font-mono);
  margin-right: 10px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.muted { color: var(--muted); font-weight: 400; }

/* ---------- download panel ---------- */

.dl-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* download button stays monospace */
.btn-dl {
  display: inline-block;
  background: var(--accent);
  color: #10130a;
  border: 0;
  border-radius: 8px;
  padding: 11px 22px;
  font: 700 15px/1 var(--font-mono);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-dl::before { content: "↓ "; }
.btn-dl:hover { filter: brightness(1.1); }

.dl-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.dl-meta strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- spec tags stay monospace ---------- */

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.tag {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #0f1117;
}
.tag.ok {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.tag.no {
  color: var(--warn);
  border-color: #5a3a10;
}

/* ---------- screenshot ---------- */

.screenshot {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  margin-top: 16px;
}

/* ---------- collapsible details ---------- */

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 10px;
  overflow: hidden;
}

details[open] { border-color: #353b47; }

summary {
  list-style: none;
  padding: 16px 20px;
  cursor: pointer;
  font: 600 14px/1.2 var(--font-body);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }

summary::before {
  content: ">";
  color: var(--accent);
  font: 700 14px/1 var(--font-mono);
  display: inline-block;
  transition: transform 0.15s ease;
}
details[open] summary::before {
  transform: rotate(90deg);
}

.details-body {
  padding: 0 20px 18px;
  border-top: 1px solid var(--border);
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}

/* step numbers stay monospace */
.step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  font: 700 12px/1 var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

/* ---------- prose inside details ---------- */

.detail-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 12px 0 0;
}
.detail-text + .detail-text { margin-top: 10px; }

/* highlighted text in prose -> accent green */
.detail-text strong,
.steps li strong {
  color: var(--accent);
  font-weight: 600;
}

.detail-text a,
.detail-text a:visited { color: var(--accent); text-decoration: none; }
.detail-text a:hover { text-decoration: underline; }

.warn-label {
  color: var(--warn);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
}

/* ---------- coming soon badge ---------- */

.cs-badge {
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 3px;
  background: #1e2030;
  color: var(--muted);
  border: 1px solid var(--border);
  margin-left: 4px;
  vertical-align: middle;
}

.cs-body {
  padding: 14px 20px 18px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  line-height: 1.6;
}
.cs-body a { color: var(--accent); text-decoration: none; }
.cs-body a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.contact {
  text-align: center;
  font-size: 13px;
  color: var(--accent-2);
  padding: 0 20px 28px;
}
.contact a { color: var(--accent-2); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .site { padding-top: 24px; }
  .wrap { padding-top: 28px; }
  .dl-top { flex-direction: column; align-items: flex-start; }
}
