/* QuizTadka — Dark Premium Landing */
:root {
  --bg: #050510;
  --surface: #12121f;
  --surface-2: #1a1a2e;
  --primary: #7C3AED;
  --primary-2: #6366F1;
  --primary-light: rgba(124, 58, 237, 0.18);
  --accent: #3B82F6;
  --accent-light: rgba(59, 130, 246, 0.15);
  --text: #FFFFFF;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --glass: rgba(18, 18, 31, 0.75);
  --gradient: linear-gradient(135deg, #7C3AED 0%, #6366F1 50%, #3B82F6 100%);
  --font: 'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.hidden { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; min-width: 0; }
.container--narrow { max-width: 760px; }
.container--article { max-width: 1100px; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 8%, rgba(124,58,237,0.22), transparent),
    radial-gradient(ellipse 45% 35% at 85% 15%, rgba(59,130,246,0.14), transparent),
    radial-gradient(ellipse 35% 25% at 55% 75%, rgba(124,58,237,0.08), transparent);
}

.site-main {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  max-width: 100%;
  padding-top: 96px;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 0;
  pointer-events: none;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.is-scrolled { padding: 0.6rem 0; }

.header-shell {
  pointer-events: auto;
  max-width: calc(var(--container) + 2.5rem);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 64px;
  padding: 0 0.5rem 0 0.85rem;
  border-radius: 999px;
  background: rgba(10, 10, 22, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: height 0.35s, box-shadow 0.35s, border-color 0.35s, background 0.35s;
}
.site-header.is-scrolled .header-inner {
  height: 58px;
  background: rgba(8, 8, 18, 0.92);
  border-color: rgba(139, 92, 246, 0.18);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(139, 92, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.header-logo:hover { opacity: 0.9; }

.header-logo__mark {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C3AED 0%, #6366F1 55%, #3B82F6 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45);
  transition: transform 0.3s, box-shadow 0.3s;
}
.header-logo:hover .header-logo__mark {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.55);
}

.header-logo__text { letter-spacing: -0.02em; }
.header-logo__accent {
  background: linear-gradient(135deg, #C084FC, #818CF8, #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.header-nav__link {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}
.header-nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.header-nav__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(99, 102, 241, 0.85));
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #7C3AED, #6366F1);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.5);
}
.header-cta svg { transition: transform 0.25s; }
.header-cta:hover svg { transform: translateX(2px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s, border-color 0.25s;
}
.nav-toggle:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 16, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.header-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Offset main content for fixed header — set on .site-main above */

/* Footer / legacy logo */
.logo { display: flex; align-items: center; gap: 0.65rem; font-weight: 800; font-size: 1.25rem; }
.logo-bubble {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient); border-radius: 10px; font-size: 1.1rem; font-weight: 800;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.logo-text { letter-spacing: -0.02em; }
.text-accent, .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.btn-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: all var(--transition);
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition); border: 2px solid transparent;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 24px rgba(124,58,237,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(124,58,237,0.5); }
.btn-outline { border-color: rgba(255,255,255,0.18); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: #fff; background: rgba(124,58,237,0.08); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Glass cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.glass-card:hover { border-color: rgba(124,58,237,0.35); box-shadow: var(--shadow); }

/* ===== LANDING HERO ===== */
.hero--landing { padding: 3.5rem 0 2rem; }
.hero--landing .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; }
.hero--landing h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.12;
  margin-bottom: 1.25rem; letter-spacing: -0.02em;
}
.hero--landing .hero-sub {
  color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem;
  max-width: 500px; line-height: 1.7;
}
.hero--landing .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.hero--landing .hero-cta .btn-primary { padding: 0.9rem 1.75rem; }

.hero-social-proof { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.avatar-stack { display: flex; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; border: 2px solid var(--bg); margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.avatar-1 { background: linear-gradient(135deg, #7C3AED, #A855F7); }
.avatar-2 { background: linear-gradient(135deg, #3B82F6, #06B6D4); }
.avatar-3 { background: linear-gradient(135deg, #10B981, #34D399); }
.avatar-4 { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.avatar-5 { background: linear-gradient(135deg, #EC4899, #F472B6); }
.hero-rating { display: flex; flex-direction: column; gap: 0.15rem; }
.stars { color: #FBBF24; font-size: 0.85rem; letter-spacing: 1px; }
.rating-text { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }

/* Hero visual / challenge card */
.hero-visual {
  position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; max-width: 100%;
}
.hero-glow {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.35), transparent 70%);
  filter: blur(40px); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.hero-float-icon {
  position: absolute; font-size: 1.75rem; padding: 0.65rem;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 14px; backdrop-filter: blur(8px);
  animation: float 5s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.hero-float-icon--trophy { top: 8%; right: 4%; animation-delay: 0s; }
.hero-float-icon--bolt { bottom: 18%; left: 4%; animation-delay: -1.5s; }
.hero-float-icon--brain { top: 22%; left: 8%; animation-delay: -3s; }

.challenge-card {
  position: relative; z-index: 2; width: 100%; max-width: 320px;
  padding: 2rem 1.75rem; text-align: center;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.15);
}
.challenge-card:hover { transform: translateY(-6px); }
.challenge-card-icon { font-size: 3.5rem; margin-bottom: 0.75rem; filter: drop-shadow(0 4px 12px rgba(251,191,36,0.4)); }
.challenge-card-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary-2); }
.challenge-card-tagline { font-size: 1.15rem; font-weight: 700; margin: 0.5rem 0 1.25rem; line-height: 1.35; }
.challenge-card-stats {
  display: flex; justify-content: center; gap: 1.25rem; margin-bottom: 1.5rem;
  font-size: 0.82rem; color: var(--text-muted);
}
.challenge-card-stats span { display: flex; align-items: center; gap: 0.35rem; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Stats bar */
.stats-bar { padding: 0 0 2.5rem; margin-top: -0.5rem; }
.stats-bar-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
}
.stat-block { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; min-width: 0; }
.stat-block + .stat-block { border-left: 1px solid var(--border); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon--purple { background: rgba(124,58,237,0.2); color: #A78BFA; }
.stat-icon--green { background: rgba(16,185,129,0.18); color: #34D399; }
.stat-icon--blue { background: rgba(59,130,246,0.18); color: #60A5FA; }
.stat-icon--pink { background: rgba(236,72,153,0.18); color: #F472B6; }
.stat-value { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* Section intros */
.section-intro { text-align: center; margin-bottom: 2.5rem; }
.section-intro--left { text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-intro--left h2 { width: 100%; }
.section-eyebrow {
  display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--primary); margin-bottom: 0.5rem;
}
.section-intro h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 0.5rem; }
.section-intro p { color: var(--text-muted); font-size: 1rem; }
.section-cta-center { text-align: center; margin-top: 2rem; }
.section-alt { background: rgba(255,255,255,0.015); }

/* Landing category grid */
.section-categories-landing { padding-top: 1rem; }
.category-grid-landing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.category-card-landing {
  padding: 1.75rem 1.25rem; text-align: center; display: block;
}
.category-card-landing:hover { transform: translateY(-6px); }
.cat-icon-wrap {
  width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin: 0 auto 1rem;
}
.cat-theme-purple { background: rgba(124,58,237,0.2); }
.cat-theme-green { background: rgba(16,185,129,0.18); }
.cat-theme-orange { background: rgba(249,115,22,0.18); }
.cat-theme-blue { background: rgba(59,130,246,0.18); }
.cat-theme-lime { background: rgba(132,204,22,0.18); }
.cat-theme-pink { background: rgba(236,72,153,0.18); }
.cat-theme-cyan { background: rgba(6,182,212,0.18); }
.cat-theme-yellow { background: rgba(234,179,8,0.18); }
.category-card-landing h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; line-height: 1.3; }
.category-card-landing .cat-count { font-size: 0.8rem; color: var(--text-muted); }

/* Legacy hero (other pages) */
.hero { padding: 4rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero-sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 380px; }

/* Sections */
.section { padding: 4rem 0; max-width: 100%; overflow-x: clip; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.link-arrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.link-arrow:hover { text-decoration: underline; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.category-grid--large { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.category-card { padding: 1.5rem; display: block; }
.cat-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.cat-icon--lg { font-size: 4rem; }
.category-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.category-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.cat-count { font-size: 0.8rem; color: var(--accent); font-weight: 600; }

/* Daily */
.daily-section { padding-top: 0; }
.daily-card { padding: 2.5rem; text-align: center; max-width: 600px; margin: 0 auto; }
.daily-card--full { max-width: 100%; }
.daily-badge { display: inline-block; padding: 0.35rem 1rem; background: var(--accent-light); color: var(--accent); border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.daily-card h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.daily-meta { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; color: var(--text-muted); flex-wrap: wrap; }

/* Quiz cards */
.quiz-scroll {
  display: flex; gap: 1.25rem;
  overflow-x: auto; overflow-y: hidden;
  max-width: 100%; width: 100%;
  padding-bottom: 0.5rem; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quiz-scroll::-webkit-scrollbar { display: none; }
.quiz-scroll .quiz-card { min-width: 300px; scroll-snap-align: start; flex-shrink: 0; }
.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.quiz-grid--landing { grid-template-columns: repeat(4, 1fr); }
.quiz-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.quiz-card:hover { transform: translateY(-4px); }
.quiz-thumb { background: var(--surface); padding: 2rem; text-align: center; }
.quiz-emoji { font-size: 3rem; }
.quiz-info { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-cat { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.quiz-info h3 { font-size: 1rem; line-height: 1.4; }
.quiz-meta { display: flex; gap: 0.75rem; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
.quiz-meta--lg { font-size: 0.95rem; gap: 1.5rem; margin: 1.5rem 0; }
.difficulty { padding: 0.15rem 0.6rem; border-radius: 50px; font-weight: 600; font-size: 0.75rem; }
.difficulty-easy { background: rgba(74,222,128,0.15); color: #4ade80; }
.difficulty-medium { background: rgba(251,191,36,0.15); color: #fbbf24; }
.difficulty-hard { background: rgba(248,113,113,0.15); color: #f87171; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.feature-card { padding: 1.75rem; }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-grid--page { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.blog-card { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.blog-card--rich { padding: 0; overflow: hidden; }
.blog-card-visual {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; padding: 2.5rem 1rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(59,130,246,0.15));
  border-bottom: 1px solid var(--border);
  transition: transform var(--transition);
}
.blog-card--rich:hover .blog-card-visual { transform: scale(1.03); }
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; }
.blog-card-footer { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); margin-top: auto; }
.blog-cat { font-size: 0.72rem; color: #A78BFA; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card h3 { font-size: 1.15rem; line-height: 1.4; font-weight: 700; }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; line-height: 1.65; }
.blog-card time { font-size: 0.8rem; color: var(--text-muted); }
.page-hero--blog { padding-bottom: 2.5rem; }

/* Blog article detail */
.blog-hero {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(124,58,237,0.2), transparent 70%);
}
.blog-hero--purple::before { background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(124,58,237,0.22), transparent 70%); }
.blog-hero--blue::before { background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(59,130,246,0.22), transparent 70%); }
.blog-hero--green::before { background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(16,185,129,0.18), transparent 70%); }
.blog-hero--orange::before { background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(249,115,22,0.18), transparent 70%); }
.blog-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { opacity: 0.5; }
.breadcrumb-current { color: var(--text-muted); opacity: 1; }
.blog-cat-badge {
  display: inline-block; padding: 0.35rem 0.9rem; border-radius: 50px;
  background: rgba(124,58,237,0.2); color: #C4B5FD; font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.blog-hero-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 1rem; max-width: 800px;
}
.blog-hero-excerpt {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.7;
  max-width: 680px; margin-bottom: 1.5rem;
}
.blog-meta-bar { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.blog-meta-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; color: var(--text-muted);
}
.blog-meta-item svg { opacity: 0.7; flex-shrink: 0; }

.blog-body { padding: 2.5rem 0 3rem; }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.blog-main { min-width: 0; }
.blog-featured-visual {
  padding: 3rem; text-align: center; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(59,130,246,0.1));
}
.blog-featured-icon { font-size: 4.5rem; filter: drop-shadow(0 8px 24px rgba(124,58,237,0.3)); }
.blog-content { padding: 2.5rem; line-height: 1.85; font-size: 1.05rem; margin-bottom: 1.5rem; }
.blog-content p { color: #CBD5E1; margin-bottom: 1.25rem; }
.blog-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text); }
.blog-content h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.blog-content ul, .blog-content ol { color: #CBD5E1; margin: 0 0 1.25rem 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; }
.blog-content a { color: #A78BFA; text-decoration: underline; }
.blog-content blockquote {
  border-left: 3px solid var(--primary); padding: 1rem 1.25rem; margin: 1.5rem 0;
  background: rgba(124,58,237,0.08); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted); font-style: italic;
}

.blog-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.75rem 2rem; margin-bottom: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(59,130,246,0.08));
}
.blog-cta-text strong { display: block; font-size: 1.1rem; margin-bottom: 0.25rem; }
.blog-cta-text p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.blog-tags { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-muted); }
.blog-tag {
  padding: 0.35rem 0.85rem; border-radius: 50px; background: var(--surface);
  border: 1px solid var(--border); color: #A78BFA; font-weight: 600; font-size: 0.8rem;
}
.blog-tag:hover { border-color: var(--primary); color: var(--text); }

.blog-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 96px; }
.sidebar-card { padding: 1.5rem; }
.sidebar-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.sidebar-card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; line-height: 1.6; }
.sidebar-related ul { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-related li a {
  display: block; padding: 0.75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); transition: all var(--transition);
}
.sidebar-related li a:hover { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.06); }
.sidebar-related-title { display: block; font-size: 0.88rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.25rem; }
.sidebar-related-date { font-size: 0.75rem; color: var(--text-muted); }

.blog-related-section { padding-top: 0; border-top: 1px solid var(--border); }
.blog-detail-header { margin-bottom: 2rem; }
.blog-detail-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0.75rem 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 760px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary { padding: 1.25rem 1.5rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 1.5rem 1.25rem; color: var(--text-muted); }

/* ===== 404 ERROR PAGE ===== */
.error-page {
  position: relative;
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.error-page__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.error-page__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: errorOrbFloat 10s ease-in-out infinite;
}
.error-page__orb--1 {
  width: 420px; height: 420px;
  background: rgba(124, 58, 237, 0.22);
  top: -10%; left: -8%;
}
.error-page__orb--2 {
  width: 320px; height: 320px;
  background: rgba(59, 130, 246, 0.15);
  bottom: -5%; right: -5%;
  animation-delay: -5s;
}

.error-page__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black, transparent);
}

@keyframes errorOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -15px); }
}

.error-page__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.error-page__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.error-page__emoji {
  position: absolute;
  font-size: 5rem;
  animation: errorFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(124,58,237,0.35));
}

.error-page__code {
  font-size: clamp(7rem, 18vw, 11rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, rgba(192,132,252,0.35) 0%, rgba(129,140,248,0.25) 50%, rgba(56,189,248,0.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
}

@keyframes errorFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-16px) rotate(5deg); }
}

.error-page__content { max-width: 520px; }

.error-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #FBBF24;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.error-page__content h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.error-page__content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.error-page__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.error-page__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.error-page__btn--primary {
  background: linear-gradient(135deg, #7C3AED, #6366F1);
  color: #fff;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
}
.error-page__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.5);
}
.error-page__btn--primary svg { transition: transform 0.25s; }
.error-page__btn--primary:hover svg { transform: translateX(3px); }

.error-page__btn--ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.error-page__btn--ghost:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
}

.error-page__links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #64748B;
}
.error-page__links a {
  color: #A78BFA;
  font-weight: 500;
  transition: color 0.2s;
}
.error-page__links a:hover { color: #fff; }

@media (max-width: 992px) {
  .error-page__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .error-page__content { margin: 0 auto; }
  .error-page__actions { justify-content: center; }
  .error-page__links { justify-content: center; }
  .error-page__visual { min-height: 220px; }
}

@media (max-width: 640px) {
  .error-page { min-height: calc(100vh - 88px); padding: 2rem 0 3rem; }
  .error-page__actions { flex-direction: column; }
  .error-page__btn { width: 100%; justify-content: center; }
  .error-page__code { font-size: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .error-page__orb, .error-page__emoji { animation: none; }
}

/* Page hero */
.page-hero { padding: 3rem 0 2rem; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
.page-hero p { color: var(--text-muted); margin-top: 0.75rem; font-size: 1.1rem; }
.category-hero .cat-icon--lg { margin-bottom: 1rem; }

/* Filter */
.filter-bar { display: flex; gap: 0.75rem; padding: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-bar input, .filter-bar select {
  flex: 1; min-width: 180px; padding: 0.65rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit;
}
.results-count { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.9rem; }
.empty-state { color: var(--text-muted); padding: 3rem; text-align: center; grid-column: 1 / -1; }

/* Quiz detail & play */
.quiz-detail { padding: 2.5rem; }
.quiz-detail h1 { font-size: 2rem; margin: 0.5rem 0 1rem; }
.quiz-desc { color: var(--text-muted); margin-bottom: 0.5rem; }
.quiz-play-section { padding: 2rem 0 4rem; }
.quiz-play-header { margin-bottom: 2rem; }
.quiz-play-header h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.progress-bar { height: 6px; background: var(--surface); border-radius: 50px; overflow: hidden; margin-bottom: 0.5rem; }
.progress-fill { height: 100%; background: var(--gradient); border-radius: 50px; transition: width 0.4s ease; }
.progress-text { font-size: 0.85rem; color: var(--text-muted); }
.question-panel { padding: 2rem; margin-bottom: 1.5rem; display: none; }
.question-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-number { font-size: 0.8rem; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.q-text { font-size: 1.25rem; margin: 0.75rem 0 1.5rem; line-height: 1.4; }
.answers-list { display: flex; flex-direction: column; gap: 0.75rem; }
.answer-option {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition);
}
.answer-option:hover { border-color: var(--primary); background: var(--primary-light); }
.answer-option input { accent-color: var(--primary); width: 18px; height: 18px; }
.answer-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.quiz-nav { display: flex; gap: 1rem; justify-content: space-between; margin-top: 1rem; }

/* Result */
.result-section { padding: 3rem 0; }
.result-card { padding: 3rem; text-align: center; }
.result-badge {
  display: inline-block; padding: 0.5rem 1.25rem; border-radius: 50px;
  background: var(--gradient); font-weight: 700; margin-bottom: 1rem;
}
.score-circle {
  width: 140px; height: 140px; border-radius: 50%; margin: 1.5rem auto;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--primary) 0%, var(--accent) 100%);
  position: relative;
}
.score-circle::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface);
}
.score-pct { position: relative; font-size: 2rem; font-weight: 800; }
.result-stats { display: flex; justify-content: center; gap: 2.5rem; margin: 2rem 0; flex-wrap: wrap; }
.result-stats .stat strong { display: block; font-size: 1.75rem; }
.result-stats .stat span { font-size: 0.85rem; color: var(--text-muted); }
.result-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit;
}
.contact-form, .content-card { padding: 2rem; }
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.legal-content h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.legal-content p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.75; }
.legal-content ul, .legal-content ol { color: var(--text-muted); margin: 0 0 1rem 1.25rem; line-height: 1.75; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a { color: #A78BFA; text-decoration: underline; }
.legal-content a:hover { color: var(--text); }
.alert-success { padding: 1rem; margin-bottom: 1rem; color: #4ade80; }

/* Pagination */
.pagination-wrap { margin-top: 2rem; text-align: center; }
.pagination-wrap a, .pagination-wrap strong {
  display: inline-block; padding: 0.5rem 0.85rem; margin: 0 0.15rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.9rem;
}
.pagination-wrap strong { background: var(--primary); border-color: var(--primary); }

/* SEO content */
.seo-card { padding: 2rem; }
.seo-card h2 { margin-bottom: 0.75rem; }
.seo-card p { color: var(--text-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin: 1rem 0; max-width: 280px; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  font-size: 0.7rem; font-weight: 700; transition: var(--transition);
}
.social-links a:hover { border-color: var(--primary); }
.footer-links h4 { font-size: 0.9rem; margin-bottom: 1rem; }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1100px) {
  .category-grid-landing { grid-template-columns: repeat(2, 1fr); }
  .quiz-grid--landing { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .stat-block + .stat-block { border-left: none; }
  .stat-block:nth-child(odd) { border-right: 1px solid var(--border); }

  .header-nav {
    position: fixed;
    top: 88px;
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(10, 10, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    transform: translateY(-16px) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
  }
  .header-nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .header-nav__link {
    padding: 0.85rem 1.15rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-backdrop { display: block; }
  .site-header.is-scrolled .header-nav { top: 78px; }
}
@media (max-width: 992px) {
  .hero--landing .hero-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; margin-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 768px) {
  .stats-bar-inner { grid-template-columns: 1fr; }
  .stat-block { border: none !important; }
  .category-grid-landing { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0.75rem 0; }
  .site-main, .page-home .site-main { padding-top: 88px; }
  .header-logo__text { font-size: 1.05rem; }
  .header-logo__mark { width: 34px; height: 34px; border-radius: 10px; }
  .header-inner { height: 56px; padding-left: 0.65rem; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .category-grid-landing { grid-template-columns: 1fr; }
  .quiz-grid--landing { grid-template-columns: 1fr; }
  .challenge-card { max-width: 100%; }
}
