:root {
  --border-offset-x: 8px;
  --border-offset-y: 6px;
  --border-inset-right: -8px;
  --border-inset-bottom: -6px;
}

section {
  position: relative;
  min-height: 800px;
  height: auto !important;
  overflow: visible !important;
  border-bottom: 1px solid var(--color-gray);
  display: flex;
  align-items: center;
}

section:last-of-type {
  border-bottom: none;
}

.hero,
.feature,
.pricing {
  padding: 60px 0;
}

.section-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.about {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 1) 0%,
    rgba(30, 40, 20, 1) 40%,
    rgba(20, 30, 0, 1) 100%
  );
}

.pricing .section-content,
.about .section-content {
  flex-direction: column;
  text-align: center;
  margin-bottom: 30px;
}

.content-text,
.content-images {
  max-width: fit-content;
}

.content-text h1,
.content-text p {
  margin-bottom: 20px;
}

.content-text h1 {
  font-size: 48px;
}

.badge-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 18px;
  font-size: 20px;
  line-height: inherit; /* IMPORTANT: use the h1 line-height */
  border-radius: 999px;
  color: #fff;

  background: linear-gradient(var(--color-black), var(--color-black))
      padding-box,
    linear-gradient(135deg, #2d8cff, #c0ff53) border-box;
  border: 2px solid transparent;

  vertical-align: middle; /* aligns inline element to middle of surrounding text box */
  transform: translateY(
    -6%
  ); /* micro-adjust — tune the % as needed (try -4% .. -8%) */
}

.content-images {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  .content-images {
    gap: 15px;
  }
}

.image-circle-container {
  position: relative;
  width: 250px;
  height: 500px;
  box-sizing: border-box;
  overflow: visible;
  margin: 0;
}

.image-circle-container.small {
  width: 180px;
  height: 300px;
}

.image-circle-container.small .image-circle,
.image-circle-container.small .white-border {
  border-radius: 130px;
}

.image-circle {
  position: absolute;
  inset: 0;
  border-radius: 168px;
  overflow: hidden;
  box-sizing: border-box;
  display: block;
}

.image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.white-border {
  position: absolute;
  top: var(--border-offset-y);
  left: var(--border-offset-x);
  right: var(--border-inset-right);
  bottom: var(--border-inset-bottom);

  pointer-events: none;
  border: 2px solid var(--color-white);
  border-radius: 168px;
  box-sizing: border-box;
}

.starburst {
  position: absolute;
  width: 68px;
  height: 68px;
  top: -14px;
  right: -18px;
  z-index: 5;
  pointer-events: none;
  transform-origin: center;
  display: block;
  animation: spin 1s linear infinite;
}

/* feature */
.feature-detail-container {
  position: relative;
  display: block;
  max-width: 720px;
  margin: 0 auto;
  border-left: 2px solid var(--color-white);
  padding-left: 24px;
}

.feature-detail-container .btn-cta {
  position: relative;
  z-index: 3;
}

.feature-detail-arrow {
  position: absolute;
  height: 250px;
  pointer-events: none;
  z-index: 1;
  width: 200px;
  left: 25px;
  top: 80px;
  transform-origin: center;
  transform: rotate(0deg);
  transition: width 0.2s ease, right 0.2s ease, top 0.2s ease,
    transform 0.2s ease;
}

.feature-images {
  position: relative;
  width: 420px;
  min-height: 560px;
  padding-bottom: 20px;
  margin: 0 auto;
}

.comment-card {
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 156px;
  background: var(--color-white);
  color: var(--color-dark-gray);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  z-index: 30;
}

.comment-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-black);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.comment-card p {
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-dark-gray);
  margin: 0;
  flex: 1;
  font-weight: 400;
}

