:root {
  --bg: #f5f5f7;
  --bg-card: rgba(255, 255, 255, 0.72);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --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: #0a84ff;
    --accent-hover: #409cff;
  }
}

* {
  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;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-landing {
  background: linear-gradient(165deg, rgba(0, 113, 227, 0.12) 0%, rgba(88, 86, 214, 0.14) 45%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem 0;
  text-align: center;
}

.hero-landing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-icon {
  line-height: 0;
  margin-bottom: 0;
}

.hero-icon img {
  display: block;
  width: 14rem;
  max-width: min(14rem, 92vw);
  height: auto;
  margin: 0 auto;
}

.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;
}

.disclaimer {
  background: rgba(255, 149, 0, 0.12);
  border-bottom: 1px solid rgba(255, 149, 0, 0.25);
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
}

.disclaimer strong {
  color: var(--text);
}

.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), #5856d6);
  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);
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

footer a {
  color: var(--accent);
}
