/* ============================================================
   Services page — Vivacity LEAP
   ============================================================ */

/* SECTION 1: HERO — DIAGNOSTIC VISUALIZATION */
.hero-services { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--glass-border); }
.hero-services .grid-peek {
  width: 1100px; height: 800px; top: -30px; left: -60px;
  mask-image: radial-gradient(ellipse 70% 65% at 40% 45%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.12) 45%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 40% 45%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.12) 45%, transparent 70%);
}
.hero-services-inner { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; padding: 140px 40px 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-services-content { max-width: 520px; }
.hero-services-tag { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--teal); font-weight: 400; margin-bottom: 32px; display: flex; align-items: center; gap: 16px; }
.hero-services-tag::before { content: ''; width: 40px; height: 1px; background: linear-gradient(90deg, var(--teal), var(--lime)); }
.hero-services h1 { font-family: 'Outfit', sans-serif; font-weight: 200; font-size: 56px; line-height: 1.12; letter-spacing: -1px; margin-bottom: 28px; }
.hero-services h1 strong { font-weight: 600; background: linear-gradient(135deg, var(--teal), var(--lime)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-services-sub { font-size: 17px; color: var(--gray-mid); line-height: 1.7; margin-bottom: 48px; }
.hero-services-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* Waveform diagnostic readout */
.hero-viz-services { display: flex; align-items: center; justify-content: center; position: relative; min-height: 520px; }
.wave-wrap { position: relative; width: 540px; height: 460px; }
.wave-readout { position: relative; width: 100%; height: 100%; }

.wave-cursor { position: absolute; top: 0; left: 0; width: 1px; height: 100%; z-index: 4; animation: cursorSweep 6s linear infinite; }
.wave-cursor::before { content: ''; position: absolute; inset: 0; width: 1px; background: linear-gradient(to bottom, transparent 5%, rgba(2,203,209,0.4) 20%, var(--teal) 50%, rgba(2,203,209,0.4) 80%, transparent 95%); }
.wave-cursor::after { content: ''; position: absolute; top: 0; left: -20px; width: 40px; height: 100%; background: linear-gradient(to right, transparent, rgba(2,203,209,0.04), transparent); }
@keyframes cursorSweep { 0% { left: 0; } 100% { left: 100%; } }

.wave-channel { position: absolute; left: 0; right: 0; height: 70px; }
.wave-ch-1 { top: 20px; }
.wave-ch-2 { top: 110px; }
.wave-ch-3 { top: 200px; }
.wave-ch-4 { top: 290px; }
.wave-ch-5 { top: 370px; }

.wave-label { position: absolute; left: 0; top: 0; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; z-index: 3; }
.wave-label-teal { color: rgba(2,203,209,0.5); }
.wave-label-lime { color: rgba(121,211,18,0.5); }

.wave-baseline { position: absolute; top: 35px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.03); }

.wave-value { position: absolute; right: 0; top: 0; font-family: 'Outfit', sans-serif; font-weight: 200; font-size: 18px; z-index: 3; }
.wave-value-teal { color: rgba(2,203,209,0.35); }
.wave-value-lime { color: rgba(121,211,18,0.35); }

.wave-svg { width: 100%; height: 70px; overflow: visible; }
.wave-line-teal { fill: none; stroke: var(--teal); stroke-width: 1.2; opacity: 0.6; filter: drop-shadow(0 0 4px rgba(2,203,209,0.3)); }
.wave-line-lime { fill: none; stroke: var(--lime); stroke-width: 1.2; opacity: 0.5; filter: drop-shadow(0 0 4px rgba(121,211,18,0.3)); }
.wave-line-dim { fill: none; stroke: var(--teal); stroke-width: 0.8; opacity: 0.2; }
.wave-area-teal { fill: url(#waveGradTeal); opacity: 0.15; }
.wave-area-lime { fill: url(#waveGradLime); opacity: 0.1; }

.wave-animate { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: waveDraw 3s ease-out forwards; }
.wave-ch-2 .wave-animate { animation-delay: 0.3s; }
.wave-ch-3 .wave-animate { animation-delay: 0.6s; }
.wave-ch-4 .wave-animate { animation-delay: 0.9s; }
.wave-ch-5 .wave-animate { animation-delay: 1.2s; }
@keyframes waveDraw { to { stroke-dashoffset: 0; } }

.wave-dot { r: 2.5; opacity: 0; animation: dotPop 0.4s ease forwards; }
.wave-dot-teal { fill: var(--teal); }
.wave-dot-lime { fill: var(--lime); }

.wave-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 300px; background: radial-gradient(ellipse, rgba(2,203,209,0.04) 0%, transparent 70%); pointer-events: none; z-index: 0; }

.wave-grid { position: absolute; inset: 0; z-index: 0; }
.wave-grid-line { stroke: rgba(255,255,255,0.02); stroke-width: 0.5; }

/* SECTION 2: APPROACH — TESTING FIRST */
.approach-section { padding: 120px 0; border-bottom: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.approach-section .grid-peek {
  width: 900px; height: 700px; bottom: -40px; right: -50px;
  mask-image: radial-gradient(ellipse 70% 65% at 60% 55%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.12) 45%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 60% 55%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.12) 45%, transparent 70%);
}
.approach-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.approach-content h2 { font-family: 'Outfit', sans-serif; font-weight: 200; font-size: 38px; line-height: 1.3; margin-bottom: 24px; }
.approach-content h2 strong { font-weight: 600; }
.approach-content p { color: var(--gray-mid); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.approach-content .highlight-text { color: var(--white); font-size: 17px; font-weight: 400; line-height: 1.7; border-left: 2px solid var(--teal); padding-left: 20px; margin-bottom: 20px; }

.approach-flow { display: flex; flex-direction: column; gap: 0; position: relative; }
.approach-flow::before { content: ''; position: absolute; top: 28px; left: 28px; bottom: 28px; width: 1px; background: linear-gradient(to bottom, var(--teal), rgba(2,203,209,0.3), rgba(121,211,18,0.3), var(--lime)); }
.flow-step { display: flex; align-items: flex-start; gap: 24px; padding: 20px 0; position: relative; }
.flow-num { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(2,203,209,0.2); background: rgba(10,10,10,0.9); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; transition: all 0.4s; }
.flow-step:hover .flow-num { border-color: var(--teal); box-shadow: 0 0 20px rgba(2,203,209,0.15); }
.flow-num span { font-family: 'Outfit', sans-serif; font-weight: 200; font-size: 20px; background: linear-gradient(135deg, var(--teal), var(--lime)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.flow-text h4 { font-size: 16px; font-weight: 500; margin-bottom: 4px; letter-spacing: 0.5px; }
.flow-text p { font-size: 13px; color: var(--gray-mid); line-height: 1.6; }

/* SECTION 3-6: SERVICE PANELS */
.services-detail-section { padding: 120px 0; border-bottom: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.services-detail-header { text-align: center; margin-bottom: 64px; }
.services-detail-header h2 { font-family: 'Outfit', sans-serif; font-weight: 200; font-size: 40px; margin-bottom: 16px; }
.services-detail-header h2 strong { font-weight: 600; }
.services-detail-header p { color: var(--gray-mid); font-size: 16px; max-width: 500px; margin: 0 auto; }

.service-panels { display: flex; flex-direction: column; gap: 2px; }

.service-panel { background: var(--dark-card); border: 1px solid var(--glass-border); position: relative; overflow: hidden; transition: all 0.4s; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; padding: 48px 48px; }
.service-panel:hover { background: rgba(20,20,20,0.95); border-color: rgba(2,203,209,0.12); }
.service-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--teal), var(--lime)); transform: scaleX(0); transition: transform 0.4s; transform-origin: left; }
.service-panel:hover::before { transform: scaleX(1); }

.sp-icon { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(2,203,209,0.15); background: rgba(2,203,209,0.03); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.4s; }
.service-panel:hover .sp-icon { border-color: rgba(2,203,209,0.3); box-shadow: 0 0 24px rgba(2,203,209,0.08); }
.sp-icon svg { width: 36px; height: 36px; }
.sp-icon-lime { border-color: rgba(121,211,18,0.15); background: rgba(121,211,18,0.03); }
.service-panel:hover .sp-icon-lime { border-color: rgba(121,211,18,0.3); box-shadow: 0 0 24px rgba(121,211,18,0.08); }

.sp-content { min-width: 0; }
.sp-content h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; letter-spacing: 0.5px; }
.sp-content p { color: var(--gray-mid); font-size: 15px; line-height: 1.7; max-width: 560px; }
.sp-details { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-tag { padding: 4px 12px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; border: 1px solid rgba(2,203,209,0.15); color: var(--gray-mid); background: rgba(2,203,209,0.02); }
.sp-tag-lime { border-color: rgba(121,211,18,0.15); background: rgba(121,211,18,0.02); }

.sp-cta { flex-shrink: 0; }
.sp-cta a { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s, color 0.3s; white-space: nowrap; }
.sp-cta a:hover { gap: 12px; }
.sp-cta-lime a { color: var(--lime); }

/* SECTION 7: COMING SOON */
.coming-soon-section { padding: 100px 0; border-bottom: 1px solid var(--glass-border); position: relative; overflow: hidden; background: var(--dark-subtle); }
.coming-soon-header { text-align: center; margin-bottom: 48px; }
.coming-soon-header h2 { font-family: 'Outfit', sans-serif; font-weight: 200; font-size: 32px; margin-bottom: 12px; }
.coming-soon-header h2 strong { font-weight: 600; }
.coming-soon-header p { color: var(--gray-dim); font-size: 15px; }

.coming-soon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--glass-border); border: 1px solid var(--glass-border); max-width: 800px; margin: 0 auto; }
.cs-card { background: rgba(17,17,17,0.8); padding: 40px 36px; position: relative; transition: all 0.3s; }
.cs-card:hover { background: rgba(24,24,24,0.9); }
.cs-card-icon { width: 40px; height: 40px; margin-bottom: 20px; opacity: 0.5; }
.cs-card-icon svg { width: 100%; height: 100%; }
.cs-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 10px; color: var(--gray-light); }
.cs-card p { font-size: 13px; color: var(--gray-dim); line-height: 1.7; margin-bottom: 16px; }
.cs-badge { display: inline-block; padding: 4px 12px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; border: 1px solid rgba(121,211,18,0.3); color: var(--lime); font-weight: 400; background: rgba(121,211,18,0.05); }

/* SECTION 8: PROTOCOL CONNECTION */
.protocol-link-section { padding: 100px 0; border-bottom: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.protocol-link-section .grid-peek {
  width: 1000px; height: 700px; top: -30px; left: -60px;
  mask-image: radial-gradient(ellipse 70% 65% at 40% 45%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 40% 45%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
}
.protocol-link-inner { position: relative; z-index: 1; text-align: center; }
.protocol-link-inner h2 { font-family: 'Outfit', sans-serif; font-weight: 200; font-size: 36px; line-height: 1.3; margin-bottom: 16px; }
.protocol-link-inner h2 strong { font-weight: 600; }
.protocol-link-inner > p { color: var(--gray-mid); font-size: 16px; margin-bottom: 48px; max-width: 480px; margin-left: auto; margin-right: auto; }

.protocol-map { display: flex; gap: 0; position: relative; margin-bottom: 40px; }
.protocol-map::before { content: ''; position: absolute; top: 32px; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg, var(--teal) 0%, rgba(2,203,209,0.5) 25%, rgba(60,207,90,0.5) 50%, rgba(121,211,18,0.5) 75%, var(--lime) 100%); z-index: 0; }
.pm-step { flex: 1; text-align: center; position: relative; z-index: 1; padding: 0 8px; }
.pm-node { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(2,203,209,0.2); background: rgba(10,10,10,0.9); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; transition: all 0.4s; cursor: default; }
.pm-step:hover .pm-node { border-color: var(--teal); box-shadow: 0 0 30px rgba(2,203,209,0.15); transform: translateY(-3px); }
.pm-node-num { font-family: 'Outfit', sans-serif; font-weight: 200; font-size: 22px; background: linear-gradient(135deg, var(--teal), var(--lime)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pm-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.pm-services { font-size: 11px; color: var(--gray-dim); line-height: 1.5; letter-spacing: 0.5px; }
.protocol-link-cta { margin-top: 8px; }
.protocol-link-cta a { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s; }
.protocol-link-cta a:hover { gap: 12px; }

/* CTA (page-specific override) */
.cta-section .grid-peek {
  width: 1200px; height: 900px; bottom: 10px; left: -40px;
  mask-image: radial-gradient(ellipse 75% 60% at 35% 55%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 35% 55%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-services-inner { grid-template-columns: 1fr; padding: 140px 24px 80px; }
  .hero-services h1 { font-size: 36px; }
  .hero-viz-services { min-height: 300px; }
  .wave-wrap { width: 100%; height: 340px; }
  .wave-cursor { display: none; }
  .approach-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-panel { grid-template-columns: 1fr; gap: 20px; padding: 36px 28px; }
  .sp-cta { justify-self: start; }
  .coming-soon-grid { grid-template-columns: 1fr; }
  .protocol-map { flex-direction: column; gap: 24px; }
  .protocol-map::before { display: none; }
}