.white-rectangle {
  position: absolute;
  top: 170px;
  right: 0;
  width: 240px;
  height: 350px;
  background: var(--color-white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  z-index: 20;
}

.main-image-frame {
  position: absolute;
  left: 0;
  top: 90px;
  width: 250px;
  height: 350px;
  overflow: hidden;
  z-index: 40;
  border: 6px solid var(--color-black);
}

.main-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-images > img.starburst {
  position: absolute;
  top: 370px;
  left: 185px;
  width: 125px;
  height: 125px;
  z-index: 50;
  pointer-events: none;
  transform-origin: center;
}

.comment-card,
.white-rectangle {
  background-clip: padding-box;
}

/* feature 2 */
#feature-2 {
  .content-text h1 {
    font-size: 34px;
  }

  .feature-images img {
    height: 420px;
  }

  img.starburst {
    position: absolute;
    top: -45px;
    right: -45px;
    width: 96px;
    height: 96px;
    z-index: 50;
    pointer-events: none;
    transform-origin: center;
  }
}

.image-frame {
  position: relative;
}

.image-frame,
.image-frame img {
  height: 450px;
  max-width: 450px;
}

/* pricing */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -1px;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background-color: rgba(191, 255, 0, 0.2);
  border: 1px solid var(--color-lime);
  color: var(--color-lime);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 16px;
}

.pricing-cards {
  display: flex;
  gap: 32px;
  width: 100%;
}

.pricing-card {
  background-color: var(--color-black);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  transition: all 0.3s;
  min-width: 0;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-lime);
}

.pricing-card.featured {
  border-color: var(--color-lime);
  background: radial-gradient(
      circle at 50% 120%,
      rgba(150, 255, 0, 0.12) 0%,
      rgba(0, 0, 0, 0) 60%
    ),
    linear-gradient(
      to bottom,
      #0b0c0a 0%,
      #0d0f0b 35%,
      #11170d 70%,
      #131d0f 100%
    );
  color: #fff;
  border-radius: 20px;
}

.pricing-card.featured {
  .btn-icon {
    background: linear-gradient(
      135deg,
      #3a84ff 0%,
      #4da0ff 25%,
      #6ccf9e 60%,
      #c5ff37 100%
    );
  }
  .btn-icon svg {
    transform: rotate(-45deg);
  }
}

.card-badge {
  padding: 6px 16px;
  background-color: var(--color-lime);
  color: var(--color-black);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 400;
}

.card-badge.dark {
  background-color: var(--color-dark-gray);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-badge.active {
  background-color: rgba(191, 255, 0, 0.12);
  color: var(--color-lime);
  border: 1px solid var(--color-lime);
}

.price {
  overflow-wrap: anywhere;
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
  margin-top: 16px;
}

.currency,
.amount {
  font-size: 32px;
  font-weight: 400;
}

.amount {
  line-height: 1;
}

.period {
  font-size: 14px;
  color: var(--color-gray);
}

.price-description {
  color: var(--color-gray);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.features-list {
  list-style: none;
  margin-bottom: 32px;
}

.features-list li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  font-size: 14px;
}

.features-list li.check {
  padding-left: 38px;
}

.features-list li.check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);

  border: 2px solid var(--color-lime);
  border-radius: 50%;

  background: transparent;
}

.features-list li.check::after {
  content: "✓";
  position: absolute;
  left: 5px; /* adjust check position */
  top: 49%;
  transform: translateY(-50%);

  color: var(--color-lime);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
}
.features-list li.highlight,
.features-list span.highlight {
  color: var(--color-lime);
  font-weight: 500;
}

/* MEDIA QUERY */

@media (max-width: 991px) {
  .section-content {
    flex-direction: column;
    gap: 50px;
  }

  .section-content.reverse {
    flex-direction: column-reverse;
  }

  .feature-detail-container {
    border-left: 0;
    padding-left: 0;
  }

  .feature-detail-arrow {
    display: none;
  }

  .pricing-cards {
    flex-direction: column;
  }
  .content-text {
    text-align: center !important;
    align-items: center;
  }
}
