/* ============================================================
   RESOURCES PAGE (Launching soon)
   ============================================================ */

/* hidden spam trap for bots (forms) */
.hp-field{ position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- Hero ---------- */
.rh-hero{
  padding:150px 0 110px;
  overflow:hidden;
}
.rh-hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr);
  gap:56px;
  align-items:center;
}

.rh-hero-copy{ text-align:left; }

.rh-title{
  margin:22px 0 18px;
  color:#fff;
  font-size:clamp(2.3rem, 4.4vw, 3.6rem);
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.02em;
}
.rh-grad{
  background:var(--color-on-dark-accent);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.rh-sub{
  max-width:560px;
  color:rgba(255,255,255,.74);
  font-size:1.08rem;
  line-height:1.7;
}

/* notify form: glass pill */
.rh-notify{
  display:flex;
  align-items:center;
  gap:8px;
  max-width:520px;
  margin-top:32px;
  padding:6px;
  border-radius:var(--radius-btn);
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 14px 34px rgba(0,0,0,.18);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.rh-notify input{
  flex:1;
  min-width:0;
  padding:12px 18px;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font:inherit;
  font-size:.98rem;
}
.rh-notify input::placeholder{ color:rgba(255,255,255,.55); }
.rh-notify button{
  flex-shrink:0;
  padding:12px 22px;
  border:0;
  border-radius:var(--radius-btn);
  background:var(--cta);
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px color-mix(in srgb, var(--color-action-primary) 35%, transparent);
  transition:background .2s ease, transform .2s ease;
}
.rh-notify button:hover{ background:var(--cta-hover); transform:translateY(-1px); }
.rh-notify:focus-within{ border-color:color-mix(in srgb, var(--color-on-dark-accent) 60%, transparent); }
.rh-notify.is-done{ border-color:color-mix(in srgb, var(--color-on-dark-accent) 70%, transparent); }

.rh-note{
  margin-top:12px;
  color:rgba(255,255,255,.55);
  font-size:.82rem;
}

.rh-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:28px;
}
.rh-chips span{
  padding:7px 14px;
  border-radius:var(--radius-btn);
  color:rgba(255,255,255,.88);
  font-size:.82rem;
  font-weight:700;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
}

/* ---------- Hero preview: floating glass cards ---------- */
.rh-preview{
  position:relative;
  height:420px;
}
.rh-preview::before{
  content:"";
  position:absolute;
  inset:10% 5%;
  border-radius:50%;
  background:radial-gradient(circle, color-mix(in srgb, var(--color-on-dark-accent) 35%, transparent) 0%, color-mix(in srgb, var(--color-on-dark-accent) 0%, transparent) 65%);
  filter:blur(10px);
}
.rh-card{
  text-align:left;
  position:absolute;
  width:260px;
  padding:18px;
  border-radius:var(--radius-lg);
  background:linear-gradient(150deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.07) 100%);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 20px 50px rgba(0,0,0,.25);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  backdrop-filter:blur(16px) saturate(160%);
  animation:rh-float 6s ease-in-out infinite;
}
.rh-card-1{ top:0;    left:4%;  }
.rh-card-2{ top:34%;  right:0;  animation-delay:-2s; }
.rh-card-3{ bottom:0; left:14%; animation-delay:-4s; }

@keyframes rh-float{
  0%,100%{ transform:translateY(0); }
  50%    { transform:translateY(-10px); }
}

.rh-kind{
  display:inline-block;
  margin-bottom:14px;
  padding:4px 10px;
  border-radius:var(--radius-btn);
  background:#fff;
  color:var(--brand-dark);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.rh-line{
  display:block;
  height:9px;
  margin:9px 0;
  border-radius:var(--radius-btn);
  background:rgba(255,255,255,.28);
}
.rh-line.w90{ width:90%; } .rh-line.w80{ width:80%; } .rh-line.w70{ width:70%; }
.rh-line.w60{ width:60%; } .rh-line.w40{ width:40%; margin:0; }
.rh-meta{ display:flex; align-items:center; gap:10px; margin-top:14px; }
.rh-dot{ width:22px; height:22px; border-radius:50%; background:color-mix(in srgb, var(--color-on-dark-accent) 80%, transparent); }

.rh-video{
  display:grid;
  place-items:center;
  height:96px;
  margin-bottom:6px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(20,19,20,0.8), rgba(20,19,20,0.6));
}
.rh-play{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--cta);
  color:#fff;
  font-size:.85rem;
  padding-left:3px;
  box-shadow:0 0 0 6px color-mix(in srgb, var(--color-action-primary) 20%, transparent);
}
.rh-bars{
  display:flex;
  align-items:flex-end;
  gap:8px;
  height:80px;
  margin-bottom:6px;
}
.rh-bars i{
  flex:1;
  border-radius:6px 6px 2px 2px;
  background:linear-gradient(180deg, var(--color-on-dark-accent), color-mix(in srgb, var(--color-on-dark-accent) 35%, transparent));
}

