:root {
  --ink: #0f172a;
  --ink-sub: #334155;
  --ink-muted: #64748b;
  --blue-deep: #1e3a8a;
  --blue: #2563eb;
  --sky: #0ea5e9;
  --cyan: #06b6d4;
  --ice-white: rgba(255, 255, 255, 0.88);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(180deg, #dff0ff 0%, #c6e3ff 42%, #d8ecff 78%, #eef7ff 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ================= ATMOSPHERIC SKY & 3D STAGE BACKDROP ================= */
.sky-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 640px at 50% 8%, rgba(255, 255, 255, 0.92) 0%, rgba(224, 242, 254, 0.55) 48%, rgba(191, 219, 254, 0) 78%),
    radial-gradient(900px 500px at 14% 25%, rgba(186, 230, 253, 0.58) 0%, transparent 70%),
    radial-gradient(900px 500px at 86% 22%, rgba(186, 230, 253, 0.58) 0%, transparent 70%),
    linear-gradient(180deg, #d7ecff 0%, #c3e2ff 45%, #daf0ff 100%);
}

.sky-glow-top {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 460px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(186, 230, 253, 0.35) 55%, transparent 78%);
  filter: blur(18px);
}

.sky-cloud {
  position: absolute;
  width: 560px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.25) 55%, transparent 76%);
  filter: blur(22px);
  animation: cloudDrift 18s ease-in-out infinite alternate;
}
.cloud-left { top: 14%; left: -6%; }
.cloud-right { top: 18%; right: -6%; animation-delay: -9s; }

@keyframes cloudDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(28px, -12px, 0) scale(1.06); }
}

.skyline {
  position: absolute;
  bottom: 10%;
  width: clamp(200px, 23vw, 380px);
  opacity: 0.72;
  transition: transform 0.35s ease-out;
}
.skyline-left { left: -1vw; }
.skyline-right { right: -1vw; }

#stageCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ================= STICKY MINIMAL GLASS HEADER ================= */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 64px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 24px rgba(30, 64, 175, 0.06);
  transition: background 0.25s ease;
}
.top-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
}

.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 65%, #06b6d4 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}
.brand-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-sub);
  padding: 6px 4px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue); }
.nav-link-cta { color: var(--blue); }

.nav-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e40af;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(147, 197, 253, 0.85);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transition: all 0.22s;
  white-space: nowrap;
}
.nav-btn-pill:hover {
  background: #ffffff;
  border-color: var(--sky);
  transform: translateY(-1px);
}
.nav-btn-pill.active {
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}
.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.nav-btn-pill.active .demo-dot {
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff;
  animation: pulseDot 1.3s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

.nav-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-sub);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(203, 213, 225, 0.8);
  transition: all 0.2s;
}
.nav-icon-btn:hover { color: var(--blue); background: #fff; }

.pass-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  color: #1e3a8a;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(219, 234, 254, 0.88));
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.14);
  white-space: nowrap;
  transition: all 0.22s;
}
.pass-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}
.pass-pts {
  font-size: 12px;
  color: #0284c7;
  background: rgba(224, 242, 254, 0.95);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ================= HERO STAGE (100vh) ================= */
.main-wrap {
  position: relative;
  z-index: 2;
}

.hero-stage {
  position: relative;
  min-height: 100vh;
  padding: 76px 24px 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.hero-title-wrap {
  position: relative;
  text-align: center;
  padding-top: clamp(8px, 2vh, 24px);
  z-index: 4;
}

/* Holographic UFO Disc behind Title */
.ufo-halo {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(820px, 90vw);
  height: 126px;
  pointer-events: none;
  z-index: -1;
}
.ufo-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.72) 0%, rgba(186, 230, 253, 0.38) 54%, rgba(56, 189, 248, 0.12) 78%, transparent 100%);
  box-shadow:
    0 12px 44px rgba(14, 165, 233, 0.22),
    inset 0 0 28px rgba(255, 255, 255, 0.95);
  transform: perspective(600px) rotateX(62deg);
}
.ufo-ring-inner {
  position: absolute;
  inset: 14px 48px;
  border-radius: 50%;
  border: 1.5px dashed rgba(56, 189, 248, 0.55);
  transform: perspective(600px) rotateX(62deg);
  animation: ufoSpin 24s linear infinite;
}
.ufo-core-glow {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 25%;
  bottom: 25%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95), transparent 72%);
  filter: blur(12px);
}
@keyframes ufoSpin {
  from { transform: perspective(600px) rotateX(62deg) rotateZ(0deg); }
  to { transform: perspective(600px) rotateX(62deg) rotateZ(360deg); }
}

