/* ============================================
   HERO SECTION (home page only)
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 160px;
  overflow: hidden;
}

/* Gradient mesh background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(124, 71, 219, 0.08) 0%, transparent 70%);
  animation: float-slow 20s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(155, 107, 230, 0.06) 0%, transparent 70%);
  animation: float-slow 25s ease-in-out infinite reverse;
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(124, 71, 219, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 71, 219, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-100);
  border: 1px solid var(--purple-200);
  padding: 6px 16px 6px 8px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple-700);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 20px;
  height: 20px;
  background: var(--purple-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge-dot svg { width: 10px; height: 10px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--slate-950);
  margin-bottom: 24px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.word-cycle {
  display: inline-block;
  vertical-align: bottom;
}
.word-cycle-inner {
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.word-cycle .word {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.word-cycle .word.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}
.word-cycle .word.exit {
  opacity: 0;
  transform: translateY(-100%);
  position: absolute;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stat pills */
.hero-stats {
  margin-top: 56px;
  display: flex;
  gap: 40px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--slate-950);
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-top: 2px;
}

/* Hero orb nodes (used in tiered rings graphic) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 71, 219, 0.15);
  animation: pulse-ring 4s ease-in-out infinite;
}
.hero-orb:nth-child(1) {
  inset: 10%;
  border-color: rgba(124, 71, 219, 0.06);
  animation-delay: 0s;
}
.hero-orb:nth-child(2) {
  inset: 22%;
  border-color: rgba(124, 71, 219, 0.1);
  animation-delay: 0.6s;
}
.hero-orb:nth-child(3) {
  inset: 34%;
  border-color: rgba(124, 71, 219, 0.15);
  animation-delay: 1.2s;
}

.hero-node {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 1.5px solid var(--purple-200);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(124, 71, 219, 0.08), 0 1px 4px rgba(0,0,0,0.04);
  z-index: 2;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}
.hero-node:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(124, 71, 219, 0.16);
}
.hero-node svg { width: 24px; height: 24px; color: var(--purple-600); }

.hero-node:nth-child(4) { top: 8%;  left: 50%; transform: translateX(-50%); }
.hero-node:nth-child(5) { top: 30%; right: 5%; }
.hero-node:nth-child(6) { bottom: 30%; right: 5%; }
.hero-node:nth-child(7) { bottom: 8%; left: 50%; transform: translateX(-50%); }
.hero-node:nth-child(8) { bottom: 30%; left: 5%; }
.hero-node:nth-child(9) { top: 30%; left: 5%; }

.hero-center-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(124, 71, 219, 0.3), 0 2px 8px rgba(124, 71, 219, 0.15);
  z-index: 3;
}
.hero-center-node svg { width: 36px; height: 36px; color: var(--white); }

/* ============================================
   SERVICES SECTION
============================================ */
.services {
  padding: 120px 0;
  background: var(--slate-50);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-200), transparent);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}
.services-header .section-title,
.services-header .section-subtitle {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 36px 32px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-600), var(--purple-400));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover {
  border-color: var(--purple-200);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(124, 71, 219, 0.08), 0 2px 12px rgba(0,0,0,0.04);
}
.service-card:hover::before { opacity: 1; }

/* Feature card spanning full width */
.service-card.featured {
  padding: 48px;
  background: linear-gradient(135deg, var(--purple-900) 0%, var(--purple-800) 100%);
  border-color: transparent;
}
.service-card.featured-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 48px;
  align-items: center;
}
.service-card.featured-wide .service-card-top-wide {
  margin-bottom: 20px;
}
.service-card.featured-slim {
  grid-column: span 1;
}
.service-card.featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 64px rgba(124, 71, 219, 0.25);
  border-color: transparent;
}
.service-card.featured::before { display: none; }
.service-card.featured .service-icon-wrap {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}
.service-card.featured .service-icon-wrap svg { color: var(--purple-300); }
.service-card.featured .service-name { color: var(--white); }
.service-card.featured .service-desc { color: var(--purple-300); }
.service-card.featured .service-link { color: var(--purple-300); }
.service-card.featured .service-link:hover { color: var(--white); }

.featured-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.featured-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--purple-100);
  border: 1px solid var(--purple-200);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s var(--ease-out-expo);
}
.service-card:hover .service-icon-wrap {
  background: var(--purple-600);
  border-color: var(--purple-600);
}
.service-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--purple-600);
  transition: color 0.3s ease;
}
.service-card:hover .service-icon-wrap svg { color: var(--white); }

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.service-card-top .service-icon-wrap {
  margin-bottom: 0;
}
.service-card-top-wide {
  grid-column: 1 / -1;
  align-self: start;
}
.service-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-600);
  background: var(--purple-100);
  border: 1px solid var(--purple-200);
  border-radius: 100px;
  padding: 3px 10px;
}
.service-card.featured .service-tag {
  color: var(--purple-200);
  background: rgba(124, 71, 219, 0.25);
  border-color: rgba(124, 71, 219, 0.4);
}

.service-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--slate-900);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--purple-600);
  transition: gap 0.3s var(--ease-out-expo), color 0.25s ease;
}
.service-link:hover { gap: 10px; }
.service-link svg { width: 16px; height: 16px; }

/* ============================================
   WHY ETWRK
============================================ */
.why {
  padding: 120px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.differentiator-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.differentiator-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.975rem;
  color: var(--slate-700);
  line-height: 1.5;
}

