﻿:root {
  color-scheme: dark;
  --black: #000;
  --card: #101014;
  --line: rgba(226, 222, 238, 0.16);
  --line-strong: rgba(232, 225, 255, 0.42);
  --text: #f7f4ff;
  --soft: #c9c3d6;
  --muted: #8f879e;
  --purple: #8d6cff;
  --pink: #f08adf;
  --indigo: #6f78ff;
  --transparent-white: rgba(255, 255, 255, 0);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--black);
  color: var(--text);
}

button { font: inherit; }

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.6vw, 36px) clamp(16px, 4vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 78, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 50% 82%, rgba(224, 126, 255, 0.1), transparent 25rem),
    var(--black);
}

.motion-section {
  width: min(1260px, 100%);
  min-height: min(820px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(560px, 1fr) auto auto;
  align-items: center;
  gap: clamp(16px, 1.8vw, 24px);
}

.hero-copy {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.motion-section.is-ready .hero-copy {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  display: inline-block;
  padding-bottom: 0.08em;
  font-size: clamp(42px, 5.6vw, 74px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  background: linear-gradient(96deg, var(--indigo) 4%, #b987ff 48%, var(--pink) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 1080px;
  margin: 10px auto 0;
  color: var(--soft);
  font-size: clamp(14px, 1.28vw, 17px);
  line-height: 1.45;
  white-space: nowrap;
}

.carousel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(540px, 50vw, 650px);
  perspective: 1400px;
}

.carousel-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  width: min(880px, 80vw);
  height: 220px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(151, 95, 255, 0.44), transparent 72%);
  filter: blur(40px);
}

.carousel-stage {
  position: relative;
  width: min(1120px, 100%);
  height: clamp(540px, 50vw, 650px);
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 900ms 160ms ease, transform 900ms 160ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.motion-section.is-ready .carousel-stage {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.motion-card {
  --x: 0px;
  --scale: 1;
  --rotate: 0deg;
  --depth: 0px;
  --card-opacity: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(820px, 82vw);
  height: clamp(500px, 46vw, 600px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #17171d, #09090d);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.74);
  opacity: var(--card-opacity);
  transform: translate(-50%, -50%) translateX(var(--x)) translateZ(var(--depth)) rotateY(var(--rotate)) scale(var(--scale));
  transition:
    transform 620ms cubic-bezier(0.2, 0.85, 0.18, 1),
    opacity 420ms ease,
    border-color 320ms ease,
    box-shadow 420ms ease,
    filter 420ms ease;
  cursor: pointer;
  isolation: isolate;
}

.motion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), var(--transparent-white) 12%),
    linear-gradient(90deg, var(--transparent-white), rgba(255, 255, 255, 0.16), var(--transparent-white));
  mask-image: linear-gradient(180deg, #000 0 2px, transparent 18%);
}

.motion-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(161, 104, 255, 0.42), transparent 46%);
  opacity: 0.72;
}

.video-frame {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 0;
  margin: clamp(12px, 1.6vw, 20px) clamp(12px, 1.6vw, 20px) 0;
  overflow: hidden;
  border: 1px solid rgba(230, 224, 255, 0.12);
  border-radius: 20px;
  background: #050507;
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #050507;
  filter: saturate(0.98) contrast(1.04) brightness(0.94);
  transition: filter 300ms ease;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 16%, transparent 88%, rgba(141, 108, 255, 0.08));
}

.card-info {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  margin: 0 clamp(18px, 2vw, 26px);
  padding: 15px 0 18px;
  border-top: 1px solid var(--line);
}

.card-title { min-width: 0; }

.card-title strong {
  display: block;
  color: #fbf8ff;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.1;
}

.card-title span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-state {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.3), transparent 34%),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 rgba(240, 138, 223, 0);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.play-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

