/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-gradient {
  background: linear-gradient(135deg, #7B5EF0, #56CCF2);
  color: #fbf8f3;
  padding: 12px 44px;
  border: none;
}

.btn-lg {
  padding: 14px 60px;
}

/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 20%, #6D9EEB 50%, #56CCF2 80%, #7DD3FC 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1152px;
  margin: 0 auto;
  padding: 18px 54px 0;
  display: flex;
  flex-direction: column;
  min-height: 90vh;
}

.header {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
}

.logo img {
  width: auto;
  height: 72px;
  object-fit: contain;
}

.header-line {
  width: 100%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  margin-bottom: 140px;
}

.hero-text {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 100px;
}

.hero-text h1 {
  font-size: 54px;
  font-weight: 700;
  color: #fff;
  line-height: 1.24;
  letter-spacing: 0.26px;
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: 22.5px;
  color: #fbf8f3;
  line-height: 1.25;
  font-weight: 400;
}

.hero-subtitle strong {
  font-weight: 700;
}

.hero-curve {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 1;
  pointer-events: none;
}

.hero-curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============ ABOUT SECTION ============ */
.about {
  background: #f8f5f0;
  padding: 60px 0 80px;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 46px;
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.about-left {
  flex: 0 0 393px;
  max-width: 393px;
}

.about-left h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.23;
  margin-bottom: 30px;
}

.about-desc {
  font-size: 18.6px;
  line-height: 1.4;
  margin-bottom: 22px;
  color: #000;
}

.about-desc strong {
  font-weight: 700;
}

.about-left .btn {
  margin-top: 16px;
  font-size: 22px;
  padding: 12px 36px;
}

.about-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 370px;
}

