/* ==========================================================================
   AI 技能库 · High-Tech Visual Showcase (Default Dark Cyber-Glass + Light)
   ========================================================================== */
:root {
  --bg: #040711;
  --bg-2: #080e1f;
  --surface: rgba(14, 21, 38, 0.72);
  --surface-strong: rgba(17, 26, 48, 0.88);
  --border: rgba(130, 175, 255, 0.16);
  --border-bright: rgba(96, 188, 255, 0.52);
  --text: #f0f6ff;
  --text-soft: #b6c7e2;
  --muted: #7b90b2;
  --cyan: #38bdf8;
  --blue: #5aa7ff;
  --violet: #8b5cf6;
  --grid-line: rgba(96, 165, 250, 0.065);
  --shadow-card: 0 12px 32px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(130, 175, 255, 0.12);
  --shadow-hover: 0 24px 54px -20px rgba(0, 0, 0, 0.9), 0 0 32px -12px rgba(56, 189, 248, 0.42);
  --radius-lg: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

body[data-theme="light"] {
  --bg: #eef5ff;
  --bg-2: #f7faff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(34, 64, 118, 0.1);
  --border-bright: rgba(56, 142, 248, 0.46);
  --text: #111c30;
  --text-soft: #3d506f;
  --muted: #687c9e;
  --grid-line: rgba(56, 130, 246, 0.06);
  --shadow-card: 0 10px 28px -18px rgba(24, 46, 88, 0.22), 0 0 0 1px rgba(34, 64, 118, 0.08);
  --shadow-hover: 0 24px 48px -22px rgba(24, 56, 118, 0.32), 0 0 26px -10px rgba(56, 168, 255, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(60% 42% at 50% -8%, rgba(56, 189, 248, 0.22), transparent 70%),
    radial-gradient(40% 34% at 88% 12%, rgba(139, 92, 246, 0.16), transparent 68%),
    radial-gradient(40% 32% at 10% 18%, rgba(16, 229, 178, 0.1), transparent 68%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 260ms ease, color 260ms ease;
}

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

/* ── Cursor Neon Glow ──────────────────────────────────────── */
.ai-cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.ai-cursor-glow__orb {
  --glow-r: 56;
  --glow-g: 189;
  --glow-b: 248;
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(460px, 42vw, 660px);
  height: clamp(460px, 42vw, 660px);
  margin-left: calc(clamp(460px, 42vw, 660px) / -2);
  margin-top: calc(clamp(460px, 42vw, 660px) / -2);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--glow-r), var(--glow-g), var(--glow-b), 0.22) 0%,
    rgba(var(--glow-r), var(--glow-g), var(--glow-b), 0.11) 28%,
    rgba(var(--glow-r), var(--glow-g), var(--glow-b), 0.03) 54%,
    rgba(var(--glow-r), var(--glow-g), var(--glow-b), 0) 72%
  );
  transform: translate3d(50vw, 32vh, 0);
  will-change: transform;
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .ai-cursor-glow { display: none; }
}

