/* Nexora motion direction: soft light, controlled depth, native scrolling. */

@media (min-width: 901px) {
  html {
    scrollbar-gutter: stable;
  }
}

body {
  overflow-x: clip;
}

.title-line {
  display: block;
  overflow: hidden;
  line-height: 1.24;
  padding-bottom: 0.03em;
}

.title-word {
  display: inline-block;
}

.site-header {
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.45s var(--ease);
  border-radius: 0 0 24px 24px;
}

.desktop-nav a,
.desktop-nav button {
  position: relative;
}

.desktop-nav a::after,
.desktop-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, #9057e5, #ef8da6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav button:hover::after,
.desktop-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.desktop-nav a[aria-current="location"] {
  color: var(--purple-deep);
}

/* Hero motion overrides */
.hero-copy,
.hero-visual {
  animation: none;
}

.dashboard {
  will-change: auto;
  transform: translate3d(0, var(--dash-scroll, 0px), 0)
    rotateY(calc(-7deg + var(--tilt-x, 0deg)))
    rotateX(calc(1.5deg + var(--tilt-y, 0deg)))
    rotateZ(-1.2deg);
  transition: box-shadow 0.5s ease;
}

.hero-visual {
  transform: translateY(var(--hero-shift, 0px));
}

.orb-purple {
  animation-duration: 13s;
}

.orb-coral {
  animation-duration: 16s;
}

.handwriting {
  transition: transform 0.7s var(--ease);
  transform: translateY(var(--hand-shift, 0px)) rotate(-7deg);
}

.hero-visual:hover .handwriting {
  transform: translateY(calc(var(--hand-shift, 0px) - 4px)) rotate(-5deg);
}

.button {
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
  transition: box-shadow 0.35s ease, background 0.3s ease;
}

.button:hover {
  transform: translate3d(var(--magnet-x, 0px), calc(var(--magnet-y, 0px) - 2px), 0);
}

.button:focus-visible {
  --magnet-x: 0px;
  --magnet-y: 0px;
  transform: none;
}

.quick-tools button,
.feature,
.growth-card {
  --reveal-y: 0px;
  --reveal-scale: 1;
  transform: translate3d(0, var(--reveal-y), 0) scale(var(--reveal-scale));
}

.feature:hover .feature-icon {
  transform: translateY(-4px) rotate(-8deg);
}

.feature-icon .icon {
  transition: transform 0.55s var(--ease);
}

.feature:hover .feature-icon .icon {
  transform: rotate(8deg) scale(1.08);
}

.growth-card {
  transform: perspective(800px)
    translate3d(0, calc(var(--reveal-y, 0px) + var(--card-lift, 0px)), 0)
    rotateY(var(--tilt-x, 0deg))
    rotateX(var(--tilt-y, 0deg))
    scale(var(--reveal-scale, 1));
  will-change: auto;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.growth-card:hover {
  --card-lift: -6px;
}

.growth-card:focus-visible {
  --card-lift: -4px;
}

.data-card {
  transition: box-shadow 0.4s ease, transform 0.4s var(--ease);
}

.data-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 23px rgba(137, 87, 198, 0.12);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.reading-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #9f55eb, #f08abb);
  transform: scaleX(var(--read-progress, 0));
  transform-origin: left;
  box-shadow: 0 0 9px rgba(221, 137, 222, 0.4);
}

.cursor-aura {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(204, 133, 234, 0.08), transparent 68%);
  transform: translate3d(var(--cursor-x, -300px), var(--cursor-y, -300px), 0);
  transition: opacity 0.45s ease;
  mix-blend-mode: multiply;
}

.cursor-aura.is-visible {
  opacity: 1;
}

/* Safe opt-in scroll reveal (always visible when JS absent or motion disabled) */
.is-motion-ready .is-reveal-pending {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.is-motion-ready .is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

/* Opening Curtain */
.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fcfaff;
  isolation: isolate;
  overflow: hidden;
  color: #16131e;
  animation: opening-backdrop 0.45s var(--ease) both;
}

.opening.is-dismissed {
  display: none;
}

.opening::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(206, 148, 250, 0.14), transparent 60%),
    radial-gradient(ellipse at 75% 60%, rgba(255, 171, 216, 0.16), transparent 60%);
}

.opening-halo {
  position: absolute;
  width: min(420px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 110deg, rgba(244, 183, 223, 0.2), rgba(203, 162, 255, 0.34), rgba(252, 213, 196, 0.2), rgba(244, 183, 223, 0.2));
  filter: blur(30px);
  opacity: 0.7;
  animation: opening-halo 1.2s var(--ease) both;
}

.opening-inner {
  position: relative;
  text-align: center;
}

