/* ===========================
   PROFESSIONAL BOOK ANATOMY
=========================== */

.book-anatomy-section {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 200, 0, .08), transparent 36%),
    #080808;
  overflow: hidden;
}

.book-anatomy-header {
  max-width: 900px;
  margin: auto;
  text-align: center;
  margin-bottom: 90px;
}

.book-anatomy-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1.05;
  margin: 24px 0;
}

.book-anatomy-header h2::first-line {
  color: var(--primary);
}

.book-anatomy-header p {
  max-width: 760px;
  margin: auto;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,.76);
}

/* ===========================
   MAIN LAYOUT
=========================== */

.book-anatomy-stage {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 70px;
  align-items: center;
}

/* ===========================
   BLUEPRINT AREA
=========================== */

.book-blueprint {
  min-height: 680px;
  position: relative;
  border-radius: 40px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.book-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .45;
  pointer-events: none;
}

.book-blueprint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,200,0,.08), transparent 42%);
  pointer-events: none;
}

.blueprint-center {
  position: relative;
  width: 100%;
  height: 680px;
}

/* ===========================
   GRAPHIC BOOK
=========================== */

.book-cover-frame {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 170px;
  height: 260px;
  transform: translate(-50%, -50%);
  border-radius: 8px 18px 18px 8px;
  overflow: hidden;
  z-index: 5;
  border: 1px solid rgba(255,200,0,.25);
  box-shadow:
    0 30px 70px rgba(0,0,0,.55),
    0 0 55px rgba(255,200,0,.16);
}

.graphic-book {
  background:
    radial-gradient(circle at 72% 20%, rgba(255,200,0,.28), transparent 32%),
    linear-gradient(145deg, #171717, #050505);
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 100%;
  background: rgba(0,0,0,.35);
  z-index: 3;
  border-right: 1px solid rgba(255,255,255,.08);
}

.book-cover-design {
  width: 100%;
  height: 100%;
  padding: 32px 24px 26px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.book-small-title {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.book-cover-design h4 {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  line-height: .95;
  color: var(--white);
}

.book-cover-design p {
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255,255,255,.65);
}

.book-gold-line {
  width: 60px;
  height: 3px;
  background: var(--primary);
}

.book-cover-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255,255,255,.12) 42%, transparent 55%);
  transform: translateX(-80%);
  transition: .7s ease;
  z-index: 5;
  pointer-events: none;
}

.book-cover-frame:hover .book-cover-shine {
  transform: translateX(80%);
}

/* ===========================
   BLUEPRINT LINES
=========================== */

.blueprint-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.bp-line {
  position: absolute;
  background: rgba(255,200,0,.42);
  transform-origin: center;
}

.bp-top {
  width: 2px;
  height: 78px;
  left: 50%;
  top: 132px;
}

.bp-left {
  width: 175px;
  height: 2px;
  left: calc(50% - 260px);
  top: 47%;
}

.bp-right {
  width: 175px;
  height: 2px;
  right: calc(50% - 260px);
  top: 47%;
}

.bp-bottom{
    position:absolute;

    width:2px;
    height:170px;

    left:50%;

    top:390px;          /* bottom edge of the book */

    transform:translateX(-50%);
}

.bp-bottom-left{

    position:absolute;

    width:230px;
    height:2px;

    left:50%;
    top:390px;

    transform-origin:left center;
    transform:rotate(150deg);
}

/* Right branch */

.bp-bottom-right{

    position:absolute;

    width:230px;
    height:2px;

    left:50%;
    top:390px;

    transform-origin:left center;
    transform:rotate(30deg);
}

/* ===========================
   LABELS / NODES
=========================== */

.blueprint-label {
  position: absolute;
  z-index: 6;
}

.book-node {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.76);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: .35s ease;
  padding: 12px 16px;
  border-radius: 999px;
}

.book-node:hover,
.book-node.active {
  color: #111;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 35px rgba(255,200,0,.2);
}

.node-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.38);
  box-shadow: 0 0 0 6px rgba(255,255,255,.04);
  transition: .35s ease;
}

.book-node:hover .node-dot,
.book-node.active .node-dot {
  background: #111;
  box-shadow: 0 0 0 7px rgba(0,0,0,.12);
}

.blueprint-label.top {
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
}

.blueprint-label.left {
  left: 55px;
  top: calc(47% - 22px);
}

.blueprint-label.right {
  right: 55px;
  top: calc(47% - 22px);
}

.blueprint-label.bottom-left {
  left: 90px;
  top: 520px;
}

.blueprint-label.bottom {
  left: 50%;
  top: 565px;
  transform: translateX(-50%);
}

.blueprint-label.bottom-right {
  right: 90px;
  top: 520px;
}

/* ===========================
   INFO PANEL
=========================== */

.book-info-panel {
  padding: 48px;
  border-radius: 36px;
  background:
    linear-gradient(145deg, #ffd54a, #f5be18);
  color: #111;
  box-shadow: 0 25px 60px rgba(255,200,0,.18);
  border: 1px solid rgba(255,255,255,.2);
}

.book-info-label {
  display: inline-block;
  color: #7a5200;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.book-info-panel h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  margin-bottom: 24px;
  color: #111;
  transition: opacity .18s ease;
}

.book-info-panel p {
  color: #2f2f2f;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  transition: opacity .18s ease;
}

.book-info-panel ul {
  list-style: none;
  display: grid;
  gap: 14px;
  transition: opacity .18s ease;
}

.book-info-panel li {
  position: relative;
  padding-left: 28px;
  color: #111;
  font-weight: 700;
  line-height: 1.6;
}

.book-info-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7a5200;
  font-weight: 900;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1150px) {
  .book-anatomy-stage {
    grid-template-columns: 1fr;
  }

  .book-info-panel {
    max-width: 760px;
    margin: auto;
  }
}

@media (max-width: 760px) {
  .book-blueprint {
    min-height: auto;
    padding: 28px;
  }

  .blueprint-center {
    height: auto;
    display: grid;
    gap: 16px;
  }

  .book-cover-frame {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 170px;
    height: 260px;
    margin: 0 auto 24px;
    order: -1;
  }

  .blueprint-lines {
    display: none;
  }

  .blueprint-label {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }

  .book-node {
    width: 100%;
    justify-content: flex-start;
    padding: 16px 18px;
  }

  .book-info-panel {
    padding: 34px;
  }
}

@media (max-width: 520px) {
  .book-anatomy-header p {
    font-size: 16px;
  }

  .book-blueprint {
    padding: 22px;
  }

  .book-info-panel {
    padding: 30px;
  }
}