/**
 * Showcase hero - full-width grid layout, viewport-safe gallery stack.
 * Replaces fragmented parallax/max/ultra layout overrides.
 */

html:has(body.page-landing) {
  --hero-pad-x: clamp(1rem, 3vw, 2rem);
  --hero-available-h: calc(100dvh - var(--landing-nav-offset, 5.5rem));
  --hero-stage-h: clamp(18rem, 42vh, 30rem);
  --hero-gallery-h: clamp(20rem, 46vh, 32rem);
  --hero-grid-h: clamp(24rem, 58vh, 38rem);
}

/* ── Section shell - exactly one viewport on desktop ── */
.landing-hero--showcase {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 clamp(0.4rem, 0.9vh, 0.65rem);
  overflow: hidden;
  background: transparent !important;
  box-sizing: border-box;
  z-index: 2;
}

/* ── Ambient - page wrap owns mesh + grid; hero adds no second canvas ── */
.landing-hero--showcase .landing-hero__ambient,
.landing-hero--showcase .landing-hero__grid-bg,
.landing-hero--showcase .landing-hero__grid-radial,
.landing-hero--showcase .landing-hero__stage-spotlight,
.landing-hero--showcase .landing-hero__parallax-glow {
  display: none !important;
}

.landing-hero--showcase::after {
  display: none;
}

.landing-hero--showcase .landing-hero__shell {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
  overflow: visible;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  padding-top: 0;
}

.landing-hero--showcase .landing-hero__container {
  width: 100%;
  max-width: min(112rem, 100%) !important;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.35rem, 0.75vh, 0.55rem);
  background: transparent;
}

.landing-hero--showcase .landing-hero__footer {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.15rem;
  pointer-events: none;
}

.landing-hero--showcase .landing-hero__footer > * {
  pointer-events: auto;
}

/* Kill legacy v2 stage sizing on showcase gallery */
.landing-hero--showcase .landing-hero__gallery.landing-hero__parallax-stage {
  height: auto !important;
  max-height: none !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  width: 100% !important;
  perspective: none !important;
}

/* ── Grid: copy + full-bleed gallery ── */
.landing-hero__grid {
  display: grid;
  width: 100%;
  gap: clamp(0.65rem, 1.4vw, 1rem);
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: visible;
}

.landing-hero--showcase .landing-hero__copy {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  text-align: left;
  padding: clamp(1rem, 2vh, 1.35rem) clamp(1rem, 1.6vw, 1.25rem);
  padding-right: clamp(1.35rem, 2.8vw, 2rem);
  isolation: isolate;
  overflow: visible;
  --hero-glass-r: clamp(2.35rem, 5.2vw, 3.35rem);
  --hero-glass-r-inner: calc(var(--hero-glass-r) - 0.35rem);
  --hero-glass-r-shape: var(--hero-glass-r) 0 0 var(--hero-glass-r);
  --hero-glass-r-inner-shape: var(--hero-glass-r-inner) 0 0 var(--hero-glass-r-inner);
  --hero-glass-fade: linear-gradient(
    90deg,
    #000 0%,
    #000 54%,
    rgba(0, 0, 0, 0.88) 66%,
    rgba(0, 0, 0, 0.52) 78%,
    rgba(0, 0, 0, 0.18) 90%,
    transparent 100%
  );
}

.landing-hero--showcase .landing-hero__copy > :not(.landing-hero__copy-glass) {
  position: relative;
  z-index: 1;
}

/* Premium wet glass - rounded left, soft fade into gallery on the right */
.landing-hero__copy-glass {
  position: absolute;
  inset: -1.5rem -3rem -1.85rem 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--hero-glass-r-shape);
  -webkit-mask-image: var(--hero-glass-fade);
  mask-image: var(--hero-glass-fade);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.landing-hero__copy-glass > span {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--hero-glass-r-shape);
}

.landing-hero__copy-glass-bloom {
  inset: 8% 14% 8% 4%;
  border-radius: calc(var(--hero-glass-r) + 0.65rem) 0 0 calc(var(--hero-glass-r) + 0.65rem);
  background:
    radial-gradient(
      ellipse 68% 58% at 18% 34%,
      rgba(59, 130, 246, 0.11) 0%,
      rgba(139, 92, 246, 0.04) 40%,
      transparent 70%
    );
  filter: blur(24px);
  opacity: 0.55;
}

