:root {
  --bg: #0f1015;
  --bg-elevated: #181a24;
  --text-main: #f5f5f7;
  --text-muted: #a0a3b1;
  --accent-orange: #ff7a3c;
  --accent-indigo: #4c5dff;
  --accent-yellow: #ffd35a;
  --border-subtle: #2a2d3b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* Global reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(15,16,21,0.9), rgba(15,16,21,0.7));
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav a {
  margin-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-orange);
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--accent-yellow);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, var(--accent-orange), var(--accent-indigo));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 36rem;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent-orange), var(--accent-indigo));
  color: #0b0b10;
  font-weight: 600;
}

.btn.ghost {
  border-color: var(--border-subtle);
  color: var(--text-main);
  background: transparent;
}

.btn.ghost:hover {
  border-color: var(--accent-orange);
}

/* Sections */

.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-last {
  padding-bottom: 4.5rem;
}

.section-heading h2 {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.5rem;
}

.section-intro {
  max-width: 40rem;
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.section-label.highlight {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.section-subheading {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

/* Grid & cards */

.grid {
  display: grid;
  margin-top: 1.75rem;
  gap: 1.5rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: radial-gradient(circle at top left,
    rgba(76,93,255,0.18),
    transparent 55%),
    var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: var(--shadow-soft);
}

.card.featured {
  border-color: var(--accent-orange);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--accent-orange);
}

.card-link:hover {
  text-decoration: underline;
}

/* Publications list */

.pub-list {
  margin-top: 2rem;
}

.pub-list h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.pub-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-list li {
  margin-bottom: 0.5rem;
}

.pub-title {
  display: block;
}

.pub-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Small notes */

.section-note {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact */

.contact-grid {
  margin-top: 1.25rem;
  display: grid;
  gap: 1.5rem;
}

.contact-grid a {
  color: var(--accent-indigo);
  text-decoration: none;
}

.contact-grid a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 0 1.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive tweaks */

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .hero {
    padding-top: 3.5rem;
  }
}
