/* Homepage refresh. Scoped so the services overview remains the design benchmark. */

.home-page {
  background: #fff;
}

.home-overview {
  color: var(--c-ink);
  background: #fff;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) 0 5.5rem;
  border-bottom: 1px solid var(--c-border);
  background:
    radial-gradient(circle at 86% 20%, rgba(16, 87, 252, .12), transparent 31%),
    radial-gradient(circle at 16% 86%, rgba(99, 102, 241, .08), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f8faff 100%);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  padding: .42rem .78rem;
  border: 1px solid rgba(16, 87, 252, .16);
  border-radius: 999px;
  background: var(--c-primary-50);
  color: var(--c-primary);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
}

.home-eyebrow--light {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.home-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.home-hero-copy > p {
  max-width: 680px;
  margin: 1.45rem 0 0;
  color: var(--c-ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.72;
}

.home-hero-actions,
.home-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.home-hero-actions .btn,
.home-final-actions .btn {
  min-height: 50px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-radius: 12px;
  font-weight: 700;
}

.home-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% 2% 6% 5%;
  border-radius: 42px;
  background: rgba(16, 87, 252, .07);
  transform: rotate(5deg);
}

.home-phone-frame {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 470px);
  min-height: 400px;
}

.home-phone-frame img {
  width: min(100%, 360px);
  max-height: 470px;
  filter: drop-shadow(0 28px 45px rgba(30, 27, 75, .18));
}

.home-floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 172px;
  padding: .85rem 1rem;
  border: 1px solid rgba(16, 87, 252, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
  color: var(--c-ink);
  font-size: .83rem;
  font-weight: 700;
}

.home-floating-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--c-primary-50);
  color: var(--c-primary);
}

.home-floating-card--email {
  top: 16%;
  left: 0;
}

.home-floating-card--api {
  right: 0;
  bottom: 18%;
}

.home-proof {
  position: relative;
  z-index: 3;
}

.home-proof .container {
  margin-top: -2rem;
}

.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(15, 23, 42, .08);
}

.home-proof-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 76px;
  padding: 1rem;
  color: var(--c-ink);
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
}

.home-proof-item + .home-proof-item {
  border-left: 1px solid var(--c-border);
}

.home-proof-item i {
  color: var(--c-primary);
}

.home-section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.home-section--tinted {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: #f8faff;
}

.home-section-heading {
  max-width: 730px;
  margin-bottom: 2.4rem;
}

.home-section-heading--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-section-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.home-section-heading p {
  margin: 1rem 0 0;
  color: var(--c-ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.home-service-card {
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 1.55rem;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: #fff;
  color: var(--c-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-service-card:hover,
.home-service-card:focus-visible {
  border-color: rgba(16, 87, 252, .3);
  color: var(--c-ink);
  outline: none;
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .09);
}

.home-service-icon,
.home-path-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--c-primary-50);
  color: var(--c-primary);
}

.home-service-card h3 {
  margin: 1.2rem 0 .55rem;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
}

.home-service-card p {
  margin: 0;
  color: var(--c-ink-soft);
  line-height: 1.58;
}

.home-card-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--c-primary);
  font-size: .88rem;
  font-weight: 700;
}

.home-card-link i,
.home-path-arrow {
  transition: transform .18s ease;
}

.home-service-card:hover .home-card-link i,
.home-service-card:focus-visible .home-card-link i,
.home-path-card:hover .home-path-arrow,
.home-path-card:focus-visible .home-path-arrow {
  transform: translateX(4px);
}

.home-services-footer {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.home-services-footer a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  text-decoration: none;
}

.home-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-path-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: center;
  min-height: 170px;
  padding: 1.6rem;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  background: #fff;
  color: var(--c-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-path-card:hover,
.home-path-card:focus-visible {
  border-color: rgba(16, 87, 252, .3);
  color: var(--c-ink);
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.home-path-copy,
.home-path-copy span,
.home-path-copy strong {
  display: block;
}

.home-path-label {
  margin-bottom: .25rem;
  color: var(--c-primary);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-path-copy strong {
  margin-bottom: .35rem;
  font-family: var(--font-heading);
  font-size: 1.22rem;
}

.home-path-copy span:last-child {
  color: var(--c-ink-soft);
  font-size: .92rem;
  line-height: 1.5;
}

.home-path-arrow {
  color: var(--c-primary);
}

.home-final-section {
  padding: 0 0 clamp(4.5rem, 8vw, 7rem);
}

.home-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: 24px;
  background: linear-gradient(135deg, #0f3fae 0%, var(--c-primary) 58%, #5b5fe9 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(16, 87, 252, .2);
}

.home-final-cta h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.035em;
}

.home-final-cta p {
  max-width: 650px;
  margin: .8rem 0 0;
  color: rgba(255, 255, 255, .84);
  line-height: 1.65;
}

.home-final-actions {
  margin-top: 0;
}

@media (max-width: 991px) {
  .home-hero-grid,
  .home-final-cta {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    text-align: center;
  }

  .home-eyebrow,
  .home-hero-actions {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-copy > p {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero-visual {
    min-height: 360px;
  }

  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .home-hero {
    padding-top: 3.25rem;
  }

  .home-proof .container {
    margin-top: -1rem;
  }

  .home-proof-grid,
  .home-service-grid,
  .home-path-grid {
    grid-template-columns: 1fr;
  }

  .home-proof-item + .home-proof-item {
    border-left: 0;
    border-top: 1px solid var(--c-border);
  }

  .home-floating-card {
    display: none;
  }

  .home-hero-actions .btn,
  .home-final-actions .btn {
    width: 100%;
  }

  .home-path-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-path-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-service-card,
  .home-path-card,
  .home-card-link i,
  .home-path-arrow {
    transition: none;
  }
}