.motion-card.is-hovered .play-state,
.motion-card:hover .play-state,
.play-state:focus-visible {
  transform: scale(1.08);
  border-color: rgba(240, 138, 223, 0.72);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(135deg, rgba(138, 108, 255, 0.62), rgba(240, 138, 223, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 22px rgba(240, 138, 223, 0.44),
    0 0 40px rgba(138, 108, 255, 0.26);
}

.motion-card.is-active {
  z-index: 5;
  --x: 0px;
  --scale: 1;
  --rotate: 0deg;
  --depth: 88px;
  --card-opacity: 1;
  border-color: var(--line-strong);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.72),
    0 0 66px rgba(146, 95, 255, 0.38),
    0 44px 110px rgba(0, 0, 0, 0.82);
}

.motion-card.is-left {
  z-index: 3;
  --x: clamp(-460px, -36vw, -320px);
  --scale: 0.82;
  --rotate: 10deg;
  --depth: 0px;
  --card-opacity: 0.4;
}

.motion-card.is-right {
  z-index: 3;
  --x: clamp(320px, 36vw, 460px);
  --scale: 0.82;
  --rotate: -10deg;
  --depth: 0px;
  --card-opacity: 0.4;
}

.motion-card.is-hidden {
  z-index: 1;
  pointer-events: none;
  --scale: 0.68;
  --depth: -80px;
  --card-opacity: 0;
  filter: blur(8px);
}

.motion-card.is-left:hover,
.motion-card.is-right:hover,
.motion-card.is-left.is-hovered,
.motion-card.is-right.is-hovered {
  --card-opacity: 1;
  border-color: rgba(232, 225, 255, 0.3);
  box-shadow: 0 0 46px rgba(145, 98, 255, 0.24), 0 26px 70px rgba(0, 0, 0, 0.68);
}

.motion-card:hover .video-frame video,
.motion-card.is-hovered .video-frame video {
  filter: saturate(1.08) contrast(1.07) brightness(1);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms 260ms ease, transform 900ms 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.motion-section.is-ready .carousel-controls {
  opacity: 1;
  transform: translateY(0);
}

.nav-button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(222, 218, 235, 0.2);
  border-radius: 999px;
  background: rgba(19, 18, 24, 0.94);
  color: #ece7f7;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.42);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.nav-button span {
  display: block;
  margin-top: -2px;
  font-size: 34px;
  line-height: 1;
}

.nav-button:hover {
  transform: translateY(-2px);
  border-color: rgba(193, 168, 255, 0.56);
  background: rgba(35, 29, 50, 0.98);
  color: #fff;
}

.dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(215, 210, 229, 0.24);
  cursor: pointer;
  transition: width 260ms ease, background 260ms ease;
}

.dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--indigo), var(--pink));
}

@media (max-width: 900px) {
  .motion-section {
    min-height: auto;
    grid-template-rows: auto minmax(520px, 1fr) auto auto;
  }

  .carousel-wrap,
  .carousel-stage {
    min-height: 520px;
    height: 520px;
  }

  .motion-card {
    width: min(700px, 84vw);
    height: 500px;
  }

  .motion-card.is-left { --x: -48vw; }
  .motion-card.is-right { --x: 48vw; }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 26px 12px 34px;
  }

  .motion-section {
    gap: 20px;
    grid-template-rows: auto minmax(500px, 1fr) auto auto;
  }

  h1 {
    font-size: clamp(42px, 15vw, 70px);
  }

  .lede {
    font-size: 15px;
    white-space: normal;
  }

  .carousel-wrap,
  .carousel-stage {
    min-height: 500px;
    height: 500px;
  }

  .motion-card {
    width: min(360px, 90vw);
    height: 480px;
    border-radius: 22px;
  }

  .video-frame {
    margin: 12px 12px 0;
    border-radius: 16px;
  }

  .card-info {
    min-height: 72px;
    margin: 0 18px;
    gap: 12px;
    padding: 13px 0 15px;
  }

  .card-title strong { font-size: 15px; }
  .play-state { width: 34px; height: 34px; }

  .motion-card.is-left {
    --x: -52vw;
    --scale: 0.78;
  }

  .motion-card.is-right {
    --x: 52vw;
    --scale: 0.78;
  }

  .nav-button {
    width: 48px;
    height: 48px;
  }
}



.contact-line {
  margin: -4px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  .contact-line {
    max-width: 320px;
    font-size: 11px;
  }
}