.opening-emblem {
  width: 50px;
  height: 82px;
  position: relative;
  margin: 0 auto 18px;
}

.opening-emblem .brand-mark {
  width: 28px;
  height: 70px;
  border-radius: 24px;
  box-shadow: inset 3px 0 10px rgba(255, 255, 255, 0.28), 0 15px 45px rgba(211, 148, 238, 0.2);
  animation: opening-mark 0.65s var(--ease) both;
}

.opening-word {
  display: flex;
  justify-content: center;
  font-size: clamp(50px, 8.5vw, 84px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 0;
}

.opening-word span {
  display: inline-block;
  animation: opening-letter 0.55s var(--ease) both;
  animation-delay: calc(0.06s + var(--letter) * 0.035s);
}

.opening-tagline {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-top: 16px;
  animation: opening-caption 0.55s var(--ease) 0.28s both;
}

.opening-line {
  width: 96px;
  height: 1px;
  background: #e8dcef;
  margin: 22px auto 0;
  overflow: hidden;
}

.opening-line i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #975bea, #f4a4b3);
  animation: opening-line 0.75s var(--ease) both;
}

.opening-skip {
  position: absolute;
  right: 28px;
  bottom: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #dfd3ea;
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--ink-strong);
  transition: background 0.3s ease;
}

.opening-skip:hover {
  background: #ffffff;
  color: var(--purple-deep);
}

.opening.is-exiting {
  animation: opening-exit 0.45s cubic-bezier(0.7, 0, 0.25, 1) forwards;
  pointer-events: none;
}

.opening.is-exiting .opening-inner {
  animation: opening-content-exit 0.35s var(--ease) forwards;
}

.intro-running .reading-progress {
  opacity: 0;
}

.intro-running .hero-copy,
.intro-running .hero-visual {
  opacity: 0;
}

.site-entered .hero-copy {
  animation: hero-entrance 0.9s var(--ease) both;
}

.site-entered .hero-visual {
  animation: hero-entrance 1.05s var(--ease) 0.1s both;
}

.site-entered .title-word {
  animation: title-reveal 0.85s var(--ease) both;
  animation-delay: calc(0.06s + var(--word-index, 0) * 0.1s);
}

.site-entered .hero-description,
.site-entered .hero-actions {
  animation: hero-entrance 0.75s var(--ease) 0.3s both;
}

.site-entered .dashboard-main > * {
  animation: dashboard-sequence 0.75s var(--ease) both;
  animation-delay: calc(0.22s + var(--item-index, 0) * 0.05s);
}

.site-entered .quick-tools button {
  animation: dashboard-sequence 0.7s var(--ease) both;
  animation-delay: calc(0.45s + var(--item-index, 0) * 0.06s);
}

.site-entered .sparkline polyline {
  animation: draw-chart 2.2s var(--ease) 0.6s both;
}

.ripple {
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-scale 0.65s var(--ease) both;
}

/* Creative Collage */
.creative-collage {
  overflow: visible;
  background: none;
  perspective: 1000px;
  transform: none;
  isolation: isolate;
}

.creative-collage:hover {
  transform: none;
}

.collage-halo {
  position: absolute;
  width: 45%;
  aspect-ratio: 1;
  top: 10%;
  left: -4%;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 40%, #fff7fd, rgba(245, 195, 235, 0.55) 55%, rgba(255, 225, 221, 0.08));
  z-index: -1;
  animation: collage-halo-drift 12s ease-in-out infinite;
}

.creative-card {
  position: absolute;
  display: block;
  text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(141, 93, 190, 0.1);
  transform: translate3d(0, var(--float-y, 0px), 0) rotate(var(--float-rotate, 0deg));
  transition: box-shadow 0.45s ease;
  isolation: isolate;
}

.creative-card:hover {
  box-shadow: 0 16px 42px rgba(146, 95, 199, 0.18);
}

.creative-product {
  left: 8%;
  top: 4%;
  width: 46%;
  height: 90%;
  background: linear-gradient(155deg, #eee6ff, #d5bafb 45%, #f9d4ed 78%, #ffe4d9);
  --float-rotate: -2.5deg;
  animation: collage-product-float 9s ease-in-out infinite;
}

.creative-product::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 60%;
  left: 37%;
  top: -31%;
  border-radius: 50%;
  background: rgba(199, 159, 249, 0.28);
  box-shadow: 0 0 30px rgba(223, 177, 251, 0.55);
}

.creative-product::after {
  content: "";
  position: absolute;
  bottom: 12%;
  left: 15%;
  right: 9%;
  height: 10%;
  border-radius: 50%;
  background: rgba(123, 81, 178, 0.16);
  filter: blur(10px);
  z-index: -1;
}

