:root {
  --bg: #040812;
  --bg-elevated: #081120;
  --bg-elevated-soft: #0b1526;
  --text: #e4ecf7;
  --text-muted: #9ba7c0;
  --accent: #4fd1ff;
  --accent-soft: rgba(79, 209, 255, 0.14);
  --border-subtle: rgba(144, 164, 204, 0.35);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: radial-gradient(circle at top, #0c1630 0, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 800px;
  padding: 2.5rem 2rem 3rem;
  margin: 0 auto;
}

h1 {
  font-size: 3.5rem;
  margin: 0;
  font-weight: 700;
  background: linear-gradient(120deg, #4fd1ff, #63e6be);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.tagline {
  font-size: 1.4rem;
  margin: 1.5rem 0 2rem;
  opacity: 0.9;
}

.subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.78;
}

/* Layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(6, 11, 26, 0.98), rgba(6, 11, 26, 0.94));
  border-bottom: 1px solid rgba(94, 115, 159, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.brand-mark {
  color: var(--accent);
}

.brand-text {
  opacity: 0.9;
}

.main {
  flex: 1;
  padding: 2rem 1.5rem 3rem;
}

/* Tabs */

.tab-nav {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 144, 180, 0.6);
  background: rgba(5, 11, 26, 0.95);
}

.tab-link {
  position: relative;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.16s ease, background 0.16s ease, transform 0.12s ease, color 0.12s ease;
}

.tab-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
}

.tab-link:hover {
  opacity: 0.95;
  background: rgba(151, 178, 224, 0.12);
}

.tab-link.active {
  opacity: 1;
  color: #02040a;
  background: linear-gradient(120deg, #4fd1ff, #63e6be);
  transform: translateY(-0.5px);
}

.tab-link.active::after {
  border-color: rgba(0, 0, 0, 0.7);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Hero */

.hero {
  text-align: left;
}

.affiliation-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  margin-top: 1.75rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(129, 156, 203, 0.8);
  background: linear-gradient(135deg, rgba(79, 209, 255, 0.14), rgba(6, 15, 34, 0.95));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.affiliation-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.affiliation-detail {
  font-size: 0.85rem;
  color: var(--text);
}

/* Content helpers */

.section {
  margin-top: 3rem;
}

.section-title {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-kicker {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-body {
  margin-top: 1.25rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.pill-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.pillar {
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  background: radial-gradient(circle at top left, rgba(79, 209, 255, 0.16), transparent 60%),
              var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.pillar-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card-grid {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: 1rem;
  padding: 1.25rem 1.3rem;
  background: radial-gradient(circle at top, rgba(79, 209, 255, 0.16), transparent 60%),
              var(--bg-elevated-soft);
  border: 1px solid rgba(129, 156, 203, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  text-align: left;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.card-meta {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

.solution-grid {
  margin-top: 1.75rem;
}

.challenge-grid {
  display: grid;
  grid-template-columns: 1.1fr auto 1.1fr;
  align-items: center;
  gap: 1rem;
}

.challenge-panel {
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.challenge-panel-highlight {
  background: radial-gradient(circle at top left, rgba(99, 230, 190, 0.22), transparent 65%),
              var(--bg-elevated-soft);
}

.challenge-panel h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.challenge-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.challenge-arrow {
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.85;
}

.progress-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(42, 56, 96, 0.9);
  overflow: hidden;
  margin-top: 0.75rem;
}

.progress-bar-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #4fd1ff, #63e6be);
}

.progress-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.progress-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(94, 115, 159, 0.5);
  font-size: 0.95rem;
}

.progress-item:last-child {
  border-bottom: none;
}

.progress-label {
  color: var(--text);
}

.progress-status {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.progress-item.is-complete .progress-status {
  color: #7ce38b;
}

.progress-item.is-active .progress-status {
  color: var(--accent);
}

.progress-item.is-pending .progress-status {
  color: var(--text-muted);
}

.publication-list {
  margin-top: 1.5rem;
  padding-left: 1.2rem;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.publication-item + .publication-item {
  margin-top: 0.4rem;
}

.draft-actions {
  margin-top: 1.75rem;
}

.primary-action {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, #4fd1ff, #63e6be);
  color: #02040a;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: not-allowed;
}

.about-layout {
  margin-top: 1.75rem;
}

.about-text {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.footer {
  padding: 1.75rem 2rem 2.25rem;
  font-size: 0.85rem;
  opacity: 0.6;
  text-align: center;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2.6rem; }
  .tagline { font-size: 1.2rem; }

  .site-header {
    padding-inline: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main {
    padding-inline: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .pill-grid {
    grid-template-columns: 1fr;
  }
}
