:root {
  --bg: #16171a;
  --bg-alt: #1b1d21;
  --surface: #1f2125;
  --surface-2: #25282d;
  --border: #2c2f35;
  --border-soft: #24262b;
  --text: #e8e9ec;
  --muted: #9aa0a6;
  --muted-dim: #6b7280;
  --accent: #4f7cff;
  --accent-hover: #6b91ff;
  --green: #36c46b;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;

  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 23, 26, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand img { display: block; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-gh {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}

.nav-gh:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--border-soft);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(54, 196, 107, 0.18);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: 3.4rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lede {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 30em;
}

.install-cta { margin-top: 28px; }

.code-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 12px 12px 16px;
  max-width: 460px;
}

.code-inline code {
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt { color: var(--muted-dim); margin-right: 8px; user-select: none; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--muted); }

.copy-btn {
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.copy-btn:hover { color: var(--text); border-color: var(--muted); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

.hero-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
}

/* ---------- Trust strip ---------- */
.strip {
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  padding: 20px 24px;
}

.strip-inner span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.strip-inner span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -22px;
  color: var(--muted-dim);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature:hover { border-color: var(--accent); transform: translateY(-2px); }

.feature-icon {
  font-size: 1.5rem;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 16px;
}

.feature h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Screens ---------- */
.screens {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.screen { margin: 0; }

.screen img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.7);
}

.screen figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Install ---------- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  /* Let the grid track shrink below the code block's min-content width
     so the long install commands scroll inside the <pre> instead of
     overflowing the page. */
  min-width: 0;
}

.install-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.install-card-head h3 { margin: 0; font-size: 1.15rem; font-weight: 600; }

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
}

.install-card > p { color: var(--muted); font-size: 0.94rem; margin: 0 0 16px; }

.code-block {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: auto;
  min-width: 0;
}

.code-block pre {
  margin: 0;
  padding: 14px 56px 14px 16px;
  overflow-x: auto;
}

.code-block code { font-size: 0.85rem; color: var(--text); white-space: pre; }

.code-block .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

.install-note { color: var(--muted); font-size: 0.86rem; margin: 14px 0 0; }
.install-note a { color: var(--accent); }
.install-note a:hover { color: var(--accent-hover); }

.callout {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.callout strong { color: var(--text); }

.requirements {
  margin-top: 40px;
  text-align: center;
}

.requirements h3 { font-size: 1.2rem; margin: 0 0 14px; }

.requirements ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  text-align: left;
}

.requirements li {
  color: var(--muted);
  padding: 10px 0 10px 28px;
  position: relative;
  border-top: 1px solid var(--border-soft);
}

.requirements li:first-child { border-top: none; }

.requirements li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.requirements strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.contact-icon { font-size: 1.6rem; margin-bottom: 12px; }
.contact-card h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand img { border-radius: 6px; }

.footer-meta { margin: 0; color: var(--muted-dim); font-size: 0.85rem; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.7rem; }
  .features-grid,
  .install-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
}

@media (max-width: 620px) {
  .nav-links a:not(.nav-gh) { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 2.3rem; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 1.7rem; }
  .strip-inner span:not(:last-child)::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
