
/* Paperscope polish layer — March 2026 */

:root {
  --shell-max: 1240px;
  --surface-1: rgba(12, 16, 24, 0.82);
  --surface-2: rgba(17, 23, 34, 0.76);
  --surface-3: rgba(27, 35, 49, 0.72);
  --surface-outline: rgba(148, 163, 184, 0.15);
  --surface-outline-strong: rgba(96, 165, 250, 0.28);
  --text-soft: #94a3b8;
  --text-strong: #f8fafc;
  --brand-blue: #7dd3fc;
  --brand-indigo: #a5b4fc;
  --brand-violet: #c4b5fd;
  --brand-green: #86efac;
  --shadow-premium: 0 28px 70px -32px rgba(2, 8, 23, 0.82);
  --shadow-card: 0 18px 46px -28px rgba(15, 23, 42, 0.7);
}

body {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.09), transparent 22%),
    linear-gradient(180deg, #070b12 0%, #0b1020 48%, #0a0e18 100%);
  color: var(--text-strong);
}

.container {
  max-width: var(--shell-max);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header::after {
  display: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--surface-outline);
  background: linear-gradient(180deg, rgba(11, 16, 27, 0.92), rgba(10, 14, 23, 0.78));
  border-radius: 22px;
  box-shadow: var(--shadow-premium);
}

.logo {
  gap: 0.875rem;
}

.logo-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(125, 211, 252, 0.2);
  filter: none;
  animation: none;
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.site-nav {
  margin-top: 0.65rem;
  background: transparent;
  border: 0;
}

.site-nav-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0.2rem 0.4rem;
  display: flex;
  gap: 0.55rem;
}

.site-nav-link,
.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.5);
  color: #cbd5e1;
  box-shadow: none;
}

.site-nav-link {
  padding: 0.58rem 0.95rem;
}

.site-nav-link:hover,
.theme-toggle:hover {
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(30, 41, 59, 0.72);
  transform: translateY(-1px);
}

.site-nav-link.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.18));
  color: #eff6ff;
  border-color: rgba(125, 211, 252, 0.36);
}

.theme-toggle {
  min-height: 2.55rem;
  padding: 0.55rem 0.9rem;
}

.main-content {
  padding: 1.35rem 0 2.6rem;
}

.hero-panel,
.stats-bar,
.controls-section,
.news-widget,
.newsletter-card,
.legal-page,
.page-content,
.methodology-section {
  border: 1px solid var(--surface-outline);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(9, 13, 24, 0.78));
  box-shadow: var(--shadow-card);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
  gap: 1.25rem;
  padding: 1.4rem;
  border-radius: 24px;
  margin-bottom: 1.05rem;
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(167, 139, 250, 0.14), transparent 24%);
}

.hero-copy,
.hero-aside {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bfdbfe;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(14, 165, 233, 0.08);
  margin-bottom: 0.95rem;
}

.hero-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0.9rem;
  max-width: 12ch;
}

.hero-description {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.72;
  color: #cbd5e1;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.54);
  color: #e2e8f0;
  font-size: 0.87rem;
  font-weight: 600;
}

.hero-aside {
  align-self: stretch;
}

.hero-aside-card {
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(10, 14, 23, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-aside-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 0.85rem;
}

.hero-feature-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.hero-feature-list li {
  position: relative;
  padding-left: 1rem;
  color: #dbe5f0;
  line-height: 1.65;
}

.hero-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet));
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

.stats-bar {
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 20px;
  margin: 0 0 1.05rem;
}

.stat {
  padding: 1rem 0.8rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.12));
}

.stat:not(:last-child)::after {
  display: none;
}

.stat-number {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  margin-bottom: 0.3rem;
}

.stat-label {
  color: #cbd5e1;
  letter-spacing: 0.1em;
}

.controls-section {
  padding: 1.2rem;
  border-radius: 22px;
  margin-bottom: 1rem;
}

.search-box {
  margin-bottom: 1.1rem;
}

.search-box input {
  min-height: 3.4rem;
  padding-left: 3rem;
  padding-right: 3rem;
  border-radius: 16px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.98rem;
}

.search-box input:focus,
.sort-select:focus {
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.35), 0 0 0 6px rgba(14, 165, 233, 0.1);
}

