/* ============================================================
   Top Page
   ============================================================ */

/* --- Hero --- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(175deg, var(--white) 0%, var(--blue-50) 50%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

/* --- Hero decorative circles --- */
.hero__deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__deco--1 {
  top: 12%;
  left: 8%;
  width: 180px;
  height: 180px;
  background: var(--blue-100);
  opacity: .5;
  animation: float 8s ease-in-out infinite;
}

.hero__deco--2 {
  bottom: 18%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: var(--blue-200);
  opacity: .35;
  animation: float 6s ease-in-out infinite reverse;
}

.hero__deco--3 {
  top: 30%;
  right: 20%;
  width: 60px;
  height: 60px;
  background: var(--blue-100);
  opacity: .4;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.7;
  margin-bottom: 24px;
  letter-spacing: .02em;
}

.hero__sub {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 48px;
  font-weight: 400;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--gray-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s ease-in-out infinite;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: var(--gray-400);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Services --- */
.services {
  padding: 120px 0;
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,0 L0,0Z' fill='%23f9fafd'/%3E%3C/svg%3E") no-repeat top center;
  background-size: cover;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
  justify-content: center;
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, .03);
}

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

.service-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.service-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-700);
}

.cta--top::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 C480,0 960,60 1440,30 L1440,0 L0,0Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat top center;
  background-size: cover;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero__title {
    font-size: 26px;
  }

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