/* ai-uefn-plugins-pitch — shorter runway, sticky content centered */

.udp-track {
  --udp-main: var(--ducky-color-accent);
  --udp-light: var(--ducky-color-accentSoft, var(--ducky-color-accent));
  --udp-muted: var(--ducky-color-textMuted);
  position: relative;
  width: 100%;
  min-height: calc(140vh + min(18vh, 12rem));
  box-sizing: border-box;
  color: var(--ducky-color-text);
  font-family: var(--ducky-font-body, ui-sans-serif, system-ui, sans-serif);
}

.layout-item:has(.udp-track),
.layout-item[data-id="ai-uefn-plugins-pitch.main"] {
  min-height: 0;
}

.layout-item:has(.udp-track) .item-content,
.layout-item[data-id="ai-uefn-plugins-pitch.main"] .item-content {
  min-height: 0;
  display: block;
}

.layout-item:has(.udp-track) .ducky-plugin-block,
.layout-item[data-id="ai-uefn-plugins-pitch.main"] .ducky-plugin-block {
  width: 100%;
  display: block;
}

.udp-sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  box-sizing: border-box;
}

.udp-pane {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  padding: 4rem 1.5rem;
  text-align: center;
  box-sizing: border-box;
}

.udp-ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(60vw, 42rem);
  height: min(60vw, 42rem);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--udp-main) 22%, transparent) 0%,
    color-mix(in srgb, var(--udp-main) 6%, transparent) 45%,
    transparent 62%
  );
  filter: blur(80px);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.udp-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.udp-title {
  margin: 0 0 1.35rem;
  width: 100%;
  font-size: clamp(1.65rem, 4.2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ducky-color-textMuted, #a1a1a1);
  white-space: normal;
}

.udp-quote {
  margin: 0 auto;
  max-width: 40rem;
  padding: 0;
  border: 0;
}

.udp-quote p {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--udp-muted);
  font-weight: 500;
  font-style: italic;
}

.udp-quote p::before {
  content: "\201C";
}

.udp-quote p::after {
  content: "\201D";
}

.udp-word {
  color: inherit;
  white-space: normal;
  transition:
    color 0.08s ease-out,
    opacity 0.08s ease-out,
    text-shadow 0.08s ease-out;
}

.udp-title .udp-word:not(.udp-word--lit) {
  opacity: 0.38;
  color: var(--ducky-color-textMuted, #a1a1a1);
}

.udp-quote .udp-word:not(.udp-word--lit) {
  opacity: 0.34;
  color: var(--ducky-color-textMuted, #a1a1a1);
}

.udp-word--lit {
  opacity: 1;
  color: var(--ducky-color-textStrong, #ededed);
  text-shadow: 0 0 22px color-mix(in srgb, #fff 16%, transparent);
}

.udp-word--lead.udp-word--lit {
  color: var(--udp-main);
  text-shadow:
    0 0 20px color-mix(in srgb, var(--udp-main) 45%, transparent),
    0 0 32px color-mix(in srgb, var(--udp-main) 18%, transparent);
}

.udp-quote .udp-word--lit {
  color: var(--ducky-color-textMuted, #a1a1a1);
  text-shadow: none;
}

.udp-quote .udp-word--lead.udp-word--lit {
  color: var(--udp-main);
  text-shadow: 0 0 18px color-mix(in srgb, var(--udp-main) 35%, transparent);
}

@media (min-width: 768px) {
  .udp-pane {
    padding: 5rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .udp-ambient {
    opacity: 0.28 !important;
  }

  .udp-word,
  .udp-word--lit,
  .udp-word--lead {
    opacity: 1 !important;
    color: var(--ducky-color-textStrong, #ededed) !important;
    text-shadow: none !important;
    transition: none !important;
  }

  .udp-quote .udp-word {
    color: var(--ducky-color-textMuted, #a1a1a1) !important;
  }

  .udp-word--lead {
    color: var(--udp-main) !important;
  }
}