/* ── Dreamscapes 全屏零卡顿烘焙弥散光形背景 + 悬停清晰 3D 景深层 ── */
.ai-canopy {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  transform: translateZ(0);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ai-canopy-sharp {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 340px;
  z-index: 1;
  pointer-events: none;
  display: block;
  opacity: 0;
  transform: translateZ(0);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 56%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 56%, rgba(0, 0, 0, 0.5) 80%, transparent 100%);
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.ai-title-dive .ai-canopy-sharp {
  opacity: 1;
}

/* ── Topbar (Floating Seamless Header + Centered Liquid Dock) ─ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  border-bottom: none;
  pointer-events: none;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.topbar-left {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  pointer-events: auto;
}
.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  pointer-events: auto;
}
.topbar-right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  pointer-events: auto;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 650;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-pill img { width: 22px; height: 22px; display: block; }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-soft);
  white-space: nowrap;
  transition: border-color 220ms ease, color 220ms ease, transform 220ms var(--ease);
}
.back-home:hover {
  border-color: var(--border-bright);
  color: var(--cyan);
  transform: translateY(-1px);
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10e5b2;
  box-shadow: 0 0 10px #10e5b2;
}
.stat-pill b { color: var(--text); font-weight: 700; }
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: transform 240ms var(--ease), border-color 220ms ease, color 220ms ease;
}
.theme-btn:hover {
  transform: translateY(-1px) rotate(12deg);
  border-color: var(--border-bright);
  color: var(--cyan);
}
.theme-btn svg { width: 17px; height: 17px; }

/* ── Hero ──────────────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 72px;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 168px;
  margin-bottom: 18px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
body[data-theme="light"] .hero-kicker {
  color: #1d6ae5;
  background: rgba(56, 142, 248, 0.1);
  border-color: rgba(56, 142, 248, 0.25);
}
.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
@keyframes heroIconFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2.5deg) scale(1);
    filter: drop-shadow(0 6px 18px rgba(56, 189, 248, 0.34));
  }
  50% {
    transform: translateY(-5px) rotate(3.2deg) scale(1.05);
    filter: drop-shadow(0 12px 26px rgba(139, 92, 246, 0.48));
  }
}
.hero-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 18px rgba(56, 189, 248, 0.35));
  animation: heroIconFloat 3.4s ease-in-out infinite;
  will-change: transform, filter;
  cursor: pointer;
}
.hero-icon:hover {
  animation-play-state: paused;
  transform: translateY(-3px) rotate(6deg) scale(1.09);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-icon img { width: 100%; height: 100%; object-fit: contain; }
@keyframes aiCharWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4.5px); }
}
@keyframes aiTitleDepthGlide {
  0% {
    transform: perspective(680px) translateZ(0px) scale(1);
    letter-spacing: 0.05em;
    opacity: 1;
  }
  50% {
    transform: perspective(680px) translateZ(-72px) scale(0.84);
    letter-spacing: 0.24em;
    opacity: 0.78;
  }
  100% {
    transform: perspective(680px) translateZ(-118px) scale(0.74);
    letter-spacing: 0.34em;
    opacity: 0.62;
  }
}
.hero h1 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: 0.05em;
  font-weight: 500;
  filter: drop-shadow(0 4px 18px rgba(56, 189, 248, 0.24));
  cursor: pointer;
  user-select: none;
  transform-style: preserve-3d;
  transition: transform 780ms cubic-bezier(0.22, 1, 0.36, 1), letter-spacing 780ms cubic-bezier(0.22, 1, 0.36, 1), opacity 620ms ease, filter 620ms ease;
}
body[data-theme="light"] .hero h1 {
  filter: drop-shadow(0 4px 16px rgba(74, 144, 226, 0.18));
}
body.ai-title-dive .hero h1 {
  animation: aiTitleDepthGlide 4.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  filter: drop-shadow(0 0 26px rgba(96, 165, 250, 0.45));
}
body.ai-title-dive .hero-char:not(.hero-char-space) {
  animation: none;
}
.hero-char {
  display: inline-block;
  background-image: linear-gradient(125deg, #ffffff 10%, #93d5ff 55%, #b49cff 100%);
  background-size: 500% 100%;
  background-position: calc(var(--hi, 0) * 25%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 260ms ease;
  will-change: transform;
}
body.ai-intro-done .hero-char:not(.hero-char-space) {
  animation: aiCharWave 3.2s ease-in-out calc(var(--hi, 0) * 220ms) infinite;
}
.hero-char:not(.hero-char-space):hover {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.09);
  filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.32));
}
.hero-char-space {
  width: 0.24em;
  background: none;
  pointer-events: none;
}
body[data-theme="light"] .hero-char {
  background-image: linear-gradient(125deg, #2f7ae0 0%, #5b78ee 52%, #8e74f2 100%);
}
.hero p {
  margin: 0;
  max-width: 520px;
  font-size: 14.5px;
  color: var(--text-soft);
}

/* ── Controls (Unified Apple Liquid Glass Dock + Merged Search) ─ */
.controls {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.control-dock {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px;
  border-radius: 999px;
  max-width: 100%;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.35),
    0 12px 30px -12px rgba(0, 0, 0, 0.58);
  transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
}
body[data-theme="light"] .control-dock {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.045),
    0 10px 28px -14px rgba(37, 99, 235, 0.18),
    0 1px 3px rgba(15, 23, 42, 0.04);
}
.control-dock.is-searching {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 3px rgba(56, 189, 248, 0.14),
    0 14px 34px -12px rgba(0, 0, 0, 0.65);
}
body[data-theme="light"] .control-dock.is-searching {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 0 0 3px rgba(59, 130, 246, 0.12),
    0 12px 30px -12px rgba(37, 99, 235, 0.24);
}

.category-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.category-bar::-webkit-scrollbar { display: none; }
.control-dock.is-searching .category-bar,
.control-dock.is-searching .dock-divider,
.control-dock.is-searching .dock-search-btn {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.cat-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.24), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(147, 213, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 16px -4px rgba(56, 189, 248, 0.34);
  transition: transform 340ms var(--ease), width 340ms var(--ease), opacity 200ms ease;
  pointer-events: none;
  z-index: 0;
}
body[data-theme="light"] .cat-thumb {
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 4px 12px -2px rgba(37, 99, 235, 0.16),
    0 1px 2px rgba(15, 23, 42, 0.06);
}

