/* The centred hero with a sky of twinkling stars and faint constellations behind it: the home page (Pages/Shared/_HomeHero.cshtml), the three path pages and the bot feature pages share it, so
   they look like one family. .hx-sub is the shorter version for the inner pages. */

.rd .hx { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: min(790px, calc(100vh - 84px)); margin-top: 4px; padding: 52px 20px 100px; text-align: center; }
.rd .hx-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1040px; }
.rd .hx .rd-whatsnew { margin: 0; }
.rd .hx h1 { margin: 22px 0 20px; max-width: 12.5em; font: 700 clamp(42px, 6.5vw, 90px)/1.01 var(--font-head); letter-spacing: -0.035em; text-wrap: balance; }
.rd .hx h1 em { font-style: normal; color: var(--link); }
.rd .hx-lead { max-width: 30em; color: var(--soft); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; }
.rd .hx .rd-cta-row { justify-content: center; margin-top: 32px; }
.rd .hx-cmds { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 30px; font: 600 13px var(--font-mono); letter-spacing: 0.05em; color: var(--mute); }
.rd .hx-cmds b { font-weight: 600; color: var(--link); }
.rd .hx-cmds a { color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.rd .hx-cmds a:hover { color: var(--ink); border-color: var(--accent); }
.rd .hx .pt-scroll { position: absolute; z-index: 3; left: 50%; bottom: 10px; margin: 0; transform: translateX(-50%); }
.rd .hx .pt-scroll.gone { transform: translate(-50%, 10px); }

.rd .hx2 { --px: 0; --py: 0; }
.rd .hx2-sky { position: absolute; z-index: 1; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); pointer-events: none; }
.rd .hx2-layer { transition: transform 0.25s ease-out; }
.rd .hx2-far { transform: translate(calc(var(--px) * -8px), calc(var(--py) * -6px)); }
.rd .hx2-near { transform: translate(calc(var(--px) * -20px), calc(var(--py) * -14px)); }
.rd .hx2-sky .s { fill: #fff; animation: hx-twinkle 4.2s ease-in-out infinite; }
.rd .hx2-sky .s.o { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.rd .hx2-sky .l { fill: none; stroke: rgba(142, 160, 255, 0.28); stroke-width: 1; stroke-dasharray: 4 5; animation: hx-dash 30s linear infinite; }
.rd .hx2-sky .k { fill: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); animation: hx-twinkle 5s ease-in-out infinite; }
@keyframes hx-twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes hx-dash { to { stroke-dashoffset: -400; } }
.rd .hx2::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: radial-gradient(55% 50% at 50% 46%, rgba(5, 6, 23, 0.78), transparent 78%); }

.rd .hx-ember { margin-top: 18px; letter-spacing: 0.22em; }
.rd .hx-ember + h1 { margin-top: 10px; }

