:root {
  --bg: #0a0f14;
  --bg-raised: #0f1620;
  --bg-terminal: #05090d;
  --border: #1c2530;
  --border-strong: #2a3643;

  --fg: #e6edf3;
  --fg-muted: #8b98a5;
  --fg-dim: #5c6773;

  --cyan: #00bfff;
  --cyan-soft: #3dd6ff;
  --green: #4ade80;
  --yellow: #facc15;
  --red: #ff3b30;

  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-glow: 0 0 0 1px rgba(0, 191, 255, 0.35),
    0 0 40px -8px rgba(0, 191, 255, 0.45);
  --max-w: 820px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
  background:
    radial-gradient(
      ellipse 80% 50% at 50% -10%,
      rgba(0, 191, 255, 0.08),
      transparent 60%
    ),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover,
a:focus-visible {
  border-bottom-color: var(--cyan);
}
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  padding: 8px 12px;
  background: var(--bg-raised);
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.skip-link:focus-visible {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 15, 20, 0.75);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--fg);
  font-weight: 700;
  font-size: 15px;
  border-bottom: none;
}
.wordmark-prompt {
  color: var(--cyan);
}
.wordmark-name::after {
  content: "_";
  color: var(--cyan);
  margin-left: 2px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.site-header nav a {
  color: var(--fg-muted);
  border-bottom: none;
}
.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--fg);
}

/* Hero */
.hero {
  padding-top: 88px;
  padding-bottom: 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.accent {
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 191, 255, 0.35);
}
.hero .lede {
  margin: 0 auto 36px;
  max-width: 620px;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
}

.install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  margin: 0 auto 28px;
  max-width: 100%;
  font-size: 15px;
  text-align: left;
}
.install-prompt {
  color: var(--cyan);
  font-weight: 700;
  user-select: none;
}
.install-cmd {
  color: var(--fg);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow-x: auto;
  max-width: 60vw;
}
.install-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.install-copy:hover,
.install-copy:focus-visible {
  background: rgba(0, 191, 255, 0.08);
  border-color: var(--cyan);
}
.install-copy.is-copied {
  color: var(--green);
  border-color: var(--green);
  background: rgba(74, 222, 128, 0.08);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  transition: transform 80ms ease, background 120ms ease, border-color 120ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-bottom-color: var(--border-strong);
}
.btn-primary {
  background: var(--cyan);
  color: #001823;
  border-color: var(--cyan);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Terminal demo */
.demo {
  padding-bottom: 80px;
}
.terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #141c26, #0d141c);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red {
  background: #ff5f56;
}
.dot-yellow {
  background: #ffbd2e;
}
.dot-green {
  background: #27c93f;
}
.terminal-title {
  margin-left: 10px;
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.terminal-body {
  margin: 0;
  padding: 20px 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg);
  overflow-x: auto;
  white-space: pre;
}

.t-dim {
  color: var(--fg-dim);
}
.t-fg {
  color: var(--fg);
}
.t-cyan {
  color: var(--cyan);
}
.t-yellow {
  color: var(--yellow);
}
.t-green {
  color: var(--green);
}
.t-red {
  color: var(--red);
}
.t-bold {
  font-weight: 700;
}

/* Sections */
section h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section-lede {
  color: var(--fg-muted);
  margin: 0 0 32px;
  max-width: 620px;
}

.features {
  padding: 24px 0 80px;
}
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: border-color 120ms ease, transform 120ms ease;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.feature-card h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}
.feature-prompt {
  color: var(--cyan);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.feature-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Usage */
.usage {
  padding-bottom: 80px;
}
.usage h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--cyan);
  margin: 28px 0 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.usage h3:first-of-type {
  margin-top: 0;
}
.code-block {
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg);
  overflow-x: auto;
  white-space: pre;
}

.options-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
}
.options-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.options-table th,
.options-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.options-table thead th {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.15);
}
.options-table tbody tr:last-child td {
  border-bottom: none;
}
.options-table code {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  font-size: 13px;
  color: var(--fg-muted);
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}
.site-footer .muted {
  margin: 0;
  color: var(--fg-dim);
}
.site-footer p {
  margin: 0;
}

/* Mobile tweaks */
@media (max-width: 520px) {
  .hero {
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .install {
    display: flex;
    width: 100%;
    padding: 12px;
  }
  .install-cmd {
    flex: 1;
    font-size: 13px;
    max-width: none;
  }
  .site-header nav {
    gap: 14px;
  }
}

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