: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.14);
  --shadow:
    0 1px 1px rgba(17, 18, 20, 0.03),
    0 12px 32px rgba(17, 18, 20, 0.06),
    0 4px 12px rgba(17, 18, 20, 0.035);
  --shadow-hover:
    0 2px 2px rgba(17, 18, 20, 0.04),
    0 24px 52px rgba(92, 0, 203, 0.12),
    0 10px 22px rgba(17, 18, 20, 0.05);
  --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;
  font-size: clamp(12rem, 42vw, 28rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.78;
  color: var(--watermark);
  white-space: nowrap;
  text-transform: none;
}

.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: 0;
  margin-top: 0;
  margin-bottom: 4px;
}
.outro {
  margin-top: 4px;
  padding-top: 4px;
}
.bridge {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: #5a4a72; /* soft brand-ink, not pure black */
}
.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: 420px;
  text-decoration: none;
  color: inherit;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transition:
    transform .32s var(--ease),
    border-color .32s var(--ease),
    box-shadow .32s var(--ease);
  outline: none;
}

.door:hover,
.door:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brand) 36%, 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 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 200px;
  background: #fafafb;
  border-bottom: 1px solid var(--line);
}
.logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  border-radius: 22px;
  transition: transform .45s var(--ease);
}
.door:hover .logo,
.door:focus-visible .logo {
  transform: scale(1.04);
}

.body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 22px;
  flex: 1;
  min-width: 0;
}
.name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.scene {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 10px;
  height: 36px;
  padding: 0 14px 0 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand-deep);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 14px rgba(92, 0, 203, 0.28);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  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(3px);
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 20px rgba(92, 0, 203, 0.34);
}

/* 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: clamp(8.5rem, 52vw, 16rem);
  }
  .bridge-sub { font-size: 0.975rem; }
  .doors {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .door { min-height: 0; }
  .logo-well { height: 168px; }
  .logo { width: 84px; height: 84px; border-radius: 20px; }
  .body { padding: 18px; gap: 8px; }
  .name { font-size: 1.25rem; }
  .scene { font-size: 0.875rem; }
  .desc { font-size: 0.8125rem; }
  .go { height: 34px; font-size: 0.75rem; margin-top: 8px; }

  /* 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: #9a9aa3;
  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.65rem; }
}
