/* ==========================================================
   Favourite QA page — Kalpokotha
   ========================================================== */
:root {
  --bg: #000;
  --text: #d4d4d8;
  --bright: #e4e4e7;
  --muted: #a1a1aa;
  --border: #26262c;
  --accent: #6366f1;
  --pad-x: clamp(20px, 7vw, 100px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  overflow-x: hidden;
}

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.page { position: relative; z-index: 2; }

h2 {
  text-align: center;
  color: var(--text);
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 500;
  letter-spacing: -.02em;
}

/* ---------- 1. World map ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px 0;
}
.mapbox { width: min(100%, 1440px); }
#map { display: block; width: 100%; }

/* ---------- 2. QA cards ---------- */
.qa { padding: clamp(40px, 6vw, 80px) var(--pad-x) 0; }
.qa h2 { margin-bottom: clamp(30px, 5vw, 56px); }

.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
  max-width: 1100px;
  margin: 0 auto;
}
.qa-card {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(14, 14, 18, .78);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease, border-color .3s;
  transition-delay: var(--d, 0s);
}
.qa-card::before {                      /* soft glow that follows the pointer */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, .22), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}
.qa-card.show { opacity: 1; transform: none; }
.qa-card.show:hover { transform: translateY(-4px); border-color: #3b3b8f; transition-delay: 0s; }
.qa-card:hover::before { opacity: 1; }

.qa-card .n {
  position: absolute;
  top: 14px;
  right: 18px;
  color: #3f3f46;
  font-size: 12px;
  letter-spacing: .1em;
}
.qa-card h3 {
  position: relative;
  margin-bottom: 12px;
  padding-right: 28px;
  color: var(--bright);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 500;
  line-height: 1.3;
}
.qa-card p {
  position: relative;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

/* ---------- 3. Back button ---------- */
.back-wrap { padding: clamp(70px, 9vw, 110px) 0; text-align: center; }
.back {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid #2a2a30;
  border-radius: 14px;
  background: rgba(24, 24, 28, .8);
  color: var(--bright);
  font-size: 16px;
  text-decoration: none;
  transition: border-color .3s, background .3s, transform .3s;
}
.back:hover { border-color: #3b3b8f; background: rgba(40, 40, 80, .5); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .qa-grid { grid-template-columns: 1fr; }
  .qa-card { padding: 24px 20px 22px; }
  .qa-card p { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .qa-card { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}