@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: #0a0a0a;
  color: #e0e0e0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  height: 56px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1a1a1a;
}

.nav-brand {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { color: #a855f7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}
.nav-links a {
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: #e0e0e0; }

.nav-cta {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #666;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: #161616;
  border: 1px solid #2a2a2a;
  color: #e0e0e0;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: #555; color: #fff; }

.version-note {
  font-size: 0.8rem;
  color: #444;
  margin-top: 0.5rem;
}

/* ── Section base ── */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* keep old selectors working */
.features, .install, .links {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-heading {
  font-size: 1.6rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 2rem;
}

.section-intro {
  font-size: 1rem;
  color: #888;
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.section-intro strong { color: #c0c0c0; }
.section-intro a { color: #c084fc; text-decoration: none; }
.section-intro a:hover { text-decoration: underline; }

/* ── Features ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: #3a3a3a; }

.feature-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.9rem; color: #666; }

/* ── Step cards (Get Started) ── */
.step-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  display: flex;
  gap: 1.25rem;
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.step-card:hover { border-color: #333; }

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.4rem;
}
.step-body p {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.6;
}

.tip-box {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 7px;
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.5;
}
.tip-box .ref-code {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.8em;
  color: #c084fc;
  background: transparent;
  border: none;
  padding: 0;
}

/* ── Install ── */
.install-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.install-steps li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  color: #aaa;
  font-size: 0.95rem;
}
.install-steps li::before {
  content: counter(step);
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #a855f7;
  font-weight: 700;
  font-size: 0.8rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.install-steps code {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.85em;
  color: #c084fc;
}
.req-note {
  font-size: 0.8rem;
  color: #444;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.sub-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #aaa;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.code-block {
  background: #0e0e0e;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}
.code-block.mini { padding: 0.9rem 1.1rem; }
.code-block pre { margin: 0; }
.code-block code {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.82rem;
  color: #b0b0b0;
  line-height: 1.6;
  white-space: pre;
}

/* ── Docs ── */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.doc-block {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.doc-block:hover { border-color: #2e2e2e; }

.doc-block h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.6rem;
}
.doc-block p {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #777;
}
.doc-list li {
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.doc-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #444;
}
.doc-list.ordered { counter-reset: item; }
.doc-list.ordered li { counter-increment: item; }
.doc-list.ordered li::before { content: counter(item) '.'; color: #555; font-size: 0.8em; top: 1px; }
.doc-list strong { color: #bbb; }
.doc-list code {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  padding: 1px 5px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.82em;
  color: #c084fc;
}
.doc-list a { color: #c084fc; text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }

kbd {
  display: inline-block;
  padding: 2px 6px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.8em;
  color: #aaa;
}

.inline-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #c084fc;
  text-decoration: none;
  transition: color 0.15s;
}
.inline-link:hover { color: #a855f7; text-decoration: underline; }

/* ── Contribute ── */
.contrib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contrib-card {
  background: #111;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.contrib-card:hover { border-color: #333; }

.contrib-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}
.contrib-card p {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.contrib-card code {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  padding: 1px 5px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.82em;
  color: #c084fc;
}

.roadmap-box {
  background: #0e0e0e;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 1.5rem;
}
.roadmap-box h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #bbb;
  margin-bottom: 1rem;
}
.roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.roadmap-list li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #777;
}

.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.tag-open {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.tag-done {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── Affiliate ── */
.affiliate-section {
  /* inherits .section layout */
}

.affiliate-card {
  background: #111;
  border: 1px solid #2a1f3a;
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.affiliate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(168,85,247,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.affiliate-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 1rem;
}

.affiliate-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}
.affiliate-card p {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.ref-block {
  background: #0e0e0e;
  border: 1px solid #1f1f1f;
  border-radius: 9px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ref-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ref-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  width: 90px;
  flex-shrink: 0;
}

.ref-code {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.88rem;
  color: #c084fc;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  padding: 3px 10px;
  user-select: all;
}

.copy-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  padding: 4px 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.copy-btn:hover { color: #e0e0e0; border-color: #444; }

.affiliate-faq {
  padding: 1.5rem;
  background: #0c0c0c;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
}
.affiliate-faq h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #bbb;
  margin-bottom: 0.5rem;
}
.affiliate-faq p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

/* ── Links ── */
.link-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.link-list a {
  color: #c084fc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.link-list a:hover { color: #a855f7; text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: #333;
  font-size: 0.8rem;
  border-top: 1px solid #141414;
}
.site-footer a { color: #444; text-decoration: none; }
.site-footer a:hover { color: #666; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .site-nav { gap: 1rem; padding: 0 1rem; }
  .nav-links { display: none; }
  .step-card { flex-direction: column; gap: 0.75rem; }
  .ref-row { flex-direction: column; align-items: flex-start; }
  .ref-label { width: auto; }
}
