/* Homepage-specific styles */

/* ========== HERO SECTIONS (We / Pro) ========== */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  border-radius: 1.5rem;
  margin: 0;
  width: 100%;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  isolation: isolate;
  will-change: transform;
  transform: translateZ(0);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.3), rgba(0,0,0,0.1), rgba(0,0,0,0.5));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 1.5rem;
}

@media (min-width: 768px) { .hero-content { padding: 2rem; } }

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    padding: 3rem 5rem 3rem 3rem;
  }
}

.hero-title-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  .hero-title-col { justify-content: center; }
}

.hero-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  max-width: 32rem;
}

@media (min-width: 1024px) {
  .hero-text-col {
    align-items: flex-end;
    gap: 2.5rem;
    max-width: 36rem;
  }
}

.hero-text-col p {
  color: rgba(255,255,255,0.95);
  line-height: 1.6;
  font-weight: 300;
  text-shadow: 0 4px 3px rgba(0,0,0,0.5);
}

.hero-description {
  font-size: 0.875rem !important;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
  }
}

.hero-text-col p strong {
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
  .hero-buttons .btn {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .hero-buttons { align-self: stretch; }
}

/* We hero video filter */
.hero-section--we .hero-video {
  transform: scale(1.3);
  filter: brightness(0.6);
}

/* Client Logos Marquee */
.hero-logos-bar {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  overflow: hidden;
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-logos-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.hero-logos-track img {
  height: 11.25rem;
  opacity: 0.7;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== WEPRO AI SECTION ========== */
.weproai-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
  padding: 3rem 1rem 0.75rem;
}

@media (min-width: 640px) { .weproai-section { padding: 1rem 2rem; overflow: hidden; } }
@media (min-width: 768px) { .weproai-section { padding: 1.5rem 3rem; } }
@media (min-width: 1024px) { .weproai-section { padding: 1.5rem 4rem; } }
@media (min-width: 1280px) { .weproai-section { padding: 1.5rem 5rem; } }
@media (min-width: 1536px) { .weproai-section { padding: 1.5rem 6rem; } }

.weproai-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 1rem;
  position: relative;
  text-align: center;
  overflow: visible;
}

@media (min-width: 768px) {
  .weproai-inner { padding-top: 0; padding-bottom: 1rem; }
}

.mobile-br { display: block; }
@media (min-width: 1024px) { .mobile-br { display: none; } }

/* Shine text effect */
.shine-text {
  display: inline-block;
  font-size: clamp(2.25rem, 6vw, 5.2rem);
  position: relative;
  color: rgba(48, 40, 74, 0.9);
  text-shadow: 0 2px 20px rgba(79, 70, 229, 0.1);
}

.shine-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(141, 123, 198, 0.8) 48%, rgba(140, 138, 146, 0.8) 74%, transparent 80%);
  background-size: 300% 300%;
  background-position: -30% center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}

/* Highlight word pills */
.highlight-word {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.015em;
  color: rgba(0, 0, 0, 0.55);
  opacity: 1;
  background: none;
  box-shadow: none;
  cursor: default;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  flex: 0 0 auto;
  min-width: 0;
}

@media (min-width: 768px) {
  .highlight-word {
    padding: 0.56rem 0;
    font-size: 0.875rem;
    flex: 0 0 auto;
  }
}

.highlight-word:hover {
  opacity: 1;
  transform: none;
  background: none;
  box-shadow: none;
}

/* Title + Chips column */
.title-chips-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  text-align: center;
}

@media (min-width: 1024px) {
  .title-chips-col {
    flex: 0 0 auto;
    align-items: stretch;
    text-align: left;
  }
}

.title-chips-col .shine-text {
  white-space: normal;
}

@media (min-width: 1024px) {
  .title-chips-col .shine-text {
    white-space: nowrap;
  }
}

.title-description {
  margin-top: 1.5rem;
  text-align: left;
}

.highlight-words {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0rem 0.25rem;
  margin: 0.75rem 0 0;
  width: 100%;
}

@media (min-width: 768px) { .highlight-words { gap: 0.5rem 0.75rem; margin-top: 2rem; } }
@media (min-width: 1024px) { .highlight-words { gap: 0; justify-content: space-between; } }

