/* ============================================
   iBuilt Global - Homepage Styles
   ============================================ */

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) 24px 80px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e6f4ff 30%, #ffffff 60%, #f0f5ff 100%);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-color), transparent 70%);
  top: -100px;
  right: -100px;
  animation: pulse 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-hover), transparent 70%);
  bottom: -80px;
  left: -80px;
  animation: pulse 10s ease-in-out infinite 2s;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--primary-color), transparent 70%);
  top: 40%;
  left: 30%;
  animation: float 12s ease-in-out infinite 1s;
}

/* Floating geometric decorations */
.hero-geo {
  position: absolute;
  pointer-events: none;
}

.hero-geo-1 {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(22, 119, 255, 0.15);
  border-radius: 12px;
  top: 20%;
  left: 10%;
  transform: rotate(45deg);
  animation: floatSlow 8s ease-in-out infinite;
}

.hero-geo-2 {
  width: 40px;
  height: 40px;
  background: rgba(22, 119, 255, 0.06);
  border-radius: 8px;
  top: 30%;
  right: 15%;
  animation: floatSlow 10s ease-in-out infinite 3s;
}

.hero-geo-3 {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(22, 119, 255, 0.1);
  border-radius: 50%;
  bottom: 25%;
  right: 8%;
  animation: float 9s ease-in-out infinite 1s;
}

.hero-geo-4 {
  width: 30px;
  height: 30px;
  background: rgba(22, 119, 255, 0.08);
  border-radius: 6px;
  bottom: 30%;
  left: 15%;
  transform: rotate(30deg);
  animation: floatSlow 7s ease-in-out infinite 2s;
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 119, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 119, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: slideInUp 0.8s ease forwards;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #52c41a;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  animation: slideInUp 0.8s ease forwards 0.1s;
  opacity: 0;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-slogan {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
  animation: slideInUp 0.8s ease forwards 0.2s;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease forwards 0.3s;
  opacity: 0;
}

.btn-purple-hero {
  background: #722ed1;
  box-shadow: 0 8px 24px rgba(114, 46, 209, 0.25);
}

.btn-purple-hero:hover {
  background: #9254de;
  box-shadow: 0 12px 32px rgba(114, 46, 209, 0.35);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  animation: slideInUp 0.8s ease forwards 0.5s;
  opacity: 0;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Products Section --- */
.products-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.product-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.product-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover .product-card-bg {
  opacity: 1;
}

.product-card-content {
  position: relative;
  padding: 40px;
  z-index: 1;
}

.product-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.product-estimates .product-card-icon {
  background: linear-gradient(135deg, #e6f4ff, #bae0ff);
  color: var(--primary-color);
}

.product-metamall .product-card-icon {
  background: linear-gradient(135deg, #f0e6ff, #d3adf7);
  color: #722ed1;
}

.product-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-color);
}

.product-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.product-feature-tag {
  padding: 4px 12px;
  background: var(--bg-section);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.product-card-link .arrow {
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-link .arrow {
  transform: translateX(4px);
}

.product-metamall .product-card-link {
  color: #722ed1;
}

/* Product visual mockup */
.product-card-visual {
  height: 200px;
  margin: 0 -40px -40px;
  position: relative;
  overflow: hidden;
}

.estimates-visual {
  background: linear-gradient(180deg, transparent, #f0f5ff);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 40px;
}

.estimates-mockup {
  width: 100%;
  max-width: 320px;
  height: 160px;
  background: var(--bg-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.product-card:hover .estimates-mockup {
  transform: translateY(8px);
}

.mockup-header {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-section);
}

.mockup-bar:nth-child(1) { width: 80%; background: var(--primary-light); }
.mockup-bar:nth-child(2) { width: 60%; }
.mockup-bar:nth-child(3) { width: 90%; background: var(--primary-light); }
.mockup-bar:nth-child(4) { width: 45%; }

.metamall-visual {
  background: linear-gradient(180deg, transparent, #f0e6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 40px;
}

.nft-mini-card {
  width: 80px;
  height: 100px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  padding: 8px;
  transition: transform 0.5s ease;
}

.nft-mini-card:nth-child(2) {
  transform: translateY(-10px);
}

.product-card:hover .nft-mini-card:nth-child(1) {
  transform: translateY(-5px) rotate(-3deg);
}

.product-card:hover .nft-mini-card:nth-child(2) {
  transform: translateY(-15px);
}

.product-card:hover .nft-mini-card:nth-child(3) {
  transform: translateY(-5px) rotate(3deg);
}

.nft-mini-img {
  width: 100%;
  height: 55px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.nft-mini-img:nth-child(1) {
  background: linear-gradient(135deg, #69b1ff, #1677ff);
}

.nft-mini-card:nth-child(2) .nft-mini-img {
  background: linear-gradient(135deg, #b37feb, #722ed1);
}

.nft-mini-card:nth-child(3) .nft-mini-img {
  background: linear-gradient(135deg, #95de64, #52c41a);
}

.nft-mini-bar {
  height: 5px;
  width: 70%;
  background: var(--bg-section);
  border-radius: 3px;
}

/* --- Why Section --- */
.why-section {
  padding: 100px 0;
  background: var(--bg-section);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.why-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.why-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
}

.why-card-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Testimonials Section --- */
.testimonials-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-light);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.testimonial-stars .star {
  color: #faad14;
  font-size: 14px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* --- CTA Section --- */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  position: relative;
  overflow: hidden;
}

.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 44px;
  }

  .hero-slogan {
    font-size: 18px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 60px) 16px 60px;
  }

  .hero-title {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .hero-slogan {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 24px;
    margin-top: 48px;
  }

  .hero-stat-number {
    font-size: 28px;
  }

  .products-section {
    padding: 60px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card-content {
    padding: 28px;
  }

  .product-card-visual {
    margin: 0 -28px -28px;
    height: 160px;
  }

  .why-section {
    padding: 60px 0;
  }

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

  .why-card {
    padding: 24px 16px;
  }

  .testimonials-section {
    padding: 60px 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 60px 0;
  }

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

  .cta-desc {
    font-size: 15px;
  }

  .cta-buttons {
    flex-direction: column;
    max-width: 280px;
    margin: 0 auto;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .product-card-title {
    font-size: 20px;
  }
}
