/* =========================================================================
   SENDPK.COM — Home hero (premium map hero, integrated from the test.php
   prototype in a CSP-safe form)
   -------------------------------------------------------------------------
   Loaded ONLY by index.php via theme_head()'s $extraCss.
   - Consumes theme.css tokens (--wa-*, --wa-grad, --wa-ease, fonts) — no
     parallel token system, no CDN fonts (Poppins → Plus Jakarta Sans/Inter).
   - Every animation stagger the prototype set via inline style="--d/--td/--fd"
     attributes is a CLASS here (.ad-*, .tower.t-*, .cnode.c-*, .gc-*),
     because the theme's CSP (style-src 'self') strips inline styles.
   - Buttons/nav/eyebrow/gradient-text come from theme.css — not duplicated.
   INDEX
     1. Hero shell & background decor
     2. Entrance animation utility (.anim-up + .ad-* delays)
     3. Left column (pill, headline, divider, description, CTAs)
     4. Operator logo cards
     5. Feature cards row
     6. Map scene (SVG) — 3D map, network, towers, nodes, labels, bubbles
     7. Glassmorphism floating cards
     8. Keyframes
     9. Responsive
     10. Reduced motion
   ========================================================================= */


/* ==========================================================================
   1. HERO SHELL & BACKGROUND DECOR
   ========================================================================== */
.hero-v2 {
  padding: 4.25rem 0 5rem;
  background:
    radial-gradient(1100px 540px at 82% -12%, rgba(34, 197, 94, .10), transparent 62%),
    radial-gradient(900px 500px at -8% 108%, rgba(11, 122, 67, .09), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #F6FCF9 55%, #EFF9F4 100%);
}

.hero-v2 .container { position: relative; z-index: 1; }

/* clipped layer holding every decorative element (.hero has overflow:hidden) */
.hero-decor {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}

/* soft blurred gradient blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(74px); opacity: .55;
  animation: blobDrift 22s ease-in-out infinite alternate;
}
.blob-1 { width: 460px; height: 460px; background: #C4F1DA; top: -170px;   left: -190px; }
.blob-2 { width: 430px; height: 430px; background: #D8F7E7; top: 26%;      right: -190px; animation-duration: 27s; animation-delay: -8s; }
.blob-3 { width: 360px; height: 360px; background: #E5FBF0; bottom: -190px; left: 22%;    animation-duration: 24s; animation-delay: -14s; }

/* subtle dotted grid, faded out radially */
.dots-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11, 122, 67, .16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 36%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 36%, #000 0%, transparent 72%);
  opacity: .45;
}

/* large decorative circles */
.deco-ring { position: absolute; border-radius: 50%; border: 1.6px dashed rgba(11, 122, 67, .15); }
.ring-1 { width: 640px; height: 640px; top: -220px; right: -160px; animation: spinSlow 70s linear infinite; }
.ring-2 { width: 400px; height: 400px; bottom: -140px; left: -130px; border-style: solid; border-color: rgba(11, 122, 67, .08); }


/* ==========================================================================
   2. ENTRANCE ANIMATION UTILITY — delays are classes (CSP: no inline style)
   ========================================================================== */
.anim-up { opacity: 0; animation: fadeUp .85s var(--wa-ease) var(--d, 0s) forwards; }
.ad-1 { --d: .05s; }
.ad-2 { --d: .15s; }
.ad-3 { --d: .25s; }
.ad-4 { --d: .35s; }
.ad-5 { --d: .45s; }
.ad-6 { --d: .55s; }
.ad-7 { --d: .65s; }


/* ==========================================================================
   3. LEFT COLUMN
   ========================================================================== */
.hero-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1.05rem; border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid #D8EEE1; box-shadow: 0 6px 18px -8px rgba(10, 46, 28, .14);
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--wa-teal-dark);
}
.pill-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--wa-green);
  animation: pillPulse 2s ease-out infinite;
}

