﻿:root {
  color-scheme: dark;
  --bg: #061523;
  --bg2: #0a2234;
  --surface: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .045));
  --surface-soft: rgba(255, 255, 255, .07);
  --text: #f8fbff;
  --muted: #a9bfd2;
  --faint: #86a4bb;
  --line: rgba(103, 232, 249, .24);
  --line-strong: rgba(157, 229, 242, .38);
  --brand: #14b8c8;
  --brand-strong: #67e8f9;
  --ai: #c4b5fd;
  --warning: #b45309;
  --danger: #b91c1c;
  --shadow: 0 38px 110px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .18);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(20, 184, 200, .32), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(103, 232, 249, .18), transparent 28%),
    linear-gradient(135deg, #06111d, var(--bg), var(--bg2));
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 24%, black, transparent 74%);
  opacity: .42;
  z-index: -1;
}
body::after {
  content: "";
  position: fixed;
  width: min(760px, 80vw);
  aspect-ratio: 1;
  right: -24vw;
  top: -30vw;
  border-radius: 50%;
  background: rgba(103, 232, 249, .16);
  filter: blur(70px);
  z-index: -2;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--text);
  color: var(--surface);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 20;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 21, 35, .78);
  border-bottom: 1px solid rgba(103, 232, 249, .2);
  backdrop-filter: blur(14px);
}
.site-nav, .app-shell, .site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.site-nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}
.brand strong { display: block; line-height: 1.1; color: #f8fbff; }
.brand small { color: #a9bfd2; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 11px; }
.nav-links { display: flex; align-items: center; gap: 16px; color: #dbeafe; font-weight: 750; }
.composer-actions button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 800;
}
.composer-actions button:hover { border-color: var(--brand); color: var(--brand-strong); }

.app-shell { padding: 28px 0 48px; }
.app-shell[aria-busy="true"] { opacity: .72; }
.site-footer {
  border-top: 1px solid rgba(103, 232, 249, .2);
  padding: 26px 0 38px;
  color: #a9bfd2;
  font-size: 14px;
}
.site-footer p { margin: 0 0 6px; }

.hero-thread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin: 22px 0 22px;
}
.eyebrow {
  margin: 0 0 10px;
  color: #67e8f9;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -.04em; color: #f8fbff; }
h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
h3 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.intro { color: #dbeafe; font-size: 18px; max-width: 760px; margin: 16px 0 0; }
.ai-participant-card, .panel, .search-panel, .metric, .thread-card, .thread-detail, .reply-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(157, 229, 242, .22);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.ai-participant-card { padding: 20px; align-self: start; }
.ai-participant-card h2 { margin: 10px 0 8px; }
.ai-participant-card p { color: var(--muted); margin: 0 0 12px; }
.ai-participant-card small { color: var(--ai); font-weight: 800; }

.avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(103, 232, 249, .18);
  color: #f8fbff;
  border: 1px solid rgba(103, 232, 249, .32);
  font-weight: 900;
  flex: none;
}
.ai-avatar, .reply-head .avatar:first-child:has(+ div .author-name) { background: rgba(196, 181, 253, .18); color: var(--ai); border-color: rgba(196, 181, 253, .34); }

.search-panel { padding: 18px; margin-bottom: 18px; }
.search-box { display: block; color: var(--muted); font-weight: 800; }
.search-box input {
  margin-top: 7px;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(3, 10, 18, .38);
  color: var(--text);
}
.filters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px; }
.filter-label { color: var(--muted); font-size: 13px; font-weight: 800; }
.filter-label select {
  display: block;
  width: 100%;
  min-height: 38px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3, 10, 18, .38);
  color: var(--text);
  padding: 0 9px;
}

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric { padding: 16px; }
.metric strong { display: block; font-size: 28px; letter-spacing: -.04em; }
.metric span { color: var(--muted); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

.layout-two { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.side-stack { display: grid; gap: 18px; position: sticky; top: 92px; }
.panel { padding: 18px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head span { color: var(--muted); font-weight: 800; font-size: 13px; }
.thread-list { display: grid; gap: 12px; }

.thread-card {
  padding: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035));
  border-color: rgba(157, 229, 242, .18);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.thread-card.compact { border-radius: 18px; }
.thread-main p { color: var(--muted); margin: 8px 0 12px; }
.thread-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--faint); font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.thread-meta span:not(.ai-label)::after { content: "·"; margin-left: 8px; color: var(--line-strong); }
.thread-meta span:last-child::after, .thread-meta .ai-label::after { content: ""; margin: 0; }
.thread-card h3 { line-height: 1.22; }
.thread-byline { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.author-name { display: block; font-weight: 900; }
.muted { color: var(--muted); }
.thread-stats { display: grid; grid-template-columns: 1fr; justify-items: end; align-content: start; gap: 0; color: var(--muted); font-size: 12px; }
.thread-stats strong { color: var(--text); font-size: 17px; }
.thread-stats span { margin-bottom: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row.large { gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .13);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 800;
}
.tag.subtle { background: transparent; }
.ai-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(196, 181, 253, .16);
  color: var(--ai);
  border: 1px solid rgba(196, 181, 253, .34);
  font-size: 12px;
  font-weight: 900;
}

.topic-list { display: grid; gap: 10px; }
.topic-list.gridish { grid-template-columns: repeat(2, 1fr); }
.topic-pill {
  display: block;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
}
.topic-pill strong { display: block; }
.topic-pill span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

.page-head { margin: 22px 0; }
.discovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.discovery-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, .34);
  background: rgba(255, 255, 255, .06);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 900;
}
.empty-state {
  border: 1px dashed rgba(157, 229, 242, .26);
  border-radius: 18px;
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
}
.empty-state h3 { color: #f8fbff; margin-bottom: 6px; }
.empty-state p { margin: 0; }
.thread-detail { padding: 24px; margin-bottom: 18px; }
.thread-detail h1 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; margin: 8px 0 12px; }
.starter { margin: 18px 0 8px; }
.reply-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.reply-head .ai-label { margin-left: auto; }
.markdown-body { color: var(--text); }
.markdown-body p { margin: 0 0 12px; }
.markdown-body blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--brand); background: rgba(255, 255, 255, .055); color: #dbeafe; }
.markdown-body pre { overflow-x: auto; padding: 14px; border-radius: 12px; background: #0f172a; color: #e5edf8; }
.markdown-body code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .92em; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--line); padding: 8px; text-align: left; }
th { background: rgba(255, 255, 255, .055); }
.reactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 800; }
.reactions button { border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; background: rgba(255, 255, 255, .055); color: #dbeafe; font: inherit; font-size: 13px; font-weight: 800; }
.reactions button:hover { border-color: var(--brand); color: var(--brand-strong); }
.reply-card { padding: 16px; margin: 12px 0 12px calc(var(--reply-depth, 0) * 30px); background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.reply-card.nested { border-left: 4px solid var(--line-strong); }
.reply-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; color: var(--faint); font-size: 13px; font-weight: 800; }
.reply-actions button { border: 0; background: transparent; color: var(--faint); padding: 0; font: inherit; font-weight: 800; }
.reply-actions button:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }

.composer label { display: block; color: var(--muted); font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(3, 10, 18, .38);
  color: var(--text);
  padding: 10px 12px;
  margin-top: 6px;
}
textarea { min-height: 150px; resize: vertical; }
.guidance { color: var(--muted); font-size: 14px; }
.composer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.composer-actions button:first-child { background: var(--brand); border-color: var(--brand); color: white; }

.research-grid, .profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.research-card h3, .profile-card h3 { margin-top: 16px; }
.research-card ul, .profile-card ul, .guidelines ul { padding-left: 20px; color: var(--muted); }
.profile-card header { display: flex; gap: 12px; align-items: center; }
.profile-card header p { margin: 3px 0; color: var(--muted); }
.reputation { color: var(--brand-strong); font-weight: 900; font-size: 13px; }
.mod-list { display: grid; gap: 10px; }
.mod-item { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: rgba(255, 255, 255, .055); }
.mod-item span { float: right; color: var(--warning); font-weight: 900; }
.mod-item p { color: var(--muted); margin: 6px 0; }
.error { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }

@media (max-width: 980px) {
  .hero-thread, .layout-two, .research-grid, .profile-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .site-nav { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 12px; }
  .nav-links { overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
  h1 { font-size: 34px; }
  .filters, .metrics, .form-grid, .topic-list.gridish { grid-template-columns: 1fr; }
  .thread-card { grid-template-columns: 1fr; }
  .thread-stats { grid-template-columns: repeat(4, 1fr); justify-items: start; }
  .reply-card { margin-left: calc(var(--reply-depth, 0) * 12px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}










