/* ───────────────────────────────────────────────────────────
   Attincare Home Page Styles
   Based on Penpot Design Specifications (Page 4 -> home)
   ─────────────────────────────────────────────────────────── */

.home-main {
  width: 100%;
  background-color: #ffffff;
  padding-top: 110px; /* Offset for fixed header */
  overflow-x: hidden;
  font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f1f1f;
}

.watch-section {
  scroll-margin-top: 113px;
}

/* ─── 1. Hero / Banner Section ─────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  text-align: center;
  overflow: hidden;
  padding-top: 40px;
  scroll-margin-top: 113px;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 967px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-title {
  font-family: "Noto Sans", sans-serif;
  font-size: 70px;
  font-weight: 500;
  color: #1f1f1f;
  line-height: 1.15;
  letter-spacing: -2px;
  margin: 0 0 24px 0;
}

.hero-subtitle {
  font-family: "Noto Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #1f1f1f;
  line-height: 1.56;
  max-width: 773px;
  margin: 0 auto 32px auto;
}

.download-btn-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.download-btn-group a {
  display: inline-block;
}

.download-btn-group img {
  height: 38px;
  width: auto;
  display: block;
}

.hero-banner-wrap {
  position: relative;
  width: 100%;
  max-width: 1728px;
  margin: -140px auto 0 auto;
  z-index: 1;
  overflow: hidden;
}

.hero-banner-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 420px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 20%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 450px;
}

/* ─── 2. About Us Section ───────────────────────────────── */
.about-section {
  width: 100%;
  background-color: #ffffff;
  padding: 130px 0 100px 0;
}

.about-container {
  max-width: 1448px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  box-sizing: border-box;
}

.about-text-col {
  flex: 1;
  max-width: 833px;
}

.about-tag {
  display: inline-block;
  font-family: "Noto Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #5eaa94;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-heading {
  font-family: "Noto Sans", sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #011f59;
  line-height: 1.17;
  margin: 0 0 20px 0;
}

.about-description {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1f1f1f;
  line-height: 2.0;
  margin: 0;
}

.about-logo-col {
  width: 437px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-img {
  width: 100%;
  max-width: 437px;
  height: auto;
  display: block;
}

/* ─── 3. Attincare Worker System Section ───────────────── */
.works-section {
  width: 100%;
  background-color: #ffffff;
  padding: 100px 0 120px 0;
}

.works-container {
  max-width: 1448px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.works-heading {
  font-family: "Noto Sans", sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #011f59;
  text-align: center;
  line-height: 1.2;
  margin: 0 0 70px 0;
}

.works-features-grid {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 120px;
}

.feature-card {
  flex: 1;
  min-width: 0;
}

.feature-title {
  font-family: "Noto Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #011f59;
  line-height: 1.25;
  margin: 0 0 20px 0;
}

.feature-desc {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1f1f1f;
  line-height: 2;
  margin: 0;
}

.works-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
}

.gallery-item {
  width: 262px;
  height: 477px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-left {
  transform: translateY(0);
}

.item-center {
  transform: translateY(-16.8%);
}

.item-right {
  transform: translateY(6.3%);
}

/* ─── 4. Mobile Features Section ───────────────────────── */
.mobile-features-section {
  width: 100%;
  background-color: #ffffff;
  padding: 100px 0 160px 0;
  overflow: hidden;
}

.mobile-features-container {
  max-width: 1448px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  box-sizing: border-box;
}

.mobile-features-swiper {
  width: 100%;
  overflow: hidden;
}

.mobile-features-slide-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  width: 100%;
  box-sizing: border-box;
}

.mobile-features-text-col {
  flex: 1;
  max-width: 600px;
  /* reserve space for fixed dots and download buttons below text */
  padding-bottom: 110px;
}

.mobile-features-title {
  font-family: "Noto Sans", sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #011f59;
  line-height: 1.2;
  margin: 0 0 20px 0;
}

.mobile-features-desc {
  font-family: "Noto Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1f1f1f;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.mobile-features-fixed-controls {
  position: absolute;
  top: 310px;
  left: 40px;
  bottom: 0;
  z-index: 10;
  pointer-events: auto;
}

.features-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
}

