/**
 * Tenths — NSA CNSA 2.0 Post-Quantum Shield Interactive Component
 * Matches Tenths dark-navy glassmorphism, emerald timer glow, and electric blue accents.
 */

/* Ensure encryption hero stacks cleanly across all localized templates */
.hero.encryption-hero {
  flex-direction: column;
  justify-content: flex-start;
}

/* =========================================
 * ANNOUNCEMENT PILL (Hero Top Bar)
 * ========================================= */

.cnsa-hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 100%;
  padding: 7px 16px 7px 11px;
  margin-bottom: var(--space-6);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(13, 37, 63, 0.92) 0%, rgba(10, 44, 196, 0.24) 55%, rgba(56, 240, 150, 0.14) 100%);
  border: 1px solid rgba(57, 208, 198, 0.36);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    0 6px 24px rgba(3, 15, 37, 0.48),
    0 0 24px rgba(57, 208, 198, 0.16);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  transition: transform 160ms var(--ease-out), border-color 160ms ease, box-shadow 160ms ease;
}

.cnsa-hero-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 240, 150, 0.62);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    0 10px 28px rgba(3, 15, 37, 0.56),
    0 0 32px rgba(56, 240, 150, 0.24);
  color: var(--color-white);
}

.cnsa-hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38F096;
  box-shadow: 0 0 10px rgba(56, 240, 150, 0.9);
  flex-shrink: 0;
  animation: cnsaPulseDot 2.2s ease-in-out infinite;
}

.cnsa-hero-pill-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64DFD6;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(57, 208, 198, 0.14);
  border: 1px solid rgba(57, 208, 198, 0.28);
}

.cnsa-hero-pill-arrow {
  color: #38F096;
  font-weight: 600;
  transition: transform 160ms ease;
}

.cnsa-hero-pill:hover .cnsa-hero-pill-arrow {
  transform: translateX(3px);
}

@keyframes cnsaPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* =========================================
 * FULL INTERACTIVE QUANTUM SHIELD STAGE
 * ========================================= */

.qshield-stage {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin: var(--space-8) auto 0;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 60% at 24% 38%, rgba(34, 59, 220, 0.20) 0%, transparent 65%),
    radial-gradient(ellipse 60% 55% at 78% 72%, rgba(56, 240, 150, 0.11) 0%, transparent 65%),
    linear-gradient(155deg, rgba(16, 36, 66, 0.92) 0%, rgba(5, 16, 36, 0.96) 100%);
  border: 1px solid rgba(149, 247, 250, 0.18);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    0 24px 64px rgba(2, 10, 24, 0.58),
    0 0 48px rgba(34, 59, 220, 0.14);
  overflow: hidden;
  text-align: left;
}

.qshield-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 15, 37, 0.42);
}

.qshield-advisory {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #FDBA35;
}

.qshield-advisory-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FDBA35;
  box-shadow: 0 0 10px rgba(253, 186, 53, 0.85);
}

.qshield-stage[data-phase="1"] .qshield-advisory-dot {
  background: #39D0C6;
  box-shadow: 0 0 10px rgba(57, 208, 198, 0.85);
}

.qshield-stage[data-phase="2"] .qshield-advisory-dot,
.qshield-stage[data-phase="3"] .qshield-advisory-dot {
  background: #38F096;
  box-shadow: 0 0 10px rgba(56, 240, 150, 0.9);
}

.qshield-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qshield-level-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: #38F096;
  background: rgba(56, 240, 150, 0.12);
  border: 1px solid rgba(56, 240, 150, 0.32);
}

.qshield-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #D7E4F5;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.qshield-play-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.qshield-grid {
  display: grid;
  grid-template-columns: minmax(290px, 430px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

/* Canvas Viewport */
.qshield-visual-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(circle at 50% 48%, rgba(13, 37, 63, 0.65) 0%, rgba(3, 15, 37, 0.35) 75%);
}

.qshield-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 372px;
  aspect-ratio: 1 / 1;
}

.qshield-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.qshield-canvas-caption {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qshield-status-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E7F2FF;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.qshield-stage[data-phase="0"] .qshield-status-chip {
  color: #FDBA35;
  border-color: rgba(253, 186, 53, 0.36);
  background: rgba(253, 186, 53, 0.10);
}

.qshield-stage[data-phase="1"] .qshield-status-chip {
  color: #64DFD6;
  border-color: rgba(57, 208, 198, 0.38);
  background: rgba(57, 208, 198, 0.11);
}

.qshield-stage[data-phase="2"] .qshield-status-chip,
.qshield-stage[data-phase="3"] .qshield-status-chip {
  color: #38F096;
  border-color: rgba(56, 240, 150, 0.4);
  background: rgba(56, 240, 150, 0.12);
}

/* Storyboard & Spec Pane */
.qshield-story-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 26px;
  gap: 18px;
}

.qshield-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.qshield-step-btn {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  color: var(--color-off-white);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background 180ms ease, border-color 180ms ease, transform 160ms ease;
}