.creative-collage .creative-visual-img {
  position: absolute;
  width: 96%;
  height: 82%;
  object-fit: contain;
  left: 2%;
  top: 10%;
  max-width: none;
  pointer-events: none;
  transition: transform 0.65s var(--ease);
}

.creative-product:hover .creative-visual-img {
  transform: rotate(-4deg) scale(1.04);
}

.collage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  left: 8%;
  top: 8%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(175, 123, 207, 0.12);
  color: #412d53;
  border: 1px solid #ffffff;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
}

.collage-badge .icon {
  width: 13px;
  height: 13px;
  color: var(--purple);
  stroke-width: 2;
}

.product-card-meta {
  position: absolute;
  bottom: 7%;
  left: 9%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #463259;
}

.creative-copy-card {
  left: 58%;
  top: 2%;
  width: 40%;
  height: 48%;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 5px;
  background: linear-gradient(125deg, #f0e5ff, #ffdee8 70%, #ffcfbe);
  animation: collage-copy-float 11s ease-in-out -4s infinite;
}

.creative-copy-card > :not(.creative-copy-visual) {
  position: relative;
  z-index: 1;
}

.creative-copy-visual {
  position: absolute;
  right: -6%;
  bottom: -10%;
  width: 48%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.copy-mini-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #583f69;
  margin: 0;
}

.creative-copy-card strong {
  display: block;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}

.copy-mini-description {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: #483854;
  margin: 0;
}

.creative-copy-card .collage-badge {
  position: static;
  margin-top: auto;
  padding: 5px 10px;
  font-size: 12px;
}

.creative-video-card {
  left: 58%;
  top: 53%;
  width: 40%;
  height: 44%;
  background: linear-gradient(135deg, #68569b, #9b80ae 52%, #d893ae);
  animation: collage-video-float 10s ease-in-out -3s infinite;
}

.creative-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(30, 21, 71, 0.25));
  pointer-events: none;
}

.creative-video-card .creative-visual-img {
  width: 88%;
  height: 92%;
  left: 6%;
  top: 2%;
  opacity: 0.92;
}

.collage-play {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: #4a1e69;
  font-size: 14px;
  padding-left: 3px;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.14);
  transition: box-shadow 0.45s ease, transform 0.45s ease;
}

.creative-video-card:hover .collage-play {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.12);
}

.creative-video-card .collage-badge {
  top: auto;
  bottom: 9%;
  left: 8%;
  padding: 5px 10px;
  font-size: 12px;
}

.collage-video-progress {
  position: absolute;
  bottom: 0;
  height: 2px;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #d9c2ff, #f3b4df);
  transform: scaleX(0.3);
  transform-origin: left;
  animation: video-progress 6s linear infinite;
}

.creative-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #d4c1e3;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  z-index: -1;
  animation: connector-flow 12s linear infinite;
}

.benefit-list li {
  transition: color 0.3s ease, transform 0.4s var(--ease);
}

.benefit-list li:hover {
  transform: translateX(5px);
  color: var(--ink-strong);
}

/* Dark Interactive Story Section */
.motion-story {
  position: relative;
  width: min(94%, 1350px);
  margin: 18px auto 68px;
  isolation: isolate;
}

.story-sticky {
  position: relative;
}

.story-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 32px 46px 26px;
  border-radius: 32px;
  min-height: 620px;
  background: #101017;
  color: #ffffff;
  box-shadow: 0 25px 75px rgba(39, 27, 69, 0.12);
  --stage-scroll: 0;
  --light-x: 55%;
  --light-y: 45%;
}

.story-aurora {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 76% 46%, rgba(82, 38, 105, 0.34), transparent 65%),
    radial-gradient(ellipse at 90% 90%, rgba(117, 66, 56, 0.16), transparent 55%),
    radial-gradient(ellipse at 22% 2%, rgba(52, 37, 72, 0.28), transparent 40%);
  transform: translate3d(var(--aurora-x, 0px), 0, 0) scale(1.05);
}

.story-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.story-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #c4b8d1;
}

.scene-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #b7aac5;
  font-variant-numeric: tabular-nums;
}

.scene-number {
  color: #ffffff;
  font-weight: 600;
}

.scene-divider {
  height: 1px;
  width: 28px;
  background: #786a87;
}

.story-grid {
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
  min-height: 486px;
  position: relative;
}

.story-copy {
  padding: 28px 0;
  position: relative;
  z-index: 5;
}

.story-copy .eyebrow {
  color: #cebce0;
  letter-spacing: 0.2em;
  font-size: 12px;
  margin-bottom: 16px;
}

.story-copy h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

.story-copy h2 > span {
  background: linear-gradient(100deg, #e0beff, #efb8cf 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
  width: max-content;
  max-width: 100%;
}

.story-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  padding: 0 0 12px;
  color: #b7aac5;
  background: none;
  transition: color 0.35s ease;
}

