/* ========================================
   Homepage — Digital Authority redesign
   ======================================== */

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-section__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-section__title {
  font-family: var(--font-family-heading);
  font-size: 74px;
  line-height: 88px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.hero-section__subtitle {
  font-family: var(--font-family-body);
  font-size: 18px;
  line-height: 30px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 620px;
  margin: 0 auto 52px;
}

.hero-section__gradient {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-dark));
  pointer-events: none;
}

/* Subtle radial glow behind hero text */
.hero-section::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}


/* --- Problem / Solution Section --- */
.ps-section {
  padding: 160px 0;
}

.ps-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ps-section__title {
  font-family: var(--font-family-heading);
  font-size: 56px;
  line-height: 64px;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 64px;
}

.ps-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ps-card {
  background: #fff;
  border: 1px solid var(--color-secondary, #DDDDDD);
  border-radius: 16px;
  padding: 36px 28px;
  transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.ps-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: var(--color-cta, #00B8D4);
}

.ps-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-cta, #00B8D4);
  background: rgba(0, 184, 212, 0.08);
  border-radius: 12px;
}

.ps-card__problem {
  font-family: var(--font-family-heading);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--color-text-dark, #2D3436);
  margin-bottom: 0;
}

.ps-card__divider {
  width: 40px;
  height: 2px;
  background: var(--color-cta, #00B8D4);
  margin: 16px 0;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.ps-card:hover .ps-card__divider {
  opacity: 1;
  width: 56px;
}

.ps-card__solution {
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-dark, #2D3436);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.ps-card:hover .ps-card__solution {
  max-height: 200px;
  opacity: 1;
  margin-top: 4px;
}


/* --- Ecosystem Section --- */
.eco-section {
  padding: 160px 0;
}

.eco-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eco-section__title {
  font-family: var(--font-family-heading);
  font-size: 56px;
  line-height: 64px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 64px;
}

.eco-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.eco-card {
  padding: 44px 36px;
}

.eco-card__benefit {
  font-family: var(--font-family-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent, #00D4FF);
  margin-bottom: 16px;
}

.eco-card__title {
  font-family: var(--font-family-heading);
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.eco-card__desc {
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.6);
  flex-grow: 1;
  margin-bottom: 24px;
}

.eco-card__link {
  font-family: var(--font-family-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent, #00D4FF);
  transition: color 0.2s ease;
}

.eco-card:hover .eco-card__link {
  color: #fff;
}


/* --- How we work Section --- */
.process-section {
  padding: 160px 0;
  background: var(--color-gradiend-primary);
}

.process-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.process-section__title {
  font-family: var(--font-family-heading);
  font-size: 56px;
  line-height: 64px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 72px;
}

.process-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-step {
  padding-top: 24px;
  border-top: 1px solid var(--color-glass-border);
}

.process-step__num {
  display: block;
  font-family: var(--font-family-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.process-step__title {
  font-family: var(--font-family-heading);
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
}

.process-step__text {
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}


/* --- The Lab Section --- */
.lab-section {
  padding: 160px 0;
}

.lab-section__container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.lab-section__title {
  font-family: var(--font-family-heading);
  font-size: 56px;
  line-height: 64px;
  font-weight: 600;
  color: var(--color-text-dark, #2D3436);
  margin-bottom: 32px;
}

.lab-section__text {
  font-family: var(--font-family-body);
  font-size: 18px;
  line-height: 30px;
  color: var(--color-text-dark, #2D3436);
  margin-bottom: 0;
}


/* --- CTA Strip Section --- */
.cta-section {
  padding: 100px 0;
  text-align: center;
}

.cta-section__container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-section__title {
  font-family: var(--font-family-heading);
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.cta-section__text {
  font-family: var(--font-family-body);
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
}


/* ========================================
   Responsive — Tablet (≤1199px)
   ======================================== */
@media (max-width: 1199px) {
  .hero-section__title {
    font-size: 64px;
    line-height: 72px;
  }

  .ps-section__title,
  .eco-section__title,
  .process-section__title,
  .lab-section__title {
    font-size: 48px;
    line-height: 56px;
  }

  .cta-section__title {
    font-size: 40px;
    line-height: 48px;
  }
}


/* ========================================
   Responsive — Small tablet (≤1023px)
   ======================================== */
@media (max-width: 1023px) {
  .hero-section {
    padding: 100px 24px 60px;
  }

  .ps-section,
  .eco-section,
  .process-section,
  .lab-section {
    padding: 120px 0;
  }

  .eco-section__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .eco-card {
    padding: 36px 28px;
  }
}


/* ========================================
   Responsive — Large phone (≤991px)
   ======================================== */
@media (max-width: 991px) {
  .hero-section__title {
    font-size: 52px;
    line-height: 60px;
  }

  .ps-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }
}


/* ========================================
   Responsive — Phone (≤767px)
   ======================================== */
@media (max-width: 767px) {
  .hero-section {
    min-height: auto;
    padding: 80px 20px 60px;
  }

  .hero-section__title {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 20px;
  }

  .hero-section__subtitle {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 36px;
  }

  .ps-section,
  .eco-section,
  .process-section,
  .lab-section {
    padding: 80px 0;
  }

  .ps-section__title,
  .eco-section__title,
  .process-section__title,
  .lab-section__title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 40px;
  }

  .ps-section__grid,
  .process-section__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ps-card {
    padding: 24px 20px;
  }

  .process-step__title {
    font-size: 20px;
    line-height: 28px;
  }

  .ps-card__solution {
    max-height: none;
    opacity: 1;
    margin-top: 12px;
  }

  .ps-card__divider {
    opacity: 1;
    width: 40px;
  }

  .eco-card {
    padding: 28px 24px;
  }

  .eco-card__title {
    font-size: 22px;
    line-height: 30px;
  }

  .lab-section__title {
    font-size: 28px;
    line-height: 36px;
  }

  .lab-section__text {
    font-size: 16px;
    line-height: 26px;
  }

  .cta-section {
    padding: 80px 0;
  }

  .cta-section__title {
    font-size: 28px;
    line-height: 36px;
  }

  .cta-section__text {
    font-size: 16px;
    line-height: 26px;
  }

}


/* ========================================
   Responsive — Small phone (≤595px)
   ======================================== */
@media (max-width: 595px) {
  .hero-section__title {
    font-size: 28px;
    line-height: 36px;
  }

  .ps-section__title,
  .eco-section__title,
  .process-section__title,
  .lab-section__title {
    font-size: 24px;
    line-height: 32px;
  }

  .cta-section__title {
    font-size: 24px;
    line-height: 32px;
  }
}
