/* ==========================================================================
   HOSTING.MAKEUP r5 (2026-11-30): centered home hero, floating icons, stats strip, perks.
   Animation lives in assets/js/r5.js (GSAP). Hidden start states apply only under html.hm-r5-anim.
   ========================================================================== */

/* ---------- hero ---------- */
.hm-r5hero .hm-r5hero__inner {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 500px; padding: 3rem 0 2.25rem;
}
.hm-r5hero__copy { position: relative; z-index: 2; max-width: 820px; text-align: center; }
.hm-r5hero__pill {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.4rem;
  padding: .45rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--r-line, #e4e9f0);
  box-shadow: 0 4px 14px rgba(15,27,42,.06); font-weight: 600; font-size: .92rem; color: var(--r-ink-2, #334155);
}
.hm-r5hero__title {
  margin: 0 0 1.1rem; font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.07; font-weight: 800;
  letter-spacing: -.035em; color: var(--r-ink, #0f1b2a);
}
.hm-r5hero__title .r5-line { display: block; }
.hm-r5hero__title .r5-line + .r5-line { color: var(--r-accent, #0d9488); }
.hm-r5hero__lead { margin: 0 auto 2rem; max-width: 38em; font-size: 1.15rem; line-height: 1.6; color: var(--r-ink-2, #334155); }
.hm-r5hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.hm-r5hero__note { margin: 1rem 0 0; font-size: .9rem; color: var(--r-muted, #64748b); }
.hm-r5hero.r5-run .hm-btn { transition: background .2s ease, box-shadow .2s ease, color .2s ease; }
.hm-r5hero__title .r5-line + .r5-line { display: block; }

/* floating icons */
.hm-r5hero__icons { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
body.home { overflow-x: clip; }
.r5-ico { position: absolute; width: 112px; will-change: transform; }
.r5-ico__m, .r5-ico__f { will-change: transform; }
.r5-ico svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 26px rgba(15,27,42,.14)); }
.r5-ico--shield { top: 6%; left: 30px; width: 104px; }
.r5-ico--server { bottom: 8%; left: 24px; width: 120px; }
.r5-ico--doc    { top: 6%; right: 30px; width: 96px; }
.r5-ico--folder { bottom: 10%; right: 24px; width: 116px; }

/* ---------- stats strip + perks ---------- */
.hm-r5stats { position: relative; z-index: 6; margin: 0 0 1rem; }
.hm-r5hero.hm-hero { padding-bottom: .5rem; }
.hm-r5stats__box {
  background: #fff; border: 1px solid var(--r-line, #e4e9f0); border-radius: 28px; padding: .6rem;
  box-shadow: 0 1px 2px rgba(15,27,42,.04), 0 12px 32px rgba(15,27,42,.06);
}
.hm-r5stats__grid {
  list-style: none; margin: 0; padding: 1.6rem 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem; border-radius: 22px; background: linear-gradient(135deg, #eef8f6, #f3f6f9);
}
.hm-r5stats__item { text-align: center; padding: 0 .5rem; }
.hm-r5stats__item + .hm-r5stats__item { border-left: 1px solid rgba(15,27,42,.07); }
.hm-r5stats__num {
  margin: 0; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em;
  color: var(--r-ink, #0f1b2a); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hm-r5stats__cap { margin: .35rem 0 0; font-size: .93rem; line-height: 1.4; color: var(--r-muted, #64748b); }
.hm-r5perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-r5perk { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; }
.hm-r5perk + .hm-r5perk::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; border-left: 1px solid var(--r-line, #e4e9f0); }
.hm-r5perk__ic {
  flex: 0 0 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
  color: var(--r-accent, #0d9488); background: var(--r-accent-soft, #e7f6f3);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.hm-r5perk:hover .hm-r5perk__ic { transform: scale(1.05); background: #cdeee8; color: var(--r-accent-h, #0b7f75); }
.hm-r5perk__txt strong { transition: color .2s ease; }
.hm-r5perk:hover .hm-r5perk__txt strong { color: var(--r-accent, #0d9488); }
.hm-r5perk__txt { display: flex; flex-direction: column; gap: .2rem; }
.hm-r5perk__txt strong { font-size: 1.02rem; color: var(--r-ink, #0f1b2a); }
.hm-r5perk__txt span { font-size: .9rem; color: var(--r-muted, #64748b); line-height: 1.4; }

/* subtle hover lift on existing home cards */
body.home .hm-r2-why__card { transition: transform .25s ease, box-shadow .25s ease; }
body.home .hm-r2-why__card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15,27,42,.09); }
body.home .hm-r2-incl__item { transition: transform .25s ease; }
body.home .hm-r2-incl__item:hover { transform: translateY(-3px); }

/* ---------- hidden start states (only when JS animation is armed) ---------- */
html.hm-r5-anim .hm-r5hero__pill,
html.hm-r5-anim .hm-r5hero__title,
html.hm-r5-anim .hm-r5hero__lead,
html.hm-r5-anim .hm-r5hero__actions,
html.hm-r5-anim .hm-r5hero__note,
html.hm-r5-anim .hm-r5stats__box { opacity: 0; transform: translateY(16px); }
html.hm-r5-anim .r5-ico__m { opacity: 0; transform: scale(.8); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .r5-ico--shield { width: 80px; left: 8px; }
  .r5-ico--server { width: 92px; left: 4px; bottom: 6%; }
  .r5-ico--doc    { width: 74px; right: 8px; }
  .r5-ico--folder { width: 90px; right: 4px; bottom: 8%; }
}
@media (max-width: 1023px) {
  .hm-r5hero__icons { display: none; }
}
@media (max-width: 960px) {
  .hm-r5hero__copy { max-width: 640px; }
  .hm-r5stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
  .hm-r5stats__item:nth-child(3) { border-left: 0; }
  .hm-r5perks { grid-template-columns: 1fr; }
  .hm-r5perk + .hm-r5perk::before { left: 1.4rem; right: 1.4rem; top: 0; bottom: auto; border-left: 0; border-top: 1px solid var(--r-line, #e4e9f0); }
}
@media (max-width: 640px) {
  .hm-r5hero .hm-r5hero__inner { min-height: 0; padding: 2.25rem 0 2.5rem; }
  .hm-r5hero__pill { font-size: .85rem; margin-bottom: 1.1rem; }
  .hm-r5hero__title { font-size: 2.15rem; }
  .hm-r5hero__lead { font-size: 1rem; margin-bottom: 1.5rem; }
  .hm-r5hero__actions .hm-btn { width: 100%; }
  .hm-r5stats__grid { padding: 1.25rem .5rem; }
  .hm-r5stats__item { padding: 0 .25rem; }
  .hm-r5stats__num { font-size: 1.7rem; }
  .hm-r5stats__cap { font-size: .82rem; }
  .hm-r5perk { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-r5perk__ic, .hm-r5perk__txt strong, body.home .hm-r2-why__card, body.home .hm-r2-incl__item { transition: none; }
  .hm-r5perk:hover .hm-r5perk__ic, body.home .hm-r2-why__card:hover, body.home .hm-r2-incl__item:hover { transform: none; }
}
