/**
 * PR1MELAB — Playverse layout + site typography + bigger neon brand
 */

:root {
  --hero-playverse-y-top: 100px;
  --hero-playverse-y-bottom: 60px;
  --hero-playverse-x: 5%;
  --hero-playverse-content-max: 900px;
  --hero-neon-brand-size: var(--pv-hero-brand-size, 46px);
  --hero-neon-brand-gap: 18px;
  --hero-neon-title-gap: 14px;
  --hero-neon-text-gap: 40px;
  --hero-neon-btn-height: 40px;
  --hero-neon-btn-padding-x: 22px;
  --hero-neon-btn-font-size: 12px;
  --hero-neon-btn-gap: 8px;
  --hero-neon-btn-width: 196px;
  --hero-neon-light: #ffffff;
  --hero-neon-light-glow-1: rgba(255, 255, 255, 0.9);
  --hero-neon-light-glow-2: rgba(255, 255, 255, 0.5);
  --hero-neon-light-glow-3: rgba(255, 160, 168, 0.45);
  --hero-neon-accent: #de242f;
  --hero-neon-accent-glow-1: rgba(222, 36, 47, 1);
  --hero-neon-accent-glow-2: rgba(222, 36, 47, 0.8);
  --hero-neon-accent-glow-3: rgba(222, 36, 47, 0.5);
  --hero-neon-accent-glow-4: rgba(222, 36, 47, 0.3);
  --hero-viewport-full: 100dvh;
}

@supports (height: 100svh) {
  :root {
    --hero-viewport-full: 100svh;
  }
}

html body:not(.dashboard-app-body) .hero-section.hero-section--neon,
html body.preview-editor-mode .hero-section.hero-section--neon {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--hero-viewport-full) !important;
  height: var(--hero-viewport-full) !important;
  max-height: none !important;
  padding: var(--hero-playverse-y-top) var(--hero-playverse-x) var(--hero-playverse-y-bottom) !important;
  margin-bottom: 0 !important;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

html body:not(.dashboard-app-body) .hero-section.hero-section--neon::before,
html body.preview-editor-mode .hero-section.hero-section--neon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(222, 36, 47, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(222, 36, 47, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

html body:not(.dashboard-app-body) .hero-section.hero-section--neon::after,
html body.preview-editor-mode .hero-section.hero-section--neon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  opacity: 0.35;
}

html body:not(.dashboard-app-body) .hero-section.hero-section--neon .hero-overlay--neon {
  background:
    linear-gradient(180deg, rgba(0, 0, 6, 0.5) 0%, rgba(0, 0, 8, 0.68) 50%, rgba(0, 0, 10, 0.82) 100%);
  opacity: 1;
  z-index: 2;
}

html body:not(.dashboard-app-body) .hero-container.hero-container--neon,
html body.preview-editor-mode .hero-container.hero-container--neon {
  position: relative;
  z-index: 3;
  display: flex !important;
  flex: 1 1 auto;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
  padding: calc(var(--header-height, 72px) + 8px) 0 88px !important;
  box-sizing: border-box;
}

html body:not(.dashboard-app-body) .hero-content.hero-content--neon,
html body.preview-editor-mode .hero-content.hero-content--neon {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100%;
  max-width: var(--hero-playverse-content-max) !important;
  text-align: center;
  margin: 0 auto;
}

html body:not(.dashboard-app-body) .hero-section.hero-section--neon .hero-neon-brand-wrap,
html body:not(.dashboard-app-body) .hero-section.hero-section--neon .hero-title,
html body:not(.dashboard-app-body) .hero-section.hero-section--neon .hero-text,
html body:not(.dashboard-app-body) .hero-section.hero-section--neon .hero-actions {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Bigger split neon — PR1ME + LAB */
html body:not(.dashboard-app-body) .hero-neon-brand-wrap,
html body.preview-editor-mode .hero-neon-brand-wrap {
  position: relative;
  display: inline-block;
  margin: 0 0 var(--pv-hero-brand-margin-bottom, 8px) !important;
  isolation: isolate;
}

html body:not(.dashboard-app-body) .hero-neon-brand-title,
html body.preview-editor-mode .hero-neon-brand-title {
  margin: 0 !important;
  font-family: var(--font-orbitron, var(--font-neon)), Arial Narrow, sans-serif !important;
  font-weight: 900 !important;
  font-size: var(--pv-hero-brand-size, var(--hero-neon-brand-size, 46px)) !important;
  line-height: 0.95 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase;
  /* Fallback colour so the brand stays visible even if the split
     coloured spans are momentarily replaced (e.g. live editing). */
  color: var(--hero-neon-light, #ffffff);
  text-shadow:
    0 0 8px var(--hero-neon-light-glow-1, rgba(255, 255, 255, 0.9)),
    0 0 20px var(--hero-neon-light-glow-2, rgba(255, 255, 255, 0.5));
  -webkit-text-fill-color: currentColor;
}

html body:not(.dashboard-app-body) .hero-neon-brand-title .hero-neon-part,
html body.preview-editor-mode .hero-neon-brand-title .hero-neon-part {
  -webkit-text-fill-color: currentColor;
}

html body:not(.dashboard-app-body) .hero-neon-part--light,
html body.preview-editor-mode .hero-neon-part--light {
  color: var(--hero-neon-light);
  text-shadow:
    0 0 8px var(--hero-neon-light-glow-1),
    0 0 20px var(--hero-neon-light-glow-2),
    0 0 40px var(--hero-neon-light-glow-3);
  -webkit-text-fill-color: unset;
}

html body:not(.dashboard-app-body) .hero-neon-part--accent,
html body.preview-editor-mode .hero-neon-part--accent {
  color: var(--hero-neon-accent);
  text-shadow:
    0 0 8px var(--hero-neon-accent-glow-1),
    0 0 20px var(--hero-neon-accent-glow-2),
    0 0 50px var(--hero-neon-accent-glow-3),
    0 0 90px var(--hero-neon-accent-glow-4);
  -webkit-text-fill-color: unset;
}

html body:not(.dashboard-app-body) .hero-section.hero-section--neon .hero-title,
html body.preview-editor-mode .hero-section.hero-section--neon .hero-title {
  max-width: min(100%, var(--pv-content-max, 900px)) !important;
  margin: 0 0 var(--pv-hero-title-margin-bottom, 16px) !important;
  font-family: var(--font-oswald, var(--font-heading)), Arial Narrow, sans-serif !important;
  font-size: var(--pv-heading-size, 28.8px) !important;
  font-weight: 600 !important;
  line-height: var(--pv-heading-line-height, 1.2) !important;
  letter-spacing: normal !important;
  text-transform: uppercase;
  color: rgba(250, 249, 254, 0.92);
}

html body:not(.dashboard-app-body) .hero-section.hero-section--neon .hero-text,
html body.preview-editor-mode .hero-section.hero-section--neon .hero-text {
  max-width: var(--pv-hero-desc-max, 580px) !important;
  margin: 0 auto var(--pv-hero-desc-margin-bottom, 40px) !important;
  font-family: var(--font-inter, var(--font-main)), system-ui, sans-serif !important;
  font-size: var(--pv-hero-desc-size, 16px) !important;
  line-height: var(--pv-hero-desc-line-height, 27.2px) !important;
  color: rgba(250, 249, 254, 0.78);
}

/* Smaller vertical buttons — all devices */
html body:not(.dashboard-app-body) .hero-actions.hero-actions--neon,
html body.preview-editor-mode .hero-actions.hero-actions--neon {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--hero-neon-btn-gap) !important;
  width: 100%;
  max-width: var(--hero-neon-btn-width);
  margin: 0 !important;
}

html body:not(.dashboard-app-body) .hero-btn,
html body.preview-editor-mode .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--hero-neon-btn-height);
  padding: 10px var(--hero-neon-btn-padding-x);
  border-radius: 999px;
  font-size: var(--hero-neon-btn-font-size);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

html body:not(.dashboard-app-body) .hero-btn--primary,
html body.preview-editor-mode .hero-btn--primary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #de242f 0%, #b91c26 55%, #8f1219 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(222, 36, 47, 0.34);
}

