/* ─── UNIFIED DESIGN SYSTEM ─── */

.page-section {
  position: relative;
  padding: 100px 5%;
  overflow: hidden;
  background: var(--navy);
}

.page-section--alt {
  background: var(--navy-mid);
}

.section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 75% 15%, rgba(59,139,255,.07), transparent 55%),
    radial-gradient(ellipse 40% 35% at 15% 85%, rgba(0,212,255,.04), transparent 50%);
}

.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,139,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,139,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 95%);
}

.page-section .section-inner,
.page-section .web-inner,
.page-section .wa-inner,
.page-section .insta-inner,
.page-section .crm-inner,
.page-section .about-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

.page-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,139,255,.18), transparent);
  z-index: 1;
}

.page-section:last-of-type::after {
  display: none;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .sec-sub {
  margin: 0 auto;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.feature-row.reverse .feature-visual { order: 2; }
.feature-row.reverse .feature-copy { order: 1; }

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(59,139,255,.14), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Unified glass surfaces */
.glass-card,
.gmb-card,
.crm-board,
.stat-box,
.testi,
.svc-card,
.video-card,
.browser-mockup,
.web-metric {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s, box-shadow .35s, background .35s;
}

.glass-card:hover,
.gmb-card:hover,
.stat-box:hover,
.testi:hover,
.svc-card:hover,
.video-card:hover,
.web-metric:hover {
  transform: translateY(-5px);
  border-color: var(--glass-hover-border);
  box-shadow: var(--glass-shadow);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.float-badge {
  position: absolute;
  background: var(--float-badge-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  white-space: nowrap;
  z-index: 10;
  animation: fcFloat var(--fd,6s) ease-in-out infinite var(--fdelay,0s);
}

.float-badge-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--electric);
  line-height: 1;
}

.float-badge-label {
  font-size: .62rem;
  color: var(--text-mid);
  margin-top: 3px;
}

/* Unified step timeline (replaces green WA flow) */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  margin-top: 28px;
}

.step-flow::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--electric), rgba(59,139,255,.05));
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  opacity: .55;
  transition: opacity .35s, transform .35s;
}

.step-item.active {
  opacity: 1;
  transform: translateX(4px);
}

.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(59,139,255,.1);
  border: 1.5px solid rgba(59,139,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  z-index: 1;
  transition: background .3s, box-shadow .3s;
}

.step-item.active .step-icon {
  background: linear-gradient(135deg, var(--electric), var(--royal));
  border-color: transparent;
  box-shadow: 0 0 24px rgba(59,139,255,.45);
}

.step-item h4 {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 3px;
}

.step-item p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Services — interactive cards */
#services {
  background: var(--navy-mid);
}

.services-grid {
  margin-top: 48px;
}

.svc-card {
  border-radius: 20px;
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,139,255,.08), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
}

.svc-card::after {
  content: attr(data-num);
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 700;
  color: rgba(59,139,255,.35);
  letter-spacing: .06em;
}

.svc-card:hover::before { opacity: 1; }

.svc-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 9px;
}

.svc-card p {
  font-size: .85rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.svc-icon {
  background: rgba(59,139,255,.12);
}

.svc-card:hover .svc-icon {
  background: linear-gradient(135deg, var(--electric), var(--royal));
}

/* GMB — dark glass card */
#gmb .gmb-card {
  max-width: 400px;
  width: 100%;
  border-radius: 22px;
  padding: 26px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

#gmb .gmb-name,
#gmb .gmb-sn { color: var(--heading); }

#gmb .gmb-stat {
  background: var(--surface-inset);
  border-color: var(--border);
}

#gmb .rev-card {
  background: var(--surface-inset);
  border-color: var(--border);
}

/* Results — glass stats & testimonials */
#results { background: var(--navy); }

.stat-box {
  border-radius: 20px;
  padding: 30px 22px;
  text-align: center;
}

.stat-box-n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
}

.stat-box-accent { color: var(--electric); }

.stat-box-l {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 7px;
  line-height: 1.4;
}

.testi {
  border-radius: 20px;
  padding: 28px;
}

.testi-text {
  font-size: .86rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-style: italic;
}

.testi-name { color: var(--heading); font-weight: 600; font-size: .85rem; }
.testi-role { font-size: .72rem; color: var(--text-dim); }
.testi-author { border-top-color: var(--border); }

/* Video section — dark unified */
#video {
  background: var(--navy-mid);
}

#video .video-card {
  border-radius: 20px;
  overflow: hidden;
}

#video .video-title { color: var(--heading); }
#video .video-tag { color: var(--electric); }

/* WhatsApp — brand chrome, green only inside chat */
#wa-auto .wa-flow::before {
  background: linear-gradient(to bottom, var(--electric), rgba(59,139,255,.05));
}

#wa-auto .wa-step-icon {
  background: rgba(59,139,255,.1);
  border-color: rgba(59,139,255,.35);
}

.wa-phone {
  border-color: rgba(59,139,255,.2);
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 60px rgba(59,139,255,.08);
}

.wa-float-badge,
#wa-auto [style*="background:#25D366"] {
  background: rgba(6,14,31,.92) !important;
  color: var(--electric) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.3) !important;
}

/* Instagram — unified dark section */
#insta-new {
  background: var(--navy);
}

#insta-new .ig-dm-panel {
  background: rgba(6,14,31,.95);
  border-color: var(--border);
}

#insta-new .ig-phone {
  border-color: rgba(59,139,255,.2);
  box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 50px rgba(59,139,255,.06);
}

#insta-new .ig-ph-head {
  background: linear-gradient(90deg, var(--royal), var(--electric));
}

/* About — dark */
#about-section {
  background: var(--navy-mid);
}

#about-section .orb-node {
  background: var(--float-badge-bg);
  border-color: var(--border);
  color: var(--heading);
}

/* Website metric float — glass */
.metric-float {
  position: absolute;
  top: -14px;
  right: -16px;
}

/* CTA enhanced */
#cta {
  position: relative;
  overflow: hidden;
}

#cta .section-bg {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(59,139,255,.12), transparent),
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(0,212,255,.06), transparent);
}

#cta .cta-inner { position: relative; z-index: 2; }

/* Nav active link */
.nav-links a.active {
  color: var(--nav-link-active);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--electric);
  border-radius: 2px;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--electric), var(--cyan));
  z-index: 10001;
  transition: width .08s linear;
}

/* Play button pulse on video cards */
.video-card:hover .play-btn {
  box-shadow: 0 0 30px rgba(59,139,255,.4);
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse .feature-visual,
  .feature-row.reverse .feature-copy {
    grid-template-columns: 1fr;
    order: unset;
  }

  .feature-row.reverse .feature-visual { order: -1; }
}