.hero-3d-title {
  position: relative;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.12;
  background: linear-gradient(180deg, #ffffff 0%, #dff2ff 28%, #3b82f6 64%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.95))
    drop-shadow(0 6px 14px rgba(29, 78, 216, 0.28))
    drop-shadow(0 0 26px rgba(56, 189, 248, 0.45));
}

.hero-subtitle {
  margin: 12px 0 0;
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #1e3a8a;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.95);
}

.filter-pills {
  margin-top: 16px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.10);
}
.filter-pill {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-sub);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-pill:hover {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.7);
}
.filter-pill.active {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.34);
}

/* ================= 3D CARDS STAGE ================= */
.cards-viewport {
  width: 100%;
  max-width: 1460px;
  margin: auto 0;
  padding: 20px 10px 36px;
  perspective: 1400px;
  z-index: 4;
}

.cards-stage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  transform-style: preserve-3d;
}

.agent-card {
  --rx: 0deg;
  --ry: 0deg;
  --base-ry: 0deg;
  --lift-y: 0px;
  --hover-y: 0px;
  --hover-z: 0px;
  --card-scale: 1;
  --mx: 50%;
  --my: 30%;

  position: relative;
  height: clamp(320px, 41vh, 386px);
  border-radius: 26px;
  padding: 20px 15px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  cursor: pointer;
  user-select: none;

  background: linear-gradient(165deg, rgba(255, 255, 255, 0.84) 0%, rgba(235, 246, 255, 0.66) 52%, rgba(214, 236, 255, 0.72) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 48px -14px rgba(29, 78, 216, 0.20),
    0 6px 18px rgba(14, 165, 233, 0.12),
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 0 28px rgba(255, 255, 255, 0.5);

  transform:
    translate3d(0, calc(var(--lift-y) + var(--hover-y)), var(--hover-z))
    rotateY(calc(var(--base-ry) + var(--ry)))
    rotateX(var(--rx))
    scale(var(--card-scale));
  transition:
    transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease,
    filter 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}

/* Staggered curved 3D arc on wide desktop */
@media (min-width: 1200px) {
  .agent-card[data-idx="0"] { --base-ry: 8deg; --lift-y: 8px; }
  .agent-card[data-idx="1"] { --base-ry: 4deg; --lift-y: 0px; }
  .agent-card[data-idx="2"] { --base-ry: 1.5deg; --lift-y: -12px; }
  .agent-card[data-idx="3"] { --base-ry: -1.5deg; --lift-y: -12px; }
  .agent-card[data-idx="4"] { --base-ry: -4deg; --lift-y: 0px; }
  .agent-card[data-idx="5"] { --base-ry: -8deg; --lift-y: 8px; }
}

/* Specular spotlight sheen */
.agent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: radial-gradient(circle 190px at var(--mx) var(--my), rgba(255, 255, 255, 0.75), transparent 72%);
  opacity: 0;
  transition: opacity 0.28s;
  pointer-events: none;
}
.agent-card:hover::before,
.agent-card.is-focused::before {
  opacity: 1;
}

