/* RUNHEX website UI kit — utility classes layered on colors_and_type.css tokens */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: var(--brand-on); }

/* eyebrow / kicker */
.rh-eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 2.6px; text-transform: uppercase; color: var(--brand);
}
.rh-eyebrow.rh-center { display: block; text-align: center; }

/* the eyebrow pill in the hero */
section#top .rh-eyebrow {
  border: 1px solid var(--brand); padding: 7px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--brand-soft); box-shadow: 0 0 24px var(--brand-glow);
}

.rh-section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) 28px; }
.rh-center { text-align: center; }
.rh-sub {
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--text-mute);
  max-width: 600px; margin: 18px auto 0; text-align: center; text-wrap: pretty;
}

/* buttons */
.rh-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 15px 26px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 15.5px; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none; cursor: pointer; border: none; white-space: nowrap;
  transition: transform 130ms ease, box-shadow 130ms ease, border-color 130ms ease, color 130ms ease;
}
.rh-btn-primary { background: var(--brand); color: var(--brand-on); box-shadow: 0 6px 28px var(--brand-glow); }
.rh-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--brand-glow); }
.rh-btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.rh-btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* hero stat strip */
.rh-statstrip {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: clamp(16px, 4vw, 40px); margin-top: 4px;
}
.rh-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rh-statn { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--text); letter-spacing: 0.5px; white-space: nowrap; }
.rh-statl { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.rh-statdiv { width: 1px; height: 34px; background: var(--border-2); }

/* ladder legend */
.rh-legend { display: flex; justify-content: center; margin-top: 40px; }
.rh-legend span {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-mute);
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; background: var(--surface);
}

/* ---- Feature cards: fancy icon tile ---- */
.rh-feat-wrap { will-change: transform; }
.rh-feat-card { position: relative; overflow: hidden; }
.rh-feat-ico { position: relative; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(0,255,178,0.22), rgba(170,225,240,0.05));
  border: 1px solid var(--brand-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), 0 6px 18px rgba(0,255,178,0.12); }
.rh-feat-ico::after { content:''; position:absolute; inset:0; border-radius:16px; pointer-events:none;
  background: linear-gradient(160deg, rgba(255,255,255,0.22), transparent 45%); }
.rh-feat-ico.flame { background: linear-gradient(150deg, rgba(255,106,43,0.30), rgba(255,106,43,0.04));
  border-color: rgba(255,106,43,0.42); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 18px rgba(255,106,43,0.20); }
/* mini Dynamic Island (Live Activity) */
.rh-di { width: 34px; height: 14px; background: #050506; border-radius: 99px; position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); animation: rh-di 2.6s ease-in-out infinite; }
.rh-di::before { content:''; position:absolute; left: 5px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.32); }
.rh-di-dot { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 7px var(--brand); }
@keyframes rh-di { 0%,100% { width: 28px; } 50% { width: 46px; } }

/* slow orbit ring in hero */
.rh-orbit { animation: rh-spin 70s linear infinite; }
@keyframes rh-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---- Foggy aurora — brand green + Platinum / Silver / Gold ---- */
/* Page-wide layer: spans the full document so the 4-colour fog follows you as you scroll. */
.rh-pagefog { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 0; }
.rh-pagefog .pb { position: absolute; border-radius: 50%; filter: blur(105px); mix-blend-mode: screen; aspect-ratio: 1; }
.rh-pagefog .pb-g { background: radial-gradient(circle, #00ffb2 0%, transparent 68%); }
.rh-pagefog .pb-p { background: radial-gradient(circle, #aae1f0 0%, transparent 68%); }
.rh-pagefog .pb-o { background: radial-gradient(circle, #fad70f 0%, transparent 66%); }
.rh-pagefog .pb-s { background: radial-gradient(circle, #e4e3e3 0%, transparent 66%); }
.rh-pagefog .drift1 { animation: rh-fog1 30s ease-in-out infinite; }
.rh-pagefog .drift2 { animation: rh-fog2 36s ease-in-out infinite; }
.rh-pagefog .drift3 { animation: rh-fog3 42s ease-in-out infinite; }
@keyframes rh-fog1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, 4%) scale(1.1); } }
@keyframes rh-fog2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(-7%, 3%) scale(1); } }
@keyframes rh-fog3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4%, -5%) scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  .rh-orbit { animation: none; }
  .rh-pagefog .pb { animation: none !important; }
}

@media (max-width: 760px) {
  .rh-nav a:not(.rh-headcta) { display: none; }
}
