/* ═══════════════════════════════════════════════
   QuizMind AI — Global Design System
   Dark futuristic theme: deep navy + purple + cyan
════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --dark:    #08080F;
  --dark2:   #0D0D18;
  --card:    #111120;
  --card2:   #161628;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text:    #EEEDf8;
  --muted:   #8B8AA0;
  --purple:  #7C5CFC;
  --violet:  #9B7BFF;
  --cyan:    #00D4FF;
  --green:   #00E396;
  --gold:    #FFB800;
  --red:     #FF4D6A;
  --pink:    #FF6B9D;
  --orange:  #FF8C42;
  --gradient: linear-gradient(135deg, #7C5CFC, #00D4FF);
  --grad2:   linear-gradient(135deg, #FF6B9D, #FFB800);
  --grad3:   linear-gradient(135deg, #00E396, #00D4FF);
  --fh: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-purple: 0 8px 32px rgba(124,92,252,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,92,252,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,92,252,0.5); }

/* ── Orbs ──────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.orb.o1 { width: 600px; height: 600px; background: rgba(124,92,252,0.08); top: -200px; right: -200px; }
.orb.o2 { width: 500px; height: 500px; background: rgba(0,212,255,0.06); bottom: -150px; left: -150px; }

/* ── Page Wrapper ──────────────────────────── */
.page { max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px; position: relative; z-index: 1; }
.page-md { max-width: 860px; }
.page-sm { max-width: 560px; }

/* ── Navbar ────────────────────────────────── */
.qm-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  height: 60px;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand-box {
  background: var(--gradient);
  color: #fff;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-link {
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: transparent;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,0.06); }
.xp-pill {
  background: rgba(255,184,0,0.1);
  border: 1px solid rgba(255,184,0,0.2);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--fh);
  white-space: nowrap;
}

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.card-sm {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.card-glow {
  background: linear-gradient(135deg, rgba(124,92,252,0.06), rgba(0,212,255,0.04));
  border-color: rgba(124,92,252,0.2);
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--fh);
  font-weight: 700;
  font-size: .83rem;
  letter-spacing: .3px;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-grad {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,92,252,0.3);
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,92,252,0.45); color: #fff; }
.btn-grad:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: .76rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 13px 28px; font-size: .92rem; border-radius: var(--radius); }
.w-full { width: 100%; }

/* ── Badges ─────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px; font-weight: 700;
  font-family: var(--fh);
  letter-spacing: .3px;
  white-space: nowrap;
}
.bp { background: rgba(124,92,252,0.15); color: var(--violet); border: 1px solid rgba(124,92,252,0.25); }
.bc { background: rgba(0,212,255,0.1); color: var(--cyan); border: 1px solid rgba(0,212,255,0.2); }
.bg { background: rgba(0,227,150,0.1); color: var(--green); border: 1px solid rgba(0,227,150,0.2); }
.bo { background: rgba(255,184,0,0.1); color: var(--gold); border: 1px solid rgba(255,184,0,0.2); }
.br { background: rgba(255,77,106,0.1); color: var(--red); border: 1px solid rgba(255,77,106,0.2); }

/* ── Grid / Layout ──────────────────────────── */
.flex { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-4  { gap: 4px; } .gap-6  { gap: 6px; } .gap-8  { gap: 8px; }
.gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-14 { gap: 14px; }
.gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }

/* ── Spacing ────────────────────────────────── */
.mb-4  { margin-bottom: 4px; }  .mb-8  { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; } .mb-28 { margin-bottom: 28px; }
.mt-4  { margin-top: 4px; }     .mt-8  { margin-top: 8px; }
.mt-10 { margin-top: 10px; }    .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

/* ── Text ───────────────────────────────────── */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Progress ───────────────────────────────── */
.progress-track { height: 6px; background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--gradient); transition: width .5s ease; }