.landing-hero__copy-glass-blur {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(255, 255, 255, 0.028) 42%,
      rgba(255, 255, 255, 0.01) 68%,
      transparent 100%
    ),
    linear-gradient(
      148deg,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(255, 255, 255, 0.022) 30%,
      rgba(255, 255, 255, 0.008) 58%,
      rgba(15, 23, 42, 0.04) 100%
    );
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.landing-hero__copy-glass-rim {
  background: transparent;
  border-radius: var(--hero-glass-r-shape);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0.9;
}

.landing-hero__copy-glass-sheen {
  border-radius: var(--hero-glass-r-inner-shape);
  background:
    radial-gradient(ellipse 62% 36% at 12% 0%, rgba(255, 255, 255, 0.32) 0%, transparent 54%),
    radial-gradient(ellipse 42% 28% at 86% 12%, rgba(255, 255, 255, 0.06) 0%, transparent 62%),
    linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 28%,
      transparent 72%,
      rgba(34, 211, 238, 0.04) 100%
    );
  mix-blend-mode: plus-lighter;
  opacity: 0.72;
  animation: landing-hero-wet-sheen 14s ease-in-out infinite;
}

.landing-hero__copy-glass-caustic {
  border-radius: var(--hero-glass-r-inner-shape);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 14%),
    radial-gradient(ellipse 80% 28% at 24% 100%, rgba(255, 255, 255, 0.05) 0%, transparent 72%);
  mix-blend-mode: soft-light;
  opacity: 0.5;
}

@keyframes landing-hero-wet-sheen {
  0%, 100% {
    opacity: 0.58;
    transform: translate(0, 0);
  }
  50% {
    opacity: 0.78;
    transform: translate(0.6%, -0.4%);
  }
}

[data-mantine-color-scheme="light"] .landing-hero__copy-glass-bloom {
  background: radial-gradient(
    ellipse 68% 58% at 18% 34%,
    rgba(59, 130, 246, 0.07) 0%,
    rgba(99, 102, 241, 0.03) 42%,
    transparent 72%
  );
  opacity: 0.45;
}

[data-mantine-color-scheme="light"] .landing-hero__copy-glass-blur {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(255, 255, 255, 0.16) 45%,
      rgba(255, 255, 255, 0.04) 72%,
      transparent 100%
    ),
    linear-gradient(
      148deg,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(255, 255, 255, 0.16) 38%,
      rgba(255, 255, 255, 0.06) 100%
    );
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28);
}

[data-mantine-color-scheme="light"] .landing-hero__copy-glass-rim {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  opacity: 0.75;
}

[data-mantine-color-scheme="light"] .landing-hero__copy-glass-sheen {
  background:
    radial-gradient(ellipse 62% 36% at 12% 0%, rgba(255, 255, 255, 0.65) 0%, transparent 54%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.35) 0%, transparent 38%);
  mix-blend-mode: normal;
  opacity: 0.38;
}

[data-mantine-color-scheme="light"] .landing-hero__copy-glass-caustic {
  opacity: 0.28;
}

.landing-hero__metrics {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.landing-hero__metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  padding: 0.55rem 0.85rem;
  min-width: 5.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 16px -10px rgba(0, 0, 0, 0.25);
}
.landing-hero__metrics strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--landing-text);
}
.landing-hero__metrics span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--landing-text-muted);
}
[data-mantine-color-scheme="light"] .landing-hero__metrics li {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(15, 23, 42, 0.08);
}

.landing-hero__referral-promo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  margin-top: 0.6rem;
  padding: 0.38rem 0.55rem 0.38rem 0.42rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14) 0%, rgba(16, 185, 129, 0.06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 22px -14px rgba(34, 197, 94, 0.45);
  opacity: 1;
  transform: none;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.landing-hero__referral-promo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 64%
  );
  transform: translateX(-120%);
  animation: landing-hero-referral-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes landing-hero-referral-sweep {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.landing-hero__referral-promo:hover {
  border-color: rgba(74, 222, 128, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 26px -12px rgba(34, 197, 94, 0.5);
}

.landing-hero__referral-promo:focus-visible {
  outline: 2px solid rgba(74, 222, 128, 0.55);
  outline-offset: 2px;
}

.landing-hero__referral-promo-dot {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45);
  animation: landing-hero-referral-pulse 2.4s ease-in-out infinite;
}

@keyframes landing-hero-referral-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45);
  }
  50% {
    box-shadow: 0 0 0 0.35rem rgba(74, 222, 128, 0);
  }
}

