/* ════════════════════════════════════════════════
   QuMotiva — style.css
   Premium eBook Sales Page
════════════════════════════════════════════════ */

:root {
  --bg-primary: #09090B;
  --bg-space: #0B1020;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(168, 85, 247, 0.3);

  --accent-violet: #A855F7;
  --accent-purple: #8B5CF6;
  --accent-lavender: #C084FC;

  --text-primary: #FFFFFF;
  --text-muted: #E9D5FF;
  --text-dim: rgba(233, 213, 255, 0.5);

  --gradient-primary: linear-gradient(135deg, #A855F7 0%, #8B5CF6 50%, #C084FC 100%);
  
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.2);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);

  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography & Globals ── */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-body {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── 3D Canvas ── */
#space-canvas {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
#main-scroll { position: relative; z-index: 1; }

/* ── Layout Elements ── */
.section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 160px 0;
}
.section-content {
  max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%;
}
.section-content.centered {
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.justify-center { justify-content: center; }

/* ── Glass Components ── */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  transition: all var(--transition-smooth);
}
.glass-card:hover {
  border-color: var(--border-glass-hover);
  background: var(--bg-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 16px; font-weight: 600;
  color: white; background: var(--gradient-primary);
  border: none; border-radius: var(--radius-full);
  padding: 16px 32px; text-decoration: none; cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.6);
}
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 16px; font-weight: 600;
  color: white; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-full);
  padding: 16px 32px; text-decoration: none; cursor: pointer;
  transition: all var(--transition-smooth);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2);
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 20px 0; transition: all var(--transition-smooth);
}
.navbar.scrolled {
  background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass); padding: 14px 0;
}
.navbar.hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--font-heading); font-size: 18px; font-weight: 700;
}
.logo-img { width: 32px; height: 32px; border-radius: 8px; }
.logo-text { color: white; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-family: var(--font-heading); font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.7); text-decoration: none; padding: 8px 16px;
  border-radius: var(--radius-full); transition: all var(--transition-fast);
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-link.nav-cta {
  background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.3); color: var(--accent-lavender);
}

