/**
 * Homepage-only styles — loaded only on index.html (body.homepage).
 */

/* —— Load splash (homepage only) —— */
body.homepage.home-splash-active {
  overflow: hidden;
}

.home-splash {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.home-splash.home-splash--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-splash__bg {
  position: absolute;
  inset: -25%;
  background: linear-gradient(
    135deg,
    #e8f9e8 0%,
    #dff6fc 20%,
    #c8e6ff 40%,
    #d4c8ff 60%,
    #b8a8ff 80%,
    #a8c4ff 100%
  );
  background-size: 240% 240%;
  animation: homeSplashGradient 9s ease-in-out infinite;
}

.home-splash__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  pointer-events: none;
}

.home-splash__orb--1 {
  width: min(55vw, 320px);
  height: min(55vw, 320px);
  top: 10%;
  left: -10%;
  background: rgba(120, 255, 200, 0.45);
  animation: homeSplashOrb1 12s ease-in-out infinite;
}

.home-splash__orb--2 {
  width: min(60vw, 360px);
  height: min(60vw, 360px);
  bottom: 5%;
  right: -15%;
  background: rgba(120, 90, 255, 0.5);
  animation: homeSplashOrb2 14s ease-in-out infinite;
}

.home-splash__title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 1.5rem;
  max-width: 20ch;
  font-size: clamp(2rem, 8.5vw, 3.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: #4928fd;
  animation: homeSplashTitleIn 0.9s ease 0.15s both;
}

@keyframes homeSplashGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes homeSplashOrb1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(12%, 18%) scale(1.15);
  }
}

@keyframes homeSplashOrb2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-14%, -12%) scale(1.12);
  }
}

@keyframes homeSplashTitleIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-splash__bg,
  .home-splash__orb--1,
  .home-splash__orb--2,
  .home-splash__title {
    animation: none;
  }

  .home-splash__title {
    opacity: 1;
  }
}

/* Readable body copy */
body.homepage #hero-description,
body.homepage .uk-business-section .home-readable,
body.homepage .count-section .home-readable,
body.homepage .overview-section .home-readable,
body.homepage .home-deep-content-section .text-muted {
  color: #3d4852 !important;
  opacity: 1 !important;
}

body.homepage .count-section,
body.homepage .problem-solution-section,
body.homepage .uk-business-section {
  position: relative;
  z-index: 2;
  background: #fff;
}

body.homepage .count-section .container,
body.homepage .problem-solution-section .container {
  position: relative;
  z-index: 3;
}

body.homepage .banner-section::before {
  pointer-events: none;
}

body.homepage .design-tag {
  border: 1px solid transparent;
}

body.homepage .design-tag--creativity {
  background: #e8e4ff !important;
  border-color: #c4b8fd;
}

body.homepage .design-tag--creativity .design-tag__label {
  color: #3d2eb8 !important;
}

body.homepage .design-tag--innovation {
  background: #dff6fc !important;
  border-color: #7dd3ea;
}

body.homepage .design-tag--innovation .design-tag__label {
  color: #0c6b82 !important;
}

body.homepage .design-tag--strategy {
  background: #fff4e6 !important;
  border-color: #ffc978;
}

body.homepage .design-tag--strategy .design-tag__label {
  color: #9a5b00 !important;
}

body.homepage .btn:not(:has(.btn-icon)) {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  overflow: visible;
  gap: 0.35rem;
  padding: 0.55rem 1.35rem !important;
  text-decoration: none !important;
  letter-spacing: normal;
  text-shadow: none;
  transform: none;
}

body.homepage .btn-outline-primary:not(:has(.btn-icon)) {
  background-color: #fff !important;
  color: #4928fd !important;
  border: 2px solid #4928fd !important;
  box-shadow: 0 2px 8px rgba(73, 40, 253, 0.08);
}

body.homepage .btn-outline-primary:not(:has(.btn-icon)):hover,
body.homepage .btn-home-light:hover {
  background-color: #4928fd !important;
  color: #fff !important;
  transform: translateY(-1px);
}

body.homepage .btn-home-light {
  background-color: #fff !important;
  color: #4928fd !important;
  border: 2px solid #4928fd !important;
}

body.homepage .btn-outline-primary:not(:has(.btn-icon)) .btn-text {
  color: inherit !important;
  transform: none !important;
  padding: 0 !important;
}

body.homepage .pain-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  height: 100%;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

body.homepage .pain-card__problem {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

body.homepage .pain-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.35;
}

body.homepage .pain-card__answer {
  font-size: 0.95rem;
  color: #3d4852;
  margin: 0;
  line-height: 1.65;
}

body.homepage .pain-card__answer strong {
  color: #1a1a1a;
}