.hero-v2 .hero-title {
  margin: 1.35rem 0 0;
  font-size: clamp(2.35rem, 1.15rem + 3.5vw, 3.7rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.025em;
  color: var(--wa-ink);
}

/* keep "PTA-Approved" and the seal on one line */
.title-line { white-space: nowrap; }

/* verified seal beside the headline */
.verify-seal {
  position: relative; display: inline-grid; place-items: center;
  margin-left: .3em; vertical-align: -.08em; line-height: 1;
}
.verify-seal i {
  font-size: .82em;
  background-image: var(--wa-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 16px rgba(11, 122, 67, .38));
}
.verify-seal::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, .55);
  animation: sealPulse 2.4s ease-out infinite;
}

/* "Since 2014" divider row */
.since-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.since-line {
  flex: 0 1 92px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--wa-green));
}
.since-line.flip { background: linear-gradient(90deg, var(--wa-green), transparent); }
.since-text {
  margin: 0; white-space: nowrap;
  font-size: .95rem; font-weight: 500; letter-spacing: .05em; color: #3E7A5C;
}
.since-text strong { color: var(--wa-teal); font-weight: 700; }

.hero-desc { max-width: 560px; margin: 1.35rem 0 0; font-size: 1.02rem; line-height: 1.85; }
.hero-desc strong { color: #2F5E46; font-weight: 600; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }


/* ==========================================================================
   4. OPERATOR LOGO CARDS
   ========================================================================== */
.operators-block { margin-top: 2.6rem; }

.operators-label {
  display: flex; align-items: center; gap: .7rem; margin-bottom: 1.05rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--wa-muted);
}
.operators-label::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--wa-green);
}

.operators-row { display: flex; flex-wrap: wrap; gap: 1.15rem; }
.operator { text-align: center; }
.operator-card {
  display: grid; place-items: center;
  width: 86px; height: 86px; border-radius: 50%;
  background: var(--wa-surface); border: 1px solid #DEF0E5;
  box-shadow: 0 10px 26px -12px rgba(10, 46, 28, .18);
  transition: transform .35s var(--wa-ease), box-shadow .35s var(--wa-ease),
              border-color .35s var(--wa-ease);
}
.operator-card img { width: 52px; height: 52px; object-fit: contain; transition: transform .35s var(--wa-ease); }
.operator:hover .operator-card {
  transform: translateY(-8px) scale(1.04); border-color: #A9E2C3;
  box-shadow: 0 20px 36px -14px rgba(11, 122, 67, .38);
}
.operator:hover .operator-card img { transform: scale(1.1); }
.operator-name { display: block; margin-top: .55rem; font-size: .74rem; font-weight: 500; color: var(--wa-muted); }


/* ==========================================================================
   5. FEATURE CARDS ROW
   ========================================================================== */
.hero-features { margin-top: 4.25rem; }

