:root {
  --pp-yellow: #ffb81c;
  --pp-yellow-dk: #fdad00;
  --pp-yellow-tint: #fff6df;
  --pp-black: #0A0A0A;
  --pp-black-2: #161616;
  --pp-text: #1a1a1a;
  --pp-muted: #5f6672;
  --pp-border: #e6e6e9;
  --pp-bg-light: #f5f6f8;
  --pp-white: #ffffff;
  --pp-radius: 16px;
  --pp-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

.pp-page {
  color: var(--pp-text);
  overflow-wrap: break-word;
}

.pp-page img {
  max-width: 100%;
}

/* ── BUTTONS ── */
.pp-page .btn-pp,
.pp-page .btn-pp:visited,
.pp-page .btn-pp:focus {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border: 2px solid var(--pp-yellow);
  border-radius: 999px;
  background: var(--pp-yellow);
  color: #000;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.pp-page .btn-pp:hover {
  background: var(--pp-yellow-dk);
  border-color: var(--pp-yellow-dk);
  color: #000;
  transform: translateY(-1px);
}

/* ── SECTIONS & HEADINGS ── */
.pp-section {
  padding: 64px 0;
  background: var(--pp-white);
}

.pp-section-alt {
  background: var(--pp-bg-light);
}

.pp-heading {
  max-width: 780px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.pp-heading h1,
.pp-heading h2 {
  margin-bottom: .75rem;
  color: var(--pp-black);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
}

.pp-heading h4 {
  margin: 0;
  color: var(--pp-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

/* ── HERO ── */
.pp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 560px;
  padding: 32px 16px 48px;
  overflow: hidden;
  color: var(--pp-white);
  text-align: center;
  background: var(--pp-black) url('/images/peplink/peplink-hero.webp') center / cover no-repeat;
}

.pp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .8) 100%);
}

.pp-hero > * {
  position: relative;
  z-index: 1;
}

.pp-hero-logo {
  max-height: 72px;
  max-width: 200px;
}

.pp-hero h1 {
  margin-bottom: .5rem;
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.5px;
}

.pp-hero h1 span,
.pp-speedfusion h1 span {
  color: var(--pp-yellow);
}

.pp-hero h4 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .88);
}

/* ── ENGINEERING FEATURES ── */
.pp-feature {
  height: 100%;
  padding: 1.1rem .9rem;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  background: var(--pp-white);
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.pp-feature:hover {
  transform: translateY(-4px);
  border-color: var(--pp-yellow);
  box-shadow: var(--pp-shadow);
}

.pp-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto .75rem;
  border-radius: 50%;
  background: var(--pp-black);
  box-shadow: 0 0 0 4px var(--pp-yellow-tint);
}

.pp-feature-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pp-feature h5 {
  margin: 0 0 .35rem;
  color: var(--pp-black);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
}

.pp-feature p {
  margin: 0;
  color: var(--pp-muted);
  font-size: .8rem;
  line-height: 1.5;
}

/* ── SPEEDFUSION ── */
.pp-speedfusion {
  position: relative;
  overflow: hidden;
  padding: 48px 0;
  color: var(--pp-white);
  background:
    radial-gradient(ellipse at 85% 50%, rgba(255, 184, 28, .18) 0%, transparent 55%),
    var(--pp-black);
}

.pp-speedfusion h1 {
  margin-bottom: .75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.5px;
}

.pp-speedfusion p {
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, .82);
  font-size: .88rem;
  line-height: 1.65;
}

.pp-speedfusion-img {
  max-width: 320px;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .5));
}

/* ── PRODUCT CARDS ── */
.pp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  background: var(--pp-white);
  text-align: center;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.pp-card:hover {
  transform: translateY(-4px);
  border-color: var(--pp-yellow);
  box-shadow: var(--pp-shadow);
}

.pp-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  padding: 1.25rem;
  background: var(--pp-bg-light);
  border-bottom: 1px solid var(--pp-border);
}

.pp-card-img img {
  max-height: 100%;
  object-fit: contain;
}

.pp-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 1.4rem 1.4rem 1.5rem;
}

.pp-card-body h3 {
  margin-bottom: .6rem;
  color: var(--pp-black);
  font-size: 1.15rem;
  font-weight: 700;
}

