/* Bloom CRM — Apple-style presentation */
:root {
  --bg: #000;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-light: #f5f5f7;
  --muted: #86868b;
  --pink: #f006a8;
  --pink-2: #ff5ebf;
  --lilac: #a78bfa;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --nav-h: 52px;
  --wrap: min(1080px, calc(100% - 3rem));
}

*,
*::before,
*::after { box-sizing: border-box; }

html.pres-html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html.pres-html { scroll-behavior: auto; }
}

body.pres-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.pres-wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.pres-gradient-text,
.pres-split--grad {
  background: linear-gradient(120deg, #ff9ecf 0%, var(--pink) 35%, var(--lilac) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Progress */
.pres-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.06);
}

.pres-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--lilac));
  box-shadow: 0 0 20px rgba(240, 6, 168, 0.6);
  transition: width 0.08s linear;
}

/* Nav */
.pres-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s, transform 0.5s var(--ease-out);
}

.pres-nav.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pres-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pres-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pres-brand__icon {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--pink);
}

.pres-nav__links {
  display: none;
  gap: 1.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.pres-nav__links a {
  transition: color 0.25s;
}

.pres-nav__links a:hover,
.pres-nav__links a.is-active {
  color: #fff;
}

.pres-nav__actions {
  display: flex;
  gap: 0.5rem;
}

.pres-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 980px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.35s;
}

.pres-btn:hover { transform: scale(1.04); }
.pres-btn:active { transform: scale(0.98); }

.pres-btn--fill {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 4px 24px rgba(240, 6, 168, 0.45);
}

.pres-btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pres-btn--on-dark { background: rgba(255, 255, 255, 0.14); }

.pres-btn--xl {
  min-height: 3.25rem;
  padding: 0 1.65rem;
  font-size: 1.0625rem;
}

/* Cinema hero */
.pres-cinema {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.pres-cinema__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pres-cinema__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.pres-cinema__orb--a {
  width: 55vw;
  height: 55vw;
  max-width: 520px;
  max-height: 520px;
  top: -10%;
  right: -5%;
  background: rgba(240, 6, 168, 0.35);
}

.pres-cinema__orb--b {
  width: 40vw;
  height: 40vw;
  max-width: 380px;
  bottom: 5%;
  left: -8%;
  background: rgba(139, 92, 246, 0.28);
}

.pres-cinema__orb--c {
  width: 25vw;
  height: 25vw;
  top: 40%;
  left: 35%;
  background: rgba(255, 255, 255, 0.06);
}

.pres-cinema__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pres-cinema__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.pres-cinema__title {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.pres-split {
  display: block;
}

.pres-cinema__lead {
  margin: 1.5rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.pres-cinema__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.pres-cinema__stage {
  perspective: 1200px;
  will-change: transform;
}

.pres-device {
  position: relative;
  margin: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.pres-device__rim {
  position: absolute;
  inset: -1px;
  border-radius: 1.35rem;
  background: linear-gradient(145deg, rgba(255,255,255,.35), rgba(255,255,255,.05));
  padding: 1px;
  -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;
}

.pres-device__screen {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pres-device__screen img {
  width: 100%;
  display: block;
}

.pres-device__glow {
  position: absolute;
  inset: 20% -15% -25%;
  background: radial-gradient(ellipse, rgba(240, 6, 168, 0.35), transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

.pres-cinema__hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  z-index: 3;
  animation: presBounce 2.2s var(--ease-apple) infinite;
}

.pres-cinema__hint svg {
  opacity: 0.7;
}

@keyframes presBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Intro animations */
.pres-in {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  animation: presIn 1.1s var(--ease-out) forwards;
  animation-delay: calc(0.12s + var(--d, 0) * 0.08s);
}

@keyframes presIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Statement */
.pres-statement {
  padding: clamp(5rem, 12vh, 8rem) 0;
  background: var(--bg-soft);
  color: var(--ink);
  text-align: center;
}

.pres-statement__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 1rem;
}

.pres-statement__title {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-inline: auto;
}

.pres-statement__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
}

.pres-statement__stats div {
  text-align: center;
}

.pres-statement__stats strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.pres-statement__stats span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

/* Sticky showcase */
.pres-showcase {
  position: relative;
  background: #000;
}

.pres-showcase__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}

.pres-showcase__layout {
  display: grid;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.pres-showcase__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s;
  pointer-events: none;
}

.pres-showcase__step.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.pres-showcase__copy {
  position: relative;
  min-height: 14rem;
}

.pres-showcase__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-2);
  margin: 0 0 0.75rem;
}

.pres-showcase__headline {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pres-showcase__text {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 26rem;
}

.pres-showcase__dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pres-showcase__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.4s var(--ease-out), background 0.4s;
}

.pres-showcase__dot.is-active {
  background: var(--pink);
  transform: scale(1.35);
}

.pres-showcase__frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
  aspect-ratio: 16 / 10;
  background: #111;
}

