:root {
  --bg: #f6f7fb;
  --surface: rgba(255,255,255,0.94);
  --surface-2: #ffffff;
  --text: #111827;
  --muted: #5e6778;
  --line: #e3e9f3;
  --primary: #2563eb;
  --purple: #7c3aed;
  --cyan: #06b6d4;
  --green: #10b981;
  --shadow: 0 18px 55px rgba(17, 24, 39, 0.08);
  --radius: 24px;
  --container: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124,58,237,0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(6,182,212,0.08), transparent 22%),
    linear-gradient(180deg, #f8f9fd 0%, #eef3fb 100%);
  color: var(--text);
}

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

.hub-page {
  width: min(calc(100% - 1.5rem), var(--container));
  margin: 0 auto;
  padding: 26px 0 56px;
}

.hub-hero,
.hub-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hub-hero {
  text-align: center;
  padding: 64px 24px 58px;
}

.hero-blur {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.32;
}

.hero-blur-left {
  left: -40px;
  top: -20px;
  background: rgba(124,58,237,0.28);
}

.hero-blur-right {
  right: -30px;
  top: 10px;
  background: rgba(6,182,212,0.26);
}

.hero-kicker {
  margin: 0 0 0.8rem;
  color: var(--purple);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hub-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-subtext {
  max-width: 760px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hub-card {
  padding: 28px;
  margin-top: 20px;
}

.section-title-wrap {
  margin-bottom: 1.2rem;
}

.section-title-wrap h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.funding-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,249,253,0.95));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem;
  box-shadow: 0 12px 34px rgba(17,24,39,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.resource-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.resource-card p,
.mini-footer-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tall-card {
  min-height: 280px;
}

.footer-card {
  justify-content: space-between;
}

.hub-btn {
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(37,99,235,0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .link-grid,
  .funding-grid {
    grid-template-columns: 1fr;
  }

  .hub-card {
    padding: 20px;
  }
}
