:root {
  color-scheme: dark;
  color: #111827;
  background: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  color: #111827;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #7c3aed;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(3rem, 4vw, 4.25rem);
  margin: 0;
  letter-spacing: -0.04em;
  color: #111827;
}

.hero-copy {
  max-width: 40rem;
  margin: 1.5rem 0 2rem;
  color: #475569;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #7c3aed;
  color: white;
}

.button-secondary {
  background: white;
  color: #3730a3;
  box-shadow: 0 18px 45px -30px rgba(124, 58, 237, 0.85);
}

.hero-card,
.card,
.install-card,
.command-card,
.feature-card,
.quick-step,
.start-card {
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1.7rem;
  box-shadow: 0 24px 80px -62px rgba(15, 23, 42, 0.12);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  padding-left: 1.25rem;
  position: relative;
  color: #334155;
}

.feature-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0.25rem;
  color: #7c3aed;
}

.section {
  padding: 4rem 0;
}

.section-light {
  background: #f8fafc;
}

.section-header {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 2.4vw, 2.75rem);
  color: #111827;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.install-grid,
.commands-grid,
.features-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-card h3,
.feature-card h3,
.quick-step h3,
.install-card h3 {
  margin-top: 0;
}

.quick-step pre,
.install-card pre {
  margin: 1rem 0 0;
  padding: 1rem;
  background: #f1f5f9;
  border-radius: 0.9rem;
  overflow-x: auto;
  font-size: 0.92rem;
}

.note {
  margin-top: 1.5rem;
  color: #475569;
}

.start-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer {
  padding: 2rem 0;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a {
  color: #c7d2fe;
  text-decoration: none;
}

.command-list,
.commands-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.command-ref {
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 4px solid #7c3aed;
  border-radius: 1.25rem;
  padding: 1.8rem;
  box-shadow: 0 24px 80px -62px rgba(15, 23, 42, 0.12);
}

.command-ref h3 {
  margin-top: 0;
}

.synopsis {
  display: inline-block;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #312e81;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.95rem;
}

.cmd-desc {
  margin: 0 0 1.25rem;
  color: #475569;
}

.options-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
}

.options-table td {
  padding: 0.85rem 1rem;
  vertical-align: top;
}

.options-table tr:nth-child(odd) {
  background: #f8fafc;
}

.options-table code {
  background: #eef2ff;
  padding: 0.15rem 0.35rem;
  border-radius: 0.45rem;
  font-size: 0.95rem;
}

.code-wrap {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: #7c3aed;
  color: white;
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  background: #5b21b6;
}

.command-ref pre,
.card pre,
.section pre {
  margin: 0;
  padding: 1.35rem 1rem 1rem;
  background: #f1f5f9;
  border-radius: 0.95rem;
  overflow-x: auto;
  font-size: 0.95rem;
}

.demo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.simple-list {
  padding-left: 1.25rem;
  color: #475569;
}

.simple-list li {
  margin-bottom: 0.9rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .cards-grid,
  .demo-grid,
  .install-grid,
  .commands-grid,
  .features-grid,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .button {
    width: 100%;
  }

  .start-card {
    flex-direction: column;
    align-items: stretch;
  }
}
