/* ============================================================
   DALA HOMEPAGE REVAMP — "Precision in Motion"
   Completely new visual language for sections below hero
   Tech-forward, architectural, confident
   ============================================================ */

/* ============================================================
   BASE & UTILITIES
   ============================================================ */
.hp-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E53935;
  margin-bottom: 16px;
}

/* ============================================================
   SECTION 1: THE NETWORK (Trusted Retailers)
   ============================================================ */
.hp-network {
  background: #050302;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}

.hp-network-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 50px 50px;
  pointer-events: none;
}

.hp-network-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

.hp-network-lines::before,
.hp-network-lines::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, rgba(229,57,53,0.06) 49%, rgba(229,57,53,0.06) 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(229,57,53,0.06) 49%, rgba(229,57,53,0.06) 51%, transparent 51%);
  background-size: 100px 100px;
}

.hp-network-lines::after {
  animation: networkShift 20s linear infinite;
}

@keyframes networkShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(100px, 100px); }
}

.hp-network-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
  position: relative;
  z-index: 2;
}

.hp-network-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hp-network-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.hp-network-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

.hp-network-node {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.hp-network-node::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
  box-shadow: 0 0 30px rgba(229,57,53,0.15);
}

.hp-network-node:hover::before {
  opacity: 1;
}

.hp-network-node:hover {
  border-color: rgba(229,57,53,0.2);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
}

.hp-network-node img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  filter: brightness(1.2) grayscale(0.3);
  transition: filter 0.3s ease;
}

.hp-network-node:hover img {
  filter: brightness(1.4) grayscale(0);
}

.hp-network-node .brand-name-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

/* Ping animation on nodes */
.hp-network-node[data-ping]::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(229,57,53,0.6);
  border-radius: 50%;
  top: 12px;
  right: 12px;
  animation: nodePing 3s ease-out infinite;
}

.hp-network-node[data-ping]:nth-child(2n)::after { animation-delay: 0.5s; }
.hp-network-node[data-ping]:nth-child(3n)::after { animation-delay: 1s; }
.hp-network-node[data-ping]:nth-child(4n)::after { animation-delay: 1.5s; }
.hp-network-node[data-ping]:nth-child(5n)::after { animation-delay: 2s; }

@keyframes nodePing {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* ============================================================
   SECTION 2: THE ARCHITECTURE (Bifurcation)
   ============================================================ */
.hp-architecture {
  background: #f8f7f5;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}

.hp-architecture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,57,53,0.3), transparent);
}

.hp-architecture-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.hp-architecture-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #140d0b;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hp-architecture-header p {
  font-size: 1.05rem;
  color: #5f5f5f;
  line-height: 1.7;
}

.hp-architecture-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
}

.hp-arch-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.hp-arch-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border-color: rgba(229,57,53,0.1);
}

.hp-arch-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hp-arch-card:nth-child(1) .hp-arch-card-badge {
  background: linear-gradient(135deg, #E53935 0%, #c62828 100%);
  color: white;
}

.hp-arch-card:nth-child(3) .hp-arch-card-badge {
  background: rgba(229,57,53,0.08);
  color: #E53935;
  border: 1px solid rgba(229,57,53,0.15);
}

.hp-arch-card h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #140d0b;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hp-arch-card > p {
  font-size: 1rem;
  color: #5f5f5f;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hp-arch-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-arch-card-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #3a3a3a;
}

.hp-arch-card-features li i {
  color: #E53935;
  font-size: 0.85rem;
  width: 20px;
  text-align: center;
}

.hp-arch-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #E53935;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.hp-arch-card-link:hover {
  gap: 14px;
}

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

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

/* Animated divider */
.hp-arch-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2px;
}

.hp-arch-divider-line {
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(229,57,53,0.3), transparent);
}

.hp-arch-divider-pulse {
  width: 8px;
  height: 8px;
  background: #E53935;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(229,57,53,0.5);
  animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.5); opacity: 0.4; }
}

/* ============================================================
   SECTION 3: THE PARTNERS (Brand Partners)
   ============================================================ */
.hp-partners {
  background: #0a0807;
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}

.hp-partners::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,57,53,0.3), transparent);
}

.hp-partners-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
  position: relative;
  z-index: 2;
}

.hp-partners-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hp-partners-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.hp-partners-row {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  position: relative;
  z-index: 2;
  align-items: center;
}

.hp-partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.hp-partner-item:hover {
  transform: translateY(-6px);
}

.hp-partner-item img {
  height: 44px;
  width: auto;
  object-fit: contain;
  max-width: 150px;
  filter: brightness(1.1) grayscale(0.2);
  transition: filter 0.3s ease;
}

.hp-partner-item:hover img {
  filter: brightness(1.3) grayscale(0);
}

.hp-partner-stat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E53935;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.3s ease;
}

.hp-partner-item:hover .hp-partner-stat {
  opacity: 1;
  transform: translateY(0);
}

.hp-partner-item .brand-name-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   SECTION 4: THE PROOF (Testimonials)
   ============================================================ */
