/* Hub landing */
body.hub {
  background: var(--court-deep);
  color: var(--cream);
  min-height: 100dvh;
}

.hub-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 35, 26, 0.25), rgba(14, 35, 26, 0.55)),
    repeating-linear-gradient(
      90deg,
      transparent 0 46px,
      rgba(215, 234, 74, 0.04) 46px 47px
    ),
    radial-gradient(ellipse 80% 50% at 50% -10%, #2a6a4a 0%, transparent 55%),
    var(--court);
}

/* stylized court lines */
.hub-page::before,
.hub-page::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 8%;
  border: 2px solid rgba(245, 239, 228, 0.12);
  border-radius: 8px;
}
.hub-page::after {
  inset: 8% 22%;
  border-top: 0;
  border-bottom: 0;
  top: 28%;
  bottom: 18%;
}

.hub-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0 0;
}

.mark {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.hub-header .brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ball);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 6.5rem);
  color: var(--paper);
  max-width: 12ch;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--ball);
}

.lede {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.15rem;
  color: rgba(243, 239, 228, 0.82);
}

.app-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .app-grid { grid-template-columns: 1fr 1fr; }
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  padding: 1.5rem 1.5rem 1.35rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 220px;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  outline: none;
}

.app-card:focus-visible {
  box-shadow: 0 0 0 3px var(--court), 0 0 0 6px var(--ball);
}

.app-card.soon {
  background: transparent;
  color: var(--cream);
  border: 1.5px dashed rgba(243, 239, 228, 0.28);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  min-height: 220px;
}

.app-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--court);
  color: var(--ball);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.app-card.soon .tag {
  background: rgba(243, 239, 228, 0.1);
  color: rgba(243, 239, 228, 0.7);
}

.app-card h2 {
  font-size: 1.85rem;
}

.app-card p {
  color: var(--ink-soft);
  flex: 1;
}

.app-card.soon p,
.app-card.soon h2 { color: rgba(243, 239, 228, 0.72); }

.app-card .go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--court);
}

.app-card .go svg { width: 1.1rem; height: 1.1rem; }

.hub-footer {
  position: relative;
  z-index: 1;
  padding: 0 0 1.5rem;
  font-size: 0.85rem;
  color: rgba(243, 239, 228, 0.5);
}

@media (min-width: 1000px) {
  .app-grid { grid-template-columns: repeat(3, 1fr); }
}