/* Subtle mirror reflection on holographic stage floor */
.agent-card::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -24px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.42) 0%, rgba(255, 255, 255, 0.25) 45%, transparent 75%);
  filter: blur(5px);
  pointer-events: none;
  transition: transform 0.35s, opacity 0.35s;
}

.agent-card:hover,
.agent-card.is-focused {
  --hover-y: -14px;
  --hover-z: 28px;
  --card-scale: 1.045;
  border-color: #ffffff;
  box-shadow:
    0 32px 64px -12px rgba(37, 99, 235, 0.34),
    0 0 36px rgba(56, 189, 248, 0.42),
    inset 0 2px 0 rgba(255, 255, 255, 1);
  z-index: 8;
}

.agent-card.is-dimmed {
  opacity: 0.34;
  filter: blur(1px) saturate(0.75);
  --card-scale: 0.94;
}

.card-head {
  position: relative;
  z-index: 2;
  width: 100%;
}
.card-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
}
.card-mini-badge {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}
.card-name {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.card-tagline {
  margin: 7px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-sub);
  line-height: 1.35;
}

/* Center 3D Totem + Orbital Rings */
.card-totem-wrap {
  position: relative;
  width: 136px;
  height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: totemFloat 4.2s ease-in-out infinite;
}
.agent-card[data-idx="1"] .card-totem-wrap { animation-delay: -0.7s; }
.agent-card[data-idx="2"] .card-totem-wrap { animation-delay: -1.4s; }
.agent-card[data-idx="3"] .card-totem-wrap { animation-delay: -2.1s; }
.agent-card[data-idx="4"] .card-totem-wrap { animation-delay: -2.8s; }
.agent-card[data-idx="5"] .card-totem-wrap { animation-delay: -3.5s; }

@keyframes totemFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

.totem-orbit {
  position: absolute;
  width: 148px;
  height: 56px;
  border-radius: 50%;
  border: 1.8px solid rgba(56, 189, 248, 0.78);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.48), inset 0 0 8px rgba(255, 255, 255, 0.85);
  transform: rotate(-18deg);
  pointer-events: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.totem-orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 24%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #38bdf8, 0 0 4px #ffffff;
}
.totem-orbit-2 {
  width: 132px;
  height: 48px;
  border: 1.2px dashed rgba(37, 99, 235, 0.44);
  transform: rotate(20deg);
}
.agent-card:hover .totem-orbit,
.agent-card.is-focused .totem-orbit {
  border-color: #ffffff;
  box-shadow: 0 0 22px rgba(14, 165, 233, 0.72);
}

.totem-core {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  filter: drop-shadow(0 14px 24px rgba(37, 99, 235, 0.30));
}
.totem-core svg {
  width: 100%;
  height: 100%;
}
.totem-dh-img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 10px 20px rgba(37, 99, 235, 0.32));
}

/* Bottom Capsule CTA */
.card-cta {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 86%;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.10);
  transition: all 0.25s;
}
.card-cta:hover,
.agent-card.is-focused .card-cta {
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

/* Auto-Tour Narration Bar */
.demo-caption-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120px);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  width: min(920px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1.5px solid #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
}
.demo-caption-bar.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.demo-caption-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13.5px;
  color: var(--ink-sub);
}
.demo-caption-left strong { color: var(--blue-deep); white-space: nowrap; }
#demoCapDesc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-badge-live {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 800;
  color: #047857;
  background: #d1fae5;
  padding: 3px 10px;
  border-radius: 999px;
}
.demo-caption-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.demo-ctrl-btn {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-sub);
  background: #f1f5f9;
}
.demo-ctrl-btn:hover { background: #e2e8f0; color: var(--ink); }
.demo-detail-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.demo-enter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
}

