/* ═══════════════════════════════════════════════
   VoIP Futuristic Theme Styles
   ═══════════════════════════════════════════════ */

/* ─── Hero: VoIP ─── */
.hero-voip{
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(0,212,255,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 70% 80%, rgba(124,58,237,.08) 0%, transparent 60%),
    linear-gradient(160deg, #06060f 0%, #0d0d1f 40%, #13132a 100%);
  color:#ffffff;
  position: relative;
  overflow: hidden;
}
.hero-voip::before{
  content:"";
  position:absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(0,212,255,.07) 0%, transparent 65%);
  pointer-events:none;
  animation: pulse-glow 8s ease-in-out infinite;
}
.hero-voip::after{
  content:"";
  position:absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(124,58,237,.06) 0%, transparent 65%);
  pointer-events:none;
  animation: pulse-glow 10s ease-in-out infinite reverse;
}
@keyframes pulse-glow{
  0%,100%{opacity:.6; transform:scale(1)}
  50%{opacity:1; transform:scale(1.05)}
}

/* Grid overlay for hero */
.hero-voip .hero-card::before{
  content:"";
  position: absolute;
  inset: -200px;
  background-image:
    linear-gradient(rgba(0,212,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
}

.hero-voip h1{
  background: linear-gradient(135deg, #ffffff 20%, var(--brand) 60%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-voip p{
  color: rgba(255,255,255,.78);
}
.hero-voip .pill{
  border-color: rgba(0,212,255,.3);
  background: rgba(0,212,255,.06);
  color: var(--brand);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all .2s ease;
}
.hero-voip .pill:hover{
  background: rgba(0,212,255,.15);
  border-color: rgba(0,212,255,.5);
  color:#ffffff;
  box-shadow: 0 0 20px rgba(0,212,255,.2);
}

/* ─── VoIP Badge ─── */
.voip-badge{
  display:inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(0,212,255,.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
  font-family: var(--mono-font);
  background: rgba(0,212,255,.06);
  box-shadow: 0 0 16px rgba(0,212,255,.1);
}

/* ─── KPI grid variants ─── */
.kpi-grid-4{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi-grid-5{
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* ─── VoIP illustrations (inline SVG containers) ─── */
.voip-illustration{
  width:100%;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 1px rgba(0,212,255,.3);
  border: 1px solid rgba(0,212,255,.1);
}
.voip-illustration svg{
  display:block;
  width:100%;
  height:auto;
}
.voip-illust-wide{
  margin-top: 28px;
}

/* ─── VoIP icon wrappers ─── */
.voip-icon{
  width: 48px;
  height: 48px;
  display:flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: rgba(0,212,255,.06);
  border: 1px solid rgba(0,212,255,.15);
  border-radius: 10px;
  padding: 8px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover .voip-icon{
  border-color: rgba(0,212,255,.3);
  box-shadow: 0 0 12px rgba(0,212,255,.1);
}
.voip-icon svg{
  width:100%;
  height:100%;
}
.voip-icon-lg{
  width: 64px;
  height: 64px;
  padding: 10px;
}

/* ─── Benefits list ─── */
.voip-benefits-list li{
  margin: 12px 0;
  line-height: 1.6;
}

/* ─── Stack cards ─── */
.voip-stack-card .voip-stack-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 10px;
}
.voip-stack-card .voip-stack-header .voip-icon{
  margin:0;
  flex-shrink:0;
}

/* ─── Pricing cards ─── */
.voip-pricing-grid{
  align-items: stretch;
}
.voip-plan{
  display:flex;
  flex-direction:column;
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.voip-plan:hover{
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}
.voip-plan p{
  margin-bottom: 16px;
}
.voip-plan .list{
  flex:1;
  margin-bottom: 18px;
}
.voip-plan .actions{
  margin-top: auto;
}
.voip-plan-header{
  text-align:center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.voip-plan-header h3{
  margin: 0 0 8px;
  font-size: 22px;
}
.voip-plan-price{
  font-size: 34px;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--brand);
  line-height: 1.2;
}
.voip-plan-term{
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono-font);
}

/* ─── Featured plan ─── */
.voip-plan-featured{
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 0 32px rgba(0,212,255,.15);
  background: linear-gradient(180deg, rgba(0,212,255,.04) 0%, var(--surface-2) 100%);
}
.voip-plan-badge{
  position:absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand) 0%, #0099cc 100%);
  color: #06060f;
  padding: 5px 18px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space:nowrap;
  font-family: var(--mono-font);
  box-shadow: 0 4px 16px rgba(0,212,255,.2);
}

/* ─── SKU Section (Healthcare / Call Center tabs) ─── */
.sku-section{
  padding: 72px 0;
}
.sku-tabs{
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.sku-tab{
  padding: 12px 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--heading-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  border-radius: 8px;
  transition: all .2s ease;
  white-space: nowrap;
}
.sku-tab:hover{
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.sku-tab.active{
  background: linear-gradient(135deg, var(--brand) 0%, #0099cc 100%);
  color: #06060f;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,212,255,.2);
}
.sku-panel{
  display: none;
}
.sku-panel.active{
  display: block;
  animation: sku-fade .3s ease;
}
@keyframes sku-fade{
  from{opacity:0; transform: translateY(8px)}
  to{opacity:1; transform: translateY(0)}
}

/* ─── SKU Hero Cards ─── */
.sku-hero{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.sku-card{
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: all .25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.sku-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity .25s ease;
}
.sku-card:hover,
.sku-card.active{
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}
.sku-card.active::before{
  opacity: 1;
}
.sku-card h3{
  font-size: 20px;
  margin: 12px 0 8px;
}
.sku-card p{
  color: var(--muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.sku-card .voip-icon{
  width: 56px;
  height: 56px;
  padding: 10px;
}

/* ─── Stat highlight row ─── */
.stat-row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.stat-item{
  text-align: center;
  padding: 20px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-value{
  display: block;
  font-size: 32px;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--brand);
  letter-spacing: -0.02em;
}
.stat-label{
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
  font-family: var(--mono-font);
}

/* ─── Animated scan line (decorative) ─── */
.scan-line{
  position: relative;
  overflow: hidden;
}
.scan-line::after{
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: scan 4s linear infinite;
}
@keyframes scan{
  0%{left:-100%}
  100%{left:100%}
}

/* ─── Glow card variant ─── */
.card-glow{
  position: relative;
}
.card-glow::before{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(0,212,255,.2), rgba(124,58,237,.2));
  z-index: -1;
  opacity: 0;
  transition: opacity .3s ease;
}
.card-glow:hover::before{
  opacity: 1;
}

/* ─── Responsive ─── */
@media (max-width: 900px){
  .kpi-grid-4{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-grid-5{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .voip-pricing-grid{
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .voip-plan-featured{
    order: -1;
  }
  .sku-hero{
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .sku-tabs{
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
}
@media (max-width: 720px){
  .kpi-grid-4{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-grid-5{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sku-tab{
    padding: 10px 20px;
    font-size: 13px;
  }
}
