:root {
  --bg: #ffffff;
  --fg: #0d0d0f;
  --muted: #5c5f66;
  --line: #ececec;
  --code-bg: #0d0d0f;
  --code-fg: #f4f4f5;
  --accent: #0d0d0f;
  --green: #38d39f;
  --amber: #f5a623;
  --radius: 12px;
  --maxw: 1180px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica,
    Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

code, pre {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    monospace;
}

a { color: inherit; }

/* NAV */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark { font-size: 20px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}
.nav-links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.ghost {
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 8px;
}
.nav-links a.ghost:hover { background: #fafafa; }

/* sections */
main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
}
section { padding: 56px 0; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; }

/* HERO */
.hero {
  width: 100%;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-copy { text-align: left; }
.logo {
  display: block;
  width: 196px;
  height: auto;
  margin: 0 0 34px;
}
.lead {
  font-size: 33px;
  line-height: 1.24;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: #1c1c20;
  margin: 0 0 18px;
}
.lead-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 30em;
}
.hero .install {
  margin: 0 0 22px;
  max-width: 420px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(20, 20, 30, 0.06);
}
.hero .install code { color: #1f2328; }
.hero .install code::before { content: ""; }
.hero .install button {
  background: #fafafa;
  color: var(--muted);
  border-left: 1px solid var(--line);
}
.hero .install button:hover { background: #f1f1f0; color: var(--fg); }
.hero .install button.copied { color: #1f9d63; }
.hero .cta-row { justify-content: flex-start; margin-top: 0; gap: 14px; }

/* SUPPORTS strip */
.supports {
  margin-top: 30px;
}
.supports-label {
  display: block;
  margin-bottom: 18px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
}
.supports-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 22px 16px;
  align-items: center;
  justify-items: center;
}
.supports-logos img {
  height: 26px;
  max-width: 100%;
  width: auto;
  filter: grayscale(1);
  opacity: 0.38;
  transition: opacity .15s;
}
.supports-logos img:hover { opacity: 0.62; }
.hero-term .terminal { max-width: 100%; }

/* minimal terminal chrome */
.term-bar { align-items: center; }
.term-bar em {
  font-style: normal;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #9aa0a8;
  margin-left: 8px;
}
.term-copy {
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.term-copy:hover { background: #f1f1f0; color: var(--fg); }
.term-copy.copied { color: #1f9d63; border-color: #1f9d63; }
.terminal .p { color: #1f9d63; }

/* INSTALL BAR */
.install {
  display: flex;
  align-items: stretch;
  max-width: 520px;
  margin: 0 auto;
  background: var(--code-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.install code {
  flex: 1;
  color: var(--code-fg);
  padding: 16px 18px;
  font-size: 14.5px;
  text-align: left;
  overflow-x: auto;
  white-space: nowrap;
}
.install code::before { content: "$ "; color: var(--green); }
.install button {
  border: 0;
  background: #1d1d20;
  color: var(--code-fg);
  padding: 0 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.install button:hover { background: #2a2a2e; }
.install button.copied { color: var(--green); }
.install.large { max-width: 560px; }

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.cta-row.center { margin-top: 30px; }
.btn {
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 560;
  color: var(--fg);
  transition: transform .1s, background .15s;
}
.btn:hover { background: #fafafa; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--fg); color: #fff; border-color: var(--fg); }
.btn.primary:hover { background: #26262b; }
.btn-icon { display: inline-flex; align-items: center; gap: 8px; }
.micro { font-size: 13px; color: var(--muted); margin-top: 20px; }

/* TERMINAL */
.quickstart { text-align: center; }
.quickstart h2, .hardware h2, .ci-embed h2, .final h2 {
  font-size: 32px;
  margin: 0 0 28px;
}
.terminal {
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(20, 20, 30, 0.08);
  margin: 0 auto;
  max-width: 720px;
}
.terminal.small { max-width: 560px; }
.term-bar {
  display: flex;
  gap: 7px;
  padding: 12px 15px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
}
.term-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #dcdce0;
}
.term-bar span:nth-child(1) { background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.terminal pre {
  margin: 0;
  padding: 26px 28px;
  overflow-x: auto;
  color: #1f2328;
  font-size: 13.5px;
  line-height: 1.85;
}
.terminal .c { color: #9aa0a8; }
.terminal .o { color: #1f9d63; }
.terminal .x { color: #dc2626; }
.terminal .hl { color: #c2410c; }

.quickstart-note, .section-sub {
  color: var(--muted);
  max-width: 560px;
  margin: 26px auto 0;
  font-size: 16px;
}
.section-sub { margin-top: -12px; margin-bottom: 32px; }

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step-n {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--fg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step code, .hw-foot code, .quickstart-note code {
  background: #f3f3f3;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
}

/* HARDWARE */
.hardware { text-align: center; }
.hw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}
.hw-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  transition: border-color .15s, transform .1s;
}
.hw-card:hover { border-color: #cfcfcf; transform: translateY(-2px); }
.hw-tag {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 4px 9px;
  border-radius: 6px;
}
.hw-name { font-weight: 650; margin: 12px 0 2px; font-size: 16px; }
.hw-meta { color: var(--muted); font-size: 13.5px; margin: 0; }
.hw-foot { color: var(--muted); margin-top: 26px; font-size: 15px; }

/* CI EMBED */
.ci-embed { text-align: center; }

/* FINAL */
.final { text-align: center; border-top: 1px solid var(--line); }

/* FOOTER */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 64px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-brand { font-weight: 700; margin-bottom: 14px; }
.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  margin-bottom: 16px;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }
.footer-fine { color: #9a9aa0; font-size: 13px; margin: 0; }

/* RESPONSIVE */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0;
  }
  .logo { width: 150px; margin-bottom: 26px; }
  .lead { font-size: 25px; max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .hw-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.ghost) { display: none; }
  .cta-row { flex-wrap: wrap; }
}
