:root {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-alt: #10161f;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #9198a1;
  --accent: #f0883e;
  --green: #3fb950;
  --amber: #d29922;
  --blue: #58a6ff;
  --red: #f85149;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(240, 136, 62, 0.1);
  border: 1px solid rgba(240, 136, 62, 0.2);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--accent);
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-weight: 700; font-size: 1.15rem; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 1.6rem; height: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-size: 0.92rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 0.65rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: 0.98rem; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #10131a; }
.btn-primary:hover { background: #f79b5b; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.88rem; color: var(--text) !important; }

/* ---------- hero ---------- */
.hero { padding: 5rem 0 4rem; text-align: center; }
.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.lede {
  max-width: 46rem; margin: 1.4rem auto 0; color: var(--muted); font-size: 1.13rem;
}
.cta-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin: 3rem auto 0; max-width: 60rem;
}
.stat { background: var(--panel); padding: 1.1rem 1rem; }
.stat-num { display: block; font-family: var(--mono); font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.82rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 0.2rem; }

/* ---------- terminal ---------- */
.terminal {
  max-width: 60rem; margin: 3rem auto 0; text-align: left;
  background: #0a0d12; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 0.9rem; background: var(--panel); border-bottom: 1px solid var(--border);
}
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.dot-r { background: #f85149; } .dot-y { background: #d29922; } .dot-g { background: #3fb950; }
.terminal-title { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-left: 0.5rem; }
.terminal-body {
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.55;
  padding: 1rem 1.2rem 1.2rem; white-space: pre-wrap; word-break: break-word;
  min-height: 16.5rem; color: var(--text);
}
.t-prompt { color: var(--green); font-weight: 700; }
.t-green { color: var(--green); }
.t-orange { color: var(--accent); }
.t-red { color: var(--red); }
.t-dim { color: var(--muted); }
.cursor { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.2; letter-spacing: -0.015em; }
.section-lede { max-width: 48rem; color: var(--muted); font-size: 1.05rem; margin-top: 1rem; }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; margin-top: 2.2rem; }
.compare, .platforms {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.compare th, .compare td, .platforms th, .platforms td {
  padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top;
}
.compare thead th, .platforms thead th {
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); background: rgba(255, 255, 255, 0.02);
}
.compare tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th,
.platforms tbody tr:last-child td { border-bottom: none; }
.col-foss { background: rgba(63, 185, 80, 0.05); }
.compare td { color: var(--muted); }
.compare td.col-foss { color: var(--text); }
.mark { font-weight: 700; margin-right: 0.35rem; }
.mark.yes { color: var(--green); }
.mark.no { color: var(--red); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.1rem; margin-top: 2.2rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; color: var(--muted); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; margin-bottom: 0.8rem;
  background: rgba(240, 136, 62, 0.12); border: 1px solid rgba(240, 136, 62, 0.4);
  color: var(--accent); font-family: var(--mono); font-weight: 700; font-size: 0.95rem;
}

/* ---------- pins ---------- */
.pins {
  margin-top: 2.5rem; background: #0a0d12; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.pins-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.7rem 1.2rem; background: var(--panel); border-bottom: 1px solid var(--border);
}
.pins-title { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.pins-link { font-family: var(--mono); font-size: 0.8rem; }
.pins-body {
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.7;
  padding: 1rem 1.2rem; overflow-x: auto; color: var(--text);
}
.pins-note { font-size: 0.85rem; color: var(--muted); padding: 0 1.2rem 1.1rem; }

/* ---------- screenshots ---------- */
.shot { margin-top: 2.5rem; }
.shot img {
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.shot figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.8rem; max-width: 44rem; }

/* ---------- usage ---------- */
.usage-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.6rem; margin-top: 2.2rem; align-items: start; }
.code-block {
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.7;
  background: #0a0d12; border: 1px solid var(--border); border-radius: 10px;
  padding: 1.2rem 1.4rem; overflow-x: auto; color: var(--text);
}
.usage-points { display: grid; gap: 1rem; }
.point {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.3rem;
}
.point h3 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.point p { font-size: 0.9rem; color: var(--muted); }
.platforms-title { margin-top: 3rem; font-size: 1.2rem; }
.platforms td { color: var(--muted); }
.platforms td:first-child { color: var(--text); font-weight: 600; }
.table-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }

/* ---------- badges ---------- */
.badge {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  padding: 0.18rem 0.6rem; border-radius: 999px; white-space: nowrap;
}
.badge-green { background: rgba(63, 185, 80, 0.15); color: var(--green); border: 1px solid rgba(63, 185, 80, 0.4); }
.badge-amber { background: rgba(210, 153, 34, 0.15); color: var(--amber); border: 1px solid rgba(210, 153, 34, 0.4); }
.badge-blue { background: rgba(88, 166, 255, 0.15); color: var(--blue); border: 1px solid rgba(88, 166, 255, 0.4); }
.badge-gray { background: rgba(145, 152, 161, 0.12); color: var(--muted); border: 1px solid var(--border); }

/* ---------- suite ---------- */
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.product-head h3 { margin-bottom: 0; }

/* ---------- CTA band / footer ---------- */
.cta-band { border-top: 1px solid var(--border); background: var(--bg-alt); text-align: center; }
.cta-center { display: flex; flex-direction: column; align-items: center; }
.cta-row-center { justify-content: center; }

.footer { border-top: 1px solid var(--border); padding: 2.5rem 0 3rem; }
.disclaimer { font-size: 0.85rem; color: var(--muted); max-width: 56rem; }
.footer-meta { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .usage-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .terminal-body { font-size: 0.72rem; min-height: 19rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
}
