:root {
  --bg: #080710;
  --surface: #110f1d;
  --surface-elevated: #19152b;
  --border: #282145;
  --primary: #8b3dff;
  --primary-hover: #7c3aed;
  --accent: #ec4899;
  --teal: #14b8a6;
  --text: #f5f3ff;
  --muted: #a7a3be;
  --glow: rgba(139, 61, 255, 0.32);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top right, rgba(139, 61, 255, 0.16), transparent 45%),
    radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.08), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.topbar {
  background: rgba(17, 15, 29, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 0 18px var(--glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-links a:hover { color: #d8b4fe; }

.hero { padding: 54px 20px 36px; }

.badge {
  display: inline-block;
  background: rgba(139, 61, 255, 0.16);
  border: 1px solid rgba(139, 61, 255, 0.42);
  color: #d8b4fe;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 16px 0 12px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.lead { max-width: 700px; color: var(--muted); font-size: 1.08rem; }

.cta-row {
  display: flex;
  gap: 12px;
  margin: 26px 0 34px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  color: #fff;
  padding: 12px 22px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 61, 255, 0.34);
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 600;
}

.btn-outline:hover { border-color: var(--primary); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(155deg, var(--surface-elevated), var(--surface));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.card h2, .card h3 { margin-top: 0; color: var(--text); }
.muted { color: var(--muted); font-size: 0.92rem; }
.doc-page { padding: 42px 20px; max-width: 820px; }

.pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(139, 61, 255, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(139, 61, 255, 0.35);
}

.pill-teal {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.35);
}

.prompt-preview-shell {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.prompt-preview-img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #05040a;
  object-fit: cover;
  max-height: 520px;
}

code {
  background: rgba(139, 61, 255, 0.14);
  color: #d8b4fe;
  padding: 2px 7px;
  border-radius: 6px;
  word-break: break-all;
}

.notice-box {
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.32);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 20px;
  margin-top: 52px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #d8b4fe; }

@media (max-width: 760px) {
  .prompt-preview-shell { grid-template-columns: 1fr; }
}
