:root {
  --bg: #f6f5f0;
  --bg-alt: #efeee8;
  --surface: #ffffff;
  --surface-subtle: #faf9f5;
  --obsidian: #111317;
  --obsidian-2: #181c22;
  --obsidian-border: rgba(255, 255, 255, 0.12);
  --ink: #111317;
  --ink-2: #2b3038;
  --muted: #525965;
  --line: #dcdad0;
  --line-strong: #c8c5b8;
  --accent: #d93d1a;
  --accent-hover: #b83113;
  --accent-soft: #fcebe6;
  --emerald: #0e7a56;
  --emerald-soft: #e6f5ef;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(17, 19, 23, 0.05);
  --shadow-md: 0 8px 24px rgba(17, 19, 23, 0.07);
  --shadow-dark: 0 18px 42px rgba(17, 19, 23, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sticky Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(246, 245, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 218, 208, 0.65);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px rgba(17, 19, 23, 0.04);
}

.topbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark span {
  color: var(--accent);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-center a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.nav-x:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--obsidian);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-github:hover {
  background: #272c35;
  transform: translateY(-1px);
}

.icon-sm {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--obsidian);
  color: #ffffff;
}

.btn-dark:hover {
  background: #272c35;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: #ffffff;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-sm {
  font-size: 0.84rem;
  padding: 8px 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.text-link:hover {
  color: var(--accent);
}

.text-link-light {
  color: rgba(255, 255, 255, 0.74);
}

.text-link-light:hover {
  color: #ffffff;
}

/* Hero Section */
.hero-shell {
  background:
    radial-gradient(820px 380px at 88% 12%, rgba(217, 61, 26, 0.09), transparent 65%),
    radial-gradient(640px 340px at 8% 82%, rgba(14, 122, 86, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 24px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.06fr);
  gap: 32px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(14, 122, 86, 0.16);
  display: inline-block;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.85vw, 3.15rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.036em;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.58;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 18px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Featured Spotlight Card */
.spotlight-card {
  position: relative;
  background: linear-gradient(155deg, var(--obsidian-2) 0%, var(--obsidian) 100%);
  color: #f6f7f9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #f07d52 60%, rgba(217, 61, 26, 0.15) 100%);
}

.spotlight-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.spotlight-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-featured {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 61, 26, 0.2);
  border: 1px solid rgba(217, 61, 26, 0.48);
  color: #ff9c82;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill-category-dark {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.74rem;
  font-weight: 600;
}

.spotlight-domain {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #9ba4b2;
}

.spotlight-domain:hover {
  color: #ffffff;
}

.spotlight-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 6px;
}

.spotlight-tagline {
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffb19c;
  margin-bottom: 12px;
}

.spotlight-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #c8cfd8;
  margin-bottom: 18px;
}

.spotlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.spotlight-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.87rem;
  line-height: 1.48;
  color: #e4e8ee;
}

.spotlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--obsidian-border);
}

/* Section Layout */
.section {
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--line);
}

.section-surface {
  background: var(--surface);
}

.section-tinted {
  background: var(--bg);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-kicker {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-intro {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 64ch;
}

/* 3-Tab Switcher */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: var(--radius-md);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease);
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.tab-btn[aria-selected="true"] .tab-count {
  background: var(--accent-soft);
  color: var(--accent);
}

.category-blurb {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 72ch;
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease), background-color 180ms var(--ease);
}

.tool-card:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-card-featured {
  border-color: rgba(217, 61, 26, 0.45);
  background: var(--surface);
}

.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.tool-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  background: var(--bg-alt);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: rgba(217, 61, 26, 0.25);
}

.badge-live {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: rgba(14, 122, 86, 0.2);
}

.tool-domain {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-domain:hover {
  color: var(--accent);
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.tool-tagline {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 10px;
}

.tool-desc {
  font-size: 0.9rem;
  line-height: 1.56;
  color: var(--muted);
  margin-bottom: 14px;
}

.tool-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tool-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.tool-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.tool-actions .text-link {
  margin-left: auto;
  font-size: 0.82rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 18px;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.tier-card-pro {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(217, 61, 26, 0.08);
  position: relative;
}

.tier-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.tier-card-pro .tier-label {
  color: var(--accent);
}

.tier-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.price-line {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 12px;
}

.price-line span {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.tier-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.tier-cta {
  width: 100%;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Research Section */
.theses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.thesis-card {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.thesis-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin: 10px 0 8px;
}

.thesis-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.thesis-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.sub-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.sub-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.thesis-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 36px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background: var(--bg-alt);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

tbody tr:last-child td {
  border-bottom: none;
}

.doi-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.doi-badge:hover {
  background: #d5ede3;
}

.cell-actions {
  text-align: right;
  white-space: nowrap;
}

.cell-actions a {
  display: inline-block;
  margin-left: 10px;
}

.preprints-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.preprint-item {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.preprint-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.preprint-item p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.45;
}

.preprint-proof {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--emerald);
  margin-top: 6px;
}

.preprint-links {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* Footer */
footer {
  background: var(--obsidian);
  color: #c8cfd8;
  padding: 52px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--obsidian-border);
}

.footer-brand .wordmark {
  color: #ffffff;
  font-size: 1.25rem;
}

.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.6;
  color: #9ba4b2;
  margin: 12px 0 18px;
  max-width: 38ch;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #eef1f5;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.86rem;
  color: #a9b2bf;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #8791a0;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* 404 Page */
.page-404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.box-404 {
  max-width: 460px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.box-404 h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 14px 0 8px;
}

.box-404 p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tools-grid,
  .pricing-grid,
  .theses-grid,
  .preprints-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 16px;
  }
  .topbar-inner {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 8px;
  }
  .brand-mark {
    width: 24px;
    height: 24px;
  }
  .wordmark {
    font-size: 1.02rem;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-x {
    padding: 7px 9px;
  }
  .nav-x span {
    display: none;
  }
  .nav-github {
    padding: 7px 11px;
    font-size: 0.8rem;
  }
  .nav-center {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
  }
  .hero {
    padding: 24px 0 32px;
  }
  .hero h1 {
    font-size: 1.95rem;
    overflow-wrap: break-word;
  }
  .spotlight-card {
    padding: 20px;
  }
  .trust-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tools-grid,
  .pricing-grid,
  .theses-grid,
  .preprints-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .tablist {
    width: 100%;
  }
  .tab-btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 9px 10px;
    font-size: 0.82rem;
  }
}
