:root {
  --bg: #15151a;
  --surface: #1d1d24;
  --border: #2b2b34;
  --text: #e9e8ee;
  --text-muted: #9c9ba7;
  --accent: #7c9eff;
  --accent-text: #0f1116;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header / nav */

header {
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-weight: 600;
  font-size: 30px;
  color: #00FF00;
}

.site-name:hover {
  text-decoration: none;
  opacity: 0.85;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #00FF00;
  font-size: 0.95rem;
}

nav a:hover,
nav a[aria-current="page"] {
  /*color: var(--text);*/
  color: #00FF00;
  text-decoration: none;
}

/* Main content */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 24px 20px;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  margin: 40px 0 12px;
}

p {
  color: var(--text-muted);
  margin: 0 0 16px;
  max-width: 60ch;
}

.lede {
  font-size: 1.1rem;
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  text-decoration: none;
  opacity: 0.9;
}

.btn-row {
  margin: 24px 0 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Simple content blocks */

.card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 16px 0;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text);
}

.card p {
  margin: 0;
}

ol, ul.list {
  color: var(--text-muted);
  max-width: 60ch;
  padding-left: 1.2em;
}

ol li,
ul.list li {
  margin-bottom: 8px;
}

code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: var(--text);
}

/* Footer */

/* Video embed */

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0 32px;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Download */

.download-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
}

.download-row span {
  color: var(--text-muted);
}

/* Collapsible feature sections */

details.section {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

details.section summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

details.section summary::-webkit-details-marker {
  display: none;
}

details.section summary .chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

details.section[open] summary .chevron {
  transform: rotate(180deg);
}

details.section .section-body {
  padding: 0 20px 18px;
}

details.section ul.list {
  margin: 0;
  padding-left: 1.2em;
}

/* Warning */

.warning {
  font-size: 20px;
  color: #ff5c5c;
  font-weight: 700;
  margin-top: 40px;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  main {
    padding: 48px 20px 72px;
  }

  h1 {
    font-size: 1.6rem;
  }
}