:root {
  --bg-color: #0b0c10;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --accent-glow: rgba(76, 58, 126, 0.25);
  --accent-glow-2: rgba(43, 63, 107, 0.2);
  --accent-glow-3: rgba(139, 92, 246, 0.15);
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.05);
  --brand-color: #f3f4f6;
  --brand-accent: #8b5cf6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Q&A dropdown styles */
details.question-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}
details.question-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
details.question-item summary::-webkit-details-marker {
  display: none;
}
details.question-item .answer {
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

/* Dropdowns for expose patterns */
details.pattern-item {
  margin-bottom: 0.75rem;
}
details.pattern-item summary {
  list-style: none;
  cursor: pointer;
}
details.pattern-item summary::-webkit-details-marker {
  display: none;
}
details.pattern-item .pattern-example {
  margin-top: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* About author section */
.about-author p {
  margin-bottom: 1rem;
}

/* Cover link behavior */
.cover-link {
  display: inline-block;
}
.cover-link .book-cover-image {
  transition: transform 0.2s;
}
.cover-link:hover .book-cover-image {
  cursor: pointer;
  transform: scale(1.02);
}

.cover-caption {
  text-align: center;
  margin-top: 1rem; /* move down a row */
  font-size: 0.9rem;
  color: #ffffff; /* brighter for contrast */
}

/* Modal for sample */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  position: relative;
  width: 90vw;
  height: 90vh;
  max-width: 800px;
  max-height: 600px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

#sample-frame {
  width: 100%;
  height: 100%;
}

/* Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.7;
  animation: drift 25s infinite alternate ease-in-out;
}

.glow-1 {
  top: -20%;
  left: -10%;
  background: var(--accent-glow);
}

.glow-2 {
  bottom: -10%;
  right: -10%;
  background: var(--accent-glow-2);
  animation-delay: -12s;
}

.noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes drift {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(3%, 4%);
  }
}

/* Typography */
h1,
h2,
h3,
.logo,
.book-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.2;
}

.book-title {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Utilities */
.text-center {
  text-align: center;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 2rem;
}
.mb-4 {
  margin-bottom: 3rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 2rem;
}
.mt-4 {
  margin-top: 3rem;
}
.d-inline-block {
  display: inline-block;
}
.section {
  padding: 8rem 0;
  position: relative;
}

/* Nav */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(11, 12, 16, 0.9) 0%,
    rgba(11, 12, 16, 0) 100%
  );
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover {
  opacity: 1;
}

/* Buttons */
.btn {
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.btn-subtext {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 0.2rem;
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.book-subtitle {
  font-size: 1.4rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.author-name {
  font-size: 1.1rem;
  color: #9ca3af;
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.author-highlight {
  color: #fff;
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 90%;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
}

/* Beautiful Book Mockup */
.hero-image-container {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.book-cover-mock {
  width: 380px;
  height: 570px;
  transform: rotateY(-15deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -30px 40px 50px rgba(0, 0, 0, 0.6);
  background-color: #0b0c10;
  border-radius: 4px 12px 12px 4px;
  position: relative;
  cursor: pointer;
}

.book-cover-mock:hover {
  transform: rotateY(-5deg) rotateX(2deg) scale(1.02);
  box-shadow: -20px 30px 40px rgba(0, 0, 0, 0.5);
}

.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, #111, #222);
  transform: rotateY(-90deg);
  transform-origin: left;
  border-radius: 6px 0 0 6px;
  box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.5);
}

.book-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 12px 12px 4px;
}

/* Perspectives Section */
.perspectives {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 3rem;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.perspectives-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.perspective-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 3.5rem;
  position: relative;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
  overflow: hidden;
}

.perspective-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--brand-accent);
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.perspective-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.3);
}

.perspective-card:hover::before {
  opacity: 1;
}

.perspective-indicator {
  position: absolute;
  top: -20px;
  right: 20px;
  font-family: "Playfair Display", serif;
  font-size: 10rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  transition: color 0.4s ease;
}

.perspective-card:hover .perspective-indicator {
  color: rgba(255, 255, 255, 0.05);
}

.perspective-content {
  position: relative;
  z-index: 1;
}

.perspective-subtitle {
  font-size: 0.9rem;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.perspective-title {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-family: "Playfair Display", serif;
}

.perspective-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.perspective-content p:last-child {
  margin-bottom: 0;
}

/* Exposes Section */
.dark-section {
  background-color: rgba(0, 0, 0, 0.3);
  position: relative;
}

.dark-section::before {
  content: "";
  position: absolute;
  top: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.glass-card h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: #fff;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

/* Questions Section */
.questions-content {
  max-width: 800px;
  margin: 0 auto;
}

.questions-content h2 {
  font-size: 2.5rem;
  color: #fff;
}

.subtitle-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.question-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.question-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s;
}

.question-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.05);
}

.q-icon {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--brand-accent);
  font-style: italic;
  font-weight: 700;
}

.question-item p {
  font-size: 1.1rem;
  color: #e5e7eb;
}

.validation-text {
  font-size: 1.3rem;
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: #d1d5db;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 3rem;
}

/* Audience Section */
.audience-title {
  font-size: 2rem;
  color: #fff;
}

.audience-desc,
.perfect-for {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.final-words {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 5rem;
}

.word {
  color: #fff;
  opacity: 0.9;
}

.closing-statement {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background: #000;
}

.footer p {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Animations */
.animate-in {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden-initially {
  opacity: 0;
}

.question-item.animate-in {
  animation: fadeRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Adding staggered delays to sequential elements */
.question-item:nth-child(1) {
  animation-delay: 0.1s;
}
.question-item:nth-child(2) {
  animation-delay: 0.2s;
}
.question-item:nth-child(3) {
  animation-delay: 0.3s;
}
.question-item:nth-child(4) {
  animation-delay: 0.4s;
}

.word:nth-child(1) {
  animation: fadeUp 1s ease forwards 0.1s;
  opacity: 0;
}
.word:nth-child(2) {
  animation: fadeUp 1s ease forwards 0.4s;
  opacity: 0;
}
.word:nth-child(3) {
  animation: fadeUp 1s ease forwards 0.7s;
  opacity: 0;
}
.word:nth-child(4) {
  animation: fadeUp 1s ease forwards 1s;
  opacity: 0;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
  .hero-description {
    margin: 0 auto 2rem;
  }
  .cta-group {
    justify-content: center;
  }
  .nav-links {
    display: none;
  }
  .book-cover-mock {
    width: 280px;
    height: 420px;
  }
  .final-words {
    gap: 0.5rem;
    flex-direction: column;
  }
  .glass-card {
    padding: 3rem 1.5rem;
  }
}
