/* ── Deploy Battle Agent Section ─────────────────────────────────────────── */
.deploy-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 64px 180px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 15, 28, 0.92) 10%
  );
  z-index: 10;
}
.deploy-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(8rem, 20vw, 18rem);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.022);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* ── Corners ── */
.deploy-corner {
  position: absolute;
  z-index: 2;
}
.deploy-corner--tl {
  top: 64px;
  left: 64px;
  max-width: 440px;
}
.deploy-corner--tr {
  top: 64px;
  right: 64px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.deploy-corner--bl {
  bottom: 44px;
  left: 64px;
  max-width: 360px;
}
.deploy-corner--br {
  bottom: 44px;
  right: 64px;
}

/* ── Decorative glyphs (top-right) ── */
.deploy-glyph {
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: rgba(148, 163, 184, 0.2);
  line-height: 1;
  display: block;
}

/* ── Heading ── */
.deploy-label {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-blue);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.deploy-heading {
  font-size: clamp(3.4rem, 5.5vw, 5.5rem);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
}

/* ── Text Cycle: motion-lab slot-machine (vanilla) ── */
.text-cycle {
  display: flex;
  overflow: hidden;
  height: 1em;
}
.char-slot {
  overflow: hidden;
  height: 1em;
  display: inline-block;
}
.char-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 0.52s cubic-bezier(0.76, 0, 0.24, 1);
}
.char-track.is-cycling {
  transform: translateY(-50%);
}
.char-item {
  flex-shrink: 0;
  height: 1em;
  line-height: 1;
  white-space: pre;
  display: block;
}
.deploy-heading-fixed {
  background: linear-gradient(135deg, var(--color-blue), var(--color-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* ── Description (bottom-left) ── */
.deploy-sub {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 340px;
}

/* ── Center: Hero Card Cluster ── */
.deploy-center {
  position: relative;
  z-index: 2;
  width: 720px;
  height: 520px;
  flex-shrink: 0;
}

/* ── Agent Cards ── */
.agent-card {
  background: rgba(20, 27, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(168, 85, 247, 0.04);
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.5s,
    border-color 0.5s;
}
.agent-card--back {
  position: absolute;
  width: 245px;
  left: 0;
  bottom: 0;
  transform: rotate(-9deg);
  transform-origin: bottom center;
  z-index: 1;
}
.agent-card--hero {
  position: absolute;
  width: 300px;
  left: 210px;
  bottom: 0;
  transform: rotate(0deg);
  transform-origin: bottom center;
  z-index: 3;
}
.agent-card--side {
  position: absolute;
  width: 245px;
  left: 470px;
  bottom: 0;
  transform: rotate(9deg);
  transform-origin: bottom center;
  z-index: 2;
}
.agent-card--back:hover {
  transform: rotate(-9deg) translateY(-14px) !important;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(168, 85, 247, 0.15);
}
.agent-card--hero:hover {
  transform: translateY(-14px) !important;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(168, 85, 247, 0.15);
}
.agent-card--side:hover {
  transform: rotate(9deg) translateY(-14px) !important;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(168, 85, 247, 0.15);
}
.agent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.agent-card-header .status-badge {
  margin-bottom: 0;
  font-size: 0.58rem;
  padding: 4px 10px;
}
.agent-card-title {
  font-size: 0.64rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text);
  text-transform: uppercase;
}
.agent-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.agent-stat {
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.agent-stat:last-child {
  border-right: none;
}
.agent-stat-label {
  font-size: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.agent-stat-value {
  font-size: 1.05rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
}
.agent-stat:first-child .agent-stat-value {
  background: linear-gradient(135deg, var(--color-blue), var(--color-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.agent-card-bar {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.agent-card-avatar {
  padding: 32px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agent-card-avatar img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

/* ── Deploy Section — Responsive ── */
@media (max-width: 1024px) {
  .deploy-corner--tl {
    max-width: 320px;
  }
  .deploy-heading {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
  }
}
@media (max-width: 900px) {
  .deploy-section {
    padding: 60px 24px 80px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
  }
  .deploy-corner {
    position: static;
    max-width: 100%;
  }
  .deploy-corner--tr {
    display: none;
  }
  .deploy-center {
    width: 100%;
    max-width: 480px;
    height: 400px;
    margin: 0 auto;
    position: relative;
  }
  .agent-card--back {
    width: 180px;
    left: 0;
  }
  .agent-card--hero {
    width: 220px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
  }
  .agent-card--side {
    width: 180px;
    right: 0;
    left: auto;
  }
  .deploy-sub {
    font-size: 0.85rem;
  }
  .buttons {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .deploy-section {
    padding: 48px 16px 60px;
    gap: 28px;
  }

  .deploy-heading {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .deploy-label {
    font-size: 0.65rem;
    margin-bottom: 12px;
  }

  .deploy-corner--tl {
    max-width: 100%;
  }

  .deploy-center {
    height: 280px;
    max-width: 100%;
    overflow: visible;
  }

  .agent-card--back {
    width: 120px;
    left: 0;
    transform: rotate(-7deg);
  }

  .agent-card--hero {
    width: 155px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
  }

  .agent-card--side {
    width: 120px;
    right: 0;
    left: auto;
    transform: rotate(7deg);
  }

  .agent-card-avatar {
    padding: 16px 14px 12px;
  }

  .agent-card-avatar img {
    width: 80px;
    height: 80px;
  }

  .agent-card-header {
    padding: 10px 12px;
  }

  .agent-card-title {
    font-size: 0.52rem;
  }

  .agent-card-header .status-badge {
    font-size: 0.45rem;
    padding: 3px 6px;
  }

  .agent-stat {
    padding: 10px 6px;
  }

  .agent-stat-label {
    font-size: 0.42rem;
  }

  .agent-stat-value {
    font-size: 0.82rem;
  }

  .agent-card-bar {
    padding: 10px 12px 12px;
  }

  .deploy-sub {
    font-size: 0.78rem;
  }

  .deploy-corner--bl {
    max-width: 100%;
  }

  .deploy-corner--br {
    width: 100%;
  }

  .deploy-corner--br .buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .deploy-corner--br .glass-button {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
  }
}
