/* FastlyPay Premium Public UI v1 */
:root {
  --fp-public-blue: #1769ff;
  --fp-public-blue-2: #4f46e5;
  --fp-public-ink: #0f172a;
  --fp-public-muted: #64748b;
  --fp-public-border: rgba(15, 23, 42, .08);
  --fp-public-soft: #f7f9fc;
}

body {
  background: #fff;
  overflow-x: hidden;
}

.header {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#header.header-scrolled {
  box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
}

#header .container-xl {
  min-height: 60px;
}

#header .logo img {
  width: auto !important;
  height: 58px !important;
  max-width: 170px !important;
  object-fit: contain !important;
}

#hero {
  position: relative;
  isolation: isolate;
  min-height: min(860px, 92vh);
  padding: 150px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 14%, rgba(79,70,229,.10), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(23,105,255,.10), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

#hero::before,
#hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
  z-index: -1;
}

#hero::before {
  width: 260px;
  height: 260px;
  top: 12%;
  left: -90px;
  background: rgba(79,70,229,.08);
}

#hero::after {
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: 5%;
  background: rgba(23,105,255,.08);
}

#hero .container,
#hero .row {
  position: relative;
  z-index: 1;
}

#hero h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 800;
  color: var(--fp-public-ink);
}

#hero h1 span {
  background: linear-gradient(135deg, var(--fp-public-blue) 0%, var(--fp-public-blue-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero h2 {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 500;
  color: var(--fp-public-muted);
}

.fp-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 8px 13px;
  border: 1px solid rgba(79,70,229,.15);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 30px rgba(15,23,42,.05);
  color: #4338ca;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fp-hero-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1769ff, #7c3aed);
  box-shadow: 0 0 0 5px rgba(79,70,229,.09);
}

.fp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.fp-hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--fp-public-border);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 28px rgba(15,23,42,.045);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.fp-hero-pills i { color: #4f46e5; }

#hero .btn-get-started {
  min-height: 54px;
  padding: 0 22px !important;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--fp-public-blue), var(--fp-public-blue-2));
  box-shadow: 0 14px 32px rgba(79,70,229,.22);
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

#hero .btn-get-started:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(79,70,229,.28);
}

#hero .hero-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 28px;
}

#hero .hero-img img {
  width: min(100%, 620px);
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 28px 55px rgba(15,23,42,.14));
}

.values,
.features,
.services,
.faq {
  background: #fff;
}

.values .box,
.services .service-box,
.features .feature-box,
.count-box {
  border: 1px solid var(--fp-public-border) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%) !important;
  box-shadow: 0 14px 40px rgba(15,23,42,.05) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.values .box:hover,
.services .service-box:hover,
.features .feature-box:hover,
.count-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(15,23,42,.09) !important;
}

.values .box,
.services .service-box {
  padding: 30px !important;
}

.values .box h3,
.services .service-box h3,
.features .feature-box h3 {
  color: var(--fp-public-ink);
}

.section-header p {
  letter-spacing: -.035em;
}

#counts {
  background: var(--fp-public-soft);
}

.count-box {
  min-height: 128px;
  padding: 24px !important;
}

.count-box i {
  border-radius: 14px;
}

#footer.footer {
  background: linear-gradient(180deg, #f7f9fc 0%, #f1f5fb 100%);
  padding-top: 86px;
}

#footer .contact-box {
  box-shadow: 0 18px 45px rgba(15,23,42,.05);
}

@media (max-width: 991.98px) {
  #hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 72px;
  }

  #hero .hero-img {
    padding-left: 0;
    padding-top: 46px;
  }

  #hero .hero-img img { max-height: 460px; }
}

@media (max-width: 575.98px) {
  #header .logo img {
    height: 48px !important;
    max-width: 145px !important;
  }

  #hero {
    padding: 112px 0 58px;
  }

  #hero h1 {
    font-size: clamp(36px, 12vw, 54px);
    line-height: 1.08;
    margin-bottom: 18px;
  }

  #hero h2 {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 22px;
  }

  .fp-hero-pills {
    gap: 8px;
    margin-bottom: 26px;
  }

  .fp-hero-pills span {
    font-size: 11px;
    min-height: 36px;
  }

  #hero .btn-get-started {
    width: 100%;
  }

  #hero .hero-img {
    padding-top: 28px;
  }

  section {
    padding: 48px 0;
  }

  .values .box,
  .services .service-box {
    padding: 22px !important;
  }

  .count-box {
    min-height: 112px;
    padding: 18px !important;
  }
}

/* Public landing polish v7 */
#hero {
  background:
    radial-gradient(circle at 10% 15%, rgba(79,70,229,.12), transparent 25%),
    radial-gradient(circle at 88% 16%, rgba(23,105,255,.13), transparent 27%),
    linear-gradient(180deg,#ffffff 0%,#f7fbff 100%) !important;
}
#hero::after { opacity:.75; }
#hero .hero-img { position:relative; z-index:0; }
#hero .hero-img::before {
  content:""; position:absolute; width:78%; height:78%; border-radius:40px;
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(234,241,255,.7));
  border:1px solid rgba(23,105,255,.10); box-shadow:0 30px 80px rgba(23,105,255,.10);
  z-index:-1; transform:rotate(-4deg);
}
#hero .hero-img img { position:relative; z-index:1; }
.values .box,.features .feature-box,.services .service-box,.count-box,.pricing .box {
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pricing .box {
  border:1px solid rgba(15,23,42,.08) !important; border-radius:24px !important;
  background:linear-gradient(180deg,#fff,#fbfcff) !important;
  box-shadow:0 18px 55px rgba(15,23,42,.06) !important;
  transition:transform .22s ease,box-shadow .22s ease;
}
.pricing .box:hover { transform:translateY(-6px); box-shadow:0 26px 68px rgba(15,23,42,.10) !important; }
.pricing .box .btn-buy { border-radius:12px !important; background:linear-gradient(135deg,#1769ff,#4f46e5) !important; box-shadow:0 12px 25px rgba(79,70,229,.18); }
#footer.footer { border-top:1px solid #edf1f6; }
@media (max-width: 575.98px) {
  #hero .hero-img::before { width:90%; height:76%; border-radius:26px; }
  #hero .hero-img img { max-width:92%; }
  .section-header { padding-bottom:28px; }
}
