:root {
  --bg: #0f1117;
  --bg-elevated: #161922;
  --bg-card: #1c2030;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --text-muted: #9aa3b5;
  --accent: #6b7cff;
  --accent-hover: #8490ff;
  --accent-dim: rgba(107, 124, 255, 0.15);
  --ok: #3dd68c;
  --warn-bg: rgba(255, 180, 84, 0.08);
  --warn-border: rgba(255, 180, 84, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(107, 124, 255, 0.22),
      transparent
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 0%,
      rgba(61, 214, 140, 0.06),
      transparent
    );
  min-height: 100vh;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

.nav-cta {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-hover) !important;
  border: 1px solid rgba(107, 124, 255, 0.35);
}

.nav-cta:hover {
  background: rgba(107, 124, 255, 0.25);
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 36em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

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

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

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

.btn-ghost:hover {
  color: var(--text);
}

.terminal {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.terminal-bar span:first-child {
  background: #ff5f57;
}
.terminal-bar span:nth-child(2) {
  background: #febc2e;
}
.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal pre {
  margin: 0;
  padding: 1.25rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
}

.t-dim {
  color: var(--text-muted);
}
.t-ok {
  color: var(--ok);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(0, 0, 0, 0.25);
  border-block: 1px solid var(--border);
}

.section h2 {
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 42em;
  margin: 0 0 2.5rem;
}

.subhead {
  font-size: 1.125rem;
  margin: 2rem 0 1rem;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.feature-card {
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

/* Install */
.install-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .install-layout {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

.steps {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.steps li {
  margin-bottom: 0.5rem;
}

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

.text-link {
  color: var(--accent-hover);
}

.code-block {
  margin: 0.75rem 0 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.code-block code {
  background: none;
  padding: 0;
}

.install-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aside-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.aside-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.aside-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.aside-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

.aside-warn p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.link-list {
  list-style: none;
  padding: 0 !important;
}

.link-list li {
  margin-bottom: 0.5rem;
}

.link-list a {
  color: var(--accent-hover);
  text-decoration: none;
  font-size: 0.9375rem;
}

.link-list a:hover {
  text-decoration: underline;
}

/* Commands table */
.command-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.command-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.command-table th,
.command-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.command-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.command-table tr:last-child td {
  border-bottom: none;
}

.command-table td:nth-child(2) {
  color: var(--text-muted);
  white-space: nowrap;
}

.footnote {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0.35rem 0;
}

.footer-inner a {
  color: var(--accent-hover);
}

.footer-meta {
  font-size: 0.8125rem;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
}
