:root {
  --bg: #08090b;
  --panel: #111318;
  --panel-2: #161922;
  --line: #262a35;
  --text: #f5f6f8;
  --muted: #9ca3b1;
  --soft: #c6cad3;
  --purple: #a78bfa;
  --blue: #60a5fa;
  --pink: #f472b6;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(96,165,250,.10), transparent 30rem),
    radial-gradient(circle at 90% 12%, rgba(167,139,250,.08), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }
.shell { width: min(1580px, calc(100% - 36px)); margin-inline: auto; }

.site-header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding-inline: max(18px, calc((100vw - 1580px)/2));
  background: rgba(8,9,11,.82);
  border-bottom: 1px solid rgba(255,255,255,.05);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-avatar { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; border: 1px solid rgba(255,255,255,.12); }
.brand span { color: var(--muted); font-weight: 600; }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav a {
  text-decoration: none;
  color: var(--soft);
  padding: 8px 12px;
  border-radius: 10px;
}
.top-nav a:hover, .top-nav a.active { color: #fff; background: rgba(255,255,255,.07); }

.landing { min-height: calc(100vh - 136px); display: grid; align-content: center; padding-block: 60px; }
.landing-intro { max-width: 760px; margin-bottom: 36px; }
.eyebrow, .section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(42px, 7vw, 78px); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 720px; color: var(--soft); font-size: clamp(17px, 2vw, 20px); margin: 22px 0 0; }

.bot-view-tabs { display: flex; gap: 8px; margin-top: 28px; }
.bot-view-tabs a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--soft);
  background: rgba(255,255,255,.02);
  font-size: 13px;
  font-weight: 750;
}
.bot-view-tabs a:hover, .bot-view-tabs a.active { color: #fff; background: rgba(255,255,255,.08); border-color: #343946; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice-card {
  min-height: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.choice-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  bottom: -120px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .22;
}
.chatbot-choice::after { background: var(--purple); }
.qol-choice::after { background: var(--blue); }
.choice-card:hover { transform: translateY(-3px); border-color: #3d4351; background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.024)); }
.choice-icon { color: var(--soft); font-size: 26px; }
.choice-label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.choice-card h2 { margin: 7px 0 6px; font-size: clamp(25px, 3vw, 35px); letter-spacing: -.035em; }
.choice-card p { max-width: 440px; margin: 0; color: var(--muted); }
.choice-arrow { position: absolute; right: 24px; top: 22px; font-size: 25px; color: var(--soft); }

.bot-page { padding: 62px 0 90px; }
.bot-hero { max-width: 930px; }
.bot-hero h1 { font-size: clamp(40px, 6.5vw, 72px); }
.toolbar { margin-top: 34px; display: grid; gap: 16px; }
.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  height: 48px;
  padding: 0 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.search-wrap span { color: var(--muted); font-size: 13px; font-weight: 700; }
.search-wrap input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; }
.search-wrap input::placeholder { color: #676d7b; }
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.category-pills a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  text-decoration: none;
  color: var(--soft);
  font-size: 13px;
}
.category-pills a:hover { background: rgba(255,255,255,.07); color: #fff; }

.bot-section { scroll-margin-top: 90px; padding-top: 64px; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(280px, 1fr);
  align-items: end;
  gap: 30px;
  margin-bottom: 18px;
}
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.section-heading > p { margin: 0; justify-self: end; max-width: 590px; color: var(--muted); }
.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; align-items: stretch; }
.bot-card {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: transform .16s ease, border-color .16s ease;
}
.bot-card:hover { transform: translateY(-2px); border-color: #3a4050; }
.bot-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(167,139,250,.25), transparent 33%),
    radial-gradient(circle at 80% 70%, rgba(96,165,250,.20), transparent 35%),
    #11131a;
  border-bottom: 1px solid var(--line);
}
.bot-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bot-art-fallback { font-size: 42px; font-weight: 900; letter-spacing: -.06em; color: rgba(255,255,255,.72); }
.bot-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}
.bot-card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bot-card h3 { margin: 0; font-size: 13.5px; line-height: 1.2; letter-spacing: -.025em; }
.requested-badge { flex: none; padding: 3px 7px; border-radius: 999px; background: rgba(244,114,182,.12); color: #f9a8d4; font-size: 11px; font-weight: 800; }
.bot-title { margin: 5px 0 0; color: var(--soft); font-size: 11.5px; line-height: 1.35; font-weight: 650; }
.bot-blurb { margin: 8px 0 11px; color: var(--muted); font-size: 11.5px; line-height: 1.42; flex: 1 1 auto; }
.chat-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 9px;
  text-decoration: none;
  border-radius: 10px;
  background: #202431;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}
.chat-button:hover { background: #2a3040; }
.empty-state, .load-error { margin: 70px 0; color: var(--muted); text-align: center; }
.site-footer { min-height: 68px; display: flex; align-items: center; color: #6d7381; font-size: 12px; }

@media (max-width: 900px) {
  .bot-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .section-heading > p { justify-self: start; }
}
@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1580px); }
  .site-header { height: 60px; }
  .brand span { display: none; }
  .landing { padding-block: 46px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 220px; padding: 22px; }
  .bot-page { padding-top: 42px; }
  .bot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bot-card { max-width: none; }
  .bot-title, .bot-blurb { min-height: 0; }
  .bot-section { padding-top: 62px; }
  .sticky-header { padding-inline: 12px; }
}

@media (max-width: 470px) {
  .bot-grid { grid-template-columns: 1fr; }
}