.highlight-word:nth-child(1) { animation: wordHighlight 4.8s infinite 0s; }
.highlight-word:nth-child(2) { animation: wordHighlight 4.8s infinite 0.8s; }
.highlight-word:nth-child(3) { animation: wordHighlight 4.8s infinite 1.6s; }
.highlight-word:nth-child(4) { animation: wordHighlight 4.8s infinite 2.4s; }
.highlight-word:nth-child(5) { animation: wordHighlight 4.8s infinite 3.2s; }
.highlight-word:nth-child(6) { animation: wordHighlight 4.8s infinite 4.0s; }

/* iPad + Title row */
.ipad-title-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0 auto 0.5rem;
}

@media (min-width: 1024px) {
  .ipad-title-row {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    width: 100%;
    justify-content: center;
  }
}

/* iPad container */
.ipad-container {
  display: none;
  position: relative;
  width: 480px;
  height: 310px;
  margin-top: 0;
  margin-bottom: 0;
  transform: none;
  transform-origin: center;
  z-index: 10;
  flex-shrink: 0;
  animation: ipadEntrance 1.2s ease-out forwards;
  opacity: 0;
}

@media (min-width: 1024px) {
  .ipad-container { display: block; }
}

.ipad-frame {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgb(1, 9, 27) 0%, rgb(0, 10, 28) 50%, rgb(14, 22, 34) 100%);
  border-radius: 1.25rem;
  padding: 0.5rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 40px rgba(79, 70, 229, 0.15);
  position: relative;
  transition: all 0.3s ease;
}

.ipad-container:hover .ipad-frame {
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.3), 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 60px rgba(79, 70, 229, 0.25);
}

.ipad-screen {
  width: 100%;
  height: 100%;
  border-radius: 0.85rem;
  overflow: hidden;
  position: relative;
}

.ipad-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none;
  transform-origin: center center;
  position: absolute;
  transition: transform 0.3s ease;
}

.ipad-container:hover .ipad-screen img {
  transform: scale(1.02);
}

/* Feature cards */
.feature-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) { .feature-card { padding: 2rem; } }
@media (min-width: 1024px) { .feature-card { padding: 2.5rem; } }

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .feature-card:hover {
    transform: translateY(-8px) scale(1.02);
  }
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(to bottom right, #2563eb, #7c3aed);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
  .feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.25rem;
  }
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
  stroke: currentColor;
  fill: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .feature-grid { gap: 1.5rem; margin-top: 2rem; padding: 0; }
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}


/* CTA Buttons */
.cta-button-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4d6cf5 0%, #520d97 100%);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) { .cta-button-primary { padding: 0.75rem 2rem; font-size: 1rem; } }

.cta-button-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 48px rgba(79, 70, 229, 0.25), 0 6px 24px rgba(124, 58, 237, 0.15);
}

.cta-button-secondary {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  color: #374151;
  padding: 0.7rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) { .cta-button-secondary { padding: 0.75rem 2rem; font-size: 1rem; } }

.cta-button-secondary:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Sub-description testimonial */
.sub-description-chip {
  margin: 3rem auto 3rem;
  text-align: center;
}

.sub-description-chip p {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: #4b5563;
  line-height: 1.6;
  font-weight: 600;
  margin: 0;
  font-style: italic;
}

.sub-description-chip p::before {
  content: '\201C';
}

.sub-description-chip p::after {
  content: '\201D';
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .cta-buttons { flex-direction: row; gap: 1.5rem; }
}

/* ========== VISION SECTION ========== */
.vision-section {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 1.5rem;
  margin: 1rem;
  overflow: hidden;
  min-height: calc(100vh - 5rem);
}

@media (min-width: 640px) { .vision-section { margin: 2.5rem; } }
@media (min-width: 768px) { .vision-section { margin: 3rem 2rem; } }
@media (min-width: 1024px) { .vision-section { margin: 4rem 3rem; } }

.vision-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.vision-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.6), rgba(0,0,0,0.3), rgba(0,0,0,0.8));
  pointer-events: none;
}

.vision-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  color: white;
  height: 100%;
  max-width: 48rem;
}

@media (min-width: 640px) { .vision-content { padding: 2rem; } }
@media (min-width: 768px) { .vision-content { padding: 3rem; } }
@media (min-width: 1024px) { .vision-content { padding: 6rem; } }

