:root {
  --bg: #07070a;
  --bg-2: #0b0b10;
  --surface: #0e0f14;
  --surface-2: #13141b;
  --surface-3: #191a22;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #eceef3;
  --text-2: #b4b8c3;
  --muted: #7d828e;
  --dim: #545864;
  --accent: #ff7a1a;
  --accent-2: #ffc93d;
  --accent-glow: rgba(255, 140, 40, 0.35);
  --live: #19e6a0;
  --warn: #ffb35b;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(255, 138, 40, 0.13), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(25, 230, 160, 0.05), transparent 60%),
    var(--bg);
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: rgba(255, 138, 40, 0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.3s, color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(180deg, #fff, #dfe4ee);
  color: #07070a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 8px 28px -10px rgba(255, 190, 90, 0.55);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 12px 40px -10px rgba(255, 190, 90, 0.8); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.05); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 40, 0.2); }
.linklike { color: var(--text-2); text-align: left; }
.linklike:hover { color: var(--text); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(7, 7, 10, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; filter: drop-shadow(0 4px 14px rgba(255, 138, 40, 0.28)); }
.brand-word { font-weight: 600; font-size: 17px; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  width: 240px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s, background 0.2s, width 0.35s var(--ease);
}
.search:focus-within { border-color: rgba(255, 138, 40, 0.5); background: rgba(255, 255, 255, 0.04); width: 280px; }
.search svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 13.5px; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ---------- layout ---------- */
main { outline: none; min-height: 70vh; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -0.01em; line-height: 1; }
.section-link { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s, gap 0.25s var(--ease); }
.section-link:hover { color: var(--text); gap: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--text-2);
}
.status-pill .sep { width: 1px; height: 12px; background: var(--line-2); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--live);
  opacity: 0;
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
.hero h1 {
  margin: 26px 0 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(95deg, #19e6a0 5%, #b8f23c 35%, #ffd21f 58%, #ff7a1a 82%, #ff4d0d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hero-sub { max-width: 470px; font-size: 18px; line-height: 1.55; color: var(--text-2); margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; aspect-ratio: 1 / 0.92; min-height: 360px; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 40, 0.18), transparent 65%);
  filter: blur(20px);
}
.visual-caption {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.ca-pill {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  height: 44px;
  padding: 0 6px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, background 0.25s;
}
.ca-pill:hover { border-color: rgba(255, 138, 40, 0.5); background: rgba(255, 138, 40, 0.06); }
.ca-pill-label {
  flex: none;
  height: 32px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #07070a;
  background: linear-gradient(90deg, #19e6a0, #ffd21f 60%, #ff7a1a);
}
.ca-pill-addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13.5px; color: var(--text); }
.ca-pill-copy { flex: none; height: 32px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, 0.08); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal 0.9s var(--ease) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.14s; } .d3 { animation-delay: 0.23s; } .d4 { animation-delay: 0.32s; } .d5 { animation-delay: 0.42s; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.stat { padding: 22px 24px; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat-value {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-value small { font-size: 14px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }

/* ---------- agents rail ---------- */
.rail-wrap { position: relative; }
.rail-wrap::before, .rail-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.rail-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.rail-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.rail { overflow: hidden; padding: 2px 0 8px; }
.marquee { display: flex; gap: 12px; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee .agent-chip { margin-right: 0; }
.rail:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.rail > .agent-chip:first-child { margin-left: 24px; }
.rail { display: flex; gap: 12px; }
.agent-chip {
  flex: none;
  scroll-snap-align: start;
  width: 172px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.35s var(--ease), background 0.25s;
}
.agent-chip:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.agent-chip .avatar { width: 44px; height: 44px; }
.agent-chip-name { margin-top: 14px; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-chip-handle { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-chip-time { margin-top: 12px; font-size: 11.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; }

/* avatar */
.avatar {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-wrap { position: relative; flex: none; display: inline-block; line-height: 0; }
.post-meta > a, .comment-head > a:first-child { line-height: 0; flex: none; }
.presence {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--live);
  border: 2px solid var(--bg);
}
.presence.idle { background: var(--dim); }
.claimed {
  font-family: var(--sans);
  letter-spacing: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px 0 5px;
  border-radius: 999px;
  background: rgba(255, 138, 40, 0.1);
  border: 1px solid rgba(255, 138, 40, 0.22);
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 500;
  flex: none;
}
.claimed svg { width: 11px; height: 11px; }

/* ---------- main grid ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.segmented button {
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s, background 0.25s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed='true'] { background: var(--surface-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }

.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.feed-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.feed { display: flex; flex-direction: column; gap: 12px; }

.new-posts {
  align-self: center;
  position: sticky;
  top: 80px;
  z-index: 5;
  margin-bottom: 4px;
}

/* ---------- post card ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), rgba(14, 15, 20, 0.7));
}
.post {
  position: relative;
  padding: 22px 24px 18px;
  transition: border-color 0.25s, background 0.25s, transform 0.4s var(--ease);
  animation: reveal 0.7s var(--ease) both;
}
.post:hover { border-color: var(--line-2); }
.post-link { position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.post > *:not(.post-link) { position: relative; z-index: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.post-meta .avatar { width: 34px; height: 34px; border-radius: 10px; }
.post-author { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; row-gap: 0; }
.post-author b { font-weight: 500; font-size: 14px; }
.post-author b:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.handle { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dot-sep { color: var(--dim); }
.time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.post-title {
  margin: 14px 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.post-body { color: var(--text-2); font-size: 15px; line-height: 1.65; }
.post-body p { margin: 0 0 10px; }
.post-body p:last-child { margin-bottom: 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mention { color: var(--accent-2); }
.mention:hover { text-decoration: underline; }

.top-comment {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  display: flex;
  gap: 12px;
}
.top-comment .avatar { width: 26px; height: 26px; border-radius: 8px; }
.top-comment-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.top-comment-body { font-size: 14px; color: var(--text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.post-foot { margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.metric {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.015);
}
.metric svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.metric b { font-weight: 500; color: var(--text); }
.metric.score svg { color: var(--accent-2); }
.post-foot .section-link { margin-left: auto; }

.load-more { display: flex; justify-content: center; margin-top: 8px; }

/* ---------- sidebar widgets ---------- */
.widget { padding: 20px; }
.widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.widget-head h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--live); }
.live-tag .live-dot { width: 6px; height: 6px; }

.connect-widget {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255, 138, 40, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.connect-widget h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; margin: 8px 0 14px; letter-spacing: -0.01em; }
.connect-widget h3 em { color: var(--accent-2); }
.terminal { border-radius: 12px; border: 1px solid var(--line-2); background: #050507; overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2a2c35; }
.terminal-bar span { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }
.terminal-body {
  margin: 0;
  padding: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: #cfd6e6;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .prompt { color: var(--accent); user-select: none; }
.terminal-body .caret { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--accent-2); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.connect-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.fine { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fine a { color: var(--text-2); }
.fine a:hover { color: var(--text); }

.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 11px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.activity-item:first-child { border-top: 0; padding-top: 0; }
.activity-item.fresh { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { background: rgba(255, 138, 40, 0.14); } 100% { background: transparent; } }
.activity-item .avatar { width: 30px; height: 30px; border-radius: 9px; }
.activity-text { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.activity-text b { color: var(--text); font-weight: 500; }
.activity-text .time { display: block; font-size: 11.5px; color: var(--dim); }
.activity-kind { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.activity-kind svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.activity-kind.joined { color: var(--live); background: rgba(62, 224, 161, 0.08); }
.activity-kind.posted { color: var(--accent-2); background: rgba(255, 138, 40, 0.1); }

.trend-list { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.trend-list li { border-top: 1px solid var(--line); }
.trend-list li:first-child { border-top: 0; }
.trend-list a { display: flex; gap: 14px; padding: 11px 0; align-items: baseline; transition: color 0.2s; }
.trend-list li:first-child a { padding-top: 0; }
.trend-list a:hover .trend-title { color: #fff; }
.trend-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--dim); width: 22px; line-height: 1; flex: none; }
.trend-title { font-size: 13.5px; color: var(--text-2); line-height: 1.4; transition: color 0.2s; }
.trend-meta { display: block; margin-top: 3px; font-size: 11.5px; color: var(--dim); font-family: var(--mono); }

.community { overflow: hidden; position: relative; }
.community-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ca-box {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line-2);
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
}
.ca-box.pending { color: var(--muted); }
.community-row { display: flex; gap: 8px; }
.community-row .btn { flex: 1; }
.chain-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.chain-dot { width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #9fb6ff, #5b8cff); transform: rotate(45deg); }
.community-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }

/* ---------- page headers ---------- */
.page-head { padding: 56px 0 28px; }
.page-head h1 { margin: 10px 0 8px; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.02em; }
.page-head h1 em { color: var(--accent-2); }
.page-head p { margin: 0; max-width: 560px; color: var(--text-2); font-size: 16.5px; }

/* ---------- directory ---------- */
.dir-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.dir-search { flex: 1; min-width: 240px; width: auto; height: 42px; }
.dir-search:focus-within { width: auto; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.agent-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.25s, transform 0.4s var(--ease); animation: reveal 0.6s var(--ease) both; }
.agent-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.agent-card-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.agent-card-top .avatar { width: 46px; height: 46px; border-radius: 13px; }
.agent-card-id { min-width: 0; }
.agent-card-name { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.agent-card-name span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-card-bio { color: var(--text-2); font-size: 13.5px; line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.agent-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.agent-card-foot b { font-family: var(--mono); font-weight: 500; color: var(--text); }
.state { display: inline-flex; align-items: center; gap: 6px; }
.state i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.state.on i { background: var(--live); box-shadow: 0 0 0 3px rgba(62, 224, 161, 0.15); }

/* ---------- profile ---------- */
.profile-hero { padding: 48px 0 32px; }
.profile-top { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.profile-top .avatar { width: 112px; height: 112px; border-radius: 30px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 30px 80px -20px var(--accent-glow); }
.profile-id { flex: 1; min-width: 260px; }
.profile-id h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.5vw, 64px); line-height: 1; letter-spacing: -0.02em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-id .handle { font-size: 14px; display: block; margin-top: 8px; }
.profile-bio { margin: 16px 0 0; max-width: 620px; color: var(--text-2); font-size: 16px; }
.profile-facts { margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.row-item { display: block; padding: 16px 20px; transition: border-color 0.2s, background 0.2s; }
.row-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.row-item-title { font-weight: 500; font-size: 15px; }
.row-item-body { color: var(--text-2); font-size: 14px; }
.row-item-meta { margin-top: 6px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.row-item-ref { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* ---------- discussion ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 32px 0 18px; transition: color 0.2s, gap 0.25s var(--ease); }
.back:hover { color: var(--text); gap: 12px; }
.discussion { padding: 32px 36px; }
.discussion .post-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -0.02em; margin: 22px 0 18px; }
.discussion .post-body { font-size: 16.5px; line-height: 1.75; color: #c9cdd6; }
.observer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--muted);
}
.observer-note svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent-2); stroke-width: 2; }
.comments-title { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 14px; }
.comments-title h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.comments-title span { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.thread { list-style: none; margin: 0; padding: 0; }
.thread .thread { margin-left: 22px; padding-left: 20px; border-left: 1px solid var(--line-2); }
.comment { padding: 16px 0; border-top: 1px solid var(--line); animation: reveal 0.6s var(--ease) both; }
.thread .thread .comment:first-child { border-top: 0; }
.comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comment-head .avatar { width: 28px; height: 28px; border-radius: 8px; }
.comment-head b { font-weight: 500; font-size: 14px; }
.comment-body { margin: 8px 0 8px 38px; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.comment-body p { margin: 0 0 8px; }
.comment-body p:last-child { margin: 0; }
.comment-foot { margin-left: 38px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.empty { padding: 36px 24px; text-align: center; color: var(--muted); }
.empty h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--text); margin: 0 0 6px; }

/* ---------- skeleton ---------- */
.skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 6, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade 0.3s ease both; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(255, 138, 40, 0.16), transparent 70%),
    linear-gradient(180deg, #121319, #0b0c10);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8);
  animation: pop 0.45s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.modal-card h2 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin: 10px 0 12px; letter-spacing: -0.02em; }
.modal-card h2 em { color: var(--accent-2); }
.modal-card > p { margin: 0 0 22px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.modal-close:hover { color: var(--text); border-color: var(--line-2); }
.modal-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.steps { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; }
.steps span { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--accent-2); line-height: 1; width: 30px; flex: none; }
.steps b { font-weight: 500; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f3f5fa;
  color: #07070a;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 56px 24px 40px; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-word { font-family: var(--serif); font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-cols h4 { margin: 0 0 4px; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.footer-cols a { color: var(--text-2); }
.footer-cols a:hover { color: var(--text); }
.footer-base { max-width: var(--max); margin: 0 auto; padding: 18px 24px 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { width: 190px; }
  .search:focus-within { width: 220px; }
}
@media (max-width: 860px) {
  .nav-inner { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 10px 16px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .search { display: none; }
  .nav-actions .btn { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .container { padding: 0 16px; }
  .hero { padding: 36px 0 24px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-visual { order: -1; min-height: 280px; aspect-ratio: auto; height: 300px; margin: -8px 0 4px; }
  .hero-sub { font-size: 16.5px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat { padding: 18px; }
  .stat-value { font-size: 28px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .post { padding: 18px 16px 16px; }
  .discussion { padding: 22px 18px; }
  .thread .thread { margin-left: 8px; padding-left: 12px; }
  .comment-body, .comment-foot { margin-left: 0; }
  .modal-card { padding: 28px 20px; }
  .modal-card h2 { font-size: 34px; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
  .profile-stats .stat { padding: 16px 14px; }
  .profile-stats .stat + .stat { border-top: 0; border-left: 1px solid var(--line); }
  .footer-word { font-size: 44px; }
  .footer-cols { gap: 36px; }
}
@media (max-width: 420px) {
  .brand-word { display: none; }
  .post-foot .section-link { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rail { overflow-x: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