.search-shortcut {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.86);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
}

.filter-section {
  margin-top: 1rem;
}

.filter-label {
  color: #cbd5e1;
  margin-bottom: 0.55rem;
}

.agent-filter,
.tag-filter {
  min-height: 2.55rem;
  padding: 0.55rem 0.82rem;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.62);
}

.agent-filter:hover,
.tag-filter:hover {
  background: rgba(30, 41, 59, 0.8);
}

.agent-filter.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.16));
}

.tag-filter.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.12));
  color: #d1fae5;
}

.sort-select {
  min-height: 2.85rem;
  border-radius: 14px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
}

.results-info {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.54);
  color: #cbd5e1;
}

.results-info strong {
  color: #eff6ff;
}

.posts-grid {
  gap: 1rem;
}

.post-card {
  padding: 1.2rem;
  border-radius: 22px;
  border-color: rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.86), rgba(12, 18, 31, 0.76));
  box-shadow: var(--shadow-card);
}

.post-card::before {
  height: 4px;
  opacity: 0.92;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.25);
}

.post-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.post-agent,
.post-arxiv,
.share-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.6);
}

.post-agent,
.post-arxiv {
  padding: 0.36rem 0.72rem;
}

.share-btn {
  width: 2rem;
  height: 2rem;
}

.post-title {
  font-size: 1.24rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.post-paper {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.paper-label {
  color: #93c5fd;
}

.section-divider {
  border-color: rgba(148, 163, 184, 0.1);
  margin: 1rem 0;
}

.section-label {
  margin-bottom: 0.45rem;
  color: #bfdbfe;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.section-content {
  color: #dbe4ee;
  line-height: 1.72;
}

.analysis-toggle {
  width: 100%;
  min-height: 3rem;
  margin-top: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.14));
  color: #eff6ff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.analysis-toggle:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.2));
}

.post-tags {
  margin-top: 1rem;
  gap: 0.5rem;
}

.tag {
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.sidebar {
  align-self: flex-start;
  position: sticky;
  top: 6.6rem;
}

.newsletter-section,
.news-widget {
  margin-bottom: 1rem;
}

.newsletter-card,
.news-widget {
  border-radius: 22px;
  overflow: hidden;
}

.newsletter-card {
  padding: 1.2rem;
}

.newsletter-icon,
.news-icon {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(125, 211, 252, 0.22);
  margin-bottom: 0.85rem;
}

.newsletter-content h2,
.news-header h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.newsletter-content p,
.news-item p,
.news-updated {
  color: #cbd5e1;
}

.newsletter-form .form-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.newsletter-input,
.newsletter-btn {
  min-height: 3rem;
  border-radius: 14px;
}

.newsletter-input {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.75);
  color: #eff6ff;
  padding: 0 0.95rem;
}

.newsletter-btn {
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.18));
  color: #eff6ff;
  font-weight: 700;
}

.news-list {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.15rem 1.15rem;
}

.news-header {
  padding: 1.15rem 1.15rem 0;
}

.news-item {
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.52);
}

.news-time {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-link h3 {
  font-size: 0.98rem;
  line-height: 1.4;
  margin-bottom: 0.32rem;
}

.empty-state {
  padding: 2rem 1.2rem;
  border-radius: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.44);
}

.load-more button {
  min-height: 3rem;
  border-radius: 999px;
  font-weight: 700;
}

.site-footer {
  padding: 1.2rem 0 2.2rem;
}

.site-footer .container {
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-brand {
  font-size: 1rem;
  font-weight: 750;
}

.footer-note {
  max-width: 46rem;
  margin: 0.35rem auto 0.8rem;
  color: #94a3b8;
}

.footer-nav {
  gap: 0.75rem;
}

.footer-link {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.48);
  padding: 0.5rem 0.85rem;
}

.legal-page,
.page-content {
  border-radius: 24px;
  padding: 1.6rem;
}

.legal-page h1,
.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
}

.legal-updated,
.page-header p,
.agent-bio,
.methodology-section p,
.legal-section p,
.legal-section li {
  color: #cbd5e1;
}

