.max-width {
  max-width: 1200px;
}

.service-section {
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: var(--spacing-200) calc(50px + var(--spacing-100)) var(--spacing-200)
    calc(50px + var(--spacing-100));
}

/* 1. Landing Section */
.landing-section {
  height: 100vh;
  min-height: 600px;
  background-color: var(--color-white);
}

.landing-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  column-gap: 50px;
}

.landing-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing-logo {
  width: 300px;
  margin-bottom: var(--spacing-100);
}

.app-buttons {
  display: flex;
  gap: 20px;
}

.app-buttons a img {
  width: 152px;
}

.landing-image {
  max-width: 540px;
}

.landing-image img {
  max-width: 100%;
}

/* 2. Detail Section */
.detail-section {
  flex-direction: column;
  text-align: center;
  height: auto;
  background-color: var(--color-background);
}

.detail-part-one {
  margin-bottom: var(--spacing-175);
}

.detail-part-one h2 {
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: var(--spacing-75);
  line-height: 1.4;
}

.detail-part-one p {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-gray800);
  line-height: 1.5;
}

.detail-part-two {
  display: flex;
  justify-content: center;
  gap: var(--spacing-75);
  width: 100%;
}

.feature {
  flex: 1;
  background-color: var(--color-white);
  padding: var(--spacing-175);
  border-radius: 1.5rem;
}

.feature img {
  max-width: 180px;
  margin-bottom: var(--spacing-100);
}

.feature h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: var(--spacing-100);
  line-height: 1.2;
}

.feature h3 .sub {
  font-size: 1.3rem;
}

.feature p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
}

/* 3. System Section */
.description-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-75);
  min-height: 76vh;
  background-color: var(--color-white);
}

.description-section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-75);
  width: 100%;
}

.description-section h2 {
  font-size: 2.7rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-100);
}

.description-text p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
}

.description-video {
  max-width: 400px;
}

.description-video video {
  width: 100%;
  height: 100%;
  isolation: isolate;
  clip-path: inset(3px 3px);
}

.description-video.mobile-only {
  display: none;
}

/* 4. Free Problems Section */
.free-problems-text,
.manage-text {
  order: 2;
}

.free-problems-image,
.manage-image {
  order: 1;
}

.prompt-section {
  display: flex;
  min-height: 76vh;
  flex-direction: column;
  row-gap: var(--spacing-50);
  background-color: var(--color-white);
}

.prompt-section .prompt {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 500;
}

.prompt-section .prompt > span {
  color: var(--color-gray600);
  transition: color 0.1s;
}

.prompt-section .prompt > span.colored {
  color: var(--color-black);
}

.prompt-section .prompt > .line-break {
  flex-basis: 100%;
  height: 0px;
}

/* 5. Reviews Section */
.reviews-section {
  flex-direction: column;
  background-color: var(--color-background);
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

.reviews-title {
  font-size: 3rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: var(--spacing-50);
  line-height: 1.2;
}

.reviews-ratings {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-175);
}

.reviews-ratings .rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reviews-ratings .seperator {
  width: 1px;
  height: 5rem;
  margin: 0 var(--spacing-100);
  background-color: var(--color-gray400);
}

.reviews-ratings .rating .key {
  font-size: 0.9rem;
  color: var(--color-gray800);
}

.reviews-ratings .rating .value {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--color-black);
}

.reviews-carousel-wrapper {
  width: 100%;
  padding: 0 calc(50px + var(--spacing-100)) 0 calc(50px + var(--spacing-100));
  overflow: hidden;
}

.reviews-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--spacing-40);
  will-change: transform;
  transition: transform 0.3s ease-out;
}

.review-card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 320px;
  background-color: var(--color-white);
  border-radius: 1.5rem;
  padding: var(--spacing-75);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.review-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-50);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-card p {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-gray800);
  margin-bottom: var(--spacing-50);
  height: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.review-rating-star {
  color: #ffc107;
  font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .service-section {
    flex-direction: column;
    padding: 80px var(--spacing-75) 80px var(--spacing-75);
  }

  /* 1. Landing Section */
  .landing-section {
    height: unset !important;
    min-height: unset !important;
  }

  .landing-content {
    flex-direction: column;
    column-gap: 30px;
  }

  .landing-text {
    order: 1;
  }

  .landing-image {
    order: 2;
  }

  .landing-image img {
    max-width: 460px;
  }

  .landing-image img {
    width: 100%;
  }

  .landing-logo {
    width: 200px;
    margin-bottom: var(--spacing-100);
  }

  .app-buttons a img {
    width: 100px;
  }

  /* 2. Detail Section */
  .detail-part-one h2 {
    font-size: 1.9rem;
  }
  .detail-part-one h2 .sub {
    font-size: 1.8rem;
  }
  .detail-part-one p {
    font-size: 1.1rem;
  }
  .detail-part-two {
    flex-direction: column;
    gap: 60px;
  }

  .feature {
    padding: var(--spacing-100) var(--spacing-75);
  }

  .feature img {
    max-width: 130px;
    margin-bottom: var(--spacing-50);
  }

  .feature h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-50);
  }

  .feature h3 .sub {
    font-size: 1.1rem;
  }

  .feature p {
    font-size: 0.9rem;
  }

  /* 3 & 4. System and Free Problems Section */
  .description-section {
    flex-direction: column;
    text-align: center;
  }
  .description-section-content {
    justify-content: center;
  }

  .description-text h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: var(--spacing-75);
  }

  .description-text p {
    font-size: 1rem;
  }

  .description-video video {
    width: 100%;
    max-height: 100%;
    max-width: 250px;
  }

  .description-video.mobile-only {
    display: flex !important;
    justify-content: center;
    margin-bottom: var(--spacing-40);
  }

  .description-video.desktop-only {
    display: none;
  }

  .prompt-section .prompt {
    font-size: 2rem;
  }

  /* 5. Reviews Section */
  .reviews-section {
    padding-left: 0;
    padding-right: 0;
  }
  .reviews-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-75);
  }
  .reviews-ratings {
    margin-bottom: var(--spacing-125);
  }
  .reviews-ratings .seperator {
    height: 4rem;
    margin: 0 var(--spacing-50);
  }
  .reviews-ratings .rating .key {
    font-size: 0.8rem;
  }
  .reviews-ratings .rating .value {
    font-size: 1.5rem;
  }

  .review-card {
    width: 260px;
    padding: var(--spacing-50) var(--spacing-75);
  }

  .review-card h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-40);
  }

  .review-card p {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-40);
  }

  .review-rating-star {
    font-size: 1rem;
  }

  .reviews-carousel-wrapper {
    padding: 0 var(--spacing-75) 0 var(--spacing-75);
  }
}
