:root {
  --bg: #0b0f0e;
  --bg-elevated: #121816;
  --bg-card: #161c1a;
  --border: #2a3330;
  --text: #e8eeeb;
  --text-muted: #8f9d97;
  --accent: #3dba8a;
  --accent-soft: rgba(61, 186, 138, 0.14);
  --accent-glow: rgba(61, 186, 138, 0.22);
  --green: #3dba8a;
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(720px, 92vw);
}

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

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

.logo {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

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

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-glow), transparent),
    var(--bg);
}

.hero-inner {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1,
.brand-hero {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 0.65rem;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.25rem;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1.1fr) 1.4fr;
  gap: 0.75rem 1.25rem;
  align-items: baseline;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.file-row code {
  font-size: 0.82rem;
  word-break: break-all;
}

.file-row span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .file-row {
    grid-template-columns: 1fr;
  }
}

.install-box {
  max-width: 820px;
  margin: 0 auto 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.install-box-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.install-label {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.install-command-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
}

#install-cmd {
  flex: 1;
  display: block;
  padding: 1.15rem 1.25rem;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 2.2vw, 0.92rem);
  line-height: 1.5;
  color: #e8e8ed;
  background: transparent;
  border: none;
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;
  border: none;
  border-left: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0 1.25rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.copy-btn.copied {
  color: var(--green);
}

.hero-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: #e8896d;
  color: #1a100c;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

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

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

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 620px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card-featured {
  border-color: rgba(217, 119, 87, 0.45);
  box-shadow: 0 0 0 1px var(--accent-soft) inset;
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.card-stat {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-run {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text) !important;
}

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

.code-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.secondary-cmd code {
  display: block;
  background: transparent;
  padding: 0;
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  line-height: 1.5;
  word-break: break-all;
  white-space: pre-wrap;
}

/* Features */
.split {
  display: grid;
  gap: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

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

.feature h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.step-n {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.fine-print {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

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

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

.footer-inner a {
  color: var(--text-muted);
}

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

@media (max-width: 640px) {
  nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .install-command-wrap {
    flex-direction: column;
  }

  .copy-btn {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 0.85rem;
  }

  #install-cmd {
    white-space: pre-wrap;
    word-break: break-all;
  }
}
