
:root {
  --black:      #000000;
  --deep:       #050810;
  --blue-glow:  #742424cc;
  --blue-dim:   #0066cc;
  --white:      #ffffff;
  --grey-light: #742424cc;;
  --grey-dim:   #3a4a5a;
  --book-w:     300px;
  --book-h:     420px;
  --cover-thickness: 6px;
}


*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul { list-style: none; }
a  { text-decoration: none; }


body {
  background-color: var(--deep);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(45, 10, 10, 0.92) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 40, 100, 0.12) 0%, transparent 50%);
  min-height: 100vh;
  font-family: 'Rajdhani', sans-serif;
  color: var(--white);
  overflow-x: hidden;
}

.eyes-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}


.eye {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 35px;
}

.eye:first-child { left: 40%; }
.eye:last-child  { right: 40%; }

.eye__outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(0,180,255,0.08) 0%,
    rgba(0,100,200,0.04) 60%,
    transparent 100%
  );
  box-shadow:
    0 0 25px 6px rgba(0,150,255,0.18),
    0 0 50px 12px rgba(0,100,200,0.1);
  clip-path: ellipse(50% 50% at 50% 50%);
}


.eye__iris {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%,
    #1a6aaa 0%,
    #0a3a6a 40%,
    #041525 100%
  );
  box-shadow:
    0 0 10px 4px rgba(0,150,255,0.5),
    0 0 22px 8px rgba(0,100,200,0.3),
    inset 0 0 8px rgba(0,200,255,0.2);
}


.eye__pupil {
  position: absolute;
  width: 12px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #111 0%, #000 100%);
  box-shadow: 0 0 6px 2px rgba(0,0,0,0.9);
}

.eye__iris::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  top: 20%;
  left: 22%;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}

.eye__lid-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: #000;
  border-radius: 100% 100% 0 0 / 100% 100% 0 0;
  transform: scaleY(0);
  transform-origin: top center;
  animation: blink-top 3s infinite;
}

.eye__lid-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: #000;
  border-radius: 0 0 100% 100% / 0 0 100% 100%;
  transform: scaleY(0);
  transform-origin: bottom center;
  animation: blink-bottom 3s infinite;
}

.eye:last-child .eye__lid-top,
.eye:last-child .eye__lid-bottom {
  animation-delay: 0.06s;
}

@keyframes blink-top {
  0%,  42% { transform: scaleY(0); }
  47%       { transform: scaleY(1); }
  52%       { transform: scaleY(1); }
  57%       { transform: scaleY(0); }
  100%      { transform: scaleY(0); }
}

@keyframes blink-bottom {
  0%,  42% { transform: scaleY(0); }
  47%       { transform: scaleY(1); }
  52%       { transform: scaleY(1); }
  57%       { transform: scaleY(0); }
  100%      { transform: scaleY(0); }
}

@media (max-width: 768px) {
  .eye { width: 55px; height: 28px; }
  .eye__iris { width: 20px; height: 20px; }
  .eye__pupil { width: 9px; height: 9px; }
  .eye:first-child { left: 3%; }
  .eye:last-child  { right: 3%; }
}

@media (max-width: 480px) {
  .eye { width: 42px; height: 22px; }
  .eye__iris { width: 16px; height: 16px; }
  .eye__pupil { width: 7px; height: 7px; }
  .eye__iris::after { width: 5px; height: 5px; }
  .eye:first-child { left: 2%; }
  .eye:last-child  { right: 2%; }
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--blue-glow);
  opacity: 0;
  animation: float-up linear infinite;
}

