@font-face {
  font-family: "Nunito";
  src: url("assets/Nunito-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

.jq-apps {
  margin: 0;
  min-height: 100vh;
  font-family: var(--jq-font, "Nunito", system-ui, sans-serif);
  color: var(--jq-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgb(var(--jq-primary-rgb) / 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgb(var(--jq-accent-rgb) / 0.10), transparent 55%),
    linear-gradient(180deg, #eef3f9 0%, var(--jq-page) 42%, #f7f8fa 100%);
  -webkit-font-smoothing: antialiased;
}

.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 1.5rem 1rem 2rem;
  border-right: 1px solid var(--jq-hairline);
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(12px);
  overflow: auto;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 0 0.5rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--jq-muted);
  font-weight: 600;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--jq-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav a:hover {
  background: rgb(var(--jq-primary-rgb) / 0.08);
  color: var(--jq-ink);
}

.nav a.is-active {
  background: rgb(var(--jq-primary-rgb) / 0.12);
  color: var(--jq-primary);
}

.main {
  padding: 2.5rem clamp(1.25rem, 3vw, 3rem) 4rem;
  max-width: 1100px;
}

.hero {
  margin-bottom: 2.5rem;
  animation: rise 520ms ease both;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.lede {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: var(--jq-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.cat {
  margin-bottom: 2.75rem;
  scroll-margin-top: 1.5rem;
}

.cat h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid var(--jq-hairline);
  border-radius: 16px;
  background: var(--jq-surface);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.03);
  opacity: 0;
  transform: translateY(10px);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    opacity 320ms ease;
  transition-delay: var(--delay, 0ms);
}

.tile.is-in {
  opacity: 1;
  transform: translateY(0);
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgb(var(--jq-primary-rgb) / 0.35);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.08);
}

.tile-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.tile-brand {
  color: var(--jq-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.tile-host {
  margin-top: 0.55rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--jq-subtle);
}

.tile-blurb {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--jq-muted);
}

.empty {
  margin: 0 0 1rem;
  color: var(--jq-subtle);
  font-weight: 500;
}

.data-grid,
.soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.data-item,
.soon-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--jq-border);
  background: rgb(255 255 255 / 0.55);
}

.data-label,
.soon-item span:first-child {
  font-weight: 700;
  font-size: 0.9rem;
}

.data-ep,
.soon-host {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--jq-ink);
}

.soon-note {
  color: var(--jq-subtle);
  font-size: 0.78rem;
}

.soon h2 {
  color: var(--jq-muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--jq-hairline);
    padding-bottom: 1rem;
  }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
  }
}