html body:not(.dashboard-app-body) .hero-btn--primary:hover,
html body.preview-editor-mode .hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(222, 36, 47, 0.44);
}

html body:not(.dashboard-app-body) .hero-btn--ghost,
html body.preview-editor-mode .hero-btn--ghost {
  border: 1px solid rgba(250, 249, 254, 0.38);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(250, 249, 254, 0.92);
  backdrop-filter: blur(8px);
}

html body:not(.dashboard-app-body) .hero-btn--ghost:hover,
html body.preview-editor-mode .hero-btn--ghost:hover {
  border-color: rgba(222, 36, 47, 0.65);
  background: rgba(222, 36, 47, 0.12);
}

html body:not(.dashboard-app-body) .hero-scroll-hint,
html body.preview-editor-mode .hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(30px, env(safe-area-inset-bottom, 0px));
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  color: rgba(250, 249, 254, 0.55);
  text-decoration: none;
  pointer-events: auto;
}

html body:not(.dashboard-app-body) .hero-scroll-hint__line.scroll-line,
html body.preview-editor-mode .hero-scroll-hint__line.scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: var(--pv-scroll-line-height, 40px);
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(222, 36, 47, 0.35) 0%, rgba(222, 36, 47, 0.12) 58%, transparent 100%);
  transform-origin: center top;
}

html body:not(.dashboard-app-body) .hero-scroll-hint__label,
html body.preview-editor-mode .hero-scroll-hint__label {
  font-size: var(--pv-scroll-label-size, 11.2px);
  font-weight: 400;
  letter-spacing: var(--pv-scroll-label-letter-spacing, 2.24px);
  text-transform: uppercase;
}

@media (max-width: 760px) {
  :root {
    --hero-neon-btn-width: min(100%, clamp(220px, 78vw, 320px));
    --hero-neon-btn-height: clamp(44px, 11vw, 48px);
    --hero-neon-btn-font-size: clamp(11px, 2.8vw, 13px);
    --hero-neon-btn-gap: clamp(10px, 2.5vw, 14px);
    --hero-neon-btn-padding-x: clamp(18px, 5vw, 28px);
  }

  html body:not(.dashboard-app-body) .hero-container.hero-container--neon,
  html body.preview-editor-mode .hero-container.hero-container--neon {
    padding-bottom: 80px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body:not(.dashboard-app-body) .hero-scroll-hint__line.scroll-line {
    animation: none;
  }
}