.particles span:nth-child(1)  { width:2px;  height:2px;  left:10%; animation-duration:12s; animation-delay:0s;   }
.particles span:nth-child(2)  { width:3px;  height:3px;  left:25%; animation-duration:18s; animation-delay:3s;   }
.particles span:nth-child(3)  { width:2px;  height:2px;  left:40%; animation-duration:14s; animation-delay:6s;   }
.particles span:nth-child(4)  { width:4px;  height:4px;  left:55%; animation-duration:20s; animation-delay:1s;   }
.particles span:nth-child(5)  { width:2px;  height:2px;  left:65%; animation-duration:16s; animation-delay:8s;   }
.particles span:nth-child(6)  { width:3px;  height:3px;  left:75%; animation-duration:11s; animation-delay:4s;   }
.particles span:nth-child(7)  { width:2px;  height:2px;  left:85%; animation-duration:22s; animation-delay:2s;   }
.particles span:nth-child(8)  { width:3px;  height:3px;  left:90%; animation-duration:15s; animation-delay:7s;   }

@keyframes float-up {
  0%   { bottom: -10px; opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { bottom: 100vh; opacity: 0; }
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
  gap: 28px;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 14px;
  animation: fade-down 0.8s ease both;
}

.label__line {
  display: block;
  width: 50px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--blue-glow));
}

.label__line:last-child {
  background: linear-gradient(to left, transparent, var(--blue-glow));
}

.label__text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--blue-glow);
  text-transform: uppercase;
}

.hero__title {
  text-align: center;
  animation: fade-down 0.9s ease 0.1s both;
}

.title__main {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.08em;
  color: var(--white);
  text-shadow:
    0 0 20px rgba(0, 170, 255, 0.5),
    0 0 60px rgba(0, 170, 255, 0.2);
  line-height: 1;
}

.title__sub {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--grey-light);
  text-transform: uppercase;
  margin-top: 6px;
}

.book-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fade-up 1s ease 0.2s both;
  padding: 40px 80px;
}

.book {
  position: relative;
  width: var(--book-w);
  height: var(--book-h);
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: pointer;
}

.hardcover_back li:first-child {
  background: #0d0d0d;
}
.hardcover_back li:last-child {
  background: #0d0d0d;
}

.book_spine li:first-child {
  background: #111;
}
.book_spine li:last-child {
  background: #000;
}
.page > li {
  background-image: url('../background.png');
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0px -1px 2px rgba(0,0,0,0.4),
    inset -1px 0px 1px rgba(0,170,255,0.08);
  border-radius: 0px 4px 4px 0px;
}

 Thickness edges color
.hardcover_front li:first-child::after,
.hardcover_front li:first-child::before,
.hardcover_front li:last-child::after,
.hardcover_front li:last-child::before,
.hardcover_back li:first-child::after,
.hardcover_back li:first-child::before,
.hardcover_back li:last-child::after,
.hardcover_back li:last-child::before,
.book_spine li:first-child::after,
.book_spine li:first-child::before,
.book_spine li:last-child::after,
.book_spine li:last-child::before {
  background: #1a2a3a;
}


.hardcover_front {
  transform: rotateY(-34deg) translateZ(var(--cover-thickness));
  z-index: 100;
  transition: transform 0.8s ease, z-index 0.6s;
}

.hardcover_back {
  transform: rotateY(-15deg) translateZ(calc(var(--cover-thickness) * -1));
}

.page li:nth-child(1) { transform: rotateY(-28deg); }
.page li:nth-child(2) { transform: rotateY(-30deg); }
.page li:nth-child(3) { transform: rotateY(-32deg); }
.page li:nth-child(4) { transform: rotateY(-34deg); }
.page li:nth-child(5) { transform: rotateY(-36deg); }


.hardcover_front,
.hardcover_back,
.book_spine,
.hardcover_front li,
.hardcover_back li,
.book_spine li {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
}

.hardcover_front,
.hardcover_back {
  transform-origin: 0% 100%;
}


.hardcover_front li:first-child::after,
.hardcover_front li:first-child::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: var(--cover-thickness);
  height: 100%;
}

.hardcover_front li:first-child::after {
  transform: rotateY(90deg) translateZ(-3px) translateX(3px);
}

.hardcover_front li:first-child::before {
  transform: rotateY(90deg) translateZ(calc(var(--book-w) - 3px)) translateX(3px);
}

.hardcover_front li:last-child::after,
.hardcover_front li:last-child::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: var(--cover-thickness);
  height: var(--book-w);
}

