:root {
  --bg: #0a0910; --surface: #15121d; --surface-2: #1d1828; --text: #f2edf8; --muted: #a99fbb;
  --purple: #9a6ad8; --purple-deep: #5b2e9a; --gold: #d9bf85; --gold-deep: #b8964f; --line: #2b2438;
  --lilac: #c9a8f0; --bubble-end: #7c4fc4;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
header, main, footer, .topbar { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
a { color: var(--gold); }
.hero { position: relative; overflow: hidden; text-align: center; padding-top: 56px; padding-bottom: 40px; }
.logo-wrap { position: relative; width: min(260px, 62vw); margin: 0 auto 20px; }
.logo-wrap::before {
  content: ""; position: absolute; inset: -45%; z-index: 0;
  background: radial-gradient(circle, rgba(154, 106, 216, .45) 0%, rgba(91, 46, 154, .2) 38%, rgba(10, 9, 16, 0) 68%);
}
.logo { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.wordmark { margin: 0; font-size: clamp(2.6rem, 12vw, 4.5rem); line-height: 1.05; font-weight: 800; letter-spacing: 0.02em; }
.accent { color: var(--gold); }
.labs { color: var(--lilac); }
.tagline { margin: 20px 0 0; font-size: 1.25rem; color: var(--text); }
.sub { margin: 8px 0 0; color: var(--muted); }
.spark { position: absolute; width: 10px; height: 10px; transform: rotate(45deg); opacity: .35; pointer-events: none; animation: twinkle 6s ease-in-out infinite; }
.s1 { top: 14%; left: 12%; background: var(--gold); }
.s2 { top: 30%; right: 10%; background: var(--purple); width: 14px; height: 14px; animation-delay: -2s; }
.s3 { top: 62%; left: 7%; background: var(--purple); width: 7px; height: 7px; animation-delay: -4s; }
.s4 { top: 70%; right: 14%; background: var(--gold); width: 8px; height: 8px; animation-delay: -1s; }
.s5 { top: 8%; right: 30%; background: var(--gold); width: 6px; height: 6px; animation-delay: -3s; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .spark { animation: none; } }
.topbar { display: flex; padding-top: 20px; padding-bottom: 8px; font-weight: 700; }
.topbar a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); }
.topbar img { border-radius: 8px; display: block; }
.product { padding: 24px 0 32px; }
h2, .page-title { color: var(--gold); }
h2 { margin: 0 0 20px; padding-bottom: 10px; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; position: relative; }
h2::after, .page-title::after { content: ""; display: block; height: 1px; margin-top: 10px; background: linear-gradient(90deg, var(--gold), var(--purple), transparent); }
.page-title { margin: 0; font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.02em; }
.lead { margin: 14px 0 28px; color: var(--muted); font-size: 1.05rem; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.card:hover, .card:focus-within { border-color: var(--gold); }
.card a { display: block; height: 100%; padding: 20px; color: inherit; text-decoration: none; border-radius: 14px; outline: none; }
.card h3 { margin: 0; font-size: 1.25rem; color: var(--gold); }
.card p { margin: 6px 0 14px; }
.tag { color: var(--muted); font-size: .85rem; }
.chat {
  display: flex; flex-direction: column; gap: 12px; padding: 20px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
}
.msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; }
.msg p { margin: 0; }
.msg p + p { margin-top: 4px; }
.me { align-self: flex-end; background: linear-gradient(135deg, var(--purple-deep), var(--bubble-end)); color: #fff; border-bottom-right-radius: 4px; }
.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bot strong { font-weight: 700; }
.bot blockquote { margin: 8px 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--gold); color: var(--muted); }
.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border: 1px solid var(--gold-deep); border-radius: 999px; font-size: .9rem; color: var(--gold); }
footer { padding-top: 32px; padding-bottom: 56px; color: var(--muted); font-size: .9rem; }
footer p { margin: 0; border-top: 1px solid var(--line); padding-top: 24px; }
.lost { padding-top: 96px; padding-bottom: 48px; }
.lost h1 { margin: 0 0 16px; font-size: 2rem; color: var(--gold); }
