:root {
  --lumo: #00CE58;
  --pewter: #63666B;
  --putty: #FAFAF5;
  --ink: #0a0d0f;
  --ink-2: #11161a;
  --ink-3: #171d22;
  --glass: rgba(250, 250, 245, 0.05);
  --glass-border: rgba(0, 206, 88, 0.25);
  --font-display: "Orbitron", "Rajdhani", sans-serif;
  --font-body: "Rajdhani", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  font-family: var(--font-body);
  color: var(--putty);
  background: var(--ink);
}

.scene {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 206, 88, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(17, 22, 26, 0.9), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink) 100%);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 206, 88, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 206, 88, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 85%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 45% 30% at 50% 0%, rgba(0, 206, 88, 0.16), transparent 70%);
}

/* ---- header ---- */

.hub-top {
  position: relative;
  padding: 2.4rem 1.25rem 1.2rem;
  text-align: center;
}

.hub-logo {
  height: 46px;
  width: auto;
  max-width: 86vw;
}

.hub-strap {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(250, 250, 245, 0.68);
}

/* ---- grid ---- */

.hub-grid {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.1rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

@media (min-width: 680px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; padding-top: 1.6rem; }
  .hub-logo { height: 58px; }
}

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

/* ---- tile ---- */

.tile {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  text-decoration: none;
  color: inherit;
  background: var(--glass);
  border: 1px solid rgba(250, 250, 245, 0.10);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .18s ease;
}

.tile:hover,
.tile:focus-visible {
  border-color: var(--glass-border);
  background: rgba(0, 206, 88, 0.06);
  transform: translateY(-2px);
  outline: none;
}

.tile:hover::after,
.tile:focus-visible::after {
  box-shadow: inset 0 0 0 1px rgba(0, 206, 88, 0.45), 0 0 26px rgba(0, 206, 88, 0.10);
}

.tile:active { transform: translateY(0); }

.tile-art {
  flex: 0 0 92px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(0, 206, 88, 0.14), rgba(99, 102, 107, 0.10));
  border-right: 1px solid rgba(250, 250, 245, 0.07);
}

.tile-glyph {
  font-size: 2rem;
  line-height: 1;
  color: var(--lumo);
  filter: drop-shadow(0 0 10px rgba(0, 206, 88, 0.45));
}

.tile-body {
  padding: 0.95rem 1.05rem 1rem;
  min-width: 0;
}

.tile-body h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--putty);
}

.tile-body p {
  margin: 0 0 0.6rem;
  font-size: 0.97rem;
  line-height: 1.38;
  color: rgba(250, 250, 245, 0.62);
}

.tile-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lumo);
  border: 1px solid rgba(0, 206, 88, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

/* ---- footer ---- */

.hub-foot {
  position: relative;
  padding: 1rem 1.25rem 2.2rem;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(250, 250, 245, 0.38);
}

.hub-foot a {
  color: rgba(0, 206, 88, 0.75);
  text-decoration: none;
}

.hub-foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:hover { transform: none; }
}
