:root {
  --bg: #0f172a;
  --panel: #111827;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --accent-2: #f59e0b;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  font-family: "Sora", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #e5e7eb;
  background: var(--bg);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 20% 10%, rgba(34, 211, 238, 0.18), transparent),
    radial-gradient(120% 80% at 80% 0%, rgba(245, 158, 11, 0.15), transparent),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 40px 0 80px;
}

header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand .brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--stroke);
  background: #0f172a;
  background-image: url("../img/avalanche_icon.png");
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.pill {
  padding: 8px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  transition: border 150ms, color 150ms, background 150ms;
}

.pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.banner-block {
  margin-bottom: 6px;
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) * 1.1);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.banner-block img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  padding: 36px;
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) * 1.5);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(15, 23, 42, 0.8));
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: 0.01em;
}

.hero p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 760px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  font-size: 13px;
}

.section {
  margin-top: 36px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.section-subtitle {
  margin: 16px 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
}

.section-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section p.lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 150ms, border 150ms, background 150ms;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.meta-stacked {
  flex-direction: column;
  align-items: flex-start;
}

.status {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-online {
  color: #22c55e;
}

.status-ongoing {
  color: var(--accent-2);
}

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

.board .card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.board .role {
  color: #e5e7eb;
  font-size: 13px;
  margin: 0 0 8px;
}

.inline-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.inline-links a {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  font-size: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

footer {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 14px;
}

.affiliations {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.9;
}

.affiliations img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

@media (max-width: 720px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    flex-wrap: wrap;
  }
  .hero {
    padding: 28px;
  }
}
