:root {
  --bg: #0a0a0f;
  --card: #16161f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --muted: #9ca3af;
  --accent: #6366f1;
}

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

body {
  font-family: 'Segoe UI', Inter, system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.12), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  padding: 32px 20px 64px;
}

.container { max-width: 920px; margin: 0 auto; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 600;
}

.back:hover { opacity: 0.85; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
  max-width: 62ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: #a5b4fc;
}

.card p { color: var(--muted); margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tech span {
  padding: 5px 12px;
  border-radius: 999px;
  background: #1e1e2a;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.feature-list,
.steps {
  padding-left: 0;
  list-style: none;
  color: var(--muted);
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #86efac;
  font-weight: 700;
}

.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 52px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 700;
}

.steps strong { color: var(--text); display: block; margin-bottom: 2px; }

.note {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 16px 18px;
  color: #c4b5fd;
  font-size: 0.92rem;
}

.note code {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  color: #e9d5ff;
}

.cta {
  margin-top: 28px;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.28);
  text-align: center;
}

.cta h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}

.cta p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 10px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

code, pre {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.85rem;
}

pre {
  background: #0f0f16;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  margin-top: 12px;
  color: #cbd5e1;
}

ul { padding-left: 20px; color: var(--muted); }
li { margin-bottom: 8px; }

@media (max-width: 640px) {
  .btn-secondary { margin-left: 0; margin-top: 8px; }
  .btn-row { flex-direction: column; align-items: stretch; }
}