/* ── Drop Zone ──────────────────────────────── */
.drop-zone {
  border: 2px dashed rgba(124,92,252,0.3);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: rgba(124,92,252,0.03);
}
.drop-zone:hover { border-color: rgba(124,92,252,0.6); background: rgba(124,92,252,0.06); }

/* ── Animations ─────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0%   { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes glow {
  0%,100% { box-shadow: 0 0 12px rgba(124,92,252,0.3); }
  50%      { box-shadow: 0 0 24px rgba(124,92,252,0.6); }
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position:  1000px 0; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.anim-fade  { animation: fadeIn .4s ease both; }
.anim-pop   { animation: popIn .3s cubic-bezier(.34,1.56,.64,1) both; }
.anim-slide { animation: slideUp .4s ease both; }

/* ── Hero Section ────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#three-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 700px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,92,252,.12);
  border: 1px solid rgba(124,92,252,.25);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 28px;
  font-size: .75rem;
  color: var(--violet);
  font-family: var(--fh);
  font-weight: 700;
  letter-spacing: .5px;
  animation: fadeIn .6s ease .1s both;
}
.hero-title {
  font-family: var(--fh);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 20px;
  animation: fadeIn .6s ease .2s both;
}
.hero-desc {
  color: var(--muted);
  font-size: clamp(.9rem, 2vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn .6s ease .3s both;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn .6s ease .4s both;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 56px;
  flex-wrap: wrap;
  animation: fadeIn .6s ease .5s both;
}
.hero-stat-val {
  font-family: var(--fh);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp .6s ease both;
}
.hero-stat-label {
  font-size: .72rem;
  color: var(--muted);
}
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .72rem;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  animation: pulse 2s infinite;
}

/* ── Feature Cards ───────────────────────────── */
.features-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section-eyebrow {
  font-family: var(--fh);
  font-size: .72rem;
  letter-spacing: 2px;
  color: var(--violet);
  margin-bottom: 12px;
  font-weight: 700;
}
.section-title {
  font-family: var(--fh);
  font-size: 2rem;
  font-weight: 800;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all .3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,92,252,0.04), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: rgba(124,92,252,.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(124,92,252,0.1);
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
  animation: float 3s ease-in-out infinite;
}
.feature-icon:nth-child(2n) { animation-delay: .5s; }
.feature-icon:nth-child(3n) { animation-delay: 1s; }
.feature-title {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-desc {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.7;
}

/* ── PDF Demo ────────────────────────────────── */
.pdf-section {
  padding: 60px 24px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.pdf-title {
  font-family: var(--fh);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.pdf-desc {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: .9rem;
}
.pdf-demo-box {
  max-width: 500px;
  margin: 0 auto;
  border: 2px dashed rgba(124,92,252,0.3);
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center;
  background: rgba(124,92,252,0.03);
  transition: all .3s;
}
.pdf-demo-box:hover {
  border-color: rgba(124,92,252,0.6);
  background: rgba(124,92,252,0.06);
}
.pdf-icon { font-size: 3rem; margin-bottom: 12px; display: block; animation: float 3s ease-in-out infinite; }
.pdf-filename {
  font-family: var(--fh);
  font-weight: 700;
  margin-bottom: 16px;
}
.pdf-progress-track {
  height: 3px;
  background: rgba(255,255,255,.07);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}
.pdf-progress-bar {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 1.5s ease;
}
.pdf-success {
  color: var(--green);
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .4s;
}

/* ── How It Works ────────────────────────────── */
.how-section {
  padding: 60px 24px 100px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(124,92,252,0.4);
  animation: glow 3s ease-in-out infinite;
}
.step-title {
  font-family: var(--fh);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc {
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.7;
}

/* ── Scroll Reveal ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Floating particles (CSS only fallback) ─── */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none;
  animation: float linear infinite;
}

/* ── Footer ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  position: relative;
  z-index: 1;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  /* .qm-navbar { overflow-x: auto; padding: 0 16px; gap: 4px; } */
  .page { padding: 20px 16px 50px; }
  .hero-stats { gap: 20px; }
}