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

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --ink: #f0f0f0;
  --muted: #888;
  --tag-bg: rgba(255, 255, 255, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(760px, calc(100vw - 40px));
  margin: 0 auto;
}

/* Nav */
nav {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-tag span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}
h1 em {
  font-style: normal;
  color: var(--muted);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 40px;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover {
  opacity: 0.8;
}
.btn-primary {
  background: var(--ink);
  color: #000;
}
.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Terminal */
.terminal-wrap {
  margin: 64px 0 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}
.terminal-bar {
  background: #1a1a1a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-r {
  background: #ff5f57;
}
.dot-y {
  background: #febc2e;
}
.dot-g {
  background: #28c840;
}
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.terminal-body {
  background: #0d0d0d;
  padding: 24px 20px;
  font-family: "SF Mono", "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
}
.prompt {
  color: #4ade80;
}
.cmd {
  color: var(--ink);
}
.out {
  color: var(--muted);
}
.rid {
  color: #a78bfa;
}
.url {
  color: #60a5fa;
}

/* Sections */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
}
.step {
  background: var(--surface);
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.step:first-child {
  border-radius: 12px 0 0 12px;
}
.step:last-child {
  border-radius: 0 12px 12px 0;
}
.step-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

code {
  font-family: "SF Mono", "JetBrains Mono", monospace;
  font-size: 0.88em;
  background: var(--tag-bg);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Props */
.props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.prop {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.prop-icon {
  font-size: 22px;
  margin-bottom: 12px;
}
.prop h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.prop p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer p {
  font-size: 13px;
  color: var(--muted);
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
}

@media (max-width: 600px) {
  .step:first-child {
    border-radius: 10px 10px 0 0;
  }
  .step:last-child {
    border-radius: 0 0 10px 10px;
  }
}