.about-image {
  position: relative;
  flex: 1;
  border-radius: 21px;
  overflow: hidden;
  margin-left: 160px;
  height: 370px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ship-frames {
  position: relative;
}

.ship-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.ship-frame.active {
  opacity: 1;
}

.about-pills {
  position: absolute;
  left: 0;
  top: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.pill {
  background: #fff;
  border: 1.5px solid #C4B5FD;
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 24.6px;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ============ BUILDING SECTION ============ */
.building {
  background: #fff;
  padding: 60px 0 40px;
}

.building-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 46px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.3px;
  margin-bottom: 40px;
}

/* Product Cards */
.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.card-mockup {
  background: #f3f4f6;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-img-contain {
  object-fit: contain;
  padding: 20px;
}

.mockup-placeholder {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.mock-label {
  font-size: 11px;
  color: #9ca3af;
  display: block;
}

/* Carelinq mock */
.carelinq-mock {
  flex-direction: column;
  gap: 8px;
}

.mock-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #56CCF2, #7DD3FC);
}

.mock-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.mock-line {
  width: 80px;
  height: 3px;
  background: #d1d5db;
  border-radius: 2px;
}

.mock-line.short {
  width: 50px;
}

/* Atlas mock */
.atlas-mock .mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}

.bar {
  width: 16px;
  background: linear-gradient(180deg, #56CCF2, #7B5EF0);
  border-radius: 3px 3px 0 0;
}

.bar1 {
  height: 25px;
}

.bar2 {
  height: 40px;
}

.bar3 {
  height: 55px;
}

.bar4 {
  height: 35px;
}

.bar5 {
  height: 45px;
}

/* Offline mock */
.offline-mock .wave-line {
  width: 140px;
  height: 50px;
}

.card-body {
  padding: 18px 20px 22px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-header strong {
  font-size: 18px;
}

.card-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}

.tag-therapy {
  background: #dbeafe;
  color: #2563eb;
}

.tag-learning {
  background: #d1fae5;
  color: #059669;
}

.tag-wellbeing {
  background: #fce7f3;
  color: #db2777;
}

.card-body p {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

/* Divider */
.building-divider {
  height: 4px;
  background: linear-gradient(90deg, #56CCF2, #7B5EF0, #EC4899);
  border-radius: 2px;
  margin-bottom: 32px;
}

/* Building Details */
.building-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.building-details h3 {
  font-size: 20.6px;
  font-weight: 700;
  margin-bottom: 20px;
}

.building-details p {
  font-size: 18.6px;
  line-height: 1.4;
  margin-bottom: 18px;
}

.cooking-list {
  margin-bottom: 22px;
}

.cooking-list li {
  font-size: 18.6px;
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.cooking-list li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.details-right .btn {
  margin-top: 8px;
  font-size: 22px;
}

/* ============ ADS STRIP ============ */
.ads-strip {
  background: linear-gradient(to right, #4A8FE7 0%, #7B5EF0 50%, #9B59B6 100%);
  padding: 42px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ads-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/ads-stripe-fill.png') center/cover no-repeat;
  opacity: 0.08;
  z-index: 0;
}

.ads-content {
  position: relative;
  z-index: 1;
}

.ads-content p {
  font-size: 23.7px;
  color: #fbf8f3;
  line-height: 1.22;
  margin-bottom: 6px;
}

.ads-content .ads-bold {
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 0;
}

/* ============ PARTNERSHIP SECTION ============ */
.partnership {
  background: #f8f5f0;
  padding: 60px 0 80px;
}

.partnership-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 46px;
  text-align: center;
}

.partnership-label {
  font-size: 15.6px;
  letter-spacing: 0.12px;
  font-weight: 400;
  display: block;
  margin-bottom: 12px;
}

.partnership-title {
  font-size: 41px;
  font-weight: 700;
  line-height: 1.24;
  margin-bottom: 40px;
}

.gradient-text-know {
  background: linear-gradient(135deg, #7B5EF0, #56CCF2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-build {
  background: linear-gradient(135deg, #56CCF2, #7B5EF0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.partnership-cards {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-bottom: 48px;
}

.partnership-col {
  text-align: center;
}

.partnership-col h4 {
  font-size: 20.6px;
  font-weight: 700;
  margin-bottom: 14px;
}

.partnership-card {
  background: #fff;
  border: 2px solid #B2EBF2;
  border-radius: 24px;
  padding: 28px 32px;
  min-width: 300px;
  text-align: left;
  position: relative;
  box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.08);
}

.partnership-card ul {
  list-style: disc;
  padding-left: 20px;
}

.partnership-card li {
  font-size: 20.6px;
  line-height: 1.38;
  margin-bottom: 4px;
}

.partnership-cta {
  text-align: center;
}

.cta-italic {
  font-style: italic;
  font-size: 20.6px;
  line-height: 1.38;
  margin-bottom: 24px;
}

.partnership-cta .btn {
  font-size: 22px;
}

/* ============ RESPONSIVE ============ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .about-container {
    flex-direction: column;
    padding: 0 32px;
  }

  .about-left {
    flex: none;
    max-width: 100%;
  }

  .about-right {
    width: 100%;
    min-height: 320px;
  }

  .about-image {
    margin-left: 140px;
    height: 320px;
  }

  .product-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .building-details {
    gap: 40px;
  }

  .partnership-cards {
    gap: 40px;
  }

  .partnership-card {
    min-width: 260px;
  }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 16px 24px 0;
  }

  .logo img {
    height: 56px;
  }

  .header-line {
    margin-bottom: 30px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-curve {
    height: 168px;
  }

  .about {
    padding: 40px 0 60px;
  }

  .about-container {
    flex-direction: column;
    gap: 32px;
    padding: 0 24px;
  }

  .about-left h2 {
    font-size: 30px;
  }

  .about-right {
    flex-direction: column;
    min-height: auto;
  }

  .about-image {
    margin-left: 0;
    height: 260px;
    border-radius: 16px;
    width: 100%;
  }

  .about-pills {
    position: relative;
    top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
  }

  .pill {
    font-size: 18px;
    padding: 8px 20px;
  }

  .building {
    padding: 40px 0 30px;
  }

  .building-container {
    padding: 0 24px;
  }

  .section-title {
    font-size: 28px;
  }

  .product-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .building-details {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .building-details p,
  .cooking-list li {
    font-size: 16px;
  }

  .ads-strip {
    padding: 32px 20px;
  }

  .ads-content p {
    font-size: 19px;
  }

  .partnership {
    padding: 40px 0 60px;
  }

  .partnership-container {
    padding: 0 24px;
  }

  .partnership-title {
    font-size: 30px;
  }

  .partnership-cards {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .partnership-card {
    min-width: auto;
    width: 100%;
    max-width: 360px;
  }

  .partnership-card li {
    font-size: 18px;
  }

  .cta-italic {
    font-size: 17px;
  }

  .btn {
    font-size: 18px;
  }

  .btn-lg {
    padding: 12px 40px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-curve {
    height: 112px;
  }

  .about-left h2 {
    font-size: 26px;
  }

  .about-desc {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .partnership-title {
    font-size: 24px;
  }

  .ads-content p {
    font-size: 16px;
  }

  .btn {
    font-size: 16px;
    padding: 10px 28px;
  }
}

/* ============ CONTACT MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fbf8f3;
  border-radius: 24px;
  padding: 48px;
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
}

.modal-title {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal-overlay.active .form-field {
  opacity: 1;
  transform: translateY(0);
}

.modal-overlay.active .form-field.stagger-1 {
  transition-delay: 0.1s;
}

.modal-overlay.active .form-field.stagger-2 {
  transition-delay: 0.15s;
}

.modal-overlay.active .form-field.stagger-3 {
  transition-delay: 0.2s;
}

.modal-overlay.active .form-field.stagger-4 {
  transition-delay: 0.25s;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid #C4B5FD;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #000;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7B5EF0;
  box-shadow: 0 0 0 3px rgba(123, 94, 240, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-form-submit {
  width: 100%;
  margin-top: 8px;
}

.modal-success-view {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  margin-bottom: 24px;
  animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-success-view .modal-title {
  margin-bottom: 8px;
}

.modal-success-view .modal-subtitle {
  margin-bottom: 28px;
}

.modal-success-view .btn-form-submit {
  width: auto;
  padding: 12px 44px;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .modal-title {
    font-size: 26px;
  }
}