:root {
  --bg: #070609;
  --panel: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff7fc;
  --muted: rgba(255, 247, 252, 0.62);
  --pink: #ff2fb8;
  --acid: #d7ff20;
  --cyan: #40e6ff;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 47, 184, 0.22), transparent 30rem),
    radial-gradient(circle at 80% 8%, rgba(215, 255, 32, 0.12), transparent 22rem),
    linear-gradient(145deg, #050505 0%, #140713 45%, #050506 100%);
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: repeating-radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.cursor-light {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 31rem;
  height: 31rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 57, 183, 0.22), transparent 64%);
  filter: blur(24px);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(246, 243, 238, 0.72);
  box-shadow: 0 0 18px rgba(220, 255, 49, 0.42);
  animation: particleFloat 8s linear infinite;
}

.cursor-particle {
  position: fixed;
  z-index: 4;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--acid);
  box-shadow:
    0 0 16px rgba(220, 255, 49, 0.72),
    0 0 28px rgba(255, 57, 183, 0.42);
  animation: cursorParticle 760ms ease-out forwards;
}

.click-spark {
  position: fixed;
  z-index: 18;
  pointer-events: none;
  border-radius: 999px;
  box-shadow:
    0 0 10px currentColor,
    0 0 22px rgba(255, 47, 184, 0.34);
  transform: translate3d(-50%, -50%, 0) scale(0.8);
  animation: sparkBurst 660ms cubic-bezier(0.18, 0.86, 0.24, 1) var(--delay, 0ms) forwards;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.detail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.detail-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.3));
}

.detail-header nav {
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.62);
}

.detail-header nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 700;
}

.detail-header nav a:hover {
  color: #111;
  background: var(--acid);
}

.ai-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 56px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  min-height: 760px;
  margin: 0 auto;
  padding: 70px 0 120px;
}

.eyebrow,
.section-title p,
.stage-head p,
.capability-section p {
  margin: 0 0 16px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(66px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-tags span,
.capability-section li {
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background:
    linear-gradient(110deg, rgba(255, 47, 184, 0.22), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 36px rgba(255, 47, 184, 0.08);
}

.hero-tags span {
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 800;
}

.hero-board {
  position: relative;
  min-height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 47, 184, 0.28), transparent 18rem),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 120px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.hero-board::before {
  content: "AI VISUAL ASSET LAB";
  position: absolute;
  left: 26px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.05);
  font-size: 88px;
  font-weight: 950;
  white-space: nowrap;
}

.poster-card {
  position: absolute;
  width: 190px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--r));
  transition: transform 280ms ease;
}

.poster-card:hover {
  transform: translateY(-10px) rotate(var(--r)) scale(1.03);
}

.card-a {
  --r: -8deg;
  left: 58px;
  top: 70px;
}

.card-b {
  --r: 5deg;
  right: 54px;
  top: 96px;
  width: 260px;
}

.card-c {
  --r: 7deg;
  left: 148px;
  bottom: 68px;
}

.card-d {
  --r: -4deg;
  right: 54px;
  bottom: 94px;
  width: 330px;
  aspect-ratio: 2.05 / 1;
}

.asset-counter {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  color: #09060a;
  background: var(--acid);
  box-shadow:
    0 0 0 10px rgba(215, 255, 32, 0.12),
    0 0 48px rgba(215, 255, 32, 0.32);
  transform: translate(-50%, -50%);
}

.asset-counter span,
.asset-counter small {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.asset-counter strong {
  margin: -12px 0;
  font-size: 56px;
  line-height: 1;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--max), calc(100% - 48px));
  margin: -54px auto 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.metric-strip article {
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  color: var(--pink);
  font-size: 42px;
  line-height: 1;
}

.metric-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section-block {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 40px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.05;
  white-space: nowrap;
}

.section-title span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.cover-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.cover-card {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.cover-card:nth-child(2n) {
  transform: translateY(34px);
}

.cover-card:nth-child(3n) {
  transform: translateY(-18px);
}

.cover-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  background: rgba(4, 3, 6, 0.88);
  transition: transform 360ms ease;
}

