:root {
  --bg: #0d0714;
  --text: #f3f4f6;
  --muted: #a1a1aa;
  --accent: #c084fc;
  --accent-2: #818cf8;
  --border: rgba(192, 132, 252, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.1rem;
  min-height: 100vh;
}

#geo-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

header,
main,
footer {
  width: min(900px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab {
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-weight: 600;
}

.tab.active {
  background: #f3e8ff;
  border-color: #e9d5ff;
  color: #6b21a8;
}

.hero {
  padding: 5rem 0 2.5rem;
}

.tagline {
  display: inline-block;
  margin: 0;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.15), rgba(129, 140, 248, 0.15));
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0.8rem 0 0.5rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.4;
  padding-bottom: 0.1em;
  background: linear-gradient(120deg, #f1f5f9 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.2rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.links a:hover {
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.4);
  color: var(--accent);
}

section {
  background: rgba(20, 10, 30, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin: 1rem 0;
}

.section-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .section-row {
    grid-template-columns: 1fr 1.5fr;
    align-items: stretch;
  }
}

h2 {
  margin-top: 0;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

ul,
ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
}

li {
  margin-bottom: 0.4rem;
}

li strong {
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 132, 252, 0.3);
  box-shadow: 0 8px 32px rgba(192, 132, 252, 0.08);
}

.card h3 {
  margin-top: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 0;
}

.arxiv-logo {
  display: inline-flex;
  align-items: center;
  margin-left: 0.6rem;
  vertical-align: middle;
  color: var(--accent);
  transition: opacity 0.2s;
  text-decoration: none;
}

.arxiv-logo:hover {
  opacity: 0.7;
}

footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
  line-height: 1.4;
}

.blog-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.blog-content pre,
.blog-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.blog-content pre {
  overflow-x: auto;
  background: #f1f5f9;
  padding: 0.75rem;
  border-radius: 8px;
}