.hp-proof {
  background: #f8f7f5;
  padding: 120px 24px;
  position: relative;
}

.hp-proof::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.hp-proof-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.hp-proof-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #140d0b;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hp-proof-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hp-proof-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hp-proof-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.hp-proof-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(229,57,53,0.06);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.hp-proof-stars {
  color: #ffc107;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hp-proof-card blockquote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3a3a3a;
  margin: 0 0 28px;
  font-style: italic;
}

.hp-proof-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hp-proof-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(229,57,53,0.15);
}

.hp-proof-author div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hp-proof-author strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #140d0b;
}

.hp-proof-author span {
  font-size: 0.85rem;
  color: #5f5f5f;
}

.hp-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #E53935;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.hp-proof-link:hover {
  gap: 10px;
}

/* ============================================================
   SECTION 5: THE INVITATION (CTA)
   ============================================================ */
.hp-invitation {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050302;
  position: relative;
  overflow: hidden;
  padding: 100px 24px;
}

.hp-invitation-perspective {
  position: absolute;
  bottom: -30%;
  left: -20%;
  right: -20%;
  height: 120%;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(800px) rotateX(70deg);
  transform-origin: center bottom;
  animation: perspectiveShift 15s linear infinite;
}

@keyframes perspectiveShift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.hp-invitation-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,57,53,0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: invitationGlow 6s ease-in-out infinite;
}

@keyframes invitationGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.15); }
}

.hp-invitation-content {
  text-align: center;
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hp-invitation-content h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hp-invitation-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hp-invitation-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #E53935 0%, #c62828 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(229,57,53,0.35);
  border: none;
}

.hp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(229,57,53,0.45);
}

.hp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.hp-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ============================================================
   SCROLL REVEALS
   ============================================================ */
[data-hp-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-hp-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-hp-reveal-delay="1"] { transition-delay: 0.1s; }
[data-hp-reveal-delay="2"] { transition-delay: 0.2s; }
[data-hp-reveal-delay="3"] { transition-delay: 0.3s; }
[data-hp-reveal-delay="4"] { transition-delay: 0.4s; }
[data-hp-reveal-delay="5"] { transition-delay: 0.5s; }

/* Staggered grid children */
.hp-network-grid [data-hp-reveal]:nth-child(1) { transition-delay: 0s; }
.hp-network-grid [data-hp-reveal]:nth-child(2) { transition-delay: 0.05s; }
.hp-network-grid [data-hp-reveal]:nth-child(3) { transition-delay: 0.1s; }
.hp-network-grid [data-hp-reveal]:nth-child(4) { transition-delay: 0.15s; }
.hp-network-grid [data-hp-reveal]:nth-child(5) { transition-delay: 0.2s; }
.hp-network-grid [data-hp-reveal]:nth-child(6) { transition-delay: 0.25s; }
.hp-network-grid [data-hp-reveal]:nth-child(7) { transition-delay: 0.3s; }
.hp-network-grid [data-hp-reveal]:nth-child(8) { transition-delay: 0.35s; }
.hp-network-grid [data-hp-reveal]:nth-child(9) { transition-delay: 0.4s; }
.hp-network-grid [data-hp-reveal]:nth-child(10) { transition-delay: 0.45s; }

.hp-proof-grid [data-hp-reveal]:nth-child(1) { transition-delay: 0s; }
.hp-proof-grid [data-hp-reveal]:nth-child(2) { transition-delay: 0.15s; }
.hp-proof-grid [data-hp-reveal]:nth-child(3) { transition-delay: 0.3s; }
.hp-proof-grid [data-hp-reveal]:nth-child(4) { transition-delay: 0.45s; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hp-network-lines::after,
  .hp-network-node[data-ping]::after,
  .hp-arch-divider-pulse,
  .hp-invitation-perspective,
  .hp-invitation-glow {
    animation: none !important;
  }
  [data-hp-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .hp-architecture-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hp-arch-divider {
    display: none;
  }

  .hp-proof-grid {
    grid-template-columns: 1fr;
  }

  .hp-network-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hide desktop cards on mobile, show mobile floating card */
@media (max-width: 768px) {
  .hp-architecture-cards.desktop-cards {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hp-network,
  .hp-architecture,
  .hp-partners,
  .hp-proof {
    padding: 64px 20px;
  }

  .hp-invitation {
    min-height: auto;
    padding: 80px 20px;
  }

  .hp-network-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hp-network-node {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .hp-network-node img {
    max-height: 32px;
  }

  .hp-arch-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .hp-arch-card h3 {
    font-size: 1.4rem;
  }

  .hp-partners-row {
    gap: 24px 32px;
  }

  .hp-partner-item img {
    height: 32px;
    max-width: 110px;
  }

  .hp-proof-card {
    padding: 28px 24px;
  }

  .hp-proof-card::before {
    font-size: 3rem;
    top: 12px;
    right: 16px;
  }

  .hp-invitation-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hp-btn-primary,
  .hp-btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hp-invitation-perspective {
    background-size: 40px 40px;
  }
}
