/* ============================================================
   HERO — headline + the animated hub banner
   ============================================================ */

.rt-hero {
  padding: 150px 0 70px;
}

.rt-hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.rt-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 18px;
}

.rt-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(251, 249, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 32px;
}

.rt-hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

/* ── Hub banner (unchanged from the standalone build) ────── */
.rt-hub-banner {
  position: relative;
  width: min(1200px, 94vw);
  aspect-ratio: 1200 / 780;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #17102b 0%, #1B1030 55%, #240f3e 100%);
  isolation: isolate;
}

.rt-hub-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 42% at 50% 50%, rgba(148, 0, 211, 0.32), transparent 70%),
    radial-gradient(32% 28% at 8% 12%, rgba(148, 0, 211, 0.10), transparent 70%),
    radial-gradient(32% 28% at 92% 88%, rgba(212, 162, 76, 0.08), transparent 70%);
  z-index: 0;
}

.rt-hub-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.rt-wire-line {
  stroke-dasharray: 5 11;
  animation: rt-wire-flow 0.9s linear infinite;
  filter: drop-shadow(0 0 2px rgba(212, 162, 76, 0.5));
}

@keyframes rt-wire-flow { to { stroke-dashoffset: -16; } }

.rt-hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  width: 200px;
}

.rt-hub-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(148, 0, 211, 0.55) 0%, rgba(148, 0, 211, 0) 70%);
  filter: blur(4px);
  animation: rt-hub-pulse 3.2s ease-in-out infinite;
  z-index: -1;
}

@keyframes rt-hub-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.94); }
  50%      { opacity: 0.95; transform: translate(-50%, -50%) scale(1.07); }
}

.rt-hub-folder { width: 108px; height: 86px; filter: drop-shadow(0 0 14px rgba(212, 162, 76, 0.55)); }

.rt-hub-wordmark {
  display: block;
  margin-top: -6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-shadow: 0 0 20px rgba(148, 0, 211, 0.7);
}

.rt-hub-nodes { position: absolute; inset: 0; z-index: 2; }

.rt-hub-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  width: 118px;
  text-align: center;
  text-decoration: none;
}

.rt-hub-node-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 162, 76, 0.08);
  border: 1.4px solid rgba(212, 162, 76, 0.55);
  box-shadow: 0 0 14px rgba(212, 162, 76, 0.25);
  animation: rt-node-breathe 3.6s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.rt-hub-node:hover .rt-hub-node-icon { transform: scale(1.12); }

.rt-hub-node-icon svg { width: 20px; height: 20px; color: var(--gold); }

@keyframes rt-node-breathe {
  0%, 100% { box-shadow: 0 0 10px rgba(212, 162, 76, 0.18); }
  50%      { box-shadow: 0 0 18px rgba(212, 162, 76, 0.42); }
}

.rt-hub-node-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--paper);
  text-shadow: 0 1px 6px rgba(14, 10, 22, 0.8);
}

@media (max-width: 860px) and (min-width: 701px) {
  .rt-hub-node { width: 88px; }
  .rt-hub-node-icon { width: 32px; height: 32px; border-radius: 10px; }
  .rt-hub-node-icon svg { width: 16px; height: 16px; }
  .rt-hub-node-label { font-size: 10px; }
  .rt-hub-folder { width: 84px; height: 68px; }
  .rt-hub-wordmark { font-size: 17px; }
}

@media (max-width: 700px) {
  .rt-hub-banner { aspect-ratio: unset; height: auto; padding: 32px 20px; }
  .rt-hub-wires { display: none; }
  .rt-hub-center { position: static; transform: none; width: 100%; margin-bottom: 24px; }
  .rt-hub-nodes {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .rt-hub-node {
    position: static !important;
    left: auto !important; top: auto !important; transform: none !important;
    flex-direction: row;
    width: auto;
    text-align: left;
    gap: 10px;
  }
  .rt-hub-node-icon { flex: 0 0 auto; }
  .rt-hub-node-label { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .rt-hub-glow, .rt-hub-node-icon, .rt-wire-line { animation: none; }
  .rt-hub-wires .rt-pulse { display: none; }
}

/* ── App download strip ──────────────────────────────────── */
.rt-download-strip {
  padding: 40px 0 70px;
  text-align: center;
}

.rt-download-strip p {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(251, 249, 255, 0.6);
  margin-bottom: 18px;
}

.rt-store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rt-store-badges img {
  height: 48px;
  transition: transform 0.2s ease;
}

.rt-store-badges a:hover img { transform: scale(1.06); }