.landing-hero__referral-promo-copy {
  flex: 1;
  min-width: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-hero__referral-promo-label {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.22);
  vertical-align: middle;
}

.landing-hero__referral-promo-shine {
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #86efac 0%, #fde047 45%, #86efac 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: landing-hero-referral-shine 2.8s linear infinite;
}

@keyframes landing-hero-referral-shine {
  to {
    background-position: 200% center;
  }
}

.landing-hero__referral-promo-go {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #bbf7d0;
  white-space: nowrap;
}

.landing-hero__referral-promo:hover .landing-hero__referral-promo-go {
  color: #dcfce7;
}

[data-mantine-color-scheme="light"] .landing-hero__referral-promo {
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 6px 18px -12px rgba(22, 163, 74, 0.25);
}

[data-mantine-color-scheme="light"] .landing-hero__referral-promo-copy {
  color: #334155;
}

[data-mantine-color-scheme="light"] .landing-hero__referral-promo-label {
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(22, 163, 74, 0.16);
}

[data-mantine-color-scheme="light"] .landing-hero__referral-promo-shine {
  background: linear-gradient(90deg, #15803d 0%, #ca8a04 45%, #15803d 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

[data-mantine-color-scheme="light"] .landing-hero__referral-promo-go {
  color: #166534;
}

@media (max-width: 30em) {
  .landing-hero__referral-promo-copy {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .landing-hero__referral-promo-go {
    display: none;
  }
}

.landing-hero--copy-tight .landing-hero__referral-promo-copy,
.landing-hero--ultra-short .landing-hero__referral-promo-copy {
  font-size: 0.625rem;
}

.landing-hero__title-main--gradient {
  display: block;
  min-height: 1.12em;
  background: none !important;
  -webkit-text-fill-color: inherit !important;
  color: inherit !important;
}
.landing-hero--showcase .landing-hero__title-main--gradient .landing-hero__flip {
  display: inline-block;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  background: linear-gradient(120deg, #93c5fd 0%, #c4b5fd 38%, #22d3ee 72%, #93c5fd 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: landing-hero-title-shimmer 8s linear infinite;
  filter: none;
  opacity: 1;
}
.landing-hero--showcase .landing-hero__flip.is-exiting {
  filter: blur(4px);
  opacity: 0;
}
.landing-hero--showcase .landing-hero__flip.is-entering {
  animation: none;
}
[data-mantine-color-scheme="light"] .landing-hero--showcase .landing-hero__title-main--gradient .landing-hero__flip {
  background: linear-gradient(120deg, #2563eb 0%, #7c3aed 45%, #0891b2 75%, #2563eb 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes landing-hero-title-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.landing-hero__gallery {
  position: relative;
  width: 100%;
  min-height: var(--hero-gallery-h);
  height: auto;
  max-width: none !important;
  margin: 0 !important;
  perspective: none !important;
  pointer-events: none;
  flex-shrink: 0;
}

.landing-hero--showcase .landing-hero__gallery {
  overflow: hidden;
}

.landing-hero__gallery-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 2200px;
  perspective-origin: 38% 62%;
  --spot-x: 38%;
  --spot-y: 62%;
}

.landing-hero--showcase .landing-hero__gallery-canvas {
  overflow: visible;
}

.landing-hero__stage-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle min(240px, 36vw) at var(--spot-x) var(--spot-y),
    var(--landing-mesh-1) 0%,
    transparent 68%
  );
  opacity: 0.45;
}

.landing-hero__parallax-glow {
  position: absolute;
  left: 4%;
  bottom: 6%;
  width: min(50%, 36rem);
  height: 55%;
  transform: none;
  filter: blur(48px);
  background: radial-gradient(ellipse at center, var(--landing-mesh-1) 0%, transparent 70%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.landing-hero__parallax-stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  z-index: 1;
}

/* ── Cards (shared) ── */
.landing-hero__card,
.landing-hero__parallax-card {
  position: absolute;
  margin: 0;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
  opacity: 0;
  transform:
    translateX(var(--center-x, 0))
    translate3d(
      calc(var(--parallax-x, 0px) + var(--collision-x, 0px)),
      calc(var(--parallax-y, 0px) + var(--scroll-y, 0px) + var(--collision-y, 0px)),
      var(--parallax-z, 0px)
    )
    rotateX(var(--tilt-x, 4deg))
    rotateY(var(--tilt-y, -4deg))
    rotateZ(var(--rz, 0deg))
    scale(var(--card-scale, 1));
}

.landing-hero__parallax-card.is-ready {
  opacity: 1;
}

/* Main dashboard preview - flat, no 3D slant (badge sits on card, not inside clipped frame) */
.landing-hero--showcase .landing-hero__parallax-card--back {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --rz: 0deg;
  overflow: visible;
  transform:
    translateX(var(--center-x, 0))
    translate3d(
      calc(var(--parallax-x, 0px) + var(--collision-x, 0px)),
      calc(var(--parallax-y, 0px) + var(--scroll-y, 0px) + var(--collision-y, 0px)),
      var(--parallax-z, 0px)
    )
    scale(var(--card-scale, 1));
}

.landing-hero__parallax-card--deep.is-ready {
  opacity: 0.5;
}
[data-mantine-color-scheme="light"] .landing-hero__parallax-card--deep.is-ready {
  opacity: 0.32;
}

.landing-hero__parallax-img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-hero__frame,
.landing-hero__parallax-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0f1419;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.85);
}
[data-mantine-color-scheme="light"] .landing-hero__frame,
[data-mantine-color-scheme="light"] .landing-hero__parallax-frame {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 28px 56px -24px rgba(15, 23, 42, 0.14);
}

.landing-hero__parallax-frame--hero {
  border-radius: 22px;
  -webkit-mask-image: none;
  mask-image: none;
  box-shadow:
    0 48px 100px -36px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 60px -16px rgba(59, 130, 246, 0.28);
}

.landing-hero__parallax-frame--deep {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 22px;
  filter: blur(2px) saturate(0.9) brightness(0.82);
}
[data-mantine-color-scheme="light"] .landing-hero__parallax-frame--deep {
  filter: blur(3px) saturate(0.85) brightness(1.02);
}

.landing-hero__parallax-frame--satellite {
  border-radius: 16px;
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 0 32px -10px rgba(59, 130, 246, 0.2);
}

.landing-hero__frame-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.landing-hero__frame-chrome span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}
.landing-hero__frame-chrome span:nth-child(1) { background: #ef4444; }
.landing-hero__frame-chrome span:nth-child(2) { background: #eab308; }
.landing-hero__frame-chrome span:nth-child(3) { background: #22c55e; }
.landing-hero__frame-chrome em {
  margin-left: 0.4rem;
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
}

.landing-hero__frame-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle, 0deg), #3b82f6, #8b5cf6, #22d3ee, #3b82f6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  opacity: 0.7;
  animation: landing-hero-border-spin 6s linear infinite;
}
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes landing-hero-border-spin {
  to { --border-angle: 360deg; }
}

.landing-hero__frame-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12) 0%, transparent 42%);
  pointer-events: none;
  z-index: 2;
}