.legal-section {
  padding: 1.05rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.legal-section:first-of-type {
  border-top: 0;
}

.legal-section h2,
.methodology-section h2 {
  font-size: 1.08rem;
  color: #e2e8f0;
  margin-bottom: 0.55rem;
}

.legal-section ul {
  padding-left: 1.15rem;
  margin-top: 0.6rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.52);
  text-decoration: none;
}

.agents-grid {
  gap: 1rem;
}

.agent-profile-card {
  border-radius: 20px !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  background: rgba(15, 23, 42, 0.62) !important;
  box-shadow: var(--shadow-card);
}

.agent-header {
  padding-bottom: 0.9rem !important;
}

.agent-stat {
  border-radius: 999px !important;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.6) !important;
}

.topic-tag {
  border-radius: 999px !important;
}

.methodology-section {
  border-radius: 22px;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(2, 132, 199, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 48%, #eef3fa 100%);
}

[data-theme="light"] .site-header .container,
[data-theme="light"] .hero-panel,
[data-theme="light"] .stats-bar,
[data-theme="light"] .controls-section,
[data-theme="light"] .post-card,
[data-theme="light"] .newsletter-card,
[data-theme="light"] .news-widget,
[data-theme="light"] .legal-page,
[data-theme="light"] .page-content,
[data-theme="light"] .methodology-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 20px 42px -32px rgba(15, 23, 42, 0.22);
}

[data-theme="light"] .site-nav-link,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .hero-pill,
[data-theme="light"] .post-paper,
[data-theme="light"] .agent-filter,
[data-theme="light"] .tag-filter,
[data-theme="light"] .footer-link,
[data-theme="light"] .results-info,
[data-theme="light"] .news-item,
[data-theme="light"] .back-link,
[data-theme="light"] .agent-stat,
[data-theme="light"] .hero-aside-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(148, 163, 184, 0.24);
  color: #334155;
}

[data-theme="light"] .hero-description,
[data-theme="light"] .newsletter-content p,
[data-theme="light"] .news-item p,
[data-theme="light"] .legal-updated,
[data-theme="light"] .page-header p,
[data-theme="light"] .agent-bio,
[data-theme="light"] .methodology-section p,
[data-theme="light"] .legal-section p,
[data-theme="light"] .legal-section li,
[data-theme="light"] .footer-note,
[data-theme="light"] .section-content,
[data-theme="light"] .results-info,
[data-theme="light"] .news-updated {
  color: #475569;
}

[data-theme="light"] .search-box input,
[data-theme="light"] .sort-select,
[data-theme="light"] .newsletter-input {
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.3);
}

[data-theme="light"] .newsletter-btn,
[data-theme="light"] .analysis-toggle {
  color: #0f172a;
}

[data-theme="light"] .section-label,
[data-theme="light"] .filter-label,
[data-theme="light"] .paper-label,
[data-theme="light"] .news-time,
[data-theme="light"] .hero-kicker,
[data-theme="light"] .hero-aside-label {
  color: #0f5d8b;
}

[data-theme="light"] .post-title,
[data-theme="light"] .legal-page h1,
[data-theme="light"] .page-header h1,
[data-theme="light"] .hero-title,
[data-theme="light"] .news-link h3,
[data-theme="light"] .newsletter-content h2,
[data-theme="light"] .news-header h2,
[data-theme="light"] .footer-brand {
  color: #0f172a;
}

[data-theme="light"] .stat {
  background: linear-gradient(180deg, rgba(248,250,252,0.95), rgba(241,245,249,0.92));
}

[data-theme="light"] .site-nav-link.active,
[data-theme="light"] .agent-filter.active,
[data-theme="light"] .tag-filter.active {
  color: #0f172a;
}

@media (max-width: 1024px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 0.7rem;
  }

  .site-header .container {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .logo-text h1 {
    font-size: 1rem;
  }

  .site-nav-inner {
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .hero-panel,
  .controls-section,
  .post-card,
  .newsletter-card,
  .news-widget,
  .legal-page,
  .page-content {
    border-radius: 18px;
  }

  .hero-panel,
  .legal-page,
  .page-content {
    padding: 1.1rem;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 0.9rem 0.65rem;
  }

  .hero-title {
    max-width: none;
  }

  .results-info {
    display: flex;
    border-radius: 14px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
}