.qshield-step-btn:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(149, 247, 250, 0.22);
}

.qshield-step-btn[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(88, 151, 228, 0.16) 0%, rgba(56, 240, 150, 0.09) 100%);
  border-color: rgba(57, 208, 198, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.qshield-step-btn[data-step="0"][aria-selected="true"] {
  background: linear-gradient(135deg, rgba(254, 155, 20, 0.16) 0%, rgba(253, 186, 53, 0.06) 100%);
  border-color: rgba(253, 186, 53, 0.42);
}

.qshield-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  color: #9FB4D1;
  margin-top: 1px;
}

.qshield-step-btn[aria-selected="true"] .qshield-step-num {
  background: rgba(56, 240, 150, 0.2);
  color: #38F096;
}

.qshield-step-btn[data-step="0"][aria-selected="true"] .qshield-step-num {
  background: rgba(253, 186, 53, 0.22);
  color: #FDBA35;
}

.qshield-step-btn[data-step="1"][aria-selected="true"] .qshield-step-num {
  background: rgba(57, 208, 198, 0.22);
  color: #64DFD6;
}

.qshield-step-copy {
  flex: 1;
  min-width: 0;
}

.qshield-step-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.qshield-step-title {
  font-size: 14.5px;
  font-weight: 650;
  color: #FFFFFF;
  line-height: 1.3;
}

.qshield-step-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8BA3C7;
}

.qshield-step-btn[aria-selected="true"] .qshield-step-code {
  color: #64DFD6;
}

.qshield-step-btn[data-step="0"][aria-selected="true"] .qshield-step-code {
  color: #FDBA35;
}

.qshield-step-desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.48;
  color: #B4C5DC;
}

.qshield-step-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #5897E4, #39D0C6, #38F096);
  opacity: 0;
  transition: opacity 150ms ease;
}

.qshield-step-btn[data-step="0"] .qshield-step-progress {
  background: linear-gradient(90deg, #FE9B14, #FDBA35);
}

.qshield-step-btn[aria-selected="true"] .qshield-step-progress {
  opacity: 1;
}

/* Cipher Transition Matrix */
.qshield-matrix {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 15, 37, 0.56);
  padding: 12px 14px;
}

.qshield-matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7F96B8;
}

.qshield-matrix-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.qshield-matrix-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.qshield-matrix-label {
  font-size: 10.5px;
  color: #8BA3C7;
  font-weight: 500;
}

.qshield-matrix-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.qshield-old {
  color: rgba(253, 186, 53, 0.72);
  text-decoration: line-through;
  text-decoration-color: rgba(254, 155, 20, 0.8);
}

.qshield-arrow {
  color: #6B82A6;
}

.qshield-new {
  color: #38F096;
  font-weight: 600;
}

/* =========================================
 * COMPACT BANNER MODE (Features / Landing / Use-Cases)
 * ========================================= */

.qshield-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 55% 110% at 12% 50%, rgba(56, 240, 150, 0.14) 0%, transparent 65%),
    linear-gradient(135deg, rgba(16, 36, 66, 0.90) 0%, rgba(5, 16, 36, 0.94) 100%);
  border: 1px solid rgba(57, 208, 198, 0.30);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 14px 36px rgba(2, 10, 24, 0.45);
  text-align: left;
  margin: var(--space-8) auto;
  max-width: 980px;
}

.qshield-banner-visual {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
}

.qshield-banner-body {
  flex: 1;
  min-width: 0;
}

.qshield-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #FDBA35;
  margin-bottom: 5px;
}

.qshield-banner h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.qshield-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: #BFD0E6;
  margin: 0 0 12px;
}

.qshield-banner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qshield-banner-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  color: #64DFD6;
  background: rgba(57, 208, 198, 0.11);
  border: 1px solid rgba(57, 208, 198, 0.25);
}

.qshield-banner-cta {
  flex-shrink: 0;
}

/* =========================================
 * RESPONSIVE
 * ========================================= */

@media (max-width: 900px) {
  .qshield-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .qshield-visual-pane {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 14px 16px;
    min-width: 0;
  }

  .qshield-canvas-wrap {
    max-width: min(290px, 100%);
  }

  .qshield-story-pane {
    padding: 16px 14px 18px;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .cnsa-hero-pill {
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .qshield-topbar {
    padding: 12px 14px;
  }

  .qshield-advisory {
    font-size: 10.5px;
    line-height: 1.35;
  }

  .qshield-step-btn {
    padding: 11px 12px;
    gap: 10px;
  }

  .qshield-step-title {
    font-size: 13.5px;
  }

  .qshield-step-desc {
    font-size: 12.5px;
  }

  .qshield-status-chip {
    font-size: 10.5px;
    text-align: center;
  }

  .qshield-matrix-rows {
    grid-template-columns: 1fr;
  }

  .qshield-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 14px;
  }

  .qshield-banner-visual {
    width: 72px;
    height: 72px;
  }

  .qshield-banner-cta {
    width: 100%;
  }

  .qshield-banner-cta .btn {
    width: 100%;
  }
}
