:root {
  color-scheme: dark;
  --bg: #101112;
  --surface: rgba(20, 22, 23, 0.78);
  --surface-strong: rgba(28, 31, 32, 0.92);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f4f0e8;
  --muted: #b8b2a8;
  --green: #63d471;
  --teal: #52d6c7;
  --amber: #f0b85a;
  --red: #ef6f6c;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(12, 13, 14, 0.92), rgba(12, 13, 14, 0.58) 52%, rgba(12, 13, 14, 0.72)),
    image-set(url("/assets/hub-background.png") type("image/png"));
  background-size: cover;
  background-position: center;
}

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

.shell {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.home-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 40px;
  align-items: end;
}

.hero-copy {
  max-width: 680px;
  padding-bottom: 18px;
}

.eyebrow,
.card-kicker,
.panel-label,
.node-region {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 8.8rem);
  line-height: 0.86;
  font-weight: 900;
}

.page-header h1 {
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

h2 {
  margin-bottom: 8px;
  font-size: 1.7rem;
  line-height: 1.08;
}

.lede {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.38rem);
  line-height: 1.45;
}

.primary-links,
.node-grid {
  display: grid;
  gap: 14px;
}

.link-card,
.node-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.link-card,
.node-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.link-card:hover,
.node-card:hover {
  border-color: rgba(82, 214, 199, 0.72);
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.card-title,
.node-name {
  display: block;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.card-meta,
.node-target,
.panel-text {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.page-shell {
  min-height: 100vh;
  padding: 48px 0;
}

.page-header {
  max-width: 820px;
  margin-bottom: 34px;
}

.back-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-bottom: 42px;
  color: var(--amber);
  font-weight: 800;
}

.panel {
  max-width: 680px;
  padding: 26px;
}

.panel-text {
  margin-bottom: 0;
}

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

.node-card {
  min-height: 190px;
}

.node-region {
  width: fit-content;
  margin-bottom: 22px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(99, 212, 113, 0.13);
  color: var(--green);
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .home-shell {
    align-items: flex-end;
    padding: 34px 0;
  }

  .hero,
  .node-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
  }

  h1 {
    font-size: clamp(3.4rem, 20vw, 5.8rem);
  }

  .link-card,
  .node-card {
    min-height: 118px;
  }
}