.feature-card {
  position: relative; height: 100%;
  padding: 1.3rem .85rem 1.15rem; text-align: center;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #DEF0E5; border-radius: 18px;
  box-shadow: 0 8px 22px -14px rgba(10, 46, 28, .14);
  transition: transform .35s var(--wa-ease), box-shadow .35s var(--wa-ease),
              border-color .35s var(--wa-ease);
}
.feature-card::before {                 /* gradient accent bar revealed on hover */
  content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px;
  border-radius: 0 0 6px 6px; background-image: var(--wa-grad);
  transform: scaleX(0); transition: transform .35s var(--wa-ease);
}
.feature-card:hover {
  transform: translateY(-7px); border-color: #BFE7D1;
  box-shadow: 0 22px 40px -18px rgba(11, 122, 67, .38);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin: 0 auto .8rem; border-radius: 14px;
  background: linear-gradient(150deg, #E9F8F0 0%, #D4F3E2 100%);
  color: var(--wa-teal); font-size: 1.3rem;
  transition: background .35s var(--wa-ease), color .35s var(--wa-ease),
              transform .35s var(--wa-ease), box-shadow .35s var(--wa-ease);
}
.feature-card:hover .feature-icon {
  background: var(--wa-grad); color: #fff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 20px -8px rgba(11, 122, 67, .55);
}
.feature-title { margin: 0 0 .2rem; font-size: .9rem; font-weight: 600; color: var(--wa-ink); }
.feature-sub { margin: 0; font-size: .74rem; color: var(--wa-muted); }


/* ==========================================================================
   6. MAP SCENE (SVG)
   ========================================================================== */
.hero-visual {
  position: relative; max-width: 620px; margin-inline: auto;
  animation: visIn 1s var(--wa-ease) .25s both;
}

.pk-scene { display: block; width: 100%; height: auto; overflow: visible; }

/* whole map + towers + bubbles bob gently */
.map-float { animation: mapFloat 7s ease-in-out infinite alternate; will-change: transform; }

/* 3D map body */
.map-3d { filter: drop-shadow(0 30px 30px rgba(4, 56, 30, .34)); }

/* slow-rotating dashed orbit inside the SVG */
.ring-spin { transform-box: fill-box; transform-origin: center; animation: spinSlow 80s linear infinite; }

/* --- network lines: soft green glow underlay + animated white dashes --- */
.net-under path { fill: none; stroke: rgba(141, 240, 183, .38); stroke-width: 5; stroke-linecap: round; }

.net { filter: drop-shadow(0 0 5px rgba(150, 245, 190, .9)); }
.net-line {
  fill: none; stroke: rgba(255, 255, 255, .97); stroke-width: 2;
  stroke-linecap: round; stroke-dasharray: 5 9;
  animation: dashFlow 2.2s linear infinite;
}
.net-line:nth-of-type(2)  { animation-delay: -.4s; }
.net-line:nth-of-type(3)  { animation-delay: -.8s; }
.net-line:nth-of-type(4)  { animation-delay: -1.2s; }
.net-line:nth-of-type(5)  { animation-delay: -1.6s; }
.net-line:nth-of-type(6)  { animation-delay: -2s; }
.net-line:nth-of-type(7)  { animation-delay: -2.4s; }
.net-line:nth-of-type(8)  { animation-delay: -.6s; }
.net-line:nth-of-type(9)  { animation-delay: -1.4s; }
.net-line:nth-of-type(10) { animation-delay: -2.2s; }
.net-line:nth-of-type(11) { animation-delay: -1s; }
.net-line:nth-of-type(12) { animation-delay: -1.8s; }
.net-line:nth-of-type(13) { animation-delay: -2.6s; }
.net-line:nth-of-type(14) { animation-delay: -1.3s; }

/* thin feeder links to secondary nodes */
.net-thin { stroke-width: 1.1; stroke-dasharray: 3 8; opacity: .75; animation-duration: 2.8s; }

/* --- secondary connection nodes (ripple delays via .c-* classes) --- */
.node-dot { fill: #FFFFFF; }
.node-ring {
  fill: none; stroke: #D9FCE7; stroke-width: 1.4; opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: ripple 3.2s var(--td, 0s) cubic-bezier(.2, .6, .4, 1) infinite;
}
.cnode.c-2 { --td: .6s; }
.cnode.c-3 { --td: 1.2s; }
.cnode.c-4 { --td: 1.8s; }
.cnode.c-5 { --td: 2.4s; }
.cnode.c-6 { --td: 3s; }
.cnode.c-7 { --td: 3.6s; }

/* --- tiny uppercase city labels --- */
.city-label {
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  fill: rgba(255, 255, 255, .95);
  text-shadow: 0 1px 5px rgba(2, 40, 21, .6);
}

/* --- telecom towers (signal delays via .t-* classes) --- */
.tw-base  { fill: rgba(2, 36, 19, .35); }
.tw-frame { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; opacity: .95; }
.tw-brace { fill: none; stroke: rgba(255, 255, 255, .72); stroke-width: 1.3; stroke-linecap: round; }
.tw-tip   { fill: #ECFDF3; }
.tw-glow {
  fill: #86EFAC; opacity: .45;
  transform-box: fill-box; transform-origin: center;
  animation: towerGlow 2.6s var(--td, 0s) ease-in-out infinite;
}
.tw-ripple {
  fill: none; stroke: #C7F9DC; stroke-width: 1.6; opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: ripple 3.4s var(--td, 0s) cubic-bezier(.2, .6, .4, 1) infinite;
}
.tw-ripple.rp2 { animation-delay: calc(var(--td, 0s) + 1.7s); }
.tower.t-2 { --td: .45s; }
.tower.t-3 { --td: .9s; }
.tower.t-4 { --td: 1.35s; }
.tower.t-5 { --td: 1.8s; }
.tower.t-6 { --td: 2.25s; }
.tower.t-7 { --td: 2.7s; }

/* --- floating "typing" SMS bubbles --- */
.pk-scene .bubble {
  max-width: none; padding: 0; box-shadow: none; margin: 0;   /* neutralise theme.css chat-bubble box rules on these SVG groups */
  filter: drop-shadow(0 10px 14px rgba(8, 68, 37, .16));
}
.bubble-anim { animation: bobble 4.6s ease-in-out infinite alternate; }
.bb-2 .bubble-anim { animation-duration: 5.4s; animation-delay: -1.6s; }
.bb-3 .bubble-anim { animation-duration: 5s;   animation-delay: -2.9s; }
.pk-scene .bubble rect,
.pk-scene .bubble .bb-tail { fill: #fff; stroke: #DFF0E6; stroke-width: 1; }
.b-dot { fill: var(--wa-green); animation: blinkDots 1.25s ease-in-out infinite; }
.b-dot.d2 { animation-delay: .18s; }
.b-dot.d3 { animation-delay: .36s; }

/* --- ambient particles --- */
.prt {
  fill: var(--wa-green); opacity: .25;
  transform-box: fill-box; transform-origin: center;
  animation: twinkle 6s ease-in-out infinite;
}
.prt:nth-of-type(2n)   { animation-duration: 7.5s; animation-delay: -2.2s; fill: var(--wa-action); }
.prt:nth-of-type(3n)   { animation-duration: 5.2s; animation-delay: -3.6s; }
.prt:nth-of-type(3n+1) { animation-delay: -1.1s; }


/* ==========================================================================
   7. GLASSMORPHISM FLOATING CARDS (delays/durations per card class)
   ========================================================================== */
.glass-card {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: .6rem;
  padding: .66rem .95rem; border-radius: 16px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 40px -18px rgba(8, 68, 37, .38);
  animation:
    gcIn .7s ease var(--fd, 0s) both,
    gcFloat var(--fdur, 6s) ease-in-out var(--fd, 0s) infinite alternate;
}

.gc-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  background-image: var(--wa-grad); color: #fff; font-size: 1.02rem;
  box-shadow: 0 7px 14px -5px rgba(11, 122, 67, .6);
}
.gc-body  { display: flex; flex-direction: column; line-height: 1.25; }
.gc-title { font-size: .84rem; font-weight: 700; color: var(--wa-ink); }
.gc-title small { font-size: .68rem; font-weight: 600; color: var(--wa-action); }
.gc-sub   { font-size: .66rem; font-weight: 500; color: #5D7A6A; }

/* animated delivery progress bar */
.gc-progress { width: 84px; height: 5px; margin-top: 5px; border-radius: 99px; background: #E2F4E9; overflow: hidden; }
.gc-progress span {
  display: block; height: 100%; width: 93%; border-radius: inherit;
  background-image: var(--wa-grad);
  animation: fillBar 2.2s 1.1s var(--wa-ease) both;
}

/* card positions + stagger around the map */
.gc-verified { top: 7%;     left: -3%;  --fd: .55s;  --fdur: 6.4s; }
.gc-sms      { top: 1%;     right: 4%;  --fd: .7s;   --fdur: 5.6s; }
.gc-api      { top: 45%;    left: -6%;  --fd: .85s;  --fdur: 7s; }
.gc-otp      { bottom: 15%; left: 1%;   --fd: 1s;    --fdur: 6s; }
.gc-delivery { bottom: 5%;  right: -3%; --fd: 1.15s; --fdur: 6.8s; }


/* ==========================================================================
   8. KEYFRAMES
   ========================================================================== */
@keyframes fadeUp    { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes visIn     { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mapFloat  { from { transform: translateY(-6px); } to { transform: translateY(9px); } }
@keyframes gcIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes gcFloat   { from { transform: translateY(5px); } to { transform: translateY(-9px); } }
@keyframes bobble    { from { transform: translateY(4px); } to { transform: translateY(-8px); } }
@keyframes blobDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, -36px) scale(1.14); } }
@keyframes spinSlow  { to { transform: rotate(360deg); } }
@keyframes pillPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes sealPulse { from { transform: scale(.72); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
@keyframes ripple {
  0%   { transform: scale(.5); opacity: .85; }
  70%  { opacity: .25; }
  100% { transform: scale(3.1); opacity: 0; }
}
@keyframes towerGlow {
  0%, 100% { opacity: .25; transform: scale(1); }
  50%      { opacity: .75; transform: scale(1.3); }
}
@keyframes dashFlow  { to { stroke-dashoffset: -56; } }
@keyframes blinkDots { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@keyframes twinkle   { 0%, 100% { opacity: .12; transform: scale(.75); } 50% { opacity: .55; transform: scale(1.2); } }
@keyframes fillBar   { from { width: 8%; } to { width: 93%; } }


/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */

/* large desktops down to laptops: two columns are narrower — shrink the
   headline so the "PTA-Approved + seal" nowrap group never overflows */
@media (max-width: 1199.98px) {
  .hero-v2 .hero-title { font-size: clamp(2.1rem, .5rem + 2.95vw, 3rem); }
  .hero-visual { max-width: 540px; }
  .gc-api      { left: -2%; }
  .gc-delivery { right: 0; }
  .gc-verified { left: 0; }
}

/* tablets and below: columns stack, centre the content column */
@media (max-width: 991.98px) {
  .hero-v2 { padding: 3.25rem 0 4rem; }
  .hero-v2 .hero-title { font-size: clamp(2.2rem, 1.15rem + 3.5vw, 3.2rem); }

  .hero-v2 .hero-left { max-width: 660px; margin-inline: auto; }
  .since-row { justify-content: center; }
  .hero-desc { margin-inline: auto; }
  .hero-ctas, .operators-row { justify-content: center; }
  .operators-label { justify-content: center; }

  .hero-visual { margin-top: 3rem; max-width: 560px; }
  .hero-features { margin-top: 3.25rem; }
}

/* phones */
@media (max-width: 575.98px) {
  .hero-v2 { padding: 2.5rem 0 3.25rem; }
  .hero-v2 .hero-title { font-size: clamp(1.9rem, 1rem + 5vw, 2.5rem); }

  .hero-pill { font-size: .74rem; padding: .42rem .85rem; }
  .since-line { flex-basis: 56px; }
  .since-text { font-size: .84rem; }
  .hero-desc { font-size: .95rem; line-height: 1.8; }

  .hero-ctas { gap: .7rem; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; display: inline-flex; align-items: center; gap: .5rem; }

  .operator-card { width: 72px; height: 72px; }
  .operator-card img { width: 42px; height: 42px; }
  .operators-row { gap: .85rem; }

  /* compact glass cards */
  .glass-card { padding: .5rem .7rem; gap: .45rem; border-radius: 13px; }
  .gc-icon    { width: 30px; height: 30px; font-size: .85rem; border-radius: 9px; }
  .gc-title   { font-size: .72rem; }
  .gc-sub     { font-size: .58rem; }
  .gc-progress { width: 62px; height: 4px; }
  .gc-verified { top: 5%;  left: 0; }
  .gc-sms      { top: 0;   right: 0; }
  .gc-api      { top: 40%; left: 0; }
  .gc-otp      { bottom: 13%; left: 0; }
  .gc-delivery { bottom: 3%;  right: 0; }

  /* too small to read at phone scale — hide, they're decorative */
  .city-label { display: none; }

  .feature-card  { padding: 1.05rem .7rem .95rem; }
  .feature-icon  { width: 42px; height: 42px; font-size: 1.15rem; }
  .feature-title { font-size: .82rem; }
  .feature-sub   { font-size: .68rem; }
}


/* ==========================================================================
   10. REDUCED MOTION — hero-scoped (theme.css handles .reveal separately)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-v2 *,
  .hero-v2 *::before,
  .hero-v2 *::after {
    animation: none !important;
    transition: none !important;
  }
  .anim-up, .glass-card, .hero-visual { opacity: 1 !important; }
  .gc-progress span { width: 93%; }
}