.differentiator-list .check-circle {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================
   HOME ANIMATIONS
============================================ */
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.7; }
}
@keyframes node-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(124,71,219,0.2)); }
  50%       { filter: drop-shadow(0 0 12px rgba(124,71,219,0.5)); }
}
@keyframes node-glow {
  0%,100% { filter: drop-shadow(0 2px 6px rgba(124,71,219,0.15)); }
  50%      { filter: drop-shadow(0 2px 16px rgba(124,71,219,0.35)); }
}
.glow-node { animation: node-glow 2.8s ease-in-out infinite; }
.glow-node:nth-child(2) { animation-delay: 0.7s; }
.glow-node:nth-child(3) { animation-delay: 1.4s; }
.glow-node:nth-child(4) { animation-delay: 2.1s; }
.glow-node:nth-child(5) { animation-delay: 2.8s; }
.glow-node:nth-child(6) { animation-delay: 0.35s; }
.hg-node { animation: node-pulse 3s ease-in-out infinite; }
.hg-node:nth-child(odd) { animation-delay: 1.5s; }

/* VoIP waves */
@keyframes voip-ring {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(3.6); opacity: 0; }
}
@keyframes sig-pulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 1; }
}
.voip-ring {
  transform-origin: 200px 200px;
  animation: voip-ring 3s ease-out infinite;
}
.voip-ring-2 { animation-delay: 1s; }
.voip-ring-3 { animation-delay: 2s; }
.sig-bar { animation: sig-pulse 1.6s ease-in-out infinite; }
.sig-b1 { animation-delay: 0s; }
.sig-b2 { animation-delay: 0.2s; }
.sig-b3 { animation-delay: 0.4s; }

/* Dashboard card */
.hg-dash {
  width: 92%;
  max-width: 340px;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 20px;
  padding: 22px 24px 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  font-family: var(--font-display);
}
.hg-dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.hg-dash-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
@keyframes live-blink {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
.hg-dash-live { animation: live-blink 1.8s ease-out infinite; }
.hg-dash-title { font-size: 0.8rem; font-weight: 600; color: var(--slate-900); flex: 1; }
.hg-dash-badge {
  font-size: 0.65rem; font-weight: 600; padding: 2px 8px;
  background: #dcfce7; color: #16a34a; border-radius: 10px;
}
.hg-dash-rows { display: flex; flex-direction: column; gap: 10px; }
.hg-dash-row { display: flex; align-items: center; gap: 10px; }
.hg-dash-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
}
@keyframes dot-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.hg-dash-dot { animation: dot-pulse 2s ease-in-out infinite; }
.hg-dash-row:nth-child(2) .hg-dash-dot { animation-delay: 0.4s; }
.hg-dash-row:nth-child(3) .hg-dash-dot { animation-delay: 0.8s; }
.hg-dash-row:nth-child(4) .hg-dash-dot { animation-delay: 1.2s; }
.hg-dash-row:nth-child(5) .hg-dash-dot { animation-delay: 1.6s; }
.hg-dash-svc { font-size: 0.75rem; font-weight: 500; color: var(--slate-700); width: 90px; flex-shrink: 0; }
.hg-dash-bar-wrap { flex: 1; height: 5px; background: var(--slate-100); border-radius: 3px; overflow: hidden; }
.hg-dash-bar-fill { height: 100%; background: linear-gradient(90deg, var(--purple-400), var(--purple-600)); border-radius: 3px; }
@keyframes bar-breathe {
  0%,100% { opacity: 0.8; }
  50%      { opacity: 1; }
}
.hg-dash-bar-fill { animation: bar-breathe 3s ease-in-out infinite; }
.hg-dash-pct { font-size: 0.65rem; font-weight: 600; color: var(--slate-400); width: 32px; text-align: right; flex-shrink: 0; }
.hg-dash-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.hg-dash-footer-label { font-size: 0.7rem; color: var(--slate-400); line-height: 1.4; }
.hg-dash-footer-label strong { display: block; font-size: 1.1rem; font-weight: 700; color: var(--slate-900); }
.hg-dash-sparkline { flex: 1; height: 40px; }
@keyframes spark-draw {
  from { stroke-dashoffset: 120; }
  to   { stroke-dashoffset: 0; }
}
.spark-line {
  stroke-dasharray: 120;
  animation: spark-draw 2.5s ease-out forwards, spark-draw 2.5s ease-out 2.5s infinite;
}

/* Isometric */
@keyframes iso-float-server {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-7px); }
}
@keyframes iso-float-phone {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-5px); }
}
@keyframes iso-float-cloud {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}
@keyframes led-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}
.iso-server { animation: iso-float-server 4s ease-in-out infinite; transform-origin: 178px 260px; }
.iso-phone  { animation: iso-float-phone  4s ease-in-out infinite 0.6s; transform-origin: 233px 260px; }
.iso-cloud  { animation: iso-float-cloud  5s ease-in-out infinite 1s; }
.iso-led    { animation: led-blink 1.4s ease-in-out infinite; }
.iso-led:nth-child(2) { animation-delay: 0.28s; }
.iso-led:nth-child(3) { animation-delay: 0.56s; }
.iso-led:nth-child(4) { animation-delay: 0.84s; }
.iso-led:nth-child(5) { animation-delay: 1.12s; }
@keyframes iso-connect {
  0%   { stroke-dashoffset: 80; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: -20; opacity: 0; }
}
.iso-wire { stroke-dasharray: 6 80; animation: iso-connect 2s linear infinite; }

/* ============================================
   RESPONSIVE (home-specific overrides)
============================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { order: -1; }
  .hero-graphic-wrapper { max-width: 460px; }
  .hero-text { max-width: 100%; text-align: center; margin: 0 auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.featured-wide { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 32px; }
  .service-card.featured-slim { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-content { gap: 32px; }
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
  .services { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { padding: 32px; }
  .service-card.featured-wide { grid-column: 1; grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 90px 0 40px; }
  .hero-content { gap: 8px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions a, .hero-actions button { width: 100%; justify-content: center; }
  .hero-graphic-wrapper { max-width: 260px; }
}