.landing-hero__float-badge {
  position: absolute;
  top: -0.65rem;
  left: 1rem;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #bbf7d0;
  background: linear-gradient(165deg, rgba(28, 28, 34, 0.92) 0%, rgba(14, 14, 18, 0.96) 100%);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  pointer-events: none;
}
[data-mantine-color-scheme="light"] .landing-hero__float-badge {
  color: #15803d;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-color: rgba(34, 197, 94, 0.28);
}

.landing-hero__live-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  animation: landing-hero-pulse-dot 2s ease infinite;
}
@keyframes landing-hero-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.landing-hero__card-caption {
  position: absolute;
  bottom: -0.6rem;
  left: 0.75rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.landing-hero__card-caption--accent {
  left: auto;
  right: 0.75rem;
  top: -0.6rem;
  bottom: auto;
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.25);
}

.landing-hero--showcase .landing-hero__stage-stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 1;
  flex: 0 0 auto;
  pointer-events: none;
}

.landing-hero--showcase .landing-hero__stage-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.78rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--landing-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.landing-hero--showcase .landing-hero__stage-stat:first-child {
  color: rgba(187, 247, 208, 0.95);
  background: rgba(74, 222, 128, 0.07);
  border-color: rgba(74, 222, 128, 0.22);
}

[data-mantine-color-scheme="light"] .landing-hero--showcase .landing-hero__stage-stat {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
  color: rgba(51, 65, 85, 0.88);
}

