:root {
  color-scheme: light;
  --bg:         #eef1ed;
  --surface:    #f5f7f2;
  --surface-hi: #ffffff;
  --border:     #d7ded4;
  --border-hi:  #c3cec0;
  --text:       #20221f;
  --muted:      #5f665e;
  --dim:        #8e948b;
  --sage:       #687a5a;
  --moss:       #2f3c34;
  --cyan:       #7ec8c8;
  --cyan-lo:    rgba(126,200,200,0.13);
  --green:      #7db87a;
  --green-lo:   rgba(125,184,122,0.13);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(226,232,226,0.9)),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(238,241,237,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--text);
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.18s ease, color 0.18s ease;
  box-shadow: 5px 5px 12px rgba(166,176,164,0.2), -5px -5px 12px rgba(255,255,255,0.82);
}
.nav-link:hover { border-color: var(--border-hi); color: var(--text); }

/* ── Shell ────────────────────────────────────────────────────── */
.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Panel ────────────────────────────────────────────────────── */
.panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(245, 247, 242, 0.86);
  box-shadow:
    16px 16px 38px rgba(166,176,164,0.28),
    -14px -14px 36px rgba(255,255,255,0.95);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: clamp(40px, 7vw, 80px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.7;
}

/* ── Install block ────────────────────────────────────────────── */
.install-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--cyan-lo);
  background: rgba(126,200,200,0.07);
  box-shadow: inset 2px 2px 6px rgba(166,176,164,0.12), inset -2px -2px 6px rgba(255,255,255,0.76);
  max-width: 100%;
}

.install-prefix {
  color: var(--dim);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  user-select: none;
  flex-shrink: 0;
}

.install-block code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-hi);
  color: var(--cyan);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.copy-btn:hover { border-color: var(--cyan); }

/* ── Actions ──────────────────────────────────────────────────── */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
  box-shadow: 7px 7px 16px rgba(166,176,164,0.24), -7px -7px 16px rgba(255,255,255,0.86);
}
.actions a:hover { border-color: var(--border-hi); transform: translateY(-1px); }

/* ── Info section ─────────────────────────────────────────────── */
.info-section {
  padding: clamp(32px, 5vw, 56px);
}

.info-header { margin-bottom: 36px; }
.info-header h2 {
  margin: 14px 0 12px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.info-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
}

/* ── Badge ────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-green {
  background: var(--green-lo);
  color: var(--green);
  border: 1px solid rgba(125,184,122,0.3);
}
.badge-cyan {
  background: var(--cyan-lo);
  color: var(--cyan);
  border: 1px solid rgba(126,200,200,0.3);
}

/* ── OSS grid ─────────────────────────────────────────────────── */
.oss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.oss-item {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: inset 3px 3px 8px rgba(166,176,164,0.14), inset -3px -3px 8px rgba(255,255,255,0.78);
}

.oss-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.oss-label.cyan { color: var(--cyan); }
.oss-label.green { color: var(--green); }

.oss-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.oss-list li {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ── Usage steps ──────────────────────────────────────────────── */
.usage-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  align-items: start;
}

.step-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.step-body h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.code-block {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--cyan-lo);
  background: rgba(126,200,200,0.06);
  box-shadow: inset 2px 2px 5px rgba(166,176,164,0.12), inset -2px -2px 5px rgba(255,255,255,0.74);
}

.code-block code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
}

.step-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Docs link ────────────────────────────────────────────────── */
.docs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease;
  box-shadow: 6px 6px 14px rgba(166,176,164,0.22), -6px -6px 14px rgba(255,255,255,0.84);
}
.docs-link:hover { border-color: var(--border-hi); transform: translateY(-1px); }
.docs-link svg { color: var(--cyan); }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--muted);
}

.footer-note {
  margin: 0;
  font-size: 12px;
  color: var(--dim);
}
.footer-note a { color: var(--muted); text-decoration: none; }
.footer-note a:hover { color: var(--text); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 760px) {
  .shell { padding: 80px 0 48px; }

  .hero { padding: 36px 28px; }

  .info-section { padding: 32px 24px; }

  .oss-grid { grid-template-columns: 1fr; }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 32px;
  }

  .install-block {
    flex-wrap: wrap;
    width: 100%;
  }
}
