:root {
  --paper: #f7f7f8;
  --paper-elevated: #ffffff;
  --ink: #111214;
  --muted: #5c5f66;
  --soft: #8b8e96;
  --line: #e6e7eb;
  --line-strong: #d9dae0;
  --brand: #5c00cb;
  --brand-deep: #4a00a3;
  --watermark: rgba(92, 0, 203, 0.05);
  --shadow:
    0 1px 2px rgba(17, 18, 20, 0.05),
    0 8px 24px rgba(17, 18, 20, 0.07);
  --shadow-hover:
    0 3px 6px rgba(17, 18, 20, 0.06),
    0 22px 48px rgba(17, 18, 20, 0.12),
    0 36px 72px rgba(92, 0, 203, 0.22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% 18%, rgba(92, 0, 203, 0.045), transparent 62%),
    var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Giant faint brand watermark — appears first */
.watermark {
  position: fixed;
  left: 50%;
  top: 44%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
  opacity: 0;
}
.watermark-text {
  display: block;
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  /* width locked by JS fit; CSS fallback keeps full word in viewport */
  font-size: 18vw;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.7;
  color: var(--watermark);
  white-space: nowrap;
  text-transform: none;
  transform: scaleY(1.35);
  transform-origin: center center;
  will-change: transform, font-size;
}


.black-friday-hero {
  position: relative;
  isolation: isolate;
  transform-origin: center bottom;
  overflow: clip;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 28px;
  min-height: clamp(420px, 66svh, 620px);
  padding: clamp(24px, 6vw, 80px);
  background: linear-gradient(119deg, oklch(23% .093 296) 0 64%, var(--brand) 64% 100%);
  color: #faf5ff;
}
.black-friday-hero h1 {
  display: grid;
  gap: 16px;
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: 1.08;
}
.black-friday-year {
  font-size: clamp(.875rem, 2vw, 1.25rem);
  letter-spacing: .12em;
}
.black-friday-impact {
  position: relative;
  display: block;
  transform-origin: center bottom;
  font-weight: inherit;
}
.black-friday-impact span { display: block; }
.black-friday-impact span:first-child {
  font-size: 1.4em;
  color: #e7caff;
}
.black-friday-mark {
  position: absolute;
  z-index: -1;
  right: -.04em;
  bottom: -.2em;
  font-size: clamp(18rem, 60vw, 42rem);
  font-weight: 900;
  line-height: 1;
  color: oklch(95% .04 300 / .13);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .black-friday-hero { animation: black-friday-drop 680ms both; }
  .black-friday-impact::after {
    content: "";
    position: absolute;
    inset: auto -12% 0;
    height: 3px;
    background: #e7caff;
    pointer-events: none;
    animation: black-friday-impact-line 550ms var(--ease) 520ms both;
  }
  .black-friday-hero a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, #d4adff 50%, transparent 75%);
    pointer-events: none;
    animation: black-friday-button-sweep 4s var(--ease) 900ms infinite both;
  }
}
@keyframes black-friday-impact-line {
  from { opacity: .85; transform: scaleX(.2); }
  to { opacity: 0; transform: scaleX(1.28) scaleY(.35); }
}
@keyframes black-friday-button-sweep {
  0% { opacity: 0; transform: translateX(-100%); }
  6% { opacity: .6; }
  23%, 100% { opacity: 0; transform: translateX(100%); }
}
@keyframes black-friday-drop {
  0% {
    opacity: 0;
    transform: translateY(-105%) rotate(-3deg);
    animation-timing-function: cubic-bezier(.48, .04, .9, .55);
  }
  20% { opacity: 1; }
  66% {
    transform: translateY(0) rotate(0);
    animation-timing-function: cubic-bezier(.2, .7, .4, 1);
  }
  75% {
    transform: scale(1.012, .965);
    animation-timing-function: var(--ease);
  }
  100% { transform: none; }
}
.black-friday-hero a {
  position: relative;
  overflow: clip;
  display: inline-flex;
  gap: 24px;
  padding: 14px 20px;
  background: #faf5ff;
  color: var(--brand-deep);
  font-weight: 750;
  text-decoration: none;
}
.black-friday-hero a:hover { text-decoration: underline; }
.black-friday-hero a:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }


.stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: min(980px, calc(100% - 56px));
  margin-inline: auto;
  padding: clamp(28px, 4.5vh, 52px) 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
}

.intro {
  text-align: center;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 4px;
}
.brand-intro { text-align: center; }
.brand-intro h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.brand-intro p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.outro {
  margin-top: 4px;
  padding-top: 4px;
}
.bridge {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--brand-deep);
}
.bridge-sub {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: var(--muted);
}

.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Equal product cards — logos, single brand accent */
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 448px;
  text-decoration: none;
  color: inherit;
  background: var(--paper-elevated);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 1;
  transform: translateZ(0);
  transition:
    transform .38s var(--ease),
    border-color .38s var(--ease),
    box-shadow .38s var(--ease);
  outline: none;
}

