/* Movable AI / Stack / Technical desk — unique ASKQA signature */

.stack-desk {
  position: relative;
  min-height: 100vh;
  padding: 110px 24px 80px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(212, 168, 75, 0.08), transparent 50%),
    #07090f;
  overflow: hidden;
  touch-action: none;
}

.stack-desk::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.stack-intro {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
  color: #e8eef7;
}

.stack-intro .eyebrow {
  font-family: "Outfit", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 14px;
}

.stack-intro h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.stack-intro p {
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  color: #9aa3b2;
  font-size: 1rem;
  line-height: 1.65;
}

.stack-tools {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stack-tools button {
  font-family: "Outfit", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cfe8f8;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.25);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.stack-tools button:hover {
  border-color: #7dd3fc;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.stack-stage {
  position: relative;
  z-index: 3;
  width: min(1100px, 100%);
  height: min(72vh, 640px);
  margin: 0 auto;
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(15, 20, 32, 0.9), rgba(8, 10, 16, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.stack-stage-label {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-family: "Outfit", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(157, 176, 198, 0.55);
  pointer-events: none;
  z-index: 1;
}

.panel-card {
  position: absolute;
  width: min(280px, 78vw);
  min-height: 168px;
  padding: 20px 20px 18px;
  border-radius: 16px;
  color: #f2f6fb;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background:
    linear-gradient(145deg, rgba(28, 38, 58, 0.92), rgba(12, 16, 26, 0.88));
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg));
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: left, top, transform;
}

.panel-card:active,
.panel-card.is-dragging {
  cursor: grabbing;
  border-color: rgba(125, 211, 252, 0.7);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(125, 211, 252, 0.25),
    0 0 40px rgba(56, 189, 248, 0.18);
  z-index: 50 !important;
}

.panel-card .panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-card .tag {
  font-family: "Outfit", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.panel-card .dots {
  display: flex;
  gap: 5px;
}

.panel-card .dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(125, 211, 252, 0.35);
}

.panel-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.panel-card p {
  font-family: "Outfit", sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.5;
  color: #a8b3c4;
  margin: 0;
}

.panel-card .meter {
  margin-top: 16px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.panel-card .meter > i {
  display: block;
  height: 100%;
  width: var(--fill, 60%);
  background: linear-gradient(90deg, #38bdf8, #d4a84b);
  border-radius: 99px;
}

.panel-card[data-kind="ai"] {
  --accent: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.panel-card[data-kind="stack"] {
  --accent: #d4a84b;
  border-color: rgba(212, 168, 75, 0.4);
}

.panel-card[data-kind="tech"] {
  --accent: #a78bfa;
  border-color: rgba(167, 139, 250, 0.4);
}

.panel-card[data-kind="signal"] {
  --accent: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

.panel-card[data-kind="edge"] {
  --accent: #fb7185;
  border-color: rgba(251, 113, 133, 0.35);
}

@media (max-width: 720px) {
  .stack-stage {
    height: 78vh;
  }
  .panel-card {
    width: min(240px, 72vw);
    min-height: 150px;
  }
}
