/* 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(253, 148, 37, 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(8, 8, 10, 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; }
