:root {
  --bg: #f5f5f7;
  --bg-card: rgba(255, 255, 255, 0.72);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #7c3aed;
  --accent-hover: #7c3aed;
  --accent-ring: #6366f1;
  --terminal-bg: #1a1a2e;
  --terminal-text: #e8e8e8;
  --green: #34c759;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-card: rgba(28, 28, 30, 0.72);
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --border: rgba(255, 255, 255, 0.12);
    --accent: #a78bfa;
    --accent-hover: #a78bfa;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
.hero-landing {
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.14) 0%, rgba(99, 102, 241, 0.12) 45%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
}
.hero-landing-inner { max-width: 640px; margin: 0 auto; }
.hero-icon-emoji {
  font-size: clamp(3.25rem, 10vw, 4rem);
  line-height: 1;
  margin: 0 auto 0.5rem;
  user-select: none;
}
.hero-icon-img {
  display: block;
  width: clamp(4rem, 18vw, 5.5rem);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 0.5rem;
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
@media (prefers-color-scheme: dark) {
  .hero-icon-img { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }
}
.hero-title {
  font-size: clamp(1.75rem, 5.25vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
}
.hero-tagline { margin: 0; font-size: 0.9375rem; color: var(--text-secondary); }
.guide-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
@media (prefers-color-scheme: dark) {
  .guide-panel { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35); }
}
.guide-panel-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.guide-panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.guide-panel-sub { margin: 0; font-size: 0.9375rem; color: var(--text-secondary); }
.guide-steps { margin-top: 0.5rem; }
.step-num-cmd { font-size: 0.875rem; font-weight: 700; }
.wrap { max-width: 820px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
kbd {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.8125em;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.features { display: flex; flex-direction: column; gap: 1.25rem; }
.feature h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 600; }
.feature p { margin: 0; font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.5; }
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.25rem;
  margin: 0;
}
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } }
.specs dt {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 0;
}
.specs dd { margin: 0.15rem 0 0; font-size: 0.875rem; font-weight: 500; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.tag {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: var(--bg-tertiary, rgba(0, 0, 0, 0.06));
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .tag { background: rgba(255, 255, 255, 0.06); }
}
.section { margin-top: 2.5rem; }
.section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.card p { color: var(--text-secondary); font-size: 0.9375rem; margin: 0 0 1rem; }
.card p:last-child { margin-bottom: 0; }
.steps { list-style: none; padding: 0; margin: 0; }
.step {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-left: 2px solid var(--border);
  margin-left: 15px;
  padding-left: 1.25rem;
  position: relative;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step-num {
  position: absolute;
  left: -16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-ring));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step.done .step-num {
  background: linear-gradient(135deg, var(--green), #30d158);
}
.step h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 600; }
.step p { margin: 0; font-size: 0.875rem; color: var(--text-secondary); }
.code-block {
  margin-top: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--terminal-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; }
.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }
.code-body {
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--terminal-text);
  overflow-x: auto;
}
.code-body .prompt { color: #27c93f; user-select: none; margin-right: 0.5rem; }
.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.12); }
.copy-btn.copied {
  color: var(--green);
  background: rgba(52, 199, 89, 0.15);
}