.story-tabs button span {
  font-size: 12px;
  color: #9e91ad;
}

.story-tabs button::after {
  position: absolute;
  content: "";
  height: 2px;
  left: 0;
  right: 0;
  bottom: -1px;
  background: linear-gradient(90deg, #c08aff, #e5aac6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.story-tabs button[aria-selected="true"] {
  color: #ffffff;
  font-weight: 600;
}

.story-tabs button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.story-tabs button[aria-selected="true"] span {
  color: #dcc3f2;
}

.story-panels {
  min-height: 112px;
}

.story-panel h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-weight: 600;
  color: #f6f0fb;
}

.story-panel p {
  font-size: 15px;
  line-height: 1.8;
  color: #c8bdd5;
  margin: 0;
}

.story-experience {
  min-height: 44px;
  font-size: 13px;
  background: #f5effb;
  margin-top: 22px;
  padding-inline: 26px;
}

.story-caption {
  margin: 16px 0 0;
  font-size: 12px;
  color: #b7aac5;
  letter-spacing: 0.08em;
}

/* Product 3D Stage */
.product-stage {
  position: relative;
  width: 100%;
  height: 430px;
  perspective: 1000px;
  isolation: isolate;
  --stage-x: 0deg;
  --stage-y: 0deg;
}

.stage-grid {
  position: absolute;
  inset: 10% -10% -8% 0;
  background:
    linear-gradient(90deg, rgba(207, 162, 237, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(207, 162, 237, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse, rgba(0, 0, 0, 0.65), transparent 68%);
  transform: perspective(600px) rotateX(53deg) rotateZ(-16deg);
}

.stage-light {
  position: absolute;
  left: 6%;
  top: 10%;
  width: 96%;
  height: 86%;
  background: radial-gradient(ellipse at var(--light-x) var(--light-y), rgba(173, 108, 212, 0.22), transparent 65%);
  transform: rotate(-12deg);
  animation: stage-light-breathe 8s ease-in-out infinite;
}

.stage-ring {
  position: absolute;
  left: 5%;
  top: 14%;
  width: 88%;
  height: 77%;
  border: 1px solid rgba(212, 165, 243, 0.12);
  border-radius: 50%;
  transform: rotate(-24deg);
  pointer-events: none;
}

.stage-ring-one {
  box-shadow: 0 0 40px rgba(165, 112, 206, 0.04), inset 0 0 40px rgba(165, 112, 206, 0.04);
}

.stage-ring-two {
  left: 12%;
  top: 21%;
  width: 76%;
  height: 64%;
  transform: rotate(24deg);
  border-color: rgba(212, 165, 243, 0.06);
}

.stage-product {
  position: absolute;
  z-index: 3;
  width: 92%;
  aspect-ratio: 1;
  left: 4%;
  top: 50%;
  transform: translate3d(var(--product-x, 0px), calc(-50% + var(--product-y, 0px)), 0)
    rotateY(var(--stage-y, 0deg))
    rotate(calc(var(--product-rotate, -10deg) + var(--stage-x, 0deg)))
    scale(var(--product-scale, 0.86));
  transition: transform 1.05s var(--ease), filter 0.85s var(--ease);
  filter: drop-shadow(0 32px 22px rgba(3, 2, 7, 0.36));
  pointer-events: none;
}

.stage-product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: product-idle 9s ease-in-out infinite;
}

.product-ghost {
  position: absolute;
  width: 74%;
  height: 82%;
  left: 13%;
  top: 10%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  transform: rotate(-10deg);
  transition: transform 1.05s var(--ease), opacity 0.9s ease;
  opacity: 0.6;
  backdrop-filter: blur(2px);
}

.product-ghost-two {
  transform: rotate(6deg);
  width: 69%;
  left: 17%;
  top: 14%;
  height: 75%;
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.05);
  opacity: 0.7;
}

.stage-badge {
  position: absolute;
  bottom: 2%;
  left: 13%;
  right: 15%;
  padding: 11px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
  border: 1px solid rgba(217, 181, 238, 0.14);
  border-radius: 12px;
  background: rgba(28, 21, 36, 0.65);
  color: #dfd4ec;
  backdrop-filter: blur(10px);
  transition: transform 0.9s var(--ease), opacity 0.6s ease;
}

.badge-dot {
  width: 5px;
  height: 5px;
  background: #cc97ed;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(204, 151, 237, 0.45);
}

.badge-right {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0;
}