@media (max-width: 860px) {
  .rd .hx { min-height: 0; padding-block: 36px 96px; }
  .rd .hx .rd-cta-row > .rd-ember-wrap, .rd .hx .rd-cta-row > .rd-notch-ring { width: 100%; max-width: 250px; }
  .rd .hx .rd-btn.rd-ember { flex: 1; justify-content: center; padding: 15px 18px; }
  .rd .hx .rd-notch-wrap { flex: 1; }
  .rd .hx .rd-btn.rd-notch { flex: 1; justify-content: center; padding: 14px 17px; }
  .rd .hx .rd-cta-row > .rd-pro { width: 100%; max-width: 280px; }
  .rd .hx .rd-pro .rd-notch-wrap { flex: 1; }
  .rd .hx .rd-pro .rd-btn.rd-notch { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rd .hx2-sky .s, .rd .hx2-sky .l, .rd .hx2-sky .k { animation: none; }
}

/* the shorter hero on the inner pages */
.rd .hx-sub { min-height: 0; margin-top: 10px; padding: 56px 20px 72px; }
.rd .hx-sub h1 { margin: 14px 0 16px; max-width: 15em; font-size: clamp(34px, 5.2vw, 66px); }
.rd .hx-sub .hx-copy { max-width: 900px; }
.rd .hx-sub .hx-lead { max-width: 32em; }

/* ---------- the blurple look for every hero: soft coloured light instead of a sky, a pill tag, a gradient word, pill buttons ---------- */
body:has(.hm-blobs) { overflow-x: clip; }
.rd .hx { overflow: visible; }
.rd .hx2::after { content: none; }
.rd .hm-blobs { position: absolute; inset: 0; top: -160px; left: 50%; right: auto; width: 100vw; margin-left: -50vw; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0.9; }   /* (it reaches 160px above the hero, so the light has no hard edge under the bar; the lights below are pushed down by the same 160px) */
.rd .hm-blobs i { position: absolute; display: block; margin-top: 160px; border-radius: 50%; will-change: transform; animation: hm-float 16s ease-in-out infinite alternate; }   /* (no blur filter: an animated blur is the heaviest thing a page can ask a GPU for, and the lights already fade out softly) */
.rd .hm-blobs .b1 { width: 880px; height: 560px; left: 50%; top: -230px; margin-left: -440px; background: radial-gradient(closest-side, rgba(88, 101, 242, 0.75), rgba(88, 101, 242, 0.36) 42%, rgba(88, 101, 242, 0.1) 72%, transparent); }
.rd .hm-blobs .b2 { width: 520px; height: 420px; left: -150px; top: 380px; background: radial-gradient(closest-side, rgba(236, 72, 153, 0.28), rgba(236, 72, 153, 0.13) 42%, rgba(236, 72, 153, 0.03) 72%, transparent); animation-delay: -5s; }
.rd .hm-blobs .b3 { width: 520px; height: 420px; right: -130px; top: 320px; background: radial-gradient(closest-side, rgba(34, 211, 238, 0.22), transparent); animation-delay: -9s; }
@keyframes hm-float { to { transform: translate(40px, 30px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .rd .hm-blobs i { animation: none; } }

.rd .hx .lpx-ey, .rd .hx .rd-eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 99px; background: rgba(88, 101, 242, 0.16); border: 1px solid rgba(142, 160, 255, 0.38); font: 600 12.5px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: #dfe2ff; }
.rd .hx h1 { letter-spacing: -0.035em; }
.rd .hx h1 em { font-style: normal; background: linear-gradient(90deg, #8ea0ff, #d0b8ff 52%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rd.paths .pt-wm, .rd .hx .pt-wm { display: none; }

.rd .hx .rd-ember-wrap, .rd .hx .rd-ember-wrap:hover { filter: none; }
.rd .hx .rd-btn.rd-ember { height: 52px; padding: 0 28px; border-radius: 99px; clip-path: none; color: #0b0c24; background: #fff; box-shadow: 0 14px 40px -12px rgba(160, 170, 255, 0.7); font: 600 16px var(--font-body); transition: transform 0.18s ease-out, box-shadow 0.25s ease; }
.rd .hx .rd-btn.rd-ember:hover { filter: none; transform: translateY(-2px); box-shadow: 0 18px 46px -10px rgba(160, 170, 255, 0.9); }
.rd .hx .rd-ember-tx { background: none; animation: none; color: #0b0c24; -webkit-text-fill-color: #0b0c24; }
.rd .hx .rd-notch-ring { border-radius: 99px; }
.rd .hx .rd-notch-wrap { padding: 0; background: transparent; clip-path: none; border-radius: 99px; }
.rd .hx .rd-btn.rd-notch { height: 52px; padding: 0 28px; border-radius: 99px; clip-path: none; color: #fff; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(180, 188, 255, 0.3); backdrop-filter: blur(8px); font: 600 16px var(--font-body); }
.rd .hx .rd-notch-wrap:hover { background: transparent; }
.rd .hx .rd-notch-wrap:hover .rd-btn.rd-notch { background: rgba(255, 255, 255, 0.11); border-color: rgba(180, 188, 255, 0.6); }
/* the shorter heroes fade their light out at the bottom, so it never ends in a hard edge */
.rd .hx .hm-blobs { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.rd .hx .hm-blobs .b2 { top: 140px; }
.rd .hx .hm-blobs .b3 { top: 100px; }