[data-mantine-color-scheme="light"] .landing-hero--showcase .landing-hero__stage-stat:first-child {
  color: rgba(21, 128, 61, 0.95);
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
}

.landing-hero--showcase .landing-hero__stage-stat-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.55);
}

/* ── Shot nav - same language as floating landing-header ── */
.landing-hero--showcase .landing-hero__shot-nav {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.12rem;
  width: min(100%, 42rem);
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
  isolation: isolate;
  background: linear-gradient(165deg, rgba(34, 34, 38, 0.98) 0%, rgba(24, 24, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px -8px rgba(0, 0, 0, 0.55),
    0 2px 8px -2px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.landing-hero--showcase .landing-hero__shot-nav::-webkit-scrollbar { display: none; }

[data-mantine-color-scheme="light"] .landing-hero--showcase .landing-hero__shot-nav {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow:
    0 12px 40px -16px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    inset 0 -1px 0 rgba(15, 23, 42, 0.05);
}

.landing-hero--showcase .landing-hero__shot-glider {
  display: none !important;
}

.landing-hero--showcase .landing-hero__shot-pill {
  position: relative;
  z-index: 1;
  appearance: none;
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0.42rem 0.85rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.landing-hero--showcase .landing-hero__shot-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.landing-hero--showcase .landing-hero__shot-pill.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-mantine-color-scheme="light"] .landing-hero--showcase .landing-hero__shot-pill {
  color: rgba(15, 23, 42, 0.62);
}

[data-mantine-color-scheme="light"] .landing-hero--showcase .landing-hero__shot-pill:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

[data-mantine-color-scheme="light"] .landing-hero--showcase .landing-hero__shot-pill.is-active {
  color: #0f172a;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

/* ── Below-fold hero extras ── */
.landing-hero--showcase .landing-hero__title-main {
  font-size: clamp(1.85rem, 3.2vw, 3.15rem);
}


.landing-hero--showcase.landing-hero--motion-ready .landing-hero__parallax-copy [data-hero-enter] {
  opacity: 1;
  transform: none;
}

/* v2 hides [data-hero-enter] - showcase uses motion.js instead */
.landing-hero--showcase .landing-hero__parallax-copy [data-hero-enter] {
  opacity: 1;
  transform: none;
}

/* Hero stack ticker - single compact logo marquee */
.landing-hero--showcase .landing-hero__stack-ticker {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.landing-hero__stack-marquee.landing-ecosystem__marquee--hero {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035) 0%, rgba(10, 10, 14, 0.55) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 32px -22px rgba(0, 0, 0, 0.55);
}

.landing-hero__stack-marquee.landing-ecosystem__marquee--hero .landing-ecosystem__logos {
  gap: 0.4rem;
  padding: 0.32rem 0.5rem;
}

.landing-hero__stack-marquee.landing-ecosystem__marquee--hero .landing-ecosystem__logo {
  width: 2rem;
  height: 2rem;
  padding: 0.28rem;
  border-radius: 8px;
}

.landing-hero__stack-marquee.landing-ecosystem__marquee--hero .landing-ecosystem__logo:hover {
  transform: translateY(-1px) scale(1.02);
}

.landing-hero__stack-marquee.landing-ecosystem__marquee--hero .landing-ecosystem__track {
  --eco-marquee-duration: 42s;
}

[data-mantine-color-scheme="light"] .landing-hero__stack-marquee.landing-ecosystem__marquee--hero {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-color: rgba(15, 23, 42, 0.07);
}

/* Legacy dual-band hero styles (ecosystem section still uses full bands) */
.landing-hero__stack-bands.landing-ecosystem__bands--hero {
  gap: 0.45rem;
  width: 100%;
}

.landing-ecosystem__band--hero .landing-ecosystem__band-head {
  justify-content: flex-start;
  gap: 0.4rem;
  margin: 0 0 0.32rem;
  padding: 0.15rem 0.45rem 0.15rem 0.15rem;
}

.landing-ecosystem__band--hero .landing-ecosystem__band-icon {
  width: 1.35rem;
  height: 1.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.landing-ecosystem__band--hero .landing-ecosystem__band-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

.landing-ecosystem__band--hero .landing-ecosystem__band-label {
  font-size: 0.5625rem;
  letter-spacing: 0.11em;
  color: rgba(148, 163, 184, 0.85);
}

.landing-ecosystem__band--hero .landing-ecosystem__marquee {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035) 0%, rgba(10, 10, 14, 0.55) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 32px -22px rgba(0, 0, 0, 0.55);
}

.landing-ecosystem__band--hero .landing-ecosystem__logos {
  gap: 0.45rem;
  padding: 0.4rem 0.55rem;
}

.landing-ecosystem__band--hero .landing-ecosystem__logo {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.32rem;
  border-radius: 9px;
}

.landing-ecosystem__band--hero .landing-ecosystem__logo:hover {
  transform: translateY(-2px) scale(1.03);
}

.landing-ecosystem__band--hero .landing-ecosystem__track {
  animation-duration: 36s;
}

.landing-ecosystem__band--hero .landing-ecosystem__marquee--reverse .landing-ecosystem__track {
  animation-duration: 42s;
}

[data-mantine-color-scheme="light"] .landing-ecosystem__band--hero .landing-ecosystem__marquee {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-color: rgba(15, 23, 42, 0.07);
}

[data-mantine-color-scheme="light"] .landing-ecosystem__band--hero .landing-ecosystem__band-label {
  color: rgba(71, 85, 105, 0.9);
}

[data-mantine-color-scheme="light"] .landing-ecosystem__band--hero .landing-ecosystem__band-icon {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(37, 99, 235, 0.14);
  color: #2563eb;
}

.landing-hero--showcase .landing-hero__strip-list--glass {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  padding: 0;
  border: none;
}
.landing-hero--showcase .landing-hero__strip-list--glass .landing-hero__strip-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.5rem 0.62rem;
  border-radius: 14px;
}

/* ── Desktop: two columns, strict viewport fit ── */
@media (min-width: 64em) {
  .landing-hero__grid {
    grid-template-columns: minmax(16rem, 32fr) minmax(0, 68fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: clamp(0.5rem, 1.2vw, 0.85rem);
    min-height: 0 !important;
    height: var(--hero-grid-h);
    max-height: var(--hero-grid-h);
    overflow: visible;
  }

  .landing-hero__copy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding-right: clamp(1.75rem, 3.5vw, 2.75rem);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    max-height: 100%;
    overflow: visible;
    --hero-glass-r: clamp(2.5rem, 4.8vw, 3.5rem);
    --hero-glass-r-inner: calc(var(--hero-glass-r) - 0.4rem);
    --hero-glass-r-shape: var(--hero-glass-r) 0 0 var(--hero-glass-r);
    --hero-glass-r-inner-shape: var(--hero-glass-r-inner) 0 0 var(--hero-glass-r-inner);
    --hero-glass-fade: linear-gradient(
      90deg,
      #000 0%,
      #000 48%,
      rgba(0, 0, 0, 0.9) 62%,
      rgba(0, 0, 0, 0.55) 74%,
      rgba(0, 0, 0, 0.2) 86%,
      transparent 100%
    );
  }

  .landing-hero__copy-glass {
    inset: -1.5rem -5.5rem -2rem 0;
    border-radius: var(--hero-glass-r-shape);
  }

  .landing-hero__gallery {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    padding-top: 0.65rem;
    padding-bottom: 2.5rem;
    box-sizing: border-box;
    z-index: 6;
    overflow: hidden;
  }

  .landing-hero__gallery-canvas {
    top: 0.35rem;
    bottom: 0;
    left: 0;
    right: 0;
    perspective-origin: 52% 56%;
    --spot-x: 52%;
    --spot-y: 56%;
  }

  .landing-hero__parallax-card--deep {
    left: 8%;
    bottom: 4%;
    top: auto;
    width: 84%;
    z-index: 0;
    opacity: 0.42;
    --parallax-z: -100px;
    --card-scale: 0.86;
  }

  .landing-hero__parallax-card--back {
    left: 6%;
    bottom: 13%;
    top: auto;
    width: 88%;
    max-width: none;
    z-index: 2;
    --parallax-z: 0px;
    --card-scale: 0.88;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --rz: 0deg;
  }

  .landing-hero__parallax-card--front {
    left: auto;
    right: 2%;
    top: 8%;
    bottom: auto;
    width: min(34%, 190px);
    z-index: 5;
    --parallax-z: 80px;
    --card-scale: 0.88;
  }

  .landing-hero__parallax-card--mid {
    left: auto;
    right: 6%;
    bottom: 22%;
    top: auto;
    width: min(38%, 220px);
    z-index: 4;
    --parallax-z: 60px;
    --card-scale: 0.88;
  }

  .landing-hero--showcase .landing-hero__shot-nav {
    left: 6%;
    width: min(88%, 100%);
    max-width: none;
    bottom: 0;
    padding: 0.32rem 0.4rem;
  }

  .landing-hero__parallax-glow {
    left: 8%;
    bottom: 12%;
    width: 68%;
    height: 42%;
  }

}

@media (max-width: 63.99em) {
  body.page-landing .landing-hero--showcase {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    box-sizing: border-box;
    padding-top: var(--landing-nav-offset, 5.5rem);
    overflow: visible;
  }

  .landing-hero--showcase .landing-hero__shell,
  .landing-hero--showcase .landing-hero__container {
    overflow: visible;
    max-height: none;
  }

  .landing-hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
    flex: none;
  }

  .landing-hero__copy {
    grid-column: 1;
    grid-row: 1;
  }

  .landing-hero__gallery {
    grid-column: 1;
    grid-row: 2;
  }
}

/* ── Tablet ── */
@media (min-width: 40em) and (max-width: 63.99em) {
  .landing-hero__gallery {
    min-height: clamp(20rem, 44vw, 30rem);
    padding-top: 0.85rem;
    padding-bottom: 3rem;
  }

  .landing-hero__parallax-card--deep,
  .landing-hero__parallax-card--mid,
  .landing-hero__parallax-card--front {
    display: none;
  }

  .landing-hero__parallax-card--back {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: min(92%, 520px);
    --center-x: -50%;
  }

  .landing-hero--showcase .landing-hero__shot-nav {
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 36rem);
  }

  .landing-hero--showcase .landing-hero__shot-pill {
    font-size: 0.75rem;
    padding: 0.4rem 0.72rem;
  }
}

@media (max-width: 48em) {
  body.page-landing .landing-hero--showcase {
    padding-top: calc(var(--landing-nav-offset, 5rem) + 0.65rem);
  }
}

/* ── Mobile ── */
@media (max-width: 39.99em) {
  body.page-landing .landing-hero--showcase {
    padding-top: calc(var(--landing-nav-offset, 5rem) + 0.85rem);
  }

  .landing-hero--showcase {
    min-height: auto;
    padding-bottom: 1.5rem;
  }

  .landing-hero__grid {
    grid-template-rows: auto;
    gap: 0.75rem;
  }

  .landing-hero__gallery {
    display: none !important;
  }

  .landing-hero__copy-glass {
    inset: -0.85rem -1rem -1.25rem 0;
  }

  .landing-hero--showcase .landing-hero__copy {
    --hero-glass-r: clamp(1.85rem, 6vw, 2.35rem);
    --hero-glass-r-inner: calc(var(--hero-glass-r) - 0.25rem);
    --hero-glass-r-shape: var(--hero-glass-r) 0 0 var(--hero-glass-r);
    --hero-glass-r-inner-shape: var(--hero-glass-r-inner) 0 0 var(--hero-glass-r-inner);
    --hero-glass-fade: linear-gradient(
      90deg,
      #000 0%,
      #000 58%,
      rgba(0, 0, 0, 0.82) 72%,
      rgba(0, 0, 0, 0.35) 88%,
      transparent 100%
    );
  }
}

/* ── Compact / tight copy when viewport is short ── */
.landing-hero--showcase.landing-hero--fit .landing-hero__title-main {
  font-size: clamp(1.65rem, 2.8vw, 2.75rem);
}

.landing-hero--copy-tight .landing-hero__social--parallax {
  display: none;
}

.landing-hero--copy-tight .landing-hero__description--parallax {
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-hero--copy-tight .landing-hero__metrics {
  margin-bottom: 0.55rem;
}

.landing-hero--copy-tight .landing-hero__announce {
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  padding: 0.28rem 0.65rem 0.28rem 0.45rem;
}

.landing-hero--compact.landing-hero--wide .landing-hero__stack-ticker {
  display: none;
}

.landing-hero--compact.landing-hero--wide .landing-hero__footer {
  gap: 0;
}

.landing-hero--compact .landing-hero__metrics {
  margin-bottom: 0.65rem;
  gap: 0.45rem;
}
.landing-hero--compact .landing-hero__metrics li {
  padding: 0.42rem 0.65rem;
  min-width: 4.5rem;
}
.landing-hero--compact .landing-hero__title--parallax {
  margin-bottom: 0.85rem;
}
.landing-hero--compact .landing-hero__title-main {
  font-size: clamp(1.85rem, 3.4vw, 3.15rem) !important;
}
.landing-hero--compact .landing-hero__description--parallax {
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.55;
}
.landing-hero--compact .landing-hero__social--parallax {
  margin-top: 0.85rem;
}
.landing-hero--compact .landing-hero__announce {
  margin-bottom: 0.35rem;
}
.landing-hero--compact .landing-hero__stage-stats {
  gap: 0.35rem;
}
.landing-hero--compact .landing-hero__stage-stat {
  padding: 0.28rem 0.62rem;
  font-size: 0.625rem;
}
.landing-hero--compact .landing-hero__strip-list--glass .landing-hero__strip-item {
  padding: 0.5rem 0.62rem;
}
.landing-hero--compact .landing-hero__strip-desc {
  font-size: 0.72rem;
}

.landing-hero--short-vp .landing-hero__stack-ticker {
  display: none;
}
.landing-hero--short-vp .landing-hero__parallax-card--mid,
.landing-hero--short-vp .landing-hero__parallax-card--front,
.landing-hero--short-vp .landing-hero__parallax-card--deep,
.landing-hero--short-vp .landing-hero__stage-stats {
  display: none;
}
.landing-hero--short-vp.landing-hero--wide .landing-hero__parallax-card--back {
  bottom: 10%;
  width: 84%;
  --card-scale: 0.84;
}

.landing-hero--ultra-short .landing-hero__strip-list--glass {
  display: none;
}
.landing-hero--ultra-short .landing-hero__social--parallax {
  display: none;
}
.landing-hero--ultra-short .landing-hero__metrics {
  margin-bottom: 0.5rem;
}
.landing-hero--ultra-short .landing-hero__description--parallax {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__copy-glass-sheen {
    animation: none !important;
  }
  .landing-hero__beam-canvas,
  .landing-hero__particle-canvas,
  .landing-hero__frame-border,
  .landing-hero__stack-ticker .landing-ecosystem__track,
  .landing-hero__stack-marquee .landing-ecosystem__track { animation: none; }
  .landing-hero__stack-ticker .landing-ecosystem__logos[aria-hidden="true"],
  .landing-hero__stack-marquee .landing-ecosystem__logos[aria-hidden="true"] { display: none; }
}

/* ── Override legacy v2 parallax layout on showcase ── */
@media (min-width: 64em) {
  .landing-hero--showcase .landing-hero__parallax-card--back {
    top: auto !important;
  }
  .landing-hero--showcase .landing-hero__parallax-card--front {
    top: 6% !important;
    right: 1% !important;
    width: min(36%, 220px) !important;
  }
}
@media (max-width: 63.99em) {
  .landing-hero--showcase .landing-hero__parallax-card--back {
    top: auto !important;
  }
}