/* Scroll Cue */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.10);
  transition: transform 0.25s, opacity 0.25s;
  z-index: 4;
}
body.demo-active .scroll-cue {
  opacity: 0;
  pointer-events: none;
}
.scroll-cue:hover { transform: translateY(2px); background: #fff; }
.scroll-cue svg { animation: bounceCue 1.8s ease-in-out infinite; }
@keyframes bounceCue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.mobile-carousel-controls { display: none; }

/* ================= SECTION 2: BUSINESS LOOP ================= */
.loop-section {
  position: relative;
  padding: 84px 24px 64px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.25) 0%, rgba(248, 250, 252, 0.92) 22%, #f8fafc 100%);
  backdrop-filter: blur(12px);
}
.loop-container {
  max-width: 1340px;
  margin: 0 auto;
}
.loop-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}
.loop-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  font-weight: 700;
  color: #1d4ed8;
}
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.loop-title {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.loop-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.loop-subtitle strong { color: #0284c7; }

.stages-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
}
.stage-panel {
  flex: 1;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 44px -14px rgba(15, 23, 42, 0.08);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
}
.stage-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 12px;
}
.stage-pill {
  font-size: 12px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 4px 12px;
  border-radius: 999px;
}
.stage-origin {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}
.stage-name {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 900;
  color: var(--ink);
}
.stage-summary {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-sub);
}

.stage-agents {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.stage-agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  cursor: pointer;
  transition: all 0.22s;
}
.stage-agent-card:hover {
  background: #ffffff;
  border-color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10);
}
.sa-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sa-blue { background: linear-gradient(145deg, #eff6ff, #dbeafe); color: #1d4ed8; }
.sa-cyan { background: linear-gradient(145deg, #ecfeff, #cffafe); color: #0284c7; }
.sa-body { flex: 1; min-width: 0; }
.sa-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-top strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.sa-route {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: #eff6ff;
  padding: 2px 7px;
  border-radius: 6px;
}
.sa-body p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--ink-sub);
  line-height: 1.4;
}
.sa-go {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid #dbeafe;
  transition: all 0.2s;
}
.sa-go:hover { background: var(--blue); color: #ffffff; }

.stage-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
}
.stage-foot-btn {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--blue);
}

.stage-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  flex-shrink: 0;
}
.conn-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.45);
  border: 2px solid #ffffff;
}

/* Trust Banner */
.trust-banner {
  margin-top: 32px;
  border-radius: 24px;
  background: linear-gradient(125deg, #ffffff 0%, #eff6ff 60%, #e0f2fe 100%);
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 40px -12px rgba(37, 99, 235, 0.14);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--blue-deep);
}
.stat-val span { color: #0284c7; }
.stat-lbl {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: #cbd5e1;
}
.trust-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-outline-soft {
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-sub);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  transition: all 0.2s;
}
.btn-outline-soft:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary-glow {
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 12px 26px -4px rgba(37, 99, 235, 0.42);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.52);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand-row, .footer-icp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer-logo { font-weight: 900; font-size: 15px; color: var(--ink); }
.footer-sep { color: #cbd5e1; }
.footer-icp-row a:hover { color: var(--blue); }

/* ================= SPATIAL DETAIL OVERLAY ================= */
.detail-overlay, .consult-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.detail-overlay.open, .consult-overlay.open {
  opacity: 1;
  visibility: visible;
}

.detail-backdrop, .consult-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(219, 236, 255, 0.68);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.detail-stage-modal {
  position: relative;
  z-index: 2;
  width: min(1140px, 100%);
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  gap: 24px;
  transform: scale(0.95) translateY(14px);
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}
.detail-overlay.open .detail-stage-modal {
  transform: scale(1) translateY(0);
}

.detail-left {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.detail-switch {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-deep);
  z-index: 5;
  transition: all 0.2s;
}
.detail-switch:hover { background: #ffffff; transform: translateY(-50%) scale(1.08); }
.detail-switch-prev { left: 4px; }
.detail-switch-next { right: 4px; }

.pedestal-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 320px;
  height: 360px;
}
.pedestal-totem {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -16px;
  z-index: 3;
  animation: totemFloat 3.6s ease-in-out infinite;
}
.pedestal-totem .totem-orbit {
  width: 228px;
  height: 86px;
  border-width: 2.4px;
}
.pedestal-totem .totem-orbit-2 {
  width: 204px;
  height: 74px;
}
.pedestal-totem .totem-core {
  width: 164px;
  height: 164px;
}
.pedestal-totem .totem-dh-img {
  width: 176px;
  height: 176px;
}

.pedestal-base {
  position: relative;
  width: 280px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pedestal-disc-top {
  position: absolute;
  top: 8px;
  width: 190px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.96) 0%, rgba(125, 211, 252, 0.65) 68%, rgba(14, 165, 233, 0.9) 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.72), inset 0 0 18px #ffffff;
  z-index: 2;
}
.pedestal-disc-mid {
  position: absolute;
  top: 22px;
  width: 206px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.45), rgba(37, 99, 235, 0.25));
  border: 1.5px solid rgba(186, 230, 253, 0.9);
  box-shadow: 0 16px 38px rgba(14, 165, 233, 0.35);
}
.pedestal-ring-outer {
  position: absolute;
  bottom: -4px;
  width: 280px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.42);
}

