@import url("styles.css");

.compare-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  padding: 0.7rem 0.85rem;
  background: rgba(15, 12, 10, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 230, 216, 0.1);
}

.compare-nav a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 230, 216, 0.14);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.compare-nav a:hover {
  color: var(--text);
  border-color: rgba(252, 0, 120, 0.45);
}

.compare-nav a.is-active {
  color: #1a1410;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
}

.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(252, 0, 120, 0.45);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare-note {
  max-width: 42ch;
  margin: 0.35rem auto 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(240, 230, 216, 0.45);
  text-align: center;
}

/* ============================================================
   VIDEO PAGE — cinematic full-bleed background
   ============================================================ */
body.cine {
  background: var(--bg-deep);
}

body.cine .atmosphere {
  display: none;
}

.cine-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

.cine-bg__clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1.1s var(--ease-soft),
    transform 6s linear;
}

.cine-bg__clip.is-active {
  opacity: 1;
  transform: scale(1);
}

.cine-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 22% 40%, rgba(11, 10, 26, 0.4), transparent 60%),
    linear-gradient(180deg, rgba(11, 10, 26, 0.78) 0%, rgba(11, 10, 26, 0.35) 32%, rgba(11, 10, 26, 0.55) 68%, rgba(11, 10, 26, 0.94) 100%),
    linear-gradient(95deg, rgba(11, 10, 26, 0.88) 0%, rgba(11, 10, 26, 0.35) 45%, transparent 72%);
}

.cine-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 45% at 50% 115%, rgba(252, 0, 120, 0.28), transparent 60%);
  mix-blend-mode: screen;
}

body.cine .hero {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  padding: clamp(5rem, 12vh, 7rem) clamp(1.4rem, 7vw, 6rem) clamp(7.5rem, 16vh, 9rem);
  max-width: none;
}

body.cine .brand {
  align-items: flex-start;
  text-align: left;
  max-width: 22ch;
}

body.cine .brand__name {
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

body.cine .brand__logo {
  width: min(78vw, 360px);
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
}

body.lab .brand__logo {
  width: min(78vw, 340px);
}

body.cine .compare-note {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  color: rgba(240, 230, 216, 0.6);
}

.cine-caption {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 5.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 16ch;
  color: var(--text);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.cine-caption.is-swap {
  opacity: 0;
  transform: translateY(14px);
}

.cine-timeline {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: min(100%, 640px);
  margin: 0;
  padding: 1rem clamp(1.4rem, 7vw, 6rem) clamp(1.2rem, 3vh, 1.8rem);
  display: flex;
  gap: 0.5rem;
  background: linear-gradient(180deg, transparent, rgba(11, 10, 26, 0.72) 35%, rgba(11, 10, 26, 0.92));
  pointer-events: none;
}

.cine-timeline__step {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0.75rem 0 0;
  color: rgba(240, 230, 216, 0.7);
  border-top: 3px solid rgba(240, 230, 216, 0.28);
  font-family: var(--font-display);
  font-weight: 700;
  pointer-events: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  transition:
    color 0.3s,
    border-color 0.3s;
}

.cine-timeline__step .cine-timeline__num {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.cine-timeline__step .cine-timeline__name {
  font-size: 0.86rem;
}

.cine-timeline__step.is-done {
  color: rgba(240, 230, 216, 0.7);
  border-top-color: rgba(252, 0, 120, 0.5);
}

.cine-timeline__step.is-active {
  color: var(--text);
  border-top-color: var(--accent);
}

/* ============================================================
   LOTTIE PAGE — bright product lab
   ============================================================ */
body.lab {
  background: var(--bg-deep);
}

.lab-hero {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 4vh, 2.4rem);
  padding: clamp(5rem, 11vh, 7rem) 1.2rem clamp(2rem, 5vh, 3.5rem);
  text-align: center;
}

.lab-stage {
  position: relative;
  width: min(90vw, 360px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.lab-scene {
  position: absolute;
  inset: 4%;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.lab-scene.is-active {
  opacity: 1;
  transform: scale(1);
}

.lab-scene lottie-player,
.lab-scene dotlottie-wc {
  width: 100%;
  height: 100%;
}

/* Food-delivery scooter + order bag (deliver step) */
.lab-scene--deliver {
  inset: 6%;
}

.lab-deliver {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.lab-deliver__art {
  width: min(100%, 340px);
  height: auto;
  max-height: 100%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
}

.lab-scene.is-active .lab-deliver__ride {
  animation: lab-ride 2.2s var(--ease-soft) infinite;
}

.lab-scene.is-active .lab-deliver__dash {
  animation: lab-dash 0.65s linear infinite;
}

.lab-scene.is-active .lab-deliver__speed path:nth-child(1) {
  animation: lab-streak 0.9s var(--ease-soft) infinite;
}

.lab-scene.is-active .lab-deliver__speed path:nth-child(2) {
  animation: lab-streak 0.9s var(--ease-soft) 0.12s infinite;
}

.lab-scene.is-active .lab-deliver__speed path:nth-child(3) {
  animation: lab-streak 0.9s var(--ease-soft) 0.24s infinite;
}

@keyframes lab-ride {
  0%,
  100% {
    transform: translateX(-6px) translateY(0);
  }
  50% {
    transform: translateX(8px) translateY(-3px);
  }
}

@keyframes lab-dash {
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes lab-streak {
  0%,
  100% {
    opacity: 0.25;
    transform: translateX(0);
  }
  50% {
    opacity: 0.9;
    transform: translateX(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-scene.is-active .lab-deliver__ride,
  .lab-scene.is-active .lab-deliver__dash,
  .lab-scene.is-active .lab-deliver__speed path {
    animation: none !important;
  }

  .lab-deliver__art animateTransform {
    display: none;
  }
}

.lab-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  color: var(--text);
  transition:
    opacity 0.35s,
    transform 0.35s;
}

.lab-label.is-swap {
  opacity: 0;
  transform: translateY(10px);
}

.lab-track {
  display: flex;
  gap: 0.5rem;
  width: min(90vw, 360px);
}

.lab-pip {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(240, 230, 216, 0.16);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.lab-pip span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 999px;
}

.lab-pip.is-done span {
  width: 100%;
}

.lab-pip.is-active span {
  width: 100%;
  transition: width var(--fill-ms, 3600ms) linear;
}
