/* QuizHub site: shared by the home page and the support, privacy and terms pages.
   Colors follow the app: violet → blue background, glass cards, pink / green / orange modes. */
:root {
  --violet: #8b3cf0;
  --indigo: #4f46e5;
  --blue: #0a84ff;
  --magenta: #d0109b;
  --gold: #ffa726;
  --pink-a: #ec3a6e; --pink-b: #a95bd8;
  --green-a: #25b866; --green-b: #2bb5a6;
  --orange-a: #f2a01c; --orange-b: #f0473a;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.78);
  --ink-3: rgba(255, 255, 255, 0.6);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-2: rgba(255, 255, 255, 0.2);
  --line: rgba(255, 255, 255, 0.24);
  --radius: 24px;
  --display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--text);
  color: var(--ink);
  line-height: 1.6;
  background: linear-gradient(165deg, #6d28d9 0%, var(--indigo) 38%, #1d6ff2 72%, #0b5bd3 100%);
  background-color: var(--indigo);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* Soft moving color blobs behind everything */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
.blobs span:nth-child(1) { width: 520px; height: 520px; background: var(--magenta); top: -160px; left: -140px; }
.blobs span:nth-child(2) { width: 460px; height: 460px; background: #22c3b5; bottom: -180px; right: -120px; animation-delay: -7s; }
.blobs span:nth-child(3) { width: 380px; height: 380px; background: #f0473a; top: 45%; left: 55%; opacity: 0.3; animation-delay: -13s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(80px, 60px) scale(1.15); }
}

.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* Navigation */
.nav {
  position: sticky; top: 14px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 14px; padding: 10px 10px 10px 14px;
  background: rgba(40, 20, 110, 0.35);
  border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.95rem; padding: 8px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.nav-links a:hover { background: var(--glass); color: var(--ink); }
.nav-links .nav-cta { background: #fff; color: #3b1d9a; }
.nav-links .nav-cta:hover { background: #fff; color: #3b1d9a; transform: translateY(-1px); }

/* App Store button */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(10, 0, 60, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(10, 0, 60, 0.45); }
.store svg { width: 26px; height: 26px; fill: #fff; }
.store small { display: block; font-size: 0.7rem; line-height: 1.1; opacity: 0.85; }
.store strong { display: block; font-size: 1.25rem; line-height: 1.1; letter-spacing: -0.01em; }

/* Footer */
.footer { padding: 48px 0 40px; text-align: center; color: var(--ink-3); font-size: 0.9rem; }
.footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; }
.footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--ink); }

/* ---------- Document pages (support, privacy, terms) ---------- */
.doc-head { text-align: center; padding: 64px 0 36px; }
.doc-head h1 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.doc-head p { color: var(--ink-2); margin-top: 10px; font-size: 1.05rem; }
.doc {
  width: min(820px, 100%); margin: 0 auto;
  background: rgba(255, 255, 255, 0.96); color: #2a2350;
  border-radius: var(--radius); padding: clamp(24px, 5vw, 52px);
  box-shadow: 0 30px 80px rgba(20, 0, 80, 0.35);
}
.doc h2 { font-family: var(--display); color: #2a1a73; font-size: 1.55rem; letter-spacing: -0.01em; line-height: 1.2; margin: 36px 0 12px; }
.doc h3 { color: #3b2a8f; font-size: 1.2rem; line-height: 1.3; margin: 26px 0 10px; }
.doc h4 { color: #4c3aa6; font-size: 1.02rem; margin: 18px 0 8px; }
.doc > :first-child, .doc > :first-child h2 { margin-top: 0; }
.doc p { margin-bottom: 14px; color: #463f6b; }
.doc ul { margin: 0 0 16px 22px; color: #463f6b; }
.doc li { margin-bottom: 8px; }
.doc a { color: #5b3df0; font-weight: 600; }
.doc .highlight, .doc .support-card, .doc .definition-list {
  background: #f4f1ff; border-left: 4px solid var(--violet);
  border-radius: 14px; padding: 20px 22px; margin: 20px 0;
}
.doc .highlight p:last-child, .doc .support-card p:last-child { margin-bottom: 0; }
.doc .contact-info {
  margin-top: 32px; padding: 26px; border-radius: 18px; text-align: center;
  background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff;
}
.doc .contact-info h2, .doc .contact-info h3, .doc .contact-info p, .doc .contact-info li { color: #fff; margin-top: 0; }
.doc .contact-info ul { list-style: none; margin: 0; }
.doc .contact-info a {
  display: inline-block; margin-top: 6px; color: #3b1d9a; background: #fff;
  padding: 10px 20px; border-radius: 999px; text-decoration: none;
}
.doc .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 24px; }
.doc .feature { background: #f7f6fc; border-radius: 14px; padding: 18px; }
.doc .feature h4 { margin-top: 0; }
.doc .feature p { margin: 0; font-size: 0.95rem; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .blobs span { filter: blur(60px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