.stage-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(217, 181, 238, 0.22);
  box-shadow: 0 7px 28px rgba(0, 0, 0, 0.18);
  padding: 8px 13px;
  background: rgba(36, 26, 44, 0.8);
  backdrop-filter: blur(10px);
  color: #e7dcf2;
  border-radius: 100px;
  font-size: 12px;
  transition: transform 0.8s var(--ease), opacity 0.8s ease;
}

.stage-chip .icon {
  width: 15px;
  height: 15px;
  color: #d6aee9;
}

.chip-one {
  left: 2%;
  top: 22%;
  animation: chip-float 8s ease-in-out infinite;
}

.chip-two {
  right: 3%;
  top: 12%;
  animation: chip-float 9s ease-in-out -4s infinite;
}

.chip-three {
  right: -1%;
  bottom: 18%;
  animation: chip-float 10s ease-in-out -6s infinite;
}

.stage-orbit-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e9c0ed;
  box-shadow: 0 0 14px rgba(210, 130, 252, 0.35);
  opacity: 0.6;
  pointer-events: none;
}

.dot-one {
  left: 14%;
  top: 10%;
  animation: orbit-dot 16s ease-in-out infinite;
}

.dot-two {
  right: 7%;
  bottom: 17%;
  animation: orbit-dot 18s ease-in-out -8s infinite;
}

.copy-board {
  position: absolute;
  z-index: 4;
  top: 13%;
  right: 2%;
  width: 53%;
  height: 74%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px 22px;
  background: linear-gradient(145deg, #f4eaff, #f9dce9 70%, #f5c6ba);
  box-shadow: 0 20px 50px rgba(4, 1, 8, 0.28);
  color: #211a2c;
  opacity: 0;
  transform: translate3d(40px, 30px, 0) rotate(8deg) scale(0.9);
  transition: transform 1.05s var(--ease), opacity 0.6s ease;
  pointer-events: none;
}

.copy-board > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #5b416c;
}

.copy-board h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 22px 0 14px;
  font-weight: 700;
}

.copy-board p {
  font-size: 13px;
  line-height: 1.65;
  color: #4f3a59;
  margin: 0;
}

.copy-underline {
  height: 1px;
  background: rgba(185, 152, 193, 0.35);
  width: 65%;
  margin: 20px 0 14px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.3s;
}

.copy-board small {
  font-size: 12px;
  color: #5d4668;
}

.video-board {
  position: absolute;
  z-index: 2;
  inset: 8% 0 3% 4%;
  border-radius: 22px;
  border: 1px solid rgba(201, 152, 229, 0.22);
  background: linear-gradient(120deg, rgba(44, 33, 67, 0.32), rgba(76, 41, 81, 0.2));
  opacity: 0;
  transform: translate3d(0, 25px, 0) rotate(-3deg) scale(0.9);
  transition: transform 1s var(--ease), opacity 0.6s ease;
  pointer-events: none;
}

.video-frame-line {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(221, 193, 237, 0.12);
  border-radius: 13px;
}

.video-topline {
  position: absolute;
  left: 32px;
  top: 32px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #d5c4e2;
}

.video-play {
  position: absolute;
  z-index: 7;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(239, 225, 251, 0.9);
  color: #463057;
  left: 46%;
  top: 42%;
  font-size: 15px;
  padding-left: 3px;
}

.video-track {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 44px;
  height: 2px;
  background: rgba(218, 194, 239, 0.16);
  overflow: hidden;
}

.video-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c7a0ee, #efc0d1);
  transform: scaleX(0.3);
  transform-origin: left;
  animation: video-progress 8s linear infinite;
}

.video-time {
  position: absolute;
  right: 34px;
  bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #d5c4e2;
  font-variant-numeric: tabular-nums;
}

/* Scene States */
.story-shell[data-scene="1"] .stage-product {
  --product-x: -76px;
  --product-y: 30px;
  --product-rotate: -18deg;
  --product-scale: 0.68;
  filter: drop-shadow(0 28px 18px rgba(2, 1, 4, 0.36));
}

.story-shell[data-scene="1"] .copy-board {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(5deg) scale(1);
}

.story-shell[data-scene="1"] .copy-underline {
  transform: scaleX(1);
}

.story-shell[data-scene="1"] .product-ghost-one {
  transform: rotate(-15deg) translate(-22px, 10px);
  opacity: 0.3;
}

.story-shell[data-scene="1"] .product-ghost-two {
  transform: rotate(10deg) translate(28px, -8px);
  opacity: 0.4;
}

.story-shell[data-scene="1"] .stage-badge {
  transform: translateY(10px);
  opacity: 0.3;
}

.story-shell[data-scene="1"] .chip-one {
  opacity: 0.25;
}

.story-shell[data-scene="1"] .chip-two {
  transform: translate(10px, -15px);
}

