/* ==========================================================================
   MANIFESTO / OPERATOR BRIEFING MODAL & HERO BUTTON
   Private Solution — High-Prestige Gatekeeper Component
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO BUTTON (.btn-manifesto-hero)
   -------------------------------------------------------------------------- */
.btn-manifesto-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(26, 22, 14, 0.85) 0%, rgba(16, 14, 10, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fef3c7;
  text-decoration: none;
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, 'Inter', 'Outfit', sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(245, 158, 11, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Subtle amber radar pulse glow behind the hero button */
.btn-manifesto-hero::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.25), transparent 70%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-manifesto-hero:hover {
  transform: translateY(-1.5px);
  background: linear-gradient(180deg, rgba(34, 28, 16, 0.95) 0%, rgba(22, 18, 12, 1) 100%);
  border-color: rgba(251, 191, 36, 0.75);
  color: #ffffff;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(245, 158, 11, 0.28),
    0 0 0 1px rgba(245, 158, 11, 0.3);
}

.btn-manifesto-hero:hover::before {
  opacity: 1;
}

.btn-manifesto-hero:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 4px 14px rgba(245, 158, 11, 0.2);
}

/* Warning badge icon & beacon inside hero button */
.btn-manifesto-hero .manifesto-hero-beacon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.btn-manifesto-hero .manifesto-hero-beacon .pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.4);
  animation: manifestoBeaconPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.btn-manifesto-hero .manifesto-hero-beacon svg {
  position: relative;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fbbf24;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.6));
}

@keyframes manifestoBeaconPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  70% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   2. MODAL OVERLAY & BACKDROP
   -------------------------------------------------------------------------- */
.manifesto-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.manifesto-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   3. MODAL CARD CONTAINER
   -------------------------------------------------------------------------- */
.manifesto-modal-card {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(14, 19, 30, 0.96) 0%, rgba(9, 13, 21, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 20px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 60px -12px rgba(0, 0, 0, 0.85),
    0 0 50px -10px rgba(245, 158, 11, 0.12),
    0 0 80px -20px rgba(16, 185, 129, 0.08);
  color: #f8fafc;
  box-sizing: border-box;
  transform: scale(0.95) translateY(12px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.manifesto-modal-overlay.is-open .manifesto-modal-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Top Glow Edge Line */
.manifesto-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(245, 158, 11, 0.6) 30%, 
    rgba(16, 185, 129, 0.8) 50%, 
    rgba(245, 158, 11, 0.6) 70%, 
    transparent 100%
  );
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
  pointer-events: none;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   4. MODAL HEADER & GATEKEEPER BANNER
   -------------------------------------------------------------------------- */
.manifesto-modal-header {
  position: relative;
  padding: 28px 32px 20px;
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.6) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.manifesto-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

/* Warning Pill Badge */
.manifesto-warning-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 0 16px -2px rgba(245, 158, 11, 0.2);
}

.manifesto-warning-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: manifestoDotPulse 1.5s ease-in-out infinite alternate;
}

@keyframes manifestoDotPulse {
  from { opacity: 0.5; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.2); }
}

/* Close Button */
.manifesto-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.manifesto-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: rotate(90deg);
}

/* Modal Title */
.manifesto-modal-title {
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, 'Outfit', 'Inter', sans-serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 8px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 40%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manifesto-modal-title .highlight-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.manifesto-modal-subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   5. MODAL BODY & Q&A CARDS GRID (SCROLLABLE)
   -------------------------------------------------------------------------- */
.manifesto-modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Custom Webkit Scrollbar */
.manifesto-modal-body::-webkit-scrollbar {
  width: 6px;
}

.manifesto-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.manifesto-modal-body::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.25);
  border-radius: 4px;
}

.manifesto-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.45);
}

/* 8-Card Grid Layout */
.manifesto-qa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* Individual Q&A Card */
.manifesto-qa-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(18, 24, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.22s ease;
}

.manifesto-qa-card:hover {
  background: rgba(22, 30, 48, 0.7);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 16px -4px rgba(16, 185, 129, 0.15);
}

/* Highlighted specific cards (e.g. Card 1 & 8) with subtle emerald or amber tint */
.manifesto-qa-card[data-card="1"],
.manifesto-qa-card[data-card="7"] {
  border-color: rgba(16, 185, 129, 0.22);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(18, 24, 38, 0.55) 100%);
}

.manifesto-qa-card[data-card="3"],
.manifesto-qa-card[data-card="5"] {
  border-color: rgba(245, 158, 11, 0.2);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, rgba(18, 24, 38, 0.55) 100%);
}

.manifesto-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.manifesto-card-num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.manifesto-qa-card:hover .manifesto-card-num {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.manifesto-card-question {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.manifesto-card-question .q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-size: 12px;
  flex-shrink: 0;
}

.manifesto-card-answer {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
}

.manifesto-card-answer strong {
  color: #ffffff;
  font-weight: 600;
}

.manifesto-card-answer .accent-term {
  color: #34d399;
  font-weight: 600;
}

.manifesto-card-answer .warning-term {
  color: #fbbf24;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. BOTTOM PUNCHLINE & CTA FOOTER BANNER
   -------------------------------------------------------------------------- */
.manifesto-modal-footer {
  position: relative;
  padding: 22px 32px 26px;
  background: linear-gradient(180deg, rgba(14, 19, 30, 0.9) 0%, rgba(10, 14, 22, 1) 100%);
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  flex-shrink: 0;
}

.manifesto-punchline-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 22, 14, 0.7) 0%, rgba(16, 24, 22, 0.7) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 
    0 4px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.manifesto-punchline-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.manifesto-punchline-sub {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fbbf24;
}

.manifesto-punchline-text {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  letter-spacing: -0.2px;
}

/* Discord CTA Action Button */
.btn-manifesto-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #03140c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.1px;
  white-space: nowrap;
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.22s ease;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-manifesto-cta:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #020c08;
  transform: translateY(-1.5px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(16, 185, 129, 0.5);
}

.btn-manifesto-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .manifesto-modal-card {
    max-width: 95vw;
    max-height: 86vh;
    border-radius: 16px;
  }

  .manifesto-modal-header {
    padding: 22px 20px 16px;
  }

  .manifesto-modal-title {
    font-size: 20px;
  }

  .manifesto-modal-body {
    padding: 16px 20px;
  }

  .manifesto-qa-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .manifesto-modal-footer {
    padding: 16px 20px 20px;
  }

  .manifesto-punchline-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
    padding: 16px;
  }

  .btn-manifesto-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .manifesto-modal-overlay {
    padding: 10px;
  }

  .manifesto-modal-card {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 14px;
  }

  .manifesto-modal-header {
    padding: 18px 16px 14px;
  }

  .manifesto-modal-title {
    font-size: 17.5px;
  }

  .manifesto-modal-subtitle {
    font-size: 12.5px;
  }

  .manifesto-modal-body {
    padding: 14px 14px;
  }

  .manifesto-qa-card {
    padding: 14px 14px;
    border-radius: 12px;
  }

  .manifesto-card-question {
    font-size: 13.5px;
  }

  .manifesto-card-answer {
    font-size: 12px;
    line-height: 1.5;
  }

  .manifesto-modal-footer {
    padding: 14px 14px 18px;
  }

  /* Make Hero Button fit cleanly in hero row */
  .hero-buttons .btn-manifesto-hero {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
  }
}
