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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cs-background);
  color: var(--cs-text);
}

/* ── Hero ── */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.32), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(14, 165, 233, 0.12), transparent),
    var(--cs-background);
  min-height: 100vh;
}
.hero {
  padding: calc(56px + 80px) 24px 48px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 15px;
  color: var(--cs-text-muted);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.gradient-text {
  background: linear-gradient(135deg, #7c3aed, #0ea5e9, #ec4899);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Code blocks ── */
.code-block {
  position: relative;
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius, 8px);
  padding: 20px 48px 20px 20px;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
  display: inline-block;
  max-width: 100%;
}
.code-block--wide { width: 100%; display: block; }
.code-comment { color: var(--cs-text-muted); }
.code-tag { color: #7c3aed; }
.code-attr { color: #0ea5e9; }
.code-val { color: #22c55e; }
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--cs-border);
  border: none;
  color: var(--cs-text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.copy-btn:hover { background: var(--cs-primary); color: #fff; }
.copy-btn.copied { background: #22c55e; color: #fff; }

/* ── Sections ── */
section { padding: 80px 24px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--cs-text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-title {
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-desc {
  color: var(--cs-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ── Two ways ── */
.two-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.way-panel { padding: 28px; }
.way-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.way-icon { font-size: 28px; }
.way-title { font-weight: 700; font-size: 18px; }
.way-sub { color: var(--cs-text-muted); font-size: 13px; }
.way-note {
  color: var(--cs-text-muted);
  font-size: 12px;
  margin-bottom: 8px;
}

/* ── Theme preview ── */
.theme-section {
  background: var(--cs-surface);
  border-top: 1px solid var(--cs-border);
  border-bottom: 1px solid var(--cs-border);
}
.theme-section-badge {
  margin-bottom: 16px;
}
.theme-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.theme-picker .cs-card-header {
  margin-bottom: 12px;
}
.theme-picker .cs-card-title {
  margin: 0;
}
.theme-pills {
  gap: 8px;
  margin-bottom: 8px;
}
.theme-pill {
  font-family: inherit;
}
.code-block--compact {
  margin-top: 8px;
}
.code-block--compact pre {
  font-size: 13px;
  padding: 14px 16px;
}
.theme-preview {
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.theme-preview .cs-card-header {
  margin-bottom: 0;
}
.theme-preview .cs-card-subtitle {
  margin-bottom: 20px;
}
.preview-actions,
.preview-badges {
  margin-bottom: 16px;
}
.preview-progress-bar { width: 65%; }
.preview-note { margin-bottom: 16px; }

@media (max-width: 900px) {
  .theme-layout {
    grid-template-columns: 1fr;
  }
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124, 58, 237, 0.18), transparent),
    var(--cs-background);
}
.cta-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius, 8px);
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .two-ways { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}
.logo { font-size:18px;font-weight:800;background:linear-gradient(135deg,#7c3aed,#0ea5e9);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none; }
.nav-right { display:flex;align-items:center;gap:6px;flex-wrap:wrap; }
.nav-more-wrap { position:relative; }
.nav-more-menu { position:absolute;right:0;top:calc(100% + 8px);min-width:200px;max-height:70vh;overflow-y:auto;background:var(--cs-surface);border:1px solid var(--cs-border);border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,0.35);padding:8px 0;z-index:300; }
.nav-more-menu[hidden] { display:none; }
.nav-more-menu a { display:block;padding:8px 16px;font-size:13px;color:var(--cs-text-muted);text-decoration:none; }
.nav-more-menu a:hover { background:rgba(124,58,237,0.1);color:var(--cs-text); }