.door:hover,
.door:focus-visible {
  transform: translateY(-10px) scale(1.02);
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  box-shadow: var(--shadow-hover);
}
.door:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Logo well — no tint wash; consistent logo size */
.logo-well {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 164px;
  background:
    radial-gradient(90% 80% at 50% 30%, rgba(92, 0, 203, 0.07), transparent 68%),
    #fafafb;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 12%, var(--line));
  transition: background .38s var(--ease);
}
.door:hover .logo-well,
.door:focus-visible .logo-well {
  background:
    radial-gradient(90% 80% at 50% 30%, rgba(92, 0, 203, 0.14), transparent 70%),
    #fafafb;
}

.logo {
  position: relative;
  z-index: 1;
  width: 108px;
  height: 108px;
  object-fit: contain;
  display: block;
  border-radius: 22px;
  transition: transform .45s var(--ease), filter .45s var(--ease);
}

.door:hover .logo,
.door:focus-visible .logo {
  transform: scale(1.08) translateY(-3px);
  filter: drop-shadow(0 14px 24px rgba(92, 0, 203, 0.28));
}

.body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 22px;
  flex: 1;
  min-width: 0;
}
.name {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.scene {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-deep);
}
.desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 14px;
  height: 42px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand-deep);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 8px 18px rgba(92, 0, 203, 0.36);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: transform .25s var(--ease), filter .25s var(--ease), box-shadow .25s var(--ease);
}
.go svg { flex-shrink: 0; }
.door:hover .go,
.door:focus-visible .go {
  transform: translateX(6px);
  filter: brightness(1.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 14px 28px rgba(92, 0, 203, 0.46);
}

/* Entrance: watermark → copy → cards (L from left, R from right) */
@keyframes wm-in {
  from { opacity: 0; transform: translate3d(-50%, calc(-50% + 18px), 0) scale(0.96); }
  to   { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1); }
}
@keyframes intro-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes card-from-left {
  from { opacity: 0; transform: translate3d(-36px, -18px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes card-from-right {
  from { opacity: 0; transform: translate3d(36px, 18px, 0); }
  to   { opacity: 1; transform: none; }
}

html.is-ready .watermark {
  animation: wm-in .7s var(--ease) both;
}
html.is-ready .intro {
  animation: intro-in .55s var(--ease) .28s both;
}
html.is-ready .door-video {
  animation: card-from-left .7s var(--ease) .48s both;
}
html.is-ready .door-agent {
  animation: card-from-right .7s var(--ease) .58s both;
}

@media (max-width: 860px) {
  .stage {
    width: calc(100% - 32px);
    padding: 40px 0 20px;
    gap: 20px;
    justify-content: flex-start;
  }
  .watermark { top: 36%; }
  .watermark-text {
    font-size: 17vw;
    transform: scaleY(1.4);
  }
  .bridge-sub { font-size: 0.975rem; }
  .doors {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .door { min-height: 0; }
  .logo-well { height: 144px; }
  .logo { width: 92px; height: 92px; border-radius: 20px; }
  .body { padding: 18px; gap: 8px; }
  .name { font-size: 1.35rem; }
  .scene { font-size: 0.875rem; }
  .desc { font-size: 0.8125rem; }
  .go { height: 40px; font-size: 0.8125rem; margin-top: 10px; }

  /* Mobile: one from top, one from bottom */
  @keyframes card-from-top {
    from { opacity: 0; transform: translate3d(0, -28px, 0); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes card-from-bottom {
    from { opacity: 0; transform: translate3d(0, 28px, 0); }
    to   { opacity: 1; transform: none; }
  }
  html.is-ready .door-video {
    animation: card-from-top .65s var(--ease) .48s both;
  }
  html.is-ready .door-agent {
    animation: card-from-bottom .65s var(--ease) .58s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .watermark,
  .intro,
  .door-video,
  .door-agent {
    opacity: 1 !important;
    transform: none !important;
  }
  .watermark {
    transform: translate3d(-50%, -50%, 0) !important;
  }
}

::selection {
  background: color-mix(in srgb, var(--brand) 18%, white);
  color: var(--ink);
}


.site-legal {
  flex-shrink: 0;
  width: min(980px, calc(100% - 56px));
  margin: auto 0 18px;
  padding: 0;
  text-align: center;
}
.legal-line {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #62616c;
  letter-spacing: 0.01em;
}
.legal-line a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 154, 163, 0.45);
}
.legal-line a:hover {
  color: var(--brand);
  border-bottom-color: rgba(92, 0, 203, 0.35);
}
@media (max-width: 860px) {
  .site-legal { width: calc(100% - 32px); margin-bottom: 14px; }
  .legal-line { font-size: 0.72rem; }
}
