:root {
  color-scheme: dark;
  --bg-1: #0b1024;
  --bg-2: #1d1740;
  --bg-3: #050810;
  --indigo: #6c7df0;
  --indigo-2: #8190ff;
  --purple: #b378ff;
  --text: #ecedf6;
  --text-dim: rgba(236, 237, 246, 0.7);
  --text-faint: rgba(236, 237, 246, 0.45);
  --border: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.08);
  --max-width: 880px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 800px at 20% -200px, rgba(108, 125, 240, 0.25), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(179, 120, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-3) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo-2); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
}

.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(11, 16, 36, 0.65);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  box-shadow: 0 6px 14px rgba(108, 125, 240, 0.35);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}
.brand-text em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 4px;
}
.topnav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.topnav a { color: var(--text-dim); }
.topnav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 24px 48px;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5.5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero .lead {
  margin: 0 auto 32px;
  max-width: 620px;
  font-size: 17px;
  color: var(--text-dim);
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 18px;
  padding: 0 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.18s, background 0.18s;
}
.search:focus-within {
  border-color: rgba(108, 125, 240, 0.7);
  background: rgba(108, 125, 240, 0.08);
}
.search svg { color: var(--text-faint); flex-shrink: 0; }
.search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text);
}
.search input::placeholder { color: var(--text-faint); }
.search button#clear {
  background: transparent;
  border: 0;
  color: var(--text-faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  visibility: hidden;
}
.search button#clear:hover { color: var(--text); }
.search.has-text button#clear { visibility: visible; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}
.chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
}
.chip:hover { background: var(--card-hover); color: var(--text); }
.chip-active {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(108, 125, 240, 0.35);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: var(--max-width);
  margin: 16px auto 64px;
  padding: 0 20px;
}
.faq section { margin-top: 40px; }
.faq h2 {
  font-size: 22px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  position: sticky;
  top: 70px;
  background:
    linear-gradient(180deg, rgba(11, 16, 36, 0.92) 0%, rgba(11, 16, 36, 0.6) 100%);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  padding: 8px 0;
  z-index: 5;
}

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.18s, border-color 0.18s;
}
details:hover { background: var(--card-hover); }
details[open] {
  background: rgba(108, 125, 240, 0.06);
  border-color: rgba(108, 125, 240, 0.3);
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "›";
  color: var(--text-faint);
  font-size: 22px;
  font-weight: 400;
  transform: rotate(90deg);
  transition: transform 0.18s;
}
details[open] summary::after { transform: rotate(-90deg); color: var(--indigo-2); }
details > p,
details > ul {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-dim);
  font-size: 15px;
}
details > p + p { padding-top: 0; padding-bottom: 16px; }
details > ul {
  padding-left: 38px;
}
details > ul li { padding: 3px 0; }

.empty {
  text-align: center;
  color: var(--text-faint);
  margin: 60px 0;
  font-size: 15px;
}

/* ---------- Contact ---------- */
.contact {
  padding: 32px 20px 64px;
}
.contact-card {
  max-width: var(--max-width);
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(108, 125, 240, 0.18) 0%, rgba(179, 120, 255, 0.12) 100%);
  border: 1px solid rgba(108, 125, 240, 0.35);
  border-radius: 22px;
  padding: 40px 32px;
  text-align: center;
}
.contact-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}
.contact-card p {
  margin: 0 auto 22px;
  color: var(--text-dim);
  max-width: 520px;
}
.contact-button {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  border-radius: 999px;
  color: white;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(108, 125, 240, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
}
.contact-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(108, 125, 240, 0.5);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer nav { display: flex; gap: 18px; justify-content: center; }
.footer a { color: var(--text-faint); }
.footer a:hover { color: var(--text); text-decoration: none; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .topbar { padding: 12px 16px; }
  .topnav { display: none; }
  .hero { padding: 48px 16px 32px; }
  .hero h1 { font-size: 32px; }
  .faq h2 { top: 60px; font-size: 19px; }
  .contact-card { padding: 28px 20px; }
}