.cat-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-soft);
  white-space: nowrap;
  flex: 0 0 auto;
  transition: color 220ms ease;
}
.cat-pill:hover { color: var(--text); }
.cat-pill.is-active {
  color: #ffffff;
  font-weight: 650;
}
body[data-theme="light"] .cat-pill.is-active { color: #2563eb; }
.cat-count {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.52;
}
.cat-pill.is-active .cat-count {
  opacity: 0.9;
  color: #93d5ff;
}
body[data-theme="light"] .cat-pill.is-active .cat-count { color: #2563eb; }

.dock-divider {
  width: 1px;
  height: 18px;
  margin: 0 5px 0 4px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.12);
  transition: opacity 200ms ease;
}
body[data-theme="light"] .dock-divider {
  background: rgba(15, 23, 42, 0.09);
}

.dock-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 auto;
  color: var(--text-soft);
  background: transparent;
  transition: background 200ms ease, color 200ms ease, transform 220ms var(--ease), opacity 200ms ease;
}
.dock-search-btn svg { width: 16px; height: 16px; }
.dock-search-btn:hover {
  background: rgba(56, 189, 248, 0.16);
  color: #93d5ff;
  transform: scale(1.06);
}
body[data-theme="light"] .dock-search-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
  box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.18);
}

.dock-search-panel {
  position: absolute;
  inset: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 14px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.control-dock.is-searching .dock-search-panel {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.dock-search-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--cyan);
}
body[data-theme="light"] .dock-search-icon { color: #2563eb; }
.search-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--text);
}
.search-input::placeholder { color: var(--muted); }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.search-clear:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
  transform: scale(1.06);
}
body[data-theme="light"] .search-clear {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}
body[data-theme="light"] .search-clear:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

/* ── Visual-First High-Tech Card Grid ──────────────────────── */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.site-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: rgba(14, 21, 38, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  contain: layout style paint;
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --c1: #38bdf8;
  --c2: #8b5cf6;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 240ms ease;
}
body[data-theme="light"] .site-card {
  background: rgba(255, 255, 255, 0.94);
}
body.is-scrolling .site-card {
  pointer-events: none;
}
.site-card.is-offscreen *,
.site-card.is-offscreen *::before,
.site-card.is-offscreen *::after {
  animation-play-state: paused !important;
}
.site-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(280px circle at var(--mx) var(--my), color-mix(in srgb, var(--c1) 20%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 280ms ease;
}
.site-card:hover {
  transform: perspective(900px) translateY(-5px) rotateX(var(--rx)) rotateY(var(--ry));
  border-color: color-mix(in srgb, var(--c1) 65%, #ffffff);
  box-shadow: var(--shadow-hover);
}
.site-card:hover::after { opacity: 1; }

/* Top 16:10 Visual Cover */
.card-media {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background:
    radial-gradient(85% 95% at 18% 14%, color-mix(in srgb, var(--c1) 34%, transparent), transparent 65%),
    radial-gradient(80% 90% at 88% 90%, color-mix(in srgb, var(--c2) 32%, transparent), transparent 65%),
    linear-gradient(145deg, #091124, #050a17);
  border-bottom: 1px solid var(--border);
}
body[data-theme="light"] .card-media {
  background:
    radial-gradient(85% 95% at 18% 14%, color-mix(in srgb, var(--c1) 36%, transparent), transparent 65%),
    radial-gradient(80% 90% at 88% 90%, color-mix(in srgb, var(--c2) 34%, transparent), transparent 65%),
    linear-gradient(145deg, #101b36, #0a1224);
}
.card-cover-img,
.card-cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease);
}
.site-card:hover .card-cover-img,
.site-card:hover .card-cover-video {
  transform: scale(1.05);
}

/* 2x2 Live Motion Video Wall */
.card-video-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  background: #060b18;
  transition: transform 520ms var(--ease);
}
.site-card:hover .card-video-wall {
  transform: scale(1.03);
}
.card-video-tile {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background: #0e1629;
}
.card-video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Live Animated Cover: Motion Prompt 2x2 Canvas-style Demo Wall */
.live-mp-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: #f2f1ec;
  transition: transform 520ms var(--ease);
}
.site-card:hover .live-mp-wall { transform: scale(1.03); }
.live-mp-tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #0e1a36;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-mp-tag {
  position: absolute;
  left: 7px;
  bottom: 5px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.56);
  letter-spacing: 0.02em;
}
/* 001 Pop-in */
.mp-pop-badge {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ff7058, #f25444);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(242, 84, 68, 0.42);
  animation: mpPopIn 2.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}
.mp-pop-badge svg { width: 18px; height: 18px; fill: #ffffff; }
.mp-pop-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fbbf24;
  color: #111827;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
  animation: mpDotPop 2.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}