.features-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #eceeef;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.features-dots .dot.active {
  background-color: #5eaa94;
}

.mobile-features-fixed-controls .download-btn-group {
  justify-content: flex-start;
}

.mobile-features-preview-col {
  width: 594px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-features-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── 5. Responsive Styles ───────────────────────────────── */
@media (max-width: 1280px) {
  .hero-title {
    font-size: 47px;
  }
  .about-container {
    gap: 40px;
  }
  .mobile-features-slide-inner {
    gap: 40px;
  }
  .mobile-features-preview-col {
    width: 460px;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 44px;
    letter-spacing: -1px;
  }
  .hero-subtitle {
    font-size: 18px;
  }
  .hero-banner-wrap {
    margin-top: -80px;
  }
  .hero-banner-mask {
    height: 250px;
  }
  .about-section {
    padding: 80px 0 60px 0;
  }
  .about-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .about-text-col {
    max-width: 100%;
  }
  .about-heading {
    font-size: 38px;
  }
  .about-logo-col {
    width: 100%;
    justify-content: flex-start;
  }
  .about-logo-img {
    max-width: 340px;
  }
  .works-section {
    padding: 80px 0 80px 0;
  }
  .works-heading {
    font-size: 38px;
    margin-bottom: 50px;
  }
  .works-features-grid {
    flex-direction: column;
    gap: 36px;
    margin-bottom: 60px;
  }
  .works-gallery {
    gap: clamp(12px, 2vw, 20px);
    padding-top: 40px;
  }
  .gallery-item {
    flex: 0 1 240px;
    max-width: 240px;
    aspect-ratio: 262 / 477;
    height: auto;
  }
  .mobile-features-section {
    padding: 70px 0 80px 0;
  }
  .mobile-features-container {
    padding: 0 24px;
    padding-bottom: 40px;
  }
  .mobile-features-fixed-controls {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 140px;
    bottom: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .features-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
  }
  .features-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
  }
  .features-dots .dot.active {
    background-color: #5eaa94;
  }
  .download-btn-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
  }
  .download-btn-group img {
    height: 38px;
  }
  .mobile-features-slide-inner {
    flex-direction: column;
    gap: 0;
  }
  .mobile-features-text-col {
    width: 100%;
    max-width: 100%;
    margin-bottom: 120px;
    padding-bottom: 0;
    text-align: left;
  }
  .mobile-features-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f1f1f;
    line-height: 1.25;
    margin: 0 0 12px 0;
  }
  .mobile-features-desc {
    font-size: 15px;
    font-weight: 400;
    color: #555555;
    line-height: 1.55;
    margin: 0;
  }
  .mobile-features-preview-col {
    width: 100%;
    justify-content: center;
    padding: 0;
  }
  .mobile-features-img {
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 32px;
    letter-spacing: normal;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .about-heading,
  .works-heading {
    font-size: 28px;
  }
  .about-description,
  .feature-desc,
  .mobile-features-desc {
    font-size: 15px;
  }
  .feature-title {
    font-size: 20px;
  }
  .works-container {
    padding: 0 16px;
  }
  .works-features-grid {
    margin-bottom: 50px;
  }
  .works-gallery {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 2.5vw, 14px);
    padding-top: 36px;
    padding-bottom: 24px;
    width: 100%;
  }
  .gallery-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 262px;
    aspect-ratio: 262 / 477;
    height: auto;
    border-radius: clamp(8px, 2vw, 14px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
  .mobile-features-container {
    padding: 0 20px;
    padding-bottom: 30px;
  }
  .mobile-features-fixed-controls {
    left: 20px;
    right: 20px;
  }
  .mobile-features-title {
    font-size: 26px;
  }
  .mobile-features-preview-col {
    width: 100%;
    justify-content: center;
  }

}