/* Right Porcelain Detail Panel */
.detail-panel {
  position: relative;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 249, 255, 0.92) 100%);
  border: 1.5px solid #ffffff;
  box-shadow:
    0 32px 72px -16px rgba(15, 23, 42, 0.20),
    0 0 0 1px rgba(191, 219, 254, 0.5);
  padding: 30px 32px;
  max-height: 88vh;
  overflow-y: auto;
}
.detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--ink-sub);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.detail-close:hover { background: #e2e8f0; color: var(--ink); }

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 12.5px;
  font-weight: 800;
  color: #047857;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.detail-title {
  margin: 14px 0 8px;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.detail-scene-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 13px;
  font-weight: 700;
}
.detail-summary {
  margin: 12px 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-sub);
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.metric-box {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 12px 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}
.metric-box strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--blue-deep);
}
.metric-box span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.detail-preview-box {
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 800;
}
.pv-alert { color: #b91c1c; background: #fee2e2; padding: 3px 10px; border-radius: 999px; }
.pv-good { color: #047857; background: #d1fae5; padding: 3px 10px; border-radius: 999px; }
.pv-blue { color: #1d4ed8; background: #dbeafe; padding: 3px 10px; border-radius: 999px; }
.pv-rows { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--ink-sub); }
.pv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.pv-row b { color: var(--ink); }

.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-btn-primary {
  flex: 1;
  min-width: 190px;
  padding: 13px 22px;
  border-radius: 999px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s;
}
.detail-btn-primary:hover { transform: translateY(-2px); }
.detail-btn-secondary {
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink-sub);
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  transition: all 0.2s;
}
.detail-btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* ================= CONSULT MODAL ================= */
.consult-card {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid #ffffff;
  box-shadow: 0 32px 72px rgba(15, 23, 42, 0.22);
  padding: 30px 30px 26px;
  max-height: 90vh;
  overflow-y: auto;
}
.consult-head { margin-bottom: 18px; }
.consult-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 999px;
}
.consult-head h3 { margin: 10px 0 6px; font-size: 22px; font-weight: 900; color: var(--ink); }
.consult-head p { margin: 0; font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; }

.consult-form { display: flex; flex-direction: column; gap: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-sub); }
.form-field em { color: #ef4444; font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue);
  background: #ffffff;
}
.form-err { font-size: 13px; color: #dc2626; font-weight: 700; min-height: 18px; }
.consult-submit-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}
.consult-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.consult-safe-note { margin: 2px 0 0; text-align: center; font-size: 12px; color: var(--ink-muted); }