@keyframes mpPopIn {
  0%, 10% { transform: scale(0.35); opacity: 0; }
  28%, 74% { transform: scale(1); opacity: 1; }
  88%, 100% { transform: scale(0.86); opacity: 0; }
}
@keyframes mpDotPop {
  0%, 18% { transform: scale(0); }
  36%, 74% { transform: scale(1); }
  88%, 100% { transform: scale(0); }
}
/* 002 Stagger */
.mp-stagger {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid rgba(120, 160, 255, 0.25);
}
.mp-bar {
  width: 10px;
  height: var(--h, 28px);
  border-radius: 4px 4px 2px 2px;
  background: var(--c, #3b82f6);
  position: relative;
  transform-origin: bottom;
  animation: mpBarWave 2.1s cubic-bezier(0.34, 1.45, 0.64, 1) var(--d, 0s) infinite;
}
.mp-bar::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateX(-50%);
}
@keyframes mpBarWave {
  0%, 100% { transform: scaleY(0.28); opacity: 0.55; }
  35%, 62% { transform: scaleY(1); opacity: 1; }
}
/* 005 Mask reveal */
.mp-mask-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mp-mask-clip {
  overflow: hidden;
  height: 24px;
  display: flex;
  align-items: center;
}
.mp-mask-text {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  animation: mpMaskSlide 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.mp-mask-line {
  width: 82px;
  height: 2.5px;
  border-radius: 99px;
  background: #f87171;
  animation: mpMaskLine 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes mpMaskSlide {
  0%, 10% { transform: translateY(115%); opacity: 0; }
  30%, 76% { transform: translateY(0); opacity: 1; }
  92%, 100% { transform: translateY(-115%); opacity: 0; }
}
@keyframes mpMaskLine {
  0%, 8% { transform: scaleX(0); }
  26%, 78% { transform: scaleX(1); }
  94%, 100% { transform: scaleX(0); }
}
/* 006 Typewriter */
.mp-type-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 118px;
  height: 28px;
  padding: 0 5px 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 11px;
  font-weight: 600;
}
.mp-type-chars {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1.8px solid #f43f5e;
  width: 0;
  animation: mpTyping 2.8s steps(8, end) infinite, mpCaret 0.7s step-end infinite;
}
.mp-type-send {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c7d2fe;
  color: #4f46e5;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
@keyframes mpTyping {
  0%, 10% { width: 0; }
  48%, 78% { width: 68px; }
  94%, 100% { width: 0; }
}
@keyframes mpCaret {
  50% { border-color: transparent; }
}

/* Live Animated Cover: GSAP Interactive Mouse Follower Demo */
.live-gsap-stage {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 58%, rgba(10, 228, 72, 0.1), transparent 64%), #0e100f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.live-gsap-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px 66px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}
.live-gsap-tabs {
  display: flex;
  gap: 10px;
}
.live-gsap-tabs b {
  color: #0ae448;
  font-weight: 600;
}
.live-gsap-ai {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 9.5px;
  margin-right: 34px;
}
.live-gsap-canvas {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.live-gsap-trail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 76px;
  margin: -38px 0 0 -85px;
  opacity: 0.22;
  pointer-events: none;
}
.live-gsap-star {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  filter: drop-shadow(0 0 18px rgba(255, 136, 102, 0.65));
  will-change: transform;
  pointer-events: none;
}
.live-gsap-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  border: 1px dashed rgba(10, 228, 72, 0.45);
  will-change: transform;
  pointer-events: none;
}
.live-gsap-label {
  position: absolute;
  left: 14px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
}
.live-gsap-label span { color: #0ae448; }

/* Live Animated Cover: MotionSites UI prompt gallery */
.live-ms-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: #07060b;
  transition: transform 520ms var(--ease);
}
.site-card:hover .live-ms-wall { transform: scale(1.03); }
.live-ms-tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(150deg, #19122a, #0a0810 72%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-ms-tag {
  position: absolute;
  left: 7px;
  bottom: 5px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.ms-type { display: flex; gap: 2px; font-size: 17px; font-weight: 800; color: #fff; }
.ms-type span { animation: msType 2.4s ease-in-out infinite; }
.ms-type span:nth-child(2) { animation-delay: .08s; }
.ms-type span:nth-child(3) { animation-delay: .16s; }
.ms-type span:nth-child(4) { animation-delay: .24s; }
.ms-type span:nth-child(5) { animation-delay: .32s; }
.ms-type span:nth-child(6) { animation-delay: .4s; }
@keyframes msType {
  0%, 100% { transform: translateY(6px) rotateX(50deg); opacity: 0.25; }
  40%, 70% { transform: translateY(0) rotateX(0); opacity: 1; }
}
.ms-orbit { position: relative; width: 58px; height: 58px; }
.ms-orbit span {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(140deg, #f0abfc, #8b5cf6, #38bdf8) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: msSpin 4s linear infinite;
}
.ms-orbit span:nth-child(2) { inset: 12px; animation-direction: reverse; animation-duration: 3s; }
@keyframes msSpin { to { transform: rotate(360deg); } }
.ms-reveal { overflow: hidden; height: 26px; display: flex; align-items: center; }
.ms-reveal span {
  font-size: 13px;
  font-weight: 700;
  color: #e9d5ff;
  animation: msReveal 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes msReveal {
  0%, 10% { transform: translateY(120%); opacity: 0; }
  32%, 74% { transform: translateY(0); opacity: 1; }
  92%, 100% { transform: translateY(-120%); opacity: 0; }
}
.ms-grid {
  width: 84%;
  height: 72%;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.42) 1px, transparent 1px);
  background-size: 12px 12px;
  transform: perspective(120px) rotateX(48deg) scale(1.25);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 88%);
  mask-image: linear-gradient(to top, #000, transparent 88%);
  animation: msGrid 2.6s linear infinite;
}
@keyframes msGrid { to { background-position: 0 12px, 12px 0; } }

/* Live Animated Cover: Kittenjam Motion Library */
.live-kj-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: #faf7ef;
  transition: transform 520ms var(--ease);
}
.site-card:hover .live-kj-wall { transform: scale(1.03); }
.live-kj-tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(120, 80, 30, 0.1);
  background: #fffdf7;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 300px;
}
.live-kj-tag {
  position: absolute;
  left: 7px;
  bottom: 5px;
  font-size: 9px;
  color: rgba(80, 55, 25, 0.6);
  letter-spacing: 0.02em;
}
.kj-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #7c2d12;
  animation: kjBounce 2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}
