/* =========================================================
   Learning Rewired Lab
   COSMOS Mission 02 — Systems Scan
   File: /assets/css/cosmos-systems-scan.css
   ========================================================= */

.systems-scan-page {
  --systems-cyan: #66e3ff;
  --systems-blue: #6aa8ff;
  --systems-mint: #b9ff7a;
  --systems-gold: #ffd36a;
  --systems-pink: #ff6ad5;
  --systems-ink: #06111f;
}

.systems-scan-hero .cosmos-mission-starfield {
  opacity: 0.94;
}

.systems-scan-console {
  position: relative;
  padding: clamp(54px, 8vw, 92px) 0;
}

.systems-scan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: stretch;
  margin-top: 28px;
}

/* =========================================================
   Radar Panel
   ========================================================= */

.systems-radar-panel {
  position: relative;
  min-height: clamp(520px, 55vw, 680px);
  border: 1px solid rgba(102, 227, 255, 0.2);
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 50%, rgba(102, 227, 255, 0.16), transparent 16%),
    radial-gradient(circle at 20% 16%, rgba(185, 255, 122, 0.08), transparent 26%),
    radial-gradient(circle at 80% 84%, rgba(255, 106, 213, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(8, 17, 34, 0.92), rgba(16, 30, 54, 0.74));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.systems-radar-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.34;
  pointer-events: none;
}

.systems-radar-panel::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(102, 227, 255, 0.08) 29%, transparent 30%),
    radial-gradient(circle at 50% 50%, transparent 0 46%, rgba(102, 227, 255, 0.08) 47%, transparent 48%),
    radial-gradient(circle at 50% 50%, transparent 0 64%, rgba(102, 227, 255, 0.07) 65%, transparent 66%);
  opacity: 0.7;
  pointer-events: none;
}

.systems-radar-core {
  position: absolute;
  inset: 12%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.systems-radar-ring {
  position: absolute;
  border: 1px solid rgba(102, 227, 255, 0.18);
  border-radius: 999px;
}

.systems-radar-ring.ring-one {
  width: 28%;
  aspect-ratio: 1;
}

.systems-radar-ring.ring-two {
  width: 52%;
  aspect-ratio: 1;
}

.systems-radar-ring.ring-three {
  width: 76%;
  aspect-ratio: 1;
}

.systems-radar-center {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--systems-cyan);
  box-shadow:
    0 0 24px rgba(102, 227, 255, 0.8),
    0 0 80px rgba(102, 227, 255, 0.38);
}

.systems-radar-sweep {
  position: absolute;
  width: 42%;
  height: 2px;
  left: 50%;
  top: 50%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(102, 227, 255, 0.92), transparent);
  animation: systemsRadarSweep 5.4s linear infinite;
}

@keyframes systemsRadarSweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   Hotspots
   ========================================================= */

.systems-hotspot {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(102, 227, 255, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(15, 29, 52, 0.96), rgba(25, 42, 70, 0.86));
  color: #f8fbff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.24),
    0 0 0 0 rgba(102, 227, 255, 0.3);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.systems-hotspot:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 227, 255, 0.78);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 38px rgba(102, 227, 255, 0.16);
}

.systems-hotspot.is-scanned {
  border-color: rgba(185, 255, 122, 0.58);
  background:
    linear-gradient(135deg, rgba(32, 54, 52, 0.96), rgba(26, 48, 38, 0.88));
}

.systems-hotspot.is-scanned::after {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(185, 255, 122, 0.18);
  color: var(--systems-mint);
  font-size: 0.72rem;
}

.systems-hotspot.manager {
  left: 10%;
  top: 16%;
}

.systems-hotspot.workflow {
  right: 9%;
  top: 20%;
}

.systems-hotspot.criteria {
  left: 14%;
  top: 48%;
}

.systems-hotspot.practice {
  right: 12%;
  top: 50%;
}

.systems-hotspot.feedback {
  left: 30%;
  bottom: 13%;
}

.systems-hotspot.incentives {
  right: 28%;
  bottom: 16%;
}

.systems-hotspot.pig {
  left: 50%;
  top: 38%;
  transform: translateX(-50%);
  border-color: rgba(255, 106, 213, 0.42);
}

.systems-hotspot.pig:hover {
  transform: translateX(-50%) translateY(-2px);
  border-color: rgba(255, 106, 213, 0.82);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 42px rgba(255, 106, 213, 0.18);
}

/* =========================================================
   Output Panel
   ========================================================= */

.systems-scan-output {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 0%, rgba(102, 227, 255, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(14, 24, 43, 0.88), rgba(18, 30, 52, 0.72));
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.systems-scan-output-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.systems-scan-output-header p {
  margin: 0;
  color: #ffd36a;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.systems-scan-output-header span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(185, 255, 122, 0.32);
  border-radius: 999px;
  color: var(--systems-mint);
  background: rgba(185, 255, 122, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.systems-scan-output h3 {
  margin: 0 0 14px;
  color: #f8fbff;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.systems-scan-output p {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 1rem;
  line-height: 1.66;
}

.systems-scan-output ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.systems-scan-output li {
  position: relative;
  padding-left: 22px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.94rem;
  line-height: 1.45;
}

.systems-scan-output li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--systems-cyan);
}

/* =========================================================
   Decision Section
   ========================================================= */

.systems-decision-section {
  padding: clamp(54px, 8vw, 92px) 0;
}

.systems-decision-card {
  display: grid;
  gap: 28px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(102, 227, 255, 0.2);
  border-radius: 36px;
  background:
    radial-gradient(circle at 10% 0%, rgba(102, 227, 255, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(10, 20, 38, 0.9), rgba(20, 32, 55, 0.76));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.systems-decision-card > div:first-child h2 {
  max-width: 880px;
  margin: 0 0 12px;
  color: #f8fbff;
  font-size: clamp(2rem, 4vw, 3.85rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.systems-decision-card > div:first-child p {
  max-width: 820px;
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.66;
}

.systems-decision-form {
  display: grid;
  gap: 18px;
}

.systems-question-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
}

.systems-feedback-console {
  margin-top: 0;
}

.systems-clearance-panel[hidden] {
  display: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .systems-scan-grid {
    grid-template-columns: 1fr;
  }

  .systems-radar-panel {
    min-height: 580px;
  }
}

@media (max-width: 720px) {
  .systems-radar-panel {
    min-height: 660px;
  }

  .systems-hotspot {
    width: calc(50% - 26px);
    min-height: 42px;
    padding-inline: 10px;
    font-size: 0.74rem;
    text-align: center;
  }

  .systems-hotspot.manager {
    left: 18px;
    top: 18px;
  }

  .systems-hotspot.workflow {
    right: 18px;
    top: 82px;
  }

  .systems-hotspot.criteria {
    left: 18px;
    top: 158px;
  }

  .systems-hotspot.practice {
    right: 18px;
    top: 232px;
  }

  .systems-hotspot.feedback {
    left: 18px;
    bottom: 138px;
  }

  .systems-hotspot.incentives {
    right: 18px;
    bottom: 78px;
  }

  .systems-hotspot.pig {
    left: 50%;
    top: auto;
    bottom: 18px;
    width: calc(100% - 36px);
  }
}