.consult-success { text-align: center; padding: 18px 8px; }
.success-icon {
  width: 60px; height: 60px; margin: 0 auto 14px;
  border-radius: 50%; background: #d1fae5; color: #059669;
  font-size: 30px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.consult-success h3 { margin: 0 0 8px; font-size: 22px; font-weight: 900; }
.consult-success p { margin: 0 0 22px; font-size: 14px; color: var(--ink-sub); line-height: 1.6; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1199px) {
  .cards-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .agent-card {
    height: 315px;
  }
  .stages-grid {
    flex-direction: column;
  }
  .stage-connector {
    width: 100%;
    height: 28px;
    transform: rotate(90deg);
  }
}

@media (max-width: 899px) {
  html, body { overflow-x: clip; }
  .header-inner { padding: 0 12px; gap: 8px; }
  .nav-link[href="#business-loop"], .nav-link[href="/"], .nav-icon-btn, .nav-btn-pill { display: none; }
  .header-nav { gap: 8px; }
  .brand-badge { width: 30px; height: 30px; border-radius: 9px; }
  .brand-title { font-size: 16px; }
  .nav-link-cta { font-size: 13px; padding: 6px 8px; }
  .pass-btn { padding: 6px 12px; font-size: 12.5px; }

  .hero-stage { width: 100%; max-width: 100%; padding: 72px 0 26px; min-height: 100svh; overflow-x: clip; }
  .hero-title-wrap { width: 100%; max-width: 100%; padding: 8px 12px 0; }
  .ufo-halo { width: 94%; height: 92px; }
  .hero-3d-title { font-size: clamp(25px, 7.2vw, 36px); letter-spacing: 0.5px; }
  .hero-subtitle { font-size: 11.5px; letter-spacing: 0.2px; margin-top: 8px; }
  .filter-pills { max-width: calc(100% - 8px); gap: 3px; padding: 4px; }
  .filter-pill { padding: 6px 10px; font-size: 11.5px; }

  /* Horizontal 3D Swipe Carousel on Mobile */
  .cards-viewport {
    width: 100%;
    max-width: 100%;
    padding: 10px 0 16px;
    overflow: hidden;
  }
  .cards-stage {
    display: flex;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 16px calc(50% - 132px);
    scrollbar-width: none;
  }
  .cards-stage::-webkit-scrollbar { display: none; }
  .agent-card {
    flex: 0 0 264px;
    width: 264px;
    height: 350px;
    scroll-snap-align: center;
    --lift-y: 0px;
    --base-ry: 0deg;
  }
  .agent-card:not(.mobile-active) {
    transform: scale(0.92);
    opacity: 0.72;
  }
  .agent-card.mobile-active {
    transform: scale(1.02) translateY(-4px);
    opacity: 1;
    border-color: #ffffff;
  }

  .mobile-carousel-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 4;
  }
  .mobile-dots { display: flex; gap: 7px; }
  .mobile-dot {
    width: 7px; height: 7px; border-radius: 999px;
    background: rgba(30, 64, 175, 0.25);
    transition: all 0.25s;
  }
  .mobile-dot.active { width: 22px; background: var(--blue); }
  .mobile-swipe-hint { font-size: 12px; font-weight: 700; color: #1e40af; }

  .scroll-cue { margin-top: 8px; }

  .detail-stage-modal { grid-template-columns: 1fr; gap: 14px; }
  .detail-left { min-height: 200px; }
  .pedestal-showcase { width: 220px; height: 210px; }
  .pedestal-totem { width: 150px; height: 150px; }
  .pedestal-totem .totem-core, .pedestal-totem .totem-dh-img { width: 118px; height: 118px; }
  .pedestal-totem .totem-orbit { width: 160px; height: 60px; }
  .pedestal-base { width: 200px; height: 66px; }
  .pedestal-disc-top { width: 140px; height: 40px; }
  .pedestal-disc-mid { width: 154px; height: 44px; }
  .pedestal-ring-outer { width: 200px; height: 52px; }
  .detail-panel { padding: 22px 18px; max-height: 62vh; }
  .detail-metrics { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .demo-caption-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