@keyframes kjBounce {
  0%, 100% { transform: translateY(4px) scale(0.94); opacity: 0.65; }
  45% { transform: translateY(-9px) scale(1.06); opacity: 1; }
  70% { transform: translateY(2px) scale(0.98); }
}
.kj-button {
  width: 108px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #b45309, #f59e0b);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 16px -6px rgba(180, 83, 9, 0.6);
  animation: kjBtn 2.4s ease-in-out infinite;
}
@keyframes kjBtn {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 16px -6px rgba(180, 83, 9, 0.6); }
  50% { transform: scale(1.08) translateY(-2px); box-shadow: 0 12px 22px -6px rgba(180, 83, 9, 0.8); }
}
.kj-card {
  width: 70px;
  height: 46px;
  transform-style: preserve-3d;
  animation: kjFlip 3.2s ease-in-out infinite;
}
.kj-card-face {
  width: 100%;
  height: 100%;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff, #f4e8d2);
  border: 1px solid rgba(120, 80, 30, 0.18);
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(120, 80, 30, 0.16);
}
@keyframes kjFlip {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}
.kj-blob {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #fbbf24, #f97316, #ec4899);
  border-radius: 42% 58% 63% 37% / 52% 38% 62% 48%;
  box-shadow: 0 10px 24px -8px rgba(249, 115, 22, 0.7);
  animation: kjBlob 4s ease-in-out infinite;
}
@keyframes kjBlob {
  0%, 100% { border-radius: 42% 58% 63% 37% / 52% 38% 62% 48%; transform: rotate(0deg) scale(0.92); }
  50% { border-radius: 62% 38% 37% 63% / 38% 62% 48% 52%; transform: rotate(45deg) scale(1.06); }
}