.story-shell[data-scene="1"] .chip-three {
  opacity: 0.25;
}

.story-shell[data-scene="2"] .stage-product {
  --product-x: 0px;
  --product-y: -5px;
  --product-rotate: -7deg;
  --product-scale: 0.78;
}

.story-shell[data-scene="2"] .video-board {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(-3deg) scale(1);
}

.story-shell[data-scene="2"] .stage-badge {
  opacity: 0;
}

.story-shell[data-scene="2"] .product-ghost {
  opacity: 0.15;
  transform: rotate(-5deg) scale(0.94);
}

.story-shell[data-scene="2"] .chip-one,
.story-shell[data-scene="2"] .chip-two {
  opacity: 0.2;
}

.story-shell[data-scene="2"] .chip-three {
  transform: translate(-12px, -7px);
}

.story-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c2b6cf;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.scroll-cue > i {
  display: block;
  width: 12px;
  height: 19px;
  border: 1px solid rgba(196, 178, 214, 0.45);
  border-radius: 7px;
  position: relative;
}

.scroll-cue > i::after {
  position: absolute;
  content: "";
  width: 2px;
  height: 4px;
  left: 4px;
  top: 3px;
  border-radius: 3px;
  background: #d9b6f2;
  animation: scroll-cue 2s ease-in-out infinite;
}

.story-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  flex: 1;
  max-width: 300px;
  overflow: hidden;
  border-radius: 2px;
}

.story-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(var(--story-progress, 0.1));
  transform-origin: left;
  background: linear-gradient(90deg, #b089cf, #e8bbd7);
  transition: transform 0.4s var(--ease);
}

.scene-playback {
  background: transparent;
  color: #d3c5df;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 8px 12px;
  white-space: nowrap;
}

.scene-playback:hover {
  color: #ffffff;
}

.scene-playback > span {
  font-size: 12px;
}

.scroll-enabled {
  height: 185vh;
  min-height: 1120px;
}

.scroll-enabled .story-sticky {
  position: sticky;
  top: 28px;
}

.scroll-enabled .story-shell {
  min-height: clamp(580px, 82vh, 770px);
}

.scroll-enabled .story-grid {
  min-height: calc(clamp(580px, 82vh, 770px) - 140px);
}

.scroll-enabled .product-stage {
  height: clamp(360px, 52vh, 500px);
}

/* Motion Footer & Dialog Previews */
.motion-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0 30px;
  color: var(--muted);
}

.motion-footer .wordmark {
  font-size: 16px;
  color: var(--ink-strong);
}

.motion-footer .brand-mark {
  width: 9px;
  height: 19px;
}

.footer-note {
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-left: auto;
  margin-right: 32px;
  color: var(--muted);
}

.motion-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.motion-actions button {
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  min-height: 36px;
  transition: color 0.3s ease;
}

.motion-actions button:hover {
  color: var(--purple-deep);
}

.motion-actions .icon {
  width: 14px;
  height: 14px;
}

.motion-toggle-icon {
  font-size: 12px;
}

.motion-footer button:disabled {
  opacity: 0.5;
}

.demo-product-preview {
  position: relative;
  aspect-ratio: 1.3;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(ellipse at 25% 20%, #faf4ff, #dccaf0 55%, #fad8e1);
  isolation: isolate;
}

.demo-product-preview img {
  position: absolute;
  width: 90%;
  height: 100%;
  object-fit: contain;
  left: 5%;
  top: 0;
  max-width: none;
  animation: product-idle 8s ease-in-out infinite;
  filter: drop-shadow(0 22px 12px rgba(125, 92, 153, 0.2));
}

.demo-product-kicker {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #5b4372;
}

.demo-product-name {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #362943;
}

.video-demo-label {
  z-index: 3;
  bottom: 14px;
}

.closing-banner {
  transition: box-shadow 0.6s ease;
}

.closing-banner:hover {
  box-shadow: 0 12px 45px rgba(113, 58, 155, 0.16);
}

.closing-banner .banner-orb {
  transform: translate3d(var(--banner-shift, 0px), 0, 0) rotate(-30deg);
  animation: none;
}

/* Motion Disabled & Resting States */
.motion-disabled *,
.motion-disabled *::before,
.motion-disabled *::after,
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}

.motion-disabled *,
.motion-disabled *::before,
.motion-disabled *::after {
  transition: none !important;
}

.motion-disabled .cursor-aura,
.motion-disabled .particles,
.motion-disabled .stage-orbit-dot,
.motion-disabled .ripple {
  display: none;
}

.motion-disabled .dashboard {
  transform: rotateY(-7deg) rotateX(1.5deg) rotateZ(-1.2deg);
}

.motion-disabled .hero-visual {
  transform: none;
}