.cover-card:hover img {
  transform: scale(1.06);
}

.cover-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 70px 16px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
}

.cover-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.lab-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
}

.lab-tabs {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.lab-tabs button,
.sub-tabs span {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  font-weight: 900;
}

.lab-tabs button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  text-align: left;
}

.lab-tabs button span {
  color: var(--acid);
}

.lab-tabs button.is-active {
  color: #111;
  background: var(--pink);
  border-color: var(--pink);
}

.lab-stage {
  min-height: 620px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 47, 184, 0.18), transparent 22rem),
    rgba(255, 255, 255, 0.055);
}

.stage-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.stage-head h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
}

.stage-head span {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.7;
}

.sub-tabs {
  margin-bottom: 20px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-group[hidden] {
  display: none;
}

.sub-tabs span {
  display: inline-flex;
  padding: 10px 14px;
  user-select: none;
}

.asset-grid {
  position: relative;
  overflow: hidden;
  padding: 10px 0 18px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.asset-tile {
  position: relative;
  flex: 0 0 var(--tile-width, 250px);
  height: 316px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 47, 184, 0.14), transparent 12rem),
    rgba(255, 255, 255, 0.04);
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.asset-track {
  display: flex;
  width: max-content;
  gap: 14px;
  will-change: transform;
}

.asset-tile img {
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 300ms ease;
}

.asset-tile:hover {
  z-index: 2;
  border-color: rgba(255, 47, 184, 0.48);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(255, 47, 184, 0.15);
  transform: translateY(-8px) scale(1.055);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 34px;
  border: 0;
  background: rgba(3, 2, 5, 0.82);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 1280px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

.lightbox button {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.capability-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 48px;
  align-items: center;
  width: min(var(--max), calc(100% - 48px));
  margin: 40px auto 120px;
  padding: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(255, 47, 184, 0.18), transparent),
    rgba(255, 255, 255, 0.055);
}

.capability-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.18;
}

.capability-section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-section li {
  padding: 13px 18px;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes particleFloat {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.7);
  }

  18%,
  78% {
    opacity: 0.72;
  }

  to {
    opacity: 0;
    transform: translate3d(24px, -72px, 0) scale(1);
  }
}

@keyframes cursorParticle {
  from {
    opacity: 0.9;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--dx)), calc(-50% + var(--dy)), 0) scale(0.2);
  }
}

@keyframes sparkBurst {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.4);
  }

  16% {
    opacity: 1;
    transform: translate3d(calc(-50% + var(--sx) * 0.32), calc(-50% + var(--sy) * 0.32), 0) scale(1.18);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--sx)), calc(-50% + var(--sy)), 0) scale(0.18);
  }
}

@media (max-width: 980px) {
  .ai-hero,
  .section-title,
  .lab-layout,
  .capability-section {
    grid-template-columns: 1fr;
  }

  .hero-board {
    min-height: 560px;
  }

  .metric-strip,
  .cover-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-tabs {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .lab-tabs button {
    display: grid;
    gap: 6px;
  }

  .asset-tile {
    height: 286px;
  }
}

@media (max-width: 620px) {
  .detail-header {
    width: calc(100% - 28px);
  }

  .detail-header nav {
    display: none;
  }

  .ai-hero,
  .section-block,
  .metric-strip,
  .capability-section {
    width: calc(100% - 28px);
  }

  .ai-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero-copy h1 {
    font-size: 58px;
  }

  .hero-board {
    min-height: 480px;
  }

  .poster-card {
    width: 150px;
  }

  .card-b {
    width: 190px;
  }

  .card-d {
    right: 24px;
    bottom: 92px;
    width: 238px;
  }

  .asset-counter {
    width: 138px;
    height: 138px;
  }

  .metric-strip,
  .cover-wall {
    grid-template-columns: 1fr;
  }

  .cover-card:nth-child(n) {
    transform: none;
  }

  .section-title h2 {
    white-space: normal;
  }

  .lab-tabs {
    grid-template-columns: 1fr;
  }

  .asset-tile {
    height: 250px;
  }

  .capability-section {
    padding: 28px;
  }
}
