/* ═══════════════════════════════════════════════════════════
   QuizoSwipe — Premium Dark Theme
   OLED Black + Purple/Cyan Accents + Glassmorphism
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ──────────────────────────────── */
:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #10101c;
  --bg-card: #161626;
  --bg-card-hover: #1c1c32;
  --border-subtle: #1e1e30;
  --border-card: #24243b;
  --border-glow: #2a2a44;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --accent-purple: #a855f7;
  --accent-purple-dim: rgba(168, 85, 247, 0.15);
  --accent-cyan: #38bdf8;
  --accent-cyan-dim: rgba(56, 189, 248, 0.12);
  --accent-amber: #fbbf24;
  --accent-amber-dim: rgba(251, 191, 36, 0.12);
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --gradient-purple: linear-gradient(135deg, #a855f7, #6366f1);
  --gradient-cyan: linear-gradient(135deg, #38bdf8, #818cf8);
  --gradient-hero: linear-gradient(180deg, #0a0a14 0%, #12122a 40%, #0a0a14 100%);

  --glass-bg: rgba(22, 22, 38, 0.65);
  --glass-border: rgba(42, 42, 68, 0.6);
  --glass-blur: 20px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.15);
  --shadow-glow-cyan: 0 0 40px rgba(56, 189, 248, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  --max-width: 1200px;
  --max-width-narrow: 800px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-purple);
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Utility Classes ────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.text-gradient {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scroll-Driven Reveal Animations ────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); }
  50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.4); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.nav__logo-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-purple);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-purple);
  color: #fff !important;
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
  align-items: center;
  justify-content: center;
}

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
}

.hero__bg-orb--purple {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  top: 10%;
  left: -10%;
  animation: float 8s ease-in-out infinite;
}

.hero__bg-orb--cyan {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  bottom: 10%;
  right: -10%;
  animation: float 10s ease-in-out infinite reverse;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-purple-dim);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-purple);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-purple);
  animation: pulseGlow 2s infinite;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: var(--shadow-glow-purple);
}

.btn--primary:hover {
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.35);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-card);
}

.btn--outline:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.875rem;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Features Section ───────────────────────────────────── */
.features {
  padding: 100px 24px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: var(--shadow-glow-purple);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
}

.feature-card__icon--purple {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
}

.feature-card__icon--cyan {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

.feature-card__icon--amber {
  background: var(--accent-amber-dim);
  color: var(--accent-amber);
}

.feature-card__icon--green {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── How It Works ───────────────────────────────────────── */
.how-it-works {
  padding: 100px 24px;
  background: var(--bg-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-glow-purple);
}

.step__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__content {
  position: relative;
  z-index: 2;
}

.cta-section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-section__desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 36px;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  padding: 60px 24px 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer__brand-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 280px;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer__social a:hover {
  background: var(--accent-purple-dim);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

/* ── Legal Pages ────────────────────────────────────────── */
.legal-page {
  padding: 120px 24px 80px;
  min-height: 100vh;
}

.legal-page__header {
  text-align: center;
  margin-bottom: 48px;
}

.legal-page__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--accent-purple-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.legal-page__icon svg {
  width: 32px;
  height: 32px;
}

.legal-page__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.legal-page__date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.legal-content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--accent-cyan);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.legal-content a {
  color: var(--accent-purple);
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
}

.legal-card__title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.legal-card p {
  font-size: 0.9rem;
}

/* ── Contact Us Page ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-4px);
}

.contact-card__icon {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card__icon svg {
  width: 32px;
  height: 32px;
}

.contact-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 18px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-item__question:hover {
  background: var(--bg-card-hover);
}

.faq-item__question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent-purple);
  font-weight: 400;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-item__question::after {
  content: '−';
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

.faq-item__answer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__mobile-toggle {
    display: block;
  }

  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .hero {
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero__stat-number {
    font-size: 1.5rem;
  }

  .features, .how-it-works, .cta-section {
    padding: 60px 20px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

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

  .hero__stats {
    gap: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}
