/**
 * Skilled-Up Textbook — Homepage section
 */

.skillup-home {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  overflow: hidden;
  background: linear-gradient(165deg, #0f2e22 0%, #163828 35%, #1a4030 100%);
  color: #ecfdf5;
}

.skillup-home__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 85% 10%, rgba(220, 113, 31, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 35% at 10% 90%, rgba(211, 174, 66, 0.15), transparent 55%);
}

.skillup-home__container {
  position: relative;
  z-index: 1;
}

.skillup-home__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4d390;
  margin-bottom: 0.85rem;
}

.skillup-home__eyebrow--light {
  color: #fde68a;
}

.skillup-home__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: #fff;
  letter-spacing: -0.03em;
}

.skillup-home__lead {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.7;
  color: rgba(236, 253, 245, 0.88);
}

.skillup-home__lead strong {
  color: #fbbf24;
}

.skillup-home__visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skillup-home__book-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 3.2;
  margin: 0 auto;
}

.skillup-home__book {
  display: block;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.35));
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.skillup-home__book--main {
  position: relative;
  z-index: 3;
  width: 72%;
  margin: 0 auto;
}

.skillup-home__book--ghost {
  position: absolute;
  top: 8%;
  width: 58%;
  opacity: 0.55;
  z-index: 1;
}

.skillup-home__book--ghost-1 {
  left: 0;
  transform: rotate(-8deg) translateY(6%);
}

.skillup-home__book--ghost-2 {
  right: 0;
  transform: rotate(8deg) translateY(6%);
}

.skillup-home__book--ghost-3 {
  left: 50%;
  transform: translateX(-50%) scale(0.92);
  top: -2%;
  opacity: 0.35;
}

.skillup-home__edition {
  position: absolute;
  top: 0.5rem;
  right: 12%;
  z-index: 4;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc721f, #b85a0f);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(220, 113, 31, 0.35);
}

.skillup-home__placeholder {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.skillup-home__placeholder i {
  font-size: 2.5rem;
  color: #f4d390;
  margin-bottom: 0.75rem;
}

.skillup-home__content {
  padding: 0.5rem 0;
}

.skillup-home__pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.skillup-home__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.skillup-home__pill--green {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.skillup-home__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: #fff;
}

.skillup-home__copy {
  color: rgba(236, 253, 245, 0.82);
  line-height: 1.75;
  margin-bottom: 1.35rem;
  font-size: 0.98rem;
}

.skillup-home__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.skillup-home__highlight {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.skillup-home__highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 113, 31, 0.18);
  color: #fbbf24;
  flex-shrink: 0;
}

.skillup-home__highlight strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.skillup-home__highlight p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(236, 253, 245, 0.72);
}

.skillup-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skillup-home__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
}

.skillup-home__btn--primary {
  background: linear-gradient(135deg, #dc721f, #b85a0f);
  color: #fff;
  box-shadow: 0 12px 28px rgba(220, 113, 31, 0.35);
}

.skillup-home__btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(220, 113, 31, 0.42);
}

.skillup-home__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.skillup-home__btn--secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.skillup-home__testimonials {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skillup-home__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.75rem;
}

.skillup-home__quote {
  height: 100%;
  margin: 0;
  padding: 1.35rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.skillup-home__quote--orange {
  border-color: rgba(220, 113, 31, 0.35);
  box-shadow: inset 0 0 0 1px rgba(220, 113, 31, 0.08);
}

.skillup-home__quote--green {
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.skillup-home__quote-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.skillup-home__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #dc721f, #b85a0f);
}

.skillup-home__quote--green .skillup-home__avatar {
  background: linear-gradient(135deg, #059669, #047857);
}

.skillup-home__author {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  font-size: 0.98rem;
}

.skillup-home__role {
  display: block;
  font-size: 0.8rem;
  color: rgba(236, 253, 245, 0.65);
}

.skillup-home__source {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(236, 253, 245, 0.55);
  white-space: nowrap;
}

.skillup-home__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.skillup-home__badge {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #a7f3d0;
  font-size: 0.72rem;
  font-weight: 700;
}

.skillup-home__quote-text {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.skillup-home__quote-footer {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fbbf24;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .skillup-home__hero {
    text-align: center;
  }

  .skillup-home__pill-row,
  .skillup-home__actions {
    justify-content: center;
  }

  .skillup-home__highlights {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .skillup-home__highlights {
    grid-template-columns: 1fr;
  }

  .skillup-home__quote-top {
    grid-template-columns: auto 1fr;
  }

  .skillup-home__source {
    grid-column: 1 / -1;
    justify-self: start;
    white-space: normal;
  }

  .skillup-home__book--main {
    width: 82%;
  }

  .skillup-home__book--ghost {
    width: 48%;
  }

  .skillup-home__actions {
    flex-direction: column;
  }

  .skillup-home__btn {
    width: 100%;
  }
}

@media (hover: hover) {
  .skillup-home__visual:hover .skillup-home__book--main {
    transform: translateY(-6px) scale(1.02);
  }
}