.motion-disabled .title-word,
.motion-disabled .hero-copy,
.motion-disabled .hero-visual,
.motion-disabled .hero-description,
.motion-disabled .hero-actions,
.motion-disabled .is-reveal-pending {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

.motion-disabled .button,
.motion-disabled .button:hover,
.motion-disabled .growth-card,
.motion-disabled .growth-card:hover,
.motion-disabled .feature-icon,
.motion-disabled .feature-icon .icon,
.motion-disabled .creative-visual-img,
.motion-disabled .handwriting,
.motion-disabled .data-card,
.motion-disabled .benefit-list li,
.motion-disabled .title-word {
  transform: none !important;
}

.motion-disabled .stage-product img {
  animation: none !important;
}

.motion-disabled .story-shell,
.motion-disabled .product-stage {
  --stage-x: 0deg;
  --stage-y: 0deg;
}

.section-resting *,
.section-resting *::before,
.section-resting *::after {
  animation-play-state: paused !important;
}

.section-resting {
  --card-lift: 0px;
}

.story-shell:focus-within .story-aurora {
  transition: none;
}

/* Keyframes */
@keyframes opening-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes opening-halo {
  from {
    transform: rotate(-80deg) scale(0.3);
    opacity: 0;
  }
  to {
    transform: rotate(25deg) scale(1);
    opacity: 0.7;
  }
}

@keyframes opening-mark {
  from {
    transform: rotate(5deg) translateY(25px) scale(0.6);
    filter: blur(6px);
    opacity: 0;
  }
  to {
    transform: rotate(43deg) translateY(0) scale(1);
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes opening-letter {
  from {
    transform: translateY(24px) rotateX(30deg);
    opacity: 0;
    filter: blur(6px);
  }
  to {
    transform: translateY(0) rotateX(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes opening-caption {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes opening-line {
  to {
    transform: scaleX(1);
  }
}

@keyframes opening-exit {
  to {
    transform: translateY(-102%);
    border-radius: 0 0 45% 45%;
  }
}

@keyframes opening-content-exit {
  to {
    transform: translateY(-24px);
    opacity: 0;
    filter: blur(4px);
  }
}

@keyframes title-reveal {
  from {
    transform: translateY(105%);
    opacity: 0;
    filter: blur(3px);
  }
  to {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes dashboard-sequence {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple-scale {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

@keyframes collage-halo-drift {
  50% {
    transform: translate(5px, 12px) scale(1.05);
  }
}

@keyframes collage-product-float {
  50% {
    transform: translateY(-8px) rotate(-1.5deg);
  }
}

@keyframes collage-copy-float {
  50% {
    transform: translateY(-6px) rotate(1.2deg);
  }
}

@keyframes collage-video-float {
  50% {
    transform: translateY(6px) rotate(-1deg);
  }
}

@keyframes connector-flow {
  to {
    stroke-dashoffset: -84;
  }
}

@keyframes product-idle {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-9px) rotate(1deg);
  }
}

@keyframes stage-light-breathe {
  50% {
    opacity: 0.65;
    transform: rotate(-7deg) scale(1.05);
  }
}

@keyframes chip-float {
  50% {
    translate: 0 -7px;
  }
}

@keyframes orbit-dot {
  50% {
    transform: translate(12px, -22px);
    opacity: 0.2;
  }
}

@keyframes video-progress {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes scroll-cue {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

/* Unified Breakpoints: 1280 / 900 / 680 / 480 */
@media (max-width: 1280px) {
  .motion-story {
    margin: 10px auto 52px;
  }

  .story-shell {
    padding: 28px 34px 22px;
    min-height: 580px;
  }

  .story-grid {
    min-height: 440px;
  }

  .story-copy h2 {
    font-size: clamp(26px, 2.8vw, 34px);
  }

  .product-stage {
    height: 365px;
  }

  .copy-board {
    padding: 20px 18px;
  }

  .copy-board h3 {
    font-size: 28px;
    margin-top: 16px;
  }

  .creative-copy-card {
    padding: 13px 14px;
  }
}

@media (max-width: 900px) {
  .dashboard {
    transform: translateY(var(--dash-scroll, 0px)) rotateY(-4deg) rotateX(1deg) rotateZ(-0.8deg);
  }

  .story-shell {
    padding: 26px 28px 22px;
    border-radius: 26px;
    min-height: auto;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  .story-copy {
    padding: 16px 0 0;
  }

  .product-stage {
    height: 350px;
  }

  .scroll-enabled {
    height: auto;
    min-height: 0;
  }

  .scroll-enabled .story-sticky {
    position: relative;
    top: 0;
  }

  .scroll-enabled .story-shell,
  .scroll-enabled .story-grid {
    min-height: auto;
  }

  .scroll-enabled .product-stage {
    height: 350px;
  }

  .creative-collage {
    max-width: 600px;
    margin-inline: auto;
  }

  .creative-copy-card {
    padding: 14px 16px;
  }

  .footer-note {
    margin-right: 12px;
  }
}

@media (max-width: 680px) {
  .title-line {
    line-height: 1.28;
    overflow: visible;
  }

  .dashboard {
    transform: none;
  }

  .motion-disabled .dashboard {
    transform: none;
  }

  .hero-visual {
    height: auto;
  }

  .opening-word {
    letter-spacing: -0.03em;
  }

  .opening-emblem {
    transform: scale(0.9);
    margin-bottom: 14px;
  }

  .opening-tagline {
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .opening-skip {
    right: 20px;
    bottom: 24px;
    padding: 11px 16px;
  }

  .cursor-aura {
    display: none;
  }

  .creative-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    max-width: 500px;
  }

  .creative-connectors {
    display: none;
  }

  .creative-card {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    transform: none;
    animation: none;
    border-radius: 16px;
  }

  .creative-product {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 290px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .creative-product .creative-visual-img {
    position: absolute;
    width: 92%;
    height: 70%;
    left: 4%;
    top: 16%;
  }

  .creative-product .collage-badge,
  .product-card-meta {
    position: relative;
    inset: auto;
    align-self: flex-start;
  }

  .creative-copy-card {
    grid-column: 2;
    grid-row: 1;
    min-height: 142px;
    padding: 14px;
  }

  .creative-video-card {
    grid-column: 2;
    grid-row: 2;
    min-height: 142px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .creative-video-card .creative-visual-img {
    width: 82%;
    height: 82%;
    left: 9%;
    top: 6%;
  }

  .creative-video-card .collage-badge {
    position: relative;
    inset: auto;
  }

  .collage-play {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .motion-story {
    width: calc(100% - 24px);
    margin: 16px auto 40px;
  }

  .story-shell {
    padding: 24px 20px 20px;
    border-radius: 24px;
  }

  .story-copy h2 {
    font-size: clamp(26px, 7.2vw, 32px);
    margin-bottom: 20px;
  }

  .story-tabs {
    gap: 16px;
    margin-bottom: 18px;
  }

  .story-caption {
    position: static;
    margin: 12px 0 0;
  }

  .product-stage,
  .scroll-enabled .product-stage {
    height: 300px;
  }

  .stage-product {
    width: 86%;
    left: 7%;
  }

  .copy-board {
    width: 60%;
    height: 76%;
    padding: 16px;
    border-radius: 16px;
  }

  .copy-board h3 {
    font-size: 22px;
    margin: 12px 0 8px;
  }

  .copy-underline {
    margin: 12px 0 10px;
  }

  .story-bottom {
    flex-wrap: wrap;
    gap: 12px;
  }

  .story-progress {
    max-width: 100%;
    min-width: 80px;
  }

  .motion-footer {
    padding: 18px 0 22px;
    flex-wrap: wrap;
    gap: 14px;
  }

  .footer-note {
    margin-right: 0;
    margin-left: auto;
  }

  .motion-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .creative-collage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 360px;
  }

  .creative-product {
    grid-column: 1;
    grid-row: auto;
    min-height: 220px;
  }

  .creative-copy-card,
  .creative-video-card {
    grid-column: 1;
    grid-row: auto;
    min-height: 150px;
  }

  .product-stage,
  .scroll-enabled .product-stage {
    height: 260px;
  }

  .stage-chip {
    padding: 6px 10px;
  }

  .copy-board {
    width: 68%;
    padding: 14px;
  }

  .copy-board h3 {
    font-size: 20px;
  }

  .scroll-cue {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .opening {
    display: none !important;
  }

  .intro-running .hero-copy,
  .intro-running .hero-visual,
  .is-motion-ready .is-reveal-pending {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-enabled {
    height: auto;
    min-height: 0;
  }

  .scroll-enabled .story-sticky {
    position: relative;
    top: 0;
  }

  .story-grid,
  .scroll-enabled .story-grid {
    min-height: 0;
  }

  .title-word,
  .dashboard-main > * {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .cursor-aura,
  .particles,
  .stage-orbit-dot {
    display: none !important;
  }

  .dashboard {
    transform: rotateY(-4deg) rotateZ(-1deg);
  }

  .button,
  .button:hover,
  .growth-card,
  .growth-card:hover,
  .hero-visual,
  .story-shell,
  .story-shell .stage-product,
  .copy-board,
  .video-board,
  .creative-card {
    transform: none;
    transition: none;
    animation: none !important;
  }

  .intro-replay {
    opacity: 0.55;
  }
}
