/* Page hero (components/page-hero.blade.php). Solid navy of its own, so the background theme starts below it. */
.ds-phero { position: relative; isolation: isolate; overflow: hidden; background: var(--ds-canvas); border-bottom: 1px solid var(--ds-hairline); }
.ds-phero--lg { padding-block: 72px 56px; }
.ds-phero--md { padding-block: 48px 40px; }
.ds-phero--sm { padding-block: 32px 28px; }
.ds-phero--card { border: 1px solid var(--ds-hairline); border-radius: var(--ds-radius-xl, 16px); padding: 24px; }

.ds-phero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ds-phero__fx::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgb(120 160 255 / .26) 1px, transparent 1.5px); background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 75%);
}
/* glows are plain gradients (no blur filter), cheap to paint and to move */
.ds-phero__fx span { position: absolute; border-radius: 50%; }
.ds-phero__fx span:first-child { width: 760px; height: 760px; left: -260px; top: -420px; background: radial-gradient(circle, rgb(29 78 216 / .40), transparent 65%); animation: ds-phero-a 20s ease-in-out infinite; }
.ds-phero__fx span:last-child { width: 560px; height: 560px; right: -180px; top: -80px; background: radial-gradient(circle, rgb(30 80 200 / .30), transparent 65%); animation: ds-phero-b 24s ease-in-out infinite; }
@keyframes ds-phero-a { 50% { transform: translate(70px, 50px) scale(1.12); } }
@keyframes ds-phero-b { 50% { transform: translate(-60px, 40px) scale(1.1); } }

.ds-phero__in--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.ds-phero__copy, .ds-phero__side { min-width: 0; }
.ds-phero .ds-breadcrumb { margin-bottom: 12px; }
.ds-phero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .4px; color: var(--accent); }
.ds-phero__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
html.dark body.lx-site .ds-phero__title { margin: 8px 0 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
html.dark body.lx-site .ds-phero--lg .ds-phero__title { font-size: clamp(32px, 5.2vw, 56px); }
html.dark body.lx-site .ds-phero--sm .ds-phero__title { font-size: clamp(24px, 3vw, 32px); }
.ds-phero__title em { font-style: normal; color: var(--ds-primary-hover); }
.ds-phero__lead { margin: 12px 0 0; max-width: 40rem; font-size: 17px; line-height: 1.6; color: var(--ds-ink-muted); }
.ds-phero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }

.ds-phero__chips { position: relative; height: 240px; }
.ds-phero--lg .ds-phero__chips { height: 280px; }
.ds-phero__chips span {
  position: absolute; white-space: nowrap; padding: 10px 18px; border-radius: var(--ds-radius-lg); background: rgb(17 26 46 / .85);
  box-shadow: inset 0 0 0 1px var(--ds-hairline-strong); font: 600 16px/1.5 ui-monospace, Consolas, var(--ds-font-text); color: var(--ds-primary-hover);
  animation: ds-phero-float 6s ease-in-out infinite;
}
.ds-phero__chips span:nth-child(1) { left: 6%; top: 6%; }
.ds-phero__chips span:nth-child(2) { right: 6%; top: 2%; color: var(--accent); animation-delay: -1.5s; }
.ds-phero__chips span:nth-child(3) { left: 30%; top: 38%; animation-delay: -3s; }
.ds-phero__chips span:nth-child(4) { right: 2%; top: 54%; animation-delay: -4s; }
.ds-phero__chips span:nth-child(5) { left: 2%; bottom: 4%; color: var(--accent); animation-delay: -2s; }
.ds-phero__chips span:nth-child(6) { right: 24%; bottom: 0; animation-delay: -5s; }
@keyframes ds-phero-float { 50% { transform: translateY(-12px); } }

/* sign in / sign up: the form sits beside the words */
.ds-phero--auth { min-height: calc(100vh - 10rem); display: grid; align-items: center; }
.ds-phero--auth .ds-phero__in { width: 100%; }
.ds-phero--auth .ds-phero__in--side { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; }
.ds-phero--auth .ds-auth__foot { margin-top: 16px; }

/* dashboard greeting: the four figures sit beside it */
.ds-phero--card .ds-phero__in--side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ds-phero--card .ds-statgrid { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .ds-phero--lg { padding-block: 40px 32px; }
  .ds-phero--md { padding-block: 32px 24px; }
  .ds-phero--sm { padding-block: 24px 20px; }
  .ds-phero__in--split, .ds-phero--auth .ds-phero__in--side, .ds-phero--card .ds-phero__in--side { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ds-phero__chips { display: none; }
  .ds-phero--auth { min-height: 0; }
  .ds-phero--auth .ds-phero__copy { text-align: center; }
  .ds-phero--auth .ds-phero__side { width: 100%; max-width: 440px; margin-inline: auto; }
  .ds-phero--card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ds-phero__fx span, .ds-phero__chips span { animation: none !important; } }

/* blinking cursor after the title (samples) */
.ds-phero__cursor { color: var(--accent); margin-left: -.2em; animation: ds-phero-blink 1s steps(1) infinite; }
@keyframes ds-phero-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ds-phero__cursor { animation: none; } }