.vision-content h2 {
  text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.vision-content p {
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.vision-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-weight: 600;
  transition: var(--transition-base);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  margin-top: 1.5rem;
}

.vision-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.25);
}

.vision-cta svg {
  transition: transform 0.3s ease;
}

.vision-cta:hover svg {
  transform: translateX(4px);
}

/* ========== PEOPLE / TESTIMONIALS ========== */
.people-section {
  padding: 2rem 1.5rem 3rem;
  max-width: 96rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) { .people-section { padding: 2rem 3rem 3rem; } }
@media (min-width: 768px) { .people-section { padding: 3rem 5rem 4rem; } }
@media (min-width: 1024px) { .people-section { padding: 3rem 7rem 4rem; } }
@media (min-width: 1280px) { .people-section { padding: 3rem 9rem 4rem; } }

.testimonial-card {
  padding: 2.5rem;
  text-align: center;
  transition: opacity 0.5s ease;
}

@media (min-width: 768px) { .testimonial-card { padding: 4rem; } }

.testimonial-quote {
  font-size: 1.125rem;
  color: #1f2937;
  line-height: 1.6;
  font-weight: 300;
  font-style: italic;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

@media (min-width: 768px) { .testimonial-quote { font-size: 1.5rem; } }
@media (min-width: 1024px) { .testimonial-quote { font-size: 1.75rem; } }

.testimonial-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.testimonial-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border: 4px solid rgba(255,255,255,0.5);
  transition: transform 0.3s ease;
}

.testimonial-avatar:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .testimonial-avatar { width: 8.5rem; height: 8.5rem; }
}

.testimonial-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 1.75rem;
  height: 1.75rem;
  background: #f9fafb;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .testimonial-badge { width: 2rem; height: 2rem; }
}

.testimonial-badge img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

@media (min-width: 768px) {
  .testimonial-badge img { width: 1.25rem; height: 1.25rem; }
}

.testimonial-author {
  margin-top: 1rem;
  text-align: center;
}

.testimonial-author-name {
  font-weight: 600;
  color: #111827;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) { .testimonial-author-name { font-size: 1.25rem; } }

.testimonial-author-title {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 300;
}

@media (min-width: 768px) { .testimonial-author-title { font-size: 1rem; } }

/* Dots navigation */
.testimonial-dots {
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #d1d5db;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.testimonial-dot:hover {
  background: #9ca3af;
  transform: scale(1.1);
}

.testimonial-dot.active {
  width: 2rem;
  background: linear-gradient(to right, #2563eb, #7c3aed);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* ========== FEATURES GRID (Masonry) ========== */
.features-section {
  padding: 5rem 1.5rem;
}

@media (min-width: 640px) { .features-section { padding: 5rem 3rem; } }
@media (min-width: 768px) { .features-section { padding: 5rem 5rem; } }
@media (min-width: 1024px) { .features-section { padding: 5rem 7rem; } }
@media (min-width: 1280px) { .features-section { padding: 5rem 9rem; } }

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 87.5rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-card-large {
  position: relative;
  width: 100%;
  height: 25rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  transition: var(--transition-base);
}

@media (min-width: 768px) {
  .feature-card-large { height: 52.65rem; }
}

.feature-card-large:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-hover);
}

.feature-card-small {
  position: relative;
  width: 100%;
  height: 25rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  transition: var(--transition-base);
}

.feature-card-small:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-hover);
}

.features-right {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 2.5rem;
}

.feature-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-out;
}

.feature-card-large:hover .feature-card-video,
.feature-card-small:hover .feature-card-video {
  transform: scale(1.05);
}

.feature-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
}

.feature-card-content {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}

@media (min-width: 768px) {
  .feature-card-large .feature-card-content { padding: 3rem; }
}

.feature-card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .feature-card-large .feature-card-content h3 { font-size: 1.875rem; }
}

.feature-card-content p {
  font-size: 1rem;
  max-width: 28rem;
  line-height: 1.6;
  font-weight: 300;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .feature-card-large .feature-card-content p { font-size: 1.25rem; }
}

.feature-card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding-top: 1rem;
}

.feature-card-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.feature-card-large:hover .feature-card-link svg,
.feature-card-small:hover .feature-card-link svg {
  transform: translateX(4px);
}