/* ── Mobile Menu ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-hamburger span {
  width: 24px; height: 2px; background: white; transition: 0.3s;
}
.mobile-menu {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(9, 9, 11, 0.95); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  z-index: 400; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-link {
  font-family: var(--font-heading); font-size: 24px; font-weight: 600;
  color: white; text-decoration: none;
}

/* ── Hero (Section 1) ── */
.hero-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-title {
  font-family: var(--font-heading); font-size: clamp(52px, 7vw, 90px);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero-sub {
  font-size: 20px; color: var(--text-dim); margin-bottom: 40px; max-width: 480px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── eBook Mockup (CSS 3D) ── */
.book-mockup-wrapper {
  perspective: 1500px;
  display: flex; justify-content: center; align-items: center;
  width: 100%; height: 500px;
}
.book-mockup {
  position: relative; width: 300px; height: 420px;
  transform-style: preserve-3d;
  transform: rotateY(-25deg) rotateX(10deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 20px 20px 50px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.1);
  border-radius: 4px 12px 12px 4px;
}
.hover-rotate:hover .book-mockup {
  transform: rotateY(0deg) rotateX(5deg) translateZ(50px);
}
.book-cover {
  position: absolute; width: 100%; height: 100%;
  object-fit: cover; border-radius: 2px 12px 12px 2px;
  transform: translateZ(15px);
  box-shadow: inset 4px 0 10px rgba(0,0,0,0.2);
}
.book-spine {
  position: absolute; width: 30px; height: 100%;
  background: linear-gradient(to right, #111, #222);
  transform: rotateY(-90deg) translateZ(15px);
  transform-origin: left; border-radius: 4px 0 0 4px;
}
.book-pages {
  position: absolute; width: 100%; height: 96%; top: 2%;
  background: #eee;
  transform: translateZ(0px);
  border-radius: 0 10px 10px 0;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

/* ── Problem (Section 2) ── */
.staggered-texts {
  display: flex; flex-direction: column; gap: 40px; padding: 100px 0;
}
.stagger-text {
  font-family: var(--font-heading); font-size: clamp(32px, 5vw, 64px);
  opacity: 0.2; transform: translateY(40px); transition: all 0.8s ease;
}
.stagger-text.active { opacity: 1; transform: translateY(0); }

/* ── Solution (Section 3) ── */
.split-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

/* ── What's Inside (Section 4) ── */
.chapters-container {
  display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 600px;
  margin-top: 40px;
}
.chapter-card {
  padding: 24px 32px; display: flex; align-items: center; gap: 24px;
  text-align: left;
}
.chapter-num {
  font-family: var(--font-heading); font-size: 14px; font-weight: 600;
  color: var(--accent-violet); text-transform: uppercase; letter-spacing: 0.1em;
  width: 100px;
}
.chapter-card h3 { font-size: 20px; font-weight: 600; margin: 0; }

/* ── Why This eBook (Section 5) ── */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 40px; width: 100%; max-width: 900px;
}
.why-card { padding: 40px; }
.why-card h3 { font-size: 24px; font-weight: 600; }

/* ── About (Section 6) ── */
.about-card {
  display: flex; gap: 40px; padding: 48px; max-width: 900px; margin: 0 auto;
}
.about-avatar {
  width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--accent-violet); flex-shrink: 0;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-text-content p { font-size: 18px; color: var(--text-dim); margin-bottom: 16px; }

/* ── Results (Section 7) ── */
.stats-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 40px;
}
.stat-card {
  padding: 32px; width: 220px; text-align: center;
}
.stat-value {
  font-family: var(--font-heading); font-size: 40px; font-weight: 700;
  background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-desc { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ── Reviews (Section 8) ── */
.reviews-constellation {
  position: relative; width: 100%; min-height: 500px; margin-top: 40px;
}
.review-card {
  position: absolute; padding: 24px; width: 320px; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
}
.rev-1 { top: 0; left: 10%; }
.rev-2 { top: 200px; right: 10%; }
.rev-3 { top: 300px; left: 30%; }
.review-stars { color: var(--accent-violet); font-size: 18px; letter-spacing: 2px; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: bold; font-size: 16px;
}
.verified { display: block; font-size: 11px; color: #22c55e; }

/* ── Before vs After (Section 9) ── */
.section-before-after { padding: 0; }
.split-screen-container {
  display: flex; width: 100vw; height: 100vh;
}
.split-side {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.before-side {
  background: #050505; color: #666;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.after-side {
  background: var(--bg-primary);
}
.split-content { max-width: 400px; width: 100%; padding: 40px; }
.split-title {
  font-family: var(--font-heading); font-size: 48px; margin-bottom: 24px;
}
.after-side .split-title { color: var(--accent-violet); }
.split-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.split-list li { font-size: 20px; display: flex; align-items: center; gap: 12px; }
.before-side .split-list li::before { content: '✕'; font-size: 14px; opacity: 0.5; }
.after-side .split-list li::before { content: '✓'; color: var(--accent-violet); font-size: 16px; }

/* ── What Makes This Different (Section 10) ── */
.different-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 800px; margin-top: 40px;
}
.diff-card { padding: 32px; text-align: left; }
.diff-icon { font-size: 32px; margin-bottom: 16px; }

/* ── Preview (Section 11) ── */
.preview-container { margin-top: 40px; perspective: 1200px; }
.preview-pages {
  display: flex; gap: 20px; justify-content: center; transform-style: preserve-3d;
}
.preview-page {
  width: 300px; height: 400px; padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  text-align: left;
}
.page-lines { height: 8px; background: rgba(255,255,255,0.1); margin-top: 16px; border-radius: 4px; }
.page-lines.short { width: 60%; }

/* ── FAQ (Section 12) ── */
.faq-accordion { max-width: 700px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 16px; }
.faq-item { padding: 0 24px; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  color: white; font-family: var(--font-heading); font-size: 18px; font-weight: 600;
  padding: 24px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.faq-answer p { padding-bottom: 24px; color: var(--text-dim); }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--accent-violet); }
.faq-icon { transition: transform 0.3s; font-size: 24px; }

/* ── Contact & Socials (Section 13) ── */
.text-center { text-align: center; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 1000px; margin: 0 auto; }
.contact-form { padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.form-row { display: flex; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  padding: 16px; border-radius: 12px; color: white; font-family: var(--font-body);
  transition: border-color var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-violet); }

/* 3D Social Icons */
.social-3d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; perspective: 1000px; }
.social-3d-card { width: 100%; height: 160px; text-decoration: none; position: relative; }
.social-3d-inner {
  width: 100%; height: 100%; position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.social-3d-card:hover .social-3d-inner { transform: rotateY(180deg); }
.social-front, .social-back {
  position: absolute; width: 100%; height: 100%;
  backface-visibility: hidden; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
}
.social-front { background: rgba(255,255,255,0.02); }
.social-back { background: rgba(168, 85, 247, 0.1); transform: rotateY(180deg); color: var(--text-primary); font-weight: 600; }
.social-icon { font-size: 40px; }

/* ── Footer (Section 14) ── */
.footer { border-top: 1px solid var(--border-glass); padding: 80px 32px 40px; text-align: center; }
.footer-inner { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; align-items: center; }
.newsletter-box { padding: 32px; width: 100%; }
.newsletter-box h3 { margin-bottom: 8px; font-family: var(--font-heading); }
.newsletter-box p { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 16px; border-radius: var(--radius-full); color: white;
}
.footer-links { display: flex; gap: 24px; }
.social-icon-link { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.social-icon-link:hover { color: var(--accent-violet); }

/* ── HUD / Progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient-primary); z-index: 1000;
}
.rocket-hud {
  position: fixed; bottom: 32px; right: 32px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px; opacity: 0; transition: opacity 0.3s;
}
.rocket-hud.visible { opacity: 1; }
.hud-altitude, .hud-velocity {
  background: rgba(10, 5, 20, 0.7); border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px); border-radius: 10px; padding: 8px 14px;
  display: flex; flex-direction: column; align-items: flex-end;
}
.hud-label { font-family: var(--font-heading); font-size: 9px; letter-spacing: 0.15em; color: var(--accent-violet); }
.hud-value { font-family: var(--font-heading); font-size: 14px; font-weight: 600; }

/* ── Utils ── */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-layout, .split-layout, .different-grid, .contact-layout { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .reviews-constellation { display: flex; flex-direction: column; gap: 20px; align-items: center; }
  .review-card { position: relative; inset: auto !important; }
  .split-screen-container { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  .rocket-hud { display: none; }
  .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
