*, *::before, *::after { box-sizing: border-box; }

:root {
  --green:    #1db954;
  --green-dk: #158f3e;
  --bg:       #0f1117;
  --surface:  #1c1f2a;
  --surface2: #252836;
  --border:   #2e3347;
  --text:     #e8eaf0;
  --muted:    #8b90a7;
  --radius:   12px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre {
  font: 0.9em/1.5 ui-monospace, "JetBrains Mono", "Fira Code", Menlo, monospace;
  background: var(--surface2);
  border-radius: 6px;
}
code { padding: .1em .4em; }
pre { padding: 14px 16px; overflow-x: auto; border: 1px solid var(--border); }
pre code { padding: 0; background: none; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px;
  background: rgba(15,17,23,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand img { border-radius: 7px; }
.brand:hover { text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav .gh { display: flex; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
main { max-width: 960px; margin: 0 auto; padding: 32px 24px 64px; }
main.page { max-width: 760px; }
main.page h1 { font-size: 2rem; margin: 24px 0 8px; }
main.page h2 { font-size: 1.25rem; margin-top: 2.2em; padding-bottom: .3em; border-bottom: 1px solid var(--border); }
main.page em { color: var(--muted); }
main.page table { border-collapse: collapse; width: 100%; font-size: 15px; }
main.page th, main.page td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
main.page th { color: var(--muted); font-weight: 500; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding: 40px 0 24px;
}
.hero-copy img.logo { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 18px; }
.hero h1 { font-size: 2.6rem; line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; }
.hero h1 span { color: var(--green); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; }
.hero-shot img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 9px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; background: var(--surface2); border-color: var(--muted); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dk); border-color: var(--green-dk); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn small { font-weight: 400; color: rgba(255,255,255,.7); }
.btn.primary small { color: rgba(255,255,255,.85); }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 40px 0 8px; }
section > h2 {
  font-size: 1.6rem; margin: 0 0 6px; letter-spacing: -.01em;
}
section > p.sub { color: var(--muted); margin: 0 0 24px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.feature .ic {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(29,185,84,.12); color: var(--green); margin-bottom: 12px;
}
.feature .ic svg { width: 18px; height: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps { counter-reset: step; display: grid; gap: 12px; }
.step {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 700; font-size: 14px;
}
.step h3 { margin: 2px 0 4px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step p + p { margin-top: 6px; }

.note {
  border-left: 3px solid var(--green); background: var(--surface);
  padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: 14.5px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  max-width: 960px; margin: 0 auto; padding: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px;
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero h1 { font-size: 2.1rem; }
  .features { grid-template-columns: 1fr; }
  .top nav { gap: 14px; }
  .top nav a:not(.gh) { font-size: 13px; }
}