.pres-showcase__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s var(--ease-out), transform 1.2s var(--ease-out);
}

.pres-showcase__img.is-active {
  opacity: 1;
  transform: scale(1);
}

.pres-showcase__track {
  position: relative;
  z-index: 1;
}

.pres-showcase__spacer {
  height: 85vh;
}

/* Modules / scenes */
.pres-modules {
  background: var(--bg-soft);
  color: var(--ink);
  padding-bottom: 2rem;
}

.pres-modules__head {
  text-align: center;
  padding: clamp(4rem, 10vh, 6rem) 0 2rem;
}

.pres-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 0.75rem;
}

.pres-eyebrow--light { color: var(--pink-2); }

.pres-modules__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.pres-modules__sub {
  margin: 1rem auto 0;
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.5;
}

.pres-scene {
  padding: clamp(4rem, 12vh, 7rem) 0;
  position: relative;
}

.pres-scene--dark {
  background: linear-gradient(180deg, #1d1d1f 0%, #000 100%);
  color: var(--ink-light);
}

.pres-scene--dark .pres-eyebrow { color: var(--pink-2); }
.pres-scene--dark .pres-scene__text { color: var(--muted); }

.pres-scene__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.pres-scene__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pres-scene__text {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #6e6e73;
  max-width: 30rem;
}

.pres-scene--dark .pres-scene__text { color: var(--muted); }

.pres-scene__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pres-scene__list li {
  font-size: 0.9375rem;
  font-weight: 500;
  padding-left: 1.25rem;
  position: relative;
}

.pres-scene__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
}

.pres-scene__frame {
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.12);
  will-change: transform;
  transform: translateZ(0);
}

.pres-scene__frame img {
  width: 100%;
  display: block;
}

/* Finale */
.pres-finale {
  position: relative;
  padding: clamp(6rem, 18vh, 10rem) 0;
  text-align: center;
  overflow: hidden;
}

.pres-finale__glow {
  position: absolute;
  width: 80vw;
  height: 80vw;
  max-width: 600px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(240, 6, 168, 0.25), transparent 65%);
  pointer-events: none;
}

.pres-finale__title {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.pres-finale__text {
  margin: 1.25rem auto 0;
  max-width: 28rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
}

.pres-finale__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Reveal on scroll */
.pres-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.pres-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pres-scene__list .pres-reveal {
  transform: translateY(20px);
}

.pres-scene__list .pres-reveal.is-visible {
  transition-delay: calc(var(--d, 0) * 0.08s);
}

/* Footer */
.pres-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: var(--muted);
}

.pres-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.pres-footer a:hover { color: #fff; }

/* Desktop */
@media (min-width: 900px) {
  .pres-nav__links { display: flex; }

  .pres-cinema__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem;
  }

  .pres-showcase__layout {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .pres-scene__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }

  .pres-scene--flip .pres-scene__grid {
    direction: rtl;
  }

  .pres-scene--flip .pres-scene__grid > * {
    direction: ltr;
  }
}

@media (max-width: 899px) {
  .pres-showcase__copy { min-height: 11rem; }
  .pres-showcase__spacer { height: 70vh; }
  .pres-nav__links { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .pres-in,
  .pres-cinema__hint {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .pres-reveal,
  .pres-showcase__step,
  .pres-showcase__img {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  [data-parallax],
  .pres-device,
  .pres-cinema__stage {
    transform: none !important;
  }
}
