:root {
  color-scheme: dark;
  --ink: #f4fbf7;
  --muted: rgba(244, 251, 247, 0.72);
  --line: rgba(244, 251, 247, 0.18);
  --gold: #f2b94b;
  --green: #36f2b0;
  --panel: rgba(3, 12, 10, 0.56);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #030a08;
  color: var(--ink);
}

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

.hub-home {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(18px, env(safe-area-inset-top)) clamp(18px, 4vw, 48px) max(16px, env(safe-area-inset-bottom));
}

.hub-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 48%, rgba(34, 244, 178, 0.16), transparent 36%),
    linear-gradient(90deg, rgba(53, 29, 6, 0.72), transparent 36%, transparent 62%, rgba(2, 33, 31, 0.76)),
    #030a08;
}

.hub-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(3, 8, 7, 0.68), rgba(3, 8, 7, 0.12) 34%, rgba(3, 8, 7, 0.72)),
    linear-gradient(90deg, rgba(3, 8, 7, 0.70), rgba(3, 8, 7, 0.08) 33%, rgba(3, 8, 7, 0.08) 66%, rgba(3, 8, 7, 0.74)),
    url("/static/hub/crania-hub-switchboard-v3.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto, auto, min(104vmin, 1080px);
}

.hub-nav {
  justify-self: center;
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  z-index: 1;
}

.hub-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(3, 12, 10, 0.48);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0 12px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.hub-nav a:hover,
.hub-nav a:focus-visible {
  border-color: rgba(54, 242, 176, 0.72);
  background: rgba(6, 38, 31, 0.70);
  transform: translateY(-1px);
  outline: none;
}

.hub-hero {
  align-self: center;
  width: min(100%, 760px);
  padding-top: clamp(120px, 20vh, 220px);
}

.hub-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hub-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.hub-copy {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  line-height: 1.45;
}

.hub-footer {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(244, 251, 247, 0.14);
  background: var(--panel);
  backdrop-filter: blur(12px);
  color: rgba(244, 251, 247, 0.78);
  font-size: 0.78rem;
}

.hub-footer strong {
  color: var(--gold);
  font-weight: 900;
}

@media (max-width: 760px) {
  .hub-home {
    padding-inline: 14px;
  }

  .hub-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-nav a {
    min-height: 40px;
    font-size: 0.8rem;
    padding-inline: 8px;
  }

  .hub-home::after {
    background-size: auto, auto, min(116vmin, 760px);
    background-position: center 45%;
  }

  .hub-hero {
    padding-top: 32vh;
  }

  .hub-hero h1 {
    font-size: clamp(2.25rem, 14vw, 4.2rem);
  }
}