/* Live Animated Cover: React Bits animated component gallery */
.live-rb-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.12), transparent 60%), #100d16;
  transition: transform 520ms var(--ease);
}
.site-card:hover .live-rb-wall { transform: scale(1.03); }
.live-rb-tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(150deg, #1c1728, #121018 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-rb-tag {
  position: absolute;
  left: 7px;
  bottom: 5px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.02em;
}
/* 001 Neon glyph */
.rb-glyph-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}
.rb-glyph {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.8));
  animation: rbGlyphPulse 2.8s ease-in-out infinite;
}
.rb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(236, 72, 153, 0.5);
  animation: rbSpin 8s linear infinite;
}
@keyframes rbGlyphPulse {
  0%, 100% { transform: scale(0.86) rotate(-8deg); opacity: 0.72; }
  50% { transform: scale(1.08) rotate(8deg); opacity: 1; }
}
@keyframes rbSpin { to { transform: rotate(360deg); } }
/* 002 Flux lines */
.rb-wave { width: 90%; height: 70%; opacity: 0.95; }
.rb-wave path {
  animation: rbFlow 2.6s linear infinite;
}
.rb-wave path:nth-child(2) { animation-duration: 3.4s; }
.rb-wave path:nth-child(3) { animation-duration: 4.2s; }
@keyframes rbFlow { to { stroke-dashoffset: -66; } }
/* 003 Mask reveal */
.rb-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.rb-reveal-clip {
  overflow: hidden;
  height: 26px;
  display: flex;
  align-items: center;
}
.rb-reveal-text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  animation: rbMaskSlide 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.rb-reveal-line {
  width: 78px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  animation: rbLineGrow 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes rbMaskSlide {
  0%, 10% { transform: translateY(115%); opacity: 0; }
  32%, 76% { transform: translateY(0); opacity: 1; }
  92%, 100% { transform: translateY(-115%); opacity: 0; }
}
@keyframes rbLineGrow {
  0%, 12%, 100% { transform: scaleX(0); }
  30%, 78% { transform: scaleX(1); }
}
/* 004 Typewriter */
.rb-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 124px;
  height: 29px;
  padding: 0 5px 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #18101f;
  font-size: 11px;
  font-weight: 650;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.28);
}
.rb-type {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1.8px solid #c026d3;
  width: 0;
  animation: rbTyping 3s steps(10, end) infinite, rbCaret 0.7s step-end infinite;
}
.rb-send {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ede9fe;
  color: #7c3aed;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  animation: rbSendBob 3s ease-in-out infinite;
}
@keyframes rbTyping {
  0%, 10% { width: 0; }
  48%, 80% { width: 72px; }
  95%, 100% { width: 0; }
}
@keyframes rbCaret { 50% { border-color: transparent; } }
@keyframes rbSendBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Live Animated Cover: Aceternity UI component gallery */
.live-ac-wall { position:absolute; inset:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:6px; padding:8px; background:#f4f6fb; transition:transform 520ms var(--ease); }
.site-card:hover .live-ac-wall { transform:scale(1.03); }
.live-ac-tile { position:relative; overflow:hidden; border-radius:10px; display:grid; place-items:center; border:1px solid rgba(15,23,42,.07); }
.ac-glass { background:radial-gradient(circle at 25% 25%,#38bdf8,transparent 55%),radial-gradient(circle at 75% 70%,#f97316,transparent 55%),#0f172a; }
.ac-glass b { position:relative; z-index:1; color:#fff; font-size:19px; font-weight:800; letter-spacing:-.04em; text-shadow:0 2px 12px rgba(0,0,0,.5); }
.ac-shine { position:absolute; inset:-50%; background:linear-gradient(100deg,transparent 40%,rgba(255,255,255,.35) 50%,transparent 60%); animation:acShine 3.4s linear infinite; }
@keyframes acShine { to { transform:translateX(55%); } }
.ac-cubes { grid-template-columns:repeat(3,14px); grid-template-rows:repeat(3,14px); gap:5px; align-content:center; justify-content:center; background:linear-gradient(160deg,#fff,#e2e8f0); }
.ac-cubes i { display:block; width:14px; height:14px; border-radius:3px; background:linear-gradient(135deg,#cbd5e1,#94a3b8); box-shadow:inset 1px 1px 0 rgba(255,255,255,.9); animation:acCube 2.8s ease-in-out infinite; }
.ac-cubes i:nth-child(2n) { animation-delay:.25s; }
.ac-cubes i:nth-child(3n) { animation-delay:.5s; }
@keyframes acCube { 0%,100%{ transform:translateY(0) rotate(0); opacity:.65;} 50%{ transform:translateY(-7px) rotate(12deg); opacity:1;} }
.ac-loader { background:#0b1220; }
.ac-scan { position:absolute; inset:0; background:linear-gradient(180deg,transparent 35%,rgba(56,189,248,.55) 50%,transparent 65%); animation:acScan 2.6s ease-in-out infinite; }
@keyframes acScan { 0%,100%{ transform:translateY(-100%);} 50%{ transform:translateY(100%);} }
.ac-dots { color:#7dd3fc; font-size:22px; letter-spacing:3px; animation:acPulse 1.8s ease-in-out infinite; }
@keyframes acPulse { 50%{ opacity:.35;} }
.ac-chroma { background:#f8fafc; }
.ac-orb { width:52px; height:52px; border-radius:18px; background:linear-gradient(135deg,#8b5cf6,#ec4899,#38bdf8); filter:drop-shadow(-5px 0 0 rgba(236,72,153,.55)) drop-shadow(5px 0 0 rgba(56,189,248,.55)); animation:acTilt 3.2s ease-in-out infinite; }
@keyframes acTilt { 0%,100%{ transform:perspective(120px) rotateY(-18deg);} 50%{ transform:perspective(120px) rotateY(18deg);} }

/* Live Animated Cover: Uiverse open-source UI elements */
.live-uv-wall { position:absolute; inset:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:6px; padding:8px; background:radial-gradient(circle at 70% 30%,rgba(99,102,241,.16),transparent 60%),#0a0a0f; transition:transform 520ms var(--ease); }
.site-card:hover .live-uv-wall { transform:scale(1.03); }
.live-uv-tile { position:relative; overflow:hidden; border-radius:10px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.06); background:linear-gradient(145deg,#1b1b25,#111118); }
.uv-button span { padding:9px 22px; border-radius:999px; font-size:12px; font-weight:700; color:#fff; background:linear-gradient(90deg,#f97316,#ec4899,#8b5cf6); background-size:200% 100%; box-shadow:0 0 20px rgba(236,72,153,.5); animation:uvGrad 2.8s linear infinite, uvGlow 2.8s ease-in-out infinite; }
@keyframes uvGrad { to { background-position:200% 0; } }
@keyframes uvGlow { 50%{ box-shadow:0 0 30px rgba(168,85,247,.8);} }
.uv-toggle { background:#e2e8f0; }
.uv-toggle::before { content:''; width:60px; height:30px; border-radius:999px; background:#334155; position:absolute; }
.uv-knob { position:relative; z-index:1; width:24px; height:24px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.35); transform:translateX(15px); animation:uvToggle 2.4s ease-in-out infinite; }
@keyframes uvToggle { 0%,45%{ transform:translateX(-15px); background:#fff;} 55%,100%{ transform:translateX(15px); background:#a5b4fc;} }
.uv-spinner span { width:34px; height:34px; border-radius:50%; border:3px solid rgba(129,140,248,.18); border-top-color:#818cf8; border-right-color:#f472b6; animation:uvSpin 1.2s linear infinite; }
@keyframes uvSpin { to { transform:rotate(360deg); } }
.uv-card { background:linear-gradient(150deg,#1e1b4b,#0f172a); }
.uv-blob { position:absolute; width:70px; height:70px; border-radius:30% 70% 60% 40%; background:linear-gradient(135deg,#6366f1,#22d3ee); filter:blur(12px); opacity:.55; animation:uvBlob 4s ease-in-out infinite; }
.uv-card b { position:relative; color:#fff; font-size:12px; letter-spacing:.04em; }
@keyframes uvBlob { 0%,100%{ transform:translate(-18px,-12px) rotate(0);} 50%{ transform:translate(18px,12px) rotate(180deg);} }

/* Generative High-Tech Cover Art (shown when cover URL is empty) */
.card-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 520ms var(--ease);
}
.site-card:hover .card-art {
  transform: scale(1.05);
}
.card-art-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}
.card-hud-emblem {
  position: relative;
  z-index: 2;
  min-width: 66px;
  height: 66px;
  padding: 0 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #ffffff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c1) 42%, rgba(255, 255, 255, 0.16)), color-mix(in srgb, var(--c2) 34%, rgba(10, 16, 34, 0.6)));
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow:
    0 12px 28px -8px color-mix(in srgb, var(--c1) 70%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 420ms var(--ease), box-shadow 420ms var(--ease);
}
.site-card:hover .card-hud-emblem {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 18px 36px -8px color-mix(in srgb, var(--c1) 90%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Floating corner pills on cover */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  color: #f4f9ff;
  background: rgba(6, 12, 26, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.card-launch {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(6, 12, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 280ms var(--ease), background 240ms ease, border-color 240ms ease;
}
.card-launch svg { width: 14px; height: 14px; }
.site-card:hover .card-launch {
  transform: translate(2px, -2px) scale(1.06);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border-color: transparent;
}

/* Compact Bottom Info Strip (Short Text Only) */
.card-body {
  padding: 15px 17px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-host {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.card-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.card-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: var(--cyan);
}
body[data-theme="light"] .card-tag {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.16);
  color: #2563eb;
}

/* ── Empty State & Footer ──────────────────────────────────── */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 54px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px dashed var(--border);
  text-align: center;
}
.empty-state.is-visible { display: flex; }
.empty-state p { margin: 0; color: var(--muted); font-size: 14px; }
.empty-reset {
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.page-footer {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.page-footer a:hover { color: var(--cyan); }

@media (max-width: 1120px) {
  .topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 10px;
  }
  .topbar-center {
    order: 3;
    flex: 1 0 100%;
  }
}
@media (max-width: 1024px) {
  .sites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .topbar-inner { padding: 10px 14px; }
  .stat-pill { display: none; }
  .page-wrap { padding: 24px 14px 52px; }
  .hero-icon { width: 44px; height: 44px; }
  .control-dock { max-width: 100%; }
  .cat-pill { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .dock-search-btn { width: 34px; height: 34px; }
  .sites-grid { grid-template-columns: 1fr; gap: 14px; }
  .site-card:hover { transform: none; }
  .page-footer { flex-direction: column; text-align: center; }
}

/* ── A+E 融合开场动效（逐字浮现 → 缓慢散去 → 新画面标题淡入 + 内容液态浮现） ── */
.ai-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    radial-gradient(50% 45% at 50% 46%, rgba(56, 189, 248, 0.2), transparent 72%),
    radial-gradient(45% 40% at 62% 56%, rgba(139, 92, 246, 0.16), transparent 70%),
    rgba(4, 7, 17, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
}
body[data-theme="light"] .ai-intro-overlay {
  background:
    radial-gradient(50% 45% at 50% 46%, rgba(90, 167, 255, 0.28), transparent 72%),
    radial-gradient(45% 40% at 62% 56%, rgba(167, 139, 250, 0.2), transparent 70%),
    rgba(240, 246, 255, 0.95);
}
body.ai-intro-active .ai-intro-overlay {
  opacity: 1;
  visibility: visible;
}
body.ai-intro-dispersing .ai-intro-overlay {
  opacity: 0;
}
body.ai-intro-done .ai-intro-overlay {
  opacity: 0;
  visibility: hidden;
  display: none;
}

.ai-intro-word {
  display: inline-flex;
  align-items: center;
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.05em;
}
.ai-intro-space { width: 0.22em; }
.ai-intro-char {
  display: inline-block;
  background-image: linear-gradient(125deg, #ffffff 10%, #93d5ff 55%, #b49cff 100%);
  background-size: 500% 100%;
  background-position: calc(var(--ci, 0) * 25%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  filter: drop-shadow(0 4px 20px rgba(56, 189, 248, 0.26));
}
body[data-theme="light"] .ai-intro-char {
  background-image: linear-gradient(125deg, #2f7ae0 0%, #5b78ee 52%, #8e74f2 100%);
  filter: drop-shadow(0 4px 16px rgba(74, 144, 226, 0.18));
}
@keyframes aiIntroCharIn {
  from { opacity: 0; transform: translateY(34px) scale(0.84); filter: blur(14px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes aiIntroCharOut {
  from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateY(-22px) scale(1.18); filter: blur(18px); }
}
body.ai-intro-active .ai-intro-char {
  animation: aiIntroCharIn 0.68s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--ci, 0) * 95ms) forwards;
}
body.ai-intro-dispersing .ai-intro-char {
  animation: aiIntroCharOut 0.68s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--ci, 0) * 55ms) forwards;
}

.ai-intro-sub {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.32em;
  color: rgba(186, 224, 255, 0.82);
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 540ms cubic-bezier(0.22, 1, 0.36, 1), transform 540ms cubic-bezier(0.22, 1, 0.36, 1), letter-spacing 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 540ms ease;
}
body[data-theme="light"] .ai-intro-sub { color: #3b5998; }
body.ai-intro-sub-in .ai-intro-sub {
  opacity: 0.9;
  transform: translateY(0);
  filter: blur(0);
}
body.ai-intro-dispersing .ai-intro-sub {
  opacity: 0;
  transform: translateY(-10px);
  letter-spacing: 0.56em;
  filter: blur(10px);
}

/* Hide real hero & content until new scene fades in cleanly */
body.ai-intro-active .ai-canopy {
  opacity: 0;
}
body.ai-intro-active .topbar {
  opacity: 0;
  transform: translateY(-10px);
}
body.ai-intro-active .hero-icon {
  animation: none;
  opacity: 0;
  transform: scale(0.72) rotate(-14deg) translateY(10px);
}
body.ai-intro-active .hero-char {
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  filter: blur(10px);
}
body.ai-intro-active .control-dock,
body.ai-intro-active .site-card.ai-intro-card {
  opacity: 0;
  transform: translateY(24px) scale(0.965);
}

body.ai-intro-reveal .ai-canopy {
  opacity: 1;
  transition: opacity 920ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
}
body.ai-intro-reveal .topbar {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 580ms cubic-bezier(0.16, 1, 0.3, 1), transform 580ms cubic-bezier(0.16, 1, 0.3, 1);
}
body.ai-intro-reveal .hero-icon {
  opacity: 1;
  transform: scale(1) rotate(0) translateY(0);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1) 80ms,
    transform 760ms cubic-bezier(0.34, 1.45, 0.64, 1) 80ms;
}
body.ai-intro-reveal .hero-char {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 640ms cubic-bezier(0.22, 1, 0.36, 1) calc(140ms + var(--hi, 0) * 145ms),
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1) calc(140ms + var(--hi, 0) * 145ms),
    filter 580ms cubic-bezier(0.22, 1, 0.36, 1) calc(140ms + var(--hi, 0) * 145ms);
}
body.ai-intro-reveal .control-dock {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1) 340ms, transform 600ms cubic-bezier(0.16, 1, 0.3, 1) 340ms;
}
body.ai-intro-reveal .site-card.ai-intro-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 640ms cubic-bezier(0.16, 1, 0.3, 1) calc(460ms + var(--card-i, 0) * 58ms),
    transform 640ms cubic-bezier(0.16, 1, 0.3, 1) calc(460ms + var(--card-i, 0) * 58ms),
    box-shadow 320ms var(--ease), border-color 240ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .ai-intro-overlay { display: none !important; }
  .hero-icon, .hero-char { animation: none !important; }
}
