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

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --border: #2a2a2a;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --text: #e5e5e5;
  --muted: #888;
  --code-bg: #1a1a1a;
  --green: #22c55e;
  --yellow: #eab308;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* HEADER */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header .logo {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

header .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* HERO */
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  max-width: 680px;
  margin: 0 auto;
}

.hero .badge {
  display: inline-block;
  background: #1e1033;
  color: var(--accent-light);
  border: 1px solid #3b1f6e;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--accent-light); }

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.card h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.card p { font-size: 0.85rem; color: var(--muted); }

/* GUIDE */
.guide-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.guide-wrap .back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.guide-wrap .back:hover { color: var(--text); }

.guide-wrap h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.guide-wrap .subtitle {
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

/* STEPS */
.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: #1e1033;
  border: 1px solid #3b1f6e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-top: 2px;
}

.step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: #ccc;
  font-size: 0.93rem;
  margin-bottom: 0.75rem;
}

/* CODE */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 0.88rem;
  color: #a78bfa;
  overflow-x: auto;
  margin: 0.5rem 0;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background: #2a2a2a;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  transition: color 0.2s;
}

.copy-btn:hover { color: var(--text); }

/* CALLOUT */
.callout {
  background: #111a11;
  border: 1px solid #1e3a1e;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #86efac;
  margin: 0.5rem 0;
}

.callout.warn {
  background: #1a1600;
  border-color: #3a2e00;
  border-left-color: var(--yellow);
  color: #fde68a;
}

/* TABLE */
.trouble-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.trouble-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.trouble-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.trouble-table tr:last-child td { border-bottom: none; }

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* SUCCESS */
.success-box {
  background: #0d1f0d;
  border: 1px solid #1e3a1e;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.success-box .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.success-box p { color: #86efac; font-size: 0.95rem; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .cards { grid-template-columns: 1fr; }
  .step { gap: 1rem; }
}