.hardcover_front li:last-child::after {
  transform: rotateX(90deg) rotateZ(90deg) translateZ(calc(var(--book-h) / 2))
    translateX(-3px) translateY(calc(var(--book-w) / -2 + 3px));
}

.hardcover_front li:last-child::before {
  box-shadow: 0px 0px 40px 8px rgba(0, 100, 180, 0.4);
  transform: rotateX(90deg) rotateZ(90deg) translateZ(calc(var(--book-h) / -2))
    translateX(-3px) translateY(calc(var(--book-w) / -2 + 3px));
}

.hardcover_back li:first-child::after,
.hardcover_back li:first-child::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: var(--cover-thickness);
  height: 100%;
}

.hardcover_back li:first-child::after {
  transform: rotateY(90deg) translateZ(-3px) translateX(3px);
}

.hardcover_back li:first-child::before {
  transform: rotateY(90deg) translateZ(calc(var(--book-w) - 3px)) translateX(3px);
}

.hardcover_back li:last-child::after,
.hardcover_back li:last-child::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: var(--cover-thickness);
  height: var(--book-w);
}

.hardcover_back li:last-child::after {
  transform: rotateX(90deg) rotateZ(90deg) translateZ(calc(var(--book-h) / 2))
    translateX(-3px) translateY(calc(var(--book-w) / -2 + 3px));
}

.hardcover_back li:last-child::before {
  box-shadow: 5px -1px 80px 30px rgba(0,0,0,0.5);
  transform: rotateX(90deg) rotateZ(90deg) translateZ(calc(var(--book-h) / -2))
    translateX(-3px) translateY(calc(var(--book-w) / -2 + 3px));
}

.book_spine {
  transform: rotateY(60deg) translateX(-18px);
  width: 18px;
  transform-origin: 0% 100%;
}

.book_spine li:first-child::after,
.book_spine li:first-child::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: var(--cover-thickness);
  height: 100%;
}

.book_spine li:first-child::after {
  transform: rotateY(90deg) translateZ(-3px) translateX(3px);
}

.book_spine li:first-child::before {
  transform: rotateY(-90deg) translateZ(-14px);
}

.book_spine li:last-child::after,
.book_spine li:last-child::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: var(--cover-thickness);
  height: 18px;
}

.book_spine li:last-child::after {
  transform: rotateX(90deg) rotateZ(90deg) translateZ(9px) translateX(3px) translateY(-8px);
}

.book_spine li:last-child::before {
  box-shadow: 5px -1px 60px 20px rgba(0,0,0,0.3);
  transform: rotateX(90deg) rotateZ(90deg) translateZ(calc(var(--book-h) * -1))
    translateX(3px) translateY(-8px);
}


.page,
.page > li {
  position: absolute;
  top: 0; left: 0;
  transform-style: preserve-3d;
}

.page {
  width: 100%;
  height: 98%;
  top: 1%;
  left: 3%;
  z-index: 10;
}

.page > li {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transition-property: transform;
  transition-timing-function: ease;
}

.page > li:nth-child(1) { transition-duration: 0.6s; }
.page > li:nth-child(2) { transition-duration: 0.6s; }
.page > li:nth-child(3) { transition-duration: 0.4s; }
.page > li:nth-child(4) { transition-duration: 0.5s; }
.page > li:nth-child(5) { transition-duration: 0.6s; }


.book:hover > .hardcover_front {
  transform: rotateY(-148deg) translateZ(0);
  z-index: 0;
}

.book:hover > .page li:nth-child(1) {
  transform: rotateY(-30deg);
  transition-duration: 1.5s;
}
.book:hover > .page li:nth-child(2) {
  transform: rotateY(-35deg);
  transition-duration: 1.8s;
}
.book:hover > .page li:nth-child(3) {
  transform: rotateY(-118deg);
  transition-duration: 1.6s;
}
.book:hover > .page li:nth-child(4) {
  transform: rotateY(-130deg);
  transition-duration: 1.4s;
}
.book:hover > .page li:nth-child(5) {
  transform: rotateY(-140deg);
  transition-duration: 1.2s;
}

.book:hover {
  filter: drop-shadow(0 0 30px rgba(0, 140, 255, 0.35));
}


.coverDesign {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  background-image: url('../cover.png');
  background-size: cover;
  background-position: center top;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fade-up 1s ease 0.4s both;
}

.btn-buy {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 1px solid var(--blue-glow);
  color: var(--white);
  padding: 14px 32px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0 0 10px rgba(0,170,255,0.2),
    inset 0 0 10px rgba(0,170,255,0.05);
}

.btn-buy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,170,255,0.12), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-buy:hover::before {
  transform: translateX(100%);
}

.btn-buy:hover {
  background: rgba(0,170,255,0.08);
  border-color: #fff;
  box-shadow:
    0 0 25px rgba(0,170,255,0.4),
    inset 0 0 15px rgba(0,170,255,0.1);
  color: #fff;
  transform: translateY(-2px);
}

.btn-buy__price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--blue-glow);
  letter-spacing: 0.05em;
  line-height: 1;
}

.btn-buy__text {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--grey-light);
}

.btn-buy__arrow {
  font-size: 1.2rem;
  color: var(--blue-glow);
  transition: transform 0.3s ease;
}

.btn-buy:hover .btn-buy__arrow {
  transform: translateX(4px);
}

.cta__note {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--grey-dim);
  text-transform: uppercase;
}


@keyframes fade-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.qa-section {
  width: 100%;
  max-width: 1100px;
  padding: 40px 20px 20px;
  position: relative;
  z-index: 2;
}

.qa-section__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.12em;
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
  text-shadow: 0 0 20px rgba(133, 95, 99, 0.8);
}

.qa-section__title span { color: #742424cc; }

.qa-section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, #00aaff, transparent);
  margin: 10px auto 0;
}

.qa-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
}

.qa-item {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  border: 1px solid rgba(0,170,255,0.2);
  background: rgba(0,10,20,0.6);
  padding: 20px 22px;
  transition: border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.qa-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: #00aaff;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.qa-item:hover,
.qa-item.active {
  border-color: rgba(0,170,255,0.6);
  background: rgba(0,20,40,0.8);
}

.qa-item:hover::before,
.qa-item.active::before { transform: scaleY(1); }

.qa-item__question {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.qa-item__question::before {
  content: 'Q';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: #00aaff;
  flex-shrink: 0;
  margin-top: 1px;
}

.qa-item__arrow {
  display: inline-block;
  margin-left: auto;
  color: #00aaff;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  padding-left: 8px;
}

.qa-item.active .qa-item__arrow { transform: rotate(90deg); }

.qa-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.qa-item.active .qa-item__answer {
  max-height: 400px;
  padding-top: 14px;
}

.qa-item__answer p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.65;
  color: #a0b8cc;
  border-top: 1px solid rgba(0,170,255,0.15);
  padding-top: 12px;
  min-height: 1.65em;
}

.qa-item__answer p::after {
  content: '|';
  color: #00aaff;
  animation: cursor-blink 0.7s infinite;
  margin-left: 1px;
}

.qa-item__answer p.done::after { display: none; }

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 768px) {
  .qa-grid { flex-direction: column; gap: 16px; }
  .qa-item { width: 100%; }
}

@media (max-width: 480px) {
  .qa-section { padding: 30px 16px 40px; }
  .qa-item__question { font-size: 0.92rem; }
  .qa-item__answer p { font-size: 0.85rem; }

}

@media (max-width: 480px) {
  :root {
    --book-w: 200px;
    --book-h: 280px;
  }

  .title__main {
    font-size: 2.8rem;
  }

  .book-wrapper {
    padding: 30px 50px;
  }

  .btn-buy {
    padding: 12px 20px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-buy__price {
    font-size: 1.3rem;
  }

  .btn-buy__text {
    font-size: 0.75rem;
  }

  .label__text {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }
}

@media (max-width: 360px) {
  :root {
    --book-w: 170px;
    --book-h: 240px;
  }
}