.pp-card-body h5 {
  margin-bottom: 1rem;
  color: var(--pp-muted);
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.5;
}

.pp-card-body p {
  margin-bottom: 1.25rem;
  color: var(--pp-muted);
  font-size: .9rem;
  line-height: 1.65;
}

.pp-card-body .btn-pp {
  margin-top: auto;
}

/* wide card for the last product: image left, text right */
.pp-card-wide {
  flex-direction: row;
  text-align: left;
}

.pp-card-wide .pp-card-img {
  flex: 0 0 34%;
  height: auto;
  min-height: 190px;
  border-bottom: 0;
  border-right: 1px solid var(--pp-border);
}

.pp-card-wide .pp-card-body {
  align-items: flex-start;
  justify-content: center;
}

.pp-card-wide .pp-card-body .btn-pp {
  margin-top: 0;
}

/* ── CLOSING CTA ── */
.pp-cta {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: var(--pp-white);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 184, 28, .2) 0%, transparent 60%),
    #000;
}

.pp-cta-logo {
  max-height: 60px;
  max-width: 180px;
  margin-bottom: 1rem;
}

.pp-cta h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
}

.pp-cta p {
  max-width: 820px;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, .82);
  font-size: .98rem;
  line-height: 1.75;
}

@media (max-width: 767.98px) {
  .pp-section,
  .pp-speedfusion,
  .pp-cta {
    padding: 44px 0;
  }

  .pp-hero {
    min-height: 460px;
  }

  .pp-card-wide {
    flex-direction: column;
    text-align: center;
  }

  .pp-card-wide .pp-card-img {
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--pp-border);
  }

  .pp-card-wide .pp-card-body {
    align-items: center;
  }
}

/* ── ECOSYSTEM (cards joined by a line running behind them) ── */
.pp-eco {
  padding: 56px 0 64px;
  color: var(--pp-white);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 184, 28, .14) 0%, transparent 60%),
    var(--pp-black);
}

.pp-eco-head {
  margin-bottom: 2.25rem;
  text-align: center;
}

.pp-eco-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
}

.pp-eco-row {
  position: relative;
}

/* the connecting line, behind the cards */
.pp-eco-row::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 184, 28, .15), var(--pp-yellow) 20%, var(--pp-yellow) 80%, rgba(255, 184, 28, .15));
  box-shadow: 0 0 14px rgba(255, 184, 28, .45);
}

.pp-eco-col {
  position: relative;
  z-index: 1;
}

/* node dot in the gap between cards */
.pp-eco-col:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -.75rem;
  width: 14px;
  height: 14px;
  transform: translate(50%, -50%);
  border: 3px solid var(--pp-black);
  border-radius: 50%;
  background: var(--pp-yellow);
  box-shadow: 0 0 0 2px var(--pp-yellow), 0 0 12px rgba(255, 184, 28, .7);
}

.pp-eco-card {
  height: 100%;
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--pp-radius);
  background: #141414;
  text-align: center;
  transition: transform .25s, border-color .25s;
}

.pp-eco-card:hover {
  transform: translateY(-4px);
  border-color: var(--pp-yellow);
}

.pp-eco-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin-bottom: 1rem;
}

.pp-eco-img img {
  max-height: 100%;
  object-fit: contain;
}

.pp-eco-card h3 {
  margin-bottom: .5rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.pp-eco-verb {
  display: inline-block;
  margin-bottom: .9rem;
  padding: .25rem .8rem;
  border-radius: 999px;
  background: var(--pp-yellow);
  color: #000;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.pp-eco-card p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .86rem;
  line-height: 1.65;
}

/* below desktop the cards stack: line runs vertically behind them */
@media (max-width: 991.98px) {
  .pp-eco-row::before {
    top: 24px;
    bottom: 24px;
    left: 50%;
    right: auto;
    width: 3px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 184, 28, .15), var(--pp-yellow) 20%, var(--pp-yellow) 80%, rgba(255, 184, 28, .15));
  }

  .pp-eco-col:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -.75rem;
    left: 50%;
    transform: translate(-50%, 50%);
  }
}

@media (max-width: 767.98px) {
  .pp-eco {
    padding: 40px 0 48px;
  }
}