/* ---------- Hero preview: animations ---------- */
.rh-preview{ --mx:0; --my:0; }

/* mouse parallax (set by JS) — uses `translate` so it never fights the float animation */
.rh-card{
  translate:calc(var(--mx) * var(--d, 20) * 1px) calc(var(--my) * var(--d, 20) * 1px);
  transition:translate .25s ease-out;
}
.rh-card-1{ --d:18; }
.rh-card-2{ --d:30; }
.rh-card-3{ --d:24; }

/* rotating dashed rings behind the cards */
.rh-ring{
  position:absolute;
  top:50%; left:50%;
  width:360px; height:360px;
  margin:-180px 0 0 -180px;
  border-radius:50%;
  border:1.5px dashed color-mix(in srgb, var(--color-on-dark-accent) 28%, transparent);
  animation:rh-spin 40s linear infinite;
}
.rh-ring-2{
  width:250px; height:250px;
  margin:-125px 0 0 -125px;
  border:1px solid rgba(255,255,255,.10);
  animation-duration:28s;
  animation-direction:reverse;
}
@keyframes rh-spin{ to{ transform:rotate(360deg); } }

/* small glowing dots orbiting the rings */
.rh-orbit{
  position:absolute;
  top:50%; left:50%;
  width:360px; height:360px;
  margin:-180px 0 0 -180px;
  animation:rh-spin 14s linear infinite;
}
.rh-orbit i{
  position:absolute;
  top:-6px; left:50%;
  width:12px; height:12px;
  margin-left:-6px;
  border-radius:50%;
  background:var(--color-on-dark-accent);
  box-shadow:0 0 14px 4px color-mix(in srgb, var(--color-on-dark-accent) 60%, transparent);
}
.rh-orbit-2{
  width:250px; height:250px;
  margin:-125px 0 0 -125px;
  animation-duration:9s;
  animation-direction:reverse;
}
.rh-orbit-2 i{
  width:9px; height:9px; margin-left:-4.5px; top:-4.5px;
  background:var(--cta);
  box-shadow:0 0 12px 3px color-mix(in srgb, var(--color-action-primary) 55%, transparent);
}

/* twinkling sparkles */
.rh-spark{
  position:absolute;
  color:var(--color-on-dark-accent);
  font-size:16px;
  animation:rh-twinkle 3s ease-in-out infinite;
}
.rh-spark.s1{ top:6%;  right:6%; }
.rh-spark.s2{ bottom:14%; right:2%; font-size:12px; animation-delay:-1s; }
.rh-spark.s3{ top:44%; left:-2%;  font-size:20px; animation-delay:-2s; color:var(--color-on-dark-accent); }
@keyframes rh-twinkle{
  0%,100%{ opacity:.2; transform:scale(.7) rotate(0deg); }
  50%    { opacity:1;  transform:scale(1.15) rotate(45deg); }
}

/* Guide card: lines "being written" */
.rh-type-line{
  transform-origin:left center;
  animation:rh-write 4s ease-in-out infinite;
}
.rh-type-line.d2{ animation-delay:.35s; }
.rh-type-line.d3{ animation-delay:.7s; }
.rh-line.w50{ width:50%; }
@keyframes rh-write{
  0%      { transform:scaleX(0); opacity:.4; }
  35%,80% { transform:scaleX(1); opacity:1; }
  100%    { transform:scaleX(1); opacity:0; }
}

/* Webinar card: pulsing play button, sound wave, progress bar */
.rh-video{ position:relative; overflow:hidden; }
.rh-play{ position:relative; z-index:1; animation:rh-pulse 2s ease-out infinite; }
@keyframes rh-pulse{
  0%  { box-shadow:0 0 0 0 color-mix(in srgb, var(--color-action-primary) 55%, transparent); }
  100%{ box-shadow:0 0 0 18px color-mix(in srgb, var(--color-action-primary) 0%, transparent); }
}
.rh-wave{
  position:absolute;
  left:14px; bottom:12px;
  display:flex; align-items:flex-end; gap:3px;
  height:22px;
}
.rh-wave i{
  width:4px; height:100%;
  border-radius:2px;
  background:color-mix(in srgb, var(--color-on-dark-accent) 80%, transparent);
  transform-origin:bottom;
  animation:rh-eq 1s ease-in-out infinite;
}
.rh-wave i:nth-child(2){ animation-delay:-.2s; }
.rh-wave i:nth-child(3){ animation-delay:-.4s; }
.rh-wave i:nth-child(4){ animation-delay:-.6s; }
.rh-wave i:nth-child(5){ animation-delay:-.8s; }
@keyframes rh-eq{
  0%,100%{ transform:scaleY(.25); }
  50%    { transform:scaleY(1); }
}
.rh-progress{
  height:6px;
  margin-top:12px;
  border-radius:var(--radius-btn);
  background:rgba(255,255,255,.18);
  overflow:hidden;
}
.rh-progress i{
  display:block;
  height:100%;
  border-radius:var(--radius-btn);
  background:var(--color-on-dark-accent);
  transform-origin:left;
  animation:rh-fill 6s linear infinite;
}
@keyframes rh-fill{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }

/* Research card: growing bars */
.rh-bars i{
  height:100%;
  transform-origin:bottom;
  animation:rh-grow 3.2s ease-in-out infinite;
}
.rh-bars i:nth-child(1){ animation-delay:0s; }
.rh-bars i:nth-child(2){ animation-delay:-.6s; }
.rh-bars i:nth-child(3){ animation-delay:-1.2s; }
.rh-bars i:nth-child(4){ animation-delay:-1.8s; }
.rh-bars i:nth-child(5){ animation-delay:-2.4s; }
@keyframes rh-grow{
  0%,100%{ transform:scaleY(.35); }
  50%    { transform:scaleY(1); }
}

/* status pill with cycling word */
.rh-status{
  position:absolute;
  right:4%;
  bottom:-6px;
  display:flex; align-items:center; gap:8px;
  padding:8px 14px;
  border-radius:var(--radius-btn);
  color:rgba(255,255,255,.85);
  font-size:.8rem;
  font-weight:600;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:0 10px 24px rgba(0,0,0,.2);
}
.rh-status b{
  color:var(--color-on-dark-accent);
  display:inline-block;
  min-width:78px;
  transition:opacity .3s ease, transform .3s ease;
}
.rh-status b.is-out{ opacity:0; transform:translateY(6px); }
.rh-live{
  width:8px; height:8px;
  border-radius:50%;
  background:var(--color-on-dark-accent);
  animation:rh-pulse-dot 1.6s ease-out infinite;
}
@keyframes rh-pulse-dot{
  0%  { box-shadow:0 0 0 0 color-mix(in srgb, var(--color-on-dark-accent) 70%, transparent); }
  100%{ box-shadow:0 0 0 10px color-mix(in srgb, var(--color-on-dark-accent) 0%, transparent); }
}

/* ---------- Section headings ---------- */
.rh-head{
  margin:0 auto 48px;
}
.rh-head .body-lg{ color:var(--text-secondary); }

/* ---------- Content types ---------- */
.rh-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:22px;
}
.rh-type h4{ font-size:1.05rem; margin-bottom:8px; }
.rh-type p{ margin-bottom:18px; }

.rh-icon{
  width:48px;
  height:48px;
  margin-bottom:18px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg, var(--brand-dark) 0%, var(--navy-700) 100%);
  box-shadow:0 8px 18px rgba(20,19,20,0.22), inset 0 1px 0 rgba(255,255,255,.2);
}
.rh-icon svg{ width:24px; height:24px; }
.rh-type:hover .rh-icon{ background:linear-gradient(135deg, var(--cta) 0%, var(--color-action-primary) 100%); }

/* ---------- Explore links ---------- */
.rh-explore{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
}
.rh-link{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  padding:26px 64px 26px 26px;
  border-radius:var(--radius-lg);
  text-align:left;
  font:inherit;
  color:var(--text-secondary);
  cursor:pointer;
  background:linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.7) 100%);
  border:1px solid var(--border-color);
  box-shadow:0 10px 28px rgba(20,19,20,0.08);
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.rh-link strong{
  color:var(--text-primary);
  font-size:1.15rem;
  font-weight:800;
}
.rh-link-tag{
  padding:4px 10px;
  border-radius:var(--radius-btn);
  background:color-mix(in srgb, var(--color-on-dark-accent) 14%, transparent);
  color:var(--success);
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.rh-arrow{
  position:absolute;
  right:22px;
  top:50%;
  width:38px;
  height:38px;
  margin-top:-19px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--brand-dark);
  color:#fff;
  transition:background .25s ease, transform .25s ease;
}
.rh-link:hover{
  transform:translateY(-4px);
  border-color:rgba(20,19,20,0.25);
  box-shadow:0 18px 40px rgba(20,19,20,0.14);
}
.rh-link:hover .rh-arrow{ background:var(--cta); transform:translateX(3px); }
.rh-link:focus-visible{ outline:3px solid var(--border-focus); outline-offset:3px; }

/* CTA: second button on light background */
#page-resources .cta-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .rh-hero-grid{ grid-template-columns:1fr; gap:40px; }
  .rh-preview{ height:360px; max-width:520px; }
  .rh-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .rh-explore{ grid-template-columns:1fr; }
}
@media (max-width:768px){
  .rh-hero{ padding:120px 0 72px; }
  .rh-notify{ flex-direction:column; align-items:stretch; border-radius:var(--radius-lg); padding:8px; }
  .rh-notify button{ width:100%; }
  .rh-preview{ display:none; }
  .rh-hero-copy{ text-align:center; }
  .rh-sub{ margin:0 auto; }
  .rh-chips{ justify-content:center; }
  .rh-grid{ grid-template-columns:1fr; }
}
