/* ============================================================
   NexusSEO Redesign — Modern Dark Cinema + Glassmorphism
   Premium SEO Agency · South Africa
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  --bg-deep: #020203;
  --bg-base: #050506;
  --bg-elevated: #0a0a0c;
  --bg-card: rgba(255,255,255,0.03);
  --surface: rgba(255,255,255,0.05);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.07);
  --fg: #EDEDEF;
  --fg-muted: #8A8F98;
  --fg-dim: #7c818d;
  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-glow: rgba(217,119,6,0.15);
  --teal: #0f766e;
  --teal-light: #14b8a6;
  --teal-glow: rgba(20,184,166,0.12);
  --indigo: #5E6AD2;
  --indigo-glow: rgba(94,106,210,0.12);
  --green: #34d399;
  --green-glow: rgba(52,211,153,0.1);
  --red: #ef4444;
  --border: rgba(255,255,255,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; scroll-behavior:smooth; }
body.nx-redesign {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}
body.nx-redesign img { max-width:100%; height:auto; }
body.nx-redesign a { color:var(--accent-light); text-decoration:none; transition: color 0.2s var(--ease-out); }
body.nx-redesign a:hover { color:var(--accent); }

/* --- UTILITY --- */
.nx-container { max-width:74rem; margin:0 auto; padding:0 1.5rem; }
.nx-section { padding:6rem 0; position:relative; }
.nx-section-alt { background:var(--bg-base); }
.nx-text-center { text-align:center; }
.nx-grid { display:grid; gap:1.5rem; }
.nx-flex { display:flex; }
.nx-flex-center { display:flex; align-items:center; justify-content:center; }
.nx-gap-1 { gap:0.5rem; }
.nx-gap-2 { gap:1rem; }
.nx-gap-3 { gap:1.5rem; }
.nx-gap-4 { gap:2rem; }
.nx-mt-1 { margin-top:0.5rem; }
.nx-mt-2 { margin-top:1rem; }
.nx-mt-3 { margin-top:1.5rem; }
.nx-mt-4 { margin-top:2rem; }
.nx-mb-3 { margin-bottom:1.5rem; }

/* --- TYPOGRAPHY --- */
.nx-label {
  display:inline-block;
  font-size:0.7rem;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--accent-light);
  margin-bottom:0.75rem;
}
.nx-h1 {
  font-size:clamp(2.4rem,5.5vw,4rem);
  font-weight:700;
  line-height:1.1;
  letter-spacing:-0.03em;
  color:var(--fg);
}
.nx-h2 {
  font-size:clamp(1.8rem,3.5vw,2.8rem);
  font-weight:700;
  line-height:1.15;
  letter-spacing:-0.025em;
  color:var(--fg);
}
.nx-h3 {
  font-size:clamp(1.1rem,2vw,1.35rem);
  font-weight:600;
  line-height:1.3;
  color:var(--fg);
}
.nx-body { color:var(--fg-muted); line-height:1.75; font-size:1rem; }
.nx-body-lg { color:var(--fg-muted); line-height:1.7; font-size:1.125rem; max-width:640px; }
.nx-accent { color:var(--accent-light); }
.nx-teal { color:var(--teal-light); }
.nx-gradient-text {
  background:linear-gradient(135deg, var(--fg) 0%, var(--fg-muted) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* --- BUTTONS --- */
.nx-btn {
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  padding:0.875rem 1.75rem;
  border-radius:var(--radius-sm);
  font-weight:600;
  font-size:0.9375rem;
  border:none;
  cursor:pointer;
  transition: all 0.3s var(--ease-out);
  white-space:nowrap;
  text-decoration:none;
  position:relative;
  overflow:hidden;
}
body.nx-redesign a.nx-btn-primary {
  background:#b45309;
  color:#fff;
  box-shadow:0 0 20px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.3);
}
body.nx-redesign a.nx-btn-primary:hover {
  background:#c2620a;
  box-shadow:0 0 30px var(--accent-glow), 0 6px 20px rgba(0,0,0,0.4);
  transform:translateY(-2px);
  color:#fff;
}
.nx-btn-ghost {
  background:var(--glass);
  color:var(--fg);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(8px);
}
.nx-btn-ghost:hover {
  background:var(--glass-hover);
  border-color:rgba(255,255,255,0.15);
  color:var(--fg);
}
.nx-btn-teal {
  background:var(--teal);
  color:#fff;
  box-shadow:0 0 20px var(--teal-glow);
}
.nx-btn-teal:hover {
  background:var(--teal-light);
  color:#fff;
  transform:translateY(-2px);
}
.nx-btn-lg { padding:1rem 2rem; font-size:1rem; }

/* --- GLASS CARDS --- */
.nx-glass {
  background:var(--glass);
  border:1px solid var(--glass-border);
  border-radius:var(--radius);
  backdrop-filter:blur(12px);
  transition:all 0.4s var(--ease-out);
}
.nx-glass:hover {
  background:var(--glass-hover);
  border-color:rgba(255,255,255,0.12);
  transform:translateY(-4px);
  box-shadow:0 20px 40px rgba(0,0,0,0.3);
}

/* --- ANIMATED BACKGROUND MESH --- */
.nx-mesh-bg {
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}
.nx-mesh-blob {
  position:absolute;
  border-radius:50%;
  filter:blur(80px);
  opacity:0.07;
  animation:meshFloat 20s ease-in-out infinite;
}
.nx-mesh-blob:nth-child(1) {
  width:600px; height:600px;
  background:var(--teal-light);
  top:-10%; left:-5%;
  animation-delay:0s;
}
.nx-mesh-blob:nth-child(2) {
  width:500px; height:500px;
  background:var(--accent);
  top:30%; right:-10%;
  animation-delay:-7s;
  animation-duration:25s;
}
.nx-mesh-blob:nth-child(3) {
  width:400px; height:400px;
  background:var(--indigo);
  bottom:-5%; left:30%;
  animation-delay:-14s;
  animation-duration:22s;
}
@keyframes meshFloat {
  0%,100% { transform:translate(0,0) scale(1); }
  25% { transform:translate(30px,-20px) scale(1.05); }
  50% { transform:translate(-20px,30px) scale(0.95); }
  75% { transform:translate(20px,20px) scale(1.02); }
}

/* --- GRID PATTERN OVERLAY --- */
.nx-grid-pattern {
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:0.03;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size:60px 60px;
}

/* === HEADER OVERRIDE FOR DARK THEME === */
body.nx-redesign #site-header {
  background:rgba(5,5,6,0.85);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--glass-border);
  box-shadow:none;
}
body.nx-redesign #site-header .logo { color:var(--fg); }
body.nx-redesign #site-header .logo span { color:var(--accent); }
body.nx-redesign #site-header .nav-links > li > a { color:var(--fg-muted) !important; }
body.nx-redesign #site-header .nav-links > li > a:hover { color:var(--fg) !important; }
body.nx-redesign #site-header .header-cta {
  background:#b45309;
  color:#fff;
  border:none;
  box-shadow:0 0 12px var(--accent-glow);
}
body.nx-redesign .mobile-menu-btn span { background:var(--fg); }

/* === HERO === */
.nx-hero {
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:6rem 0 4rem;
  overflow:hidden;
}
.nx-hero-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:3rem;
  align-items:center;
  position:relative;
  z-index:1;
}
.nx-hero-content { max-width:600px; }
.nx-hero-content .nx-h1 { margin-bottom:1.5rem; }
.nx-hero-content .nx-body-lg { margin-bottom:2rem; }
.nx-hero-actions { display:flex; flex-wrap:wrap; gap:1rem; margin-bottom:3rem; }

/* Hero Stats */
.nx-hero-stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.5rem;
}
.nx-stat {
  text-align:left;
  padding-left:1rem;
  border-left:2px solid var(--glass-border);
}
.nx-stat-num {
  font-size:2rem;
  font-weight:700;
  color:var(--fg);
  line-height:1.1;
}
.nx-stat-num span { color:var(--accent); }
.nx-stat-label {
  font-size:0.8rem;
  color:var(--fg-muted);
  margin-top:0.25rem;
}

/* Hero Dashboard Visual */
.nx-hero-dashboard {
  background:var(--glass);
  border:1px solid var(--glass-border);
  border-radius:var(--radius);
  padding:1.5rem;
  backdrop-filter:blur(16px);
  position:relative;
  overflow:hidden;
}
.nx-dash-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:1.25rem;
  padding-bottom:1rem;
  border-bottom:1px solid var(--border);
}
.nx-dash-title {
  font-size:0.8rem;
  font-weight:600;
  color:var(--fg-muted);
  text-transform:uppercase;
  letter-spacing:0.1em;
}
.nx-dash-live {
  display:flex;
  align-items:center;
  gap:0.4rem;
  font-size:0.75rem;
  color:var(--green);
  font-weight:500;
}
.nx-dash-live::before {
  content:'';
  width:6px; height:6px;
  background:var(--green);
  border-radius:50%;
  animation:livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(52,211,153,0.4); }
  50% { opacity:0.6; box-shadow:0 0 0 4px rgba(52,211,153,0); }
}

/* Ranking rows */
.nx-rank-row {
  display:grid;
  grid-template-columns:40px 1fr auto;
  align-items:center;
  gap:0.75rem;
  padding:0.65rem 0;
  border-bottom:1px solid var(--border);
  opacity:0;
  transform:translateX(-10px);
  animation:rankSlideIn 0.5s var(--ease-out) forwards;
}
.nx-rank-row:last-child { border-bottom:none; }
.nx-rank-row:nth-child(1) { animation-delay:0.2s; }
.nx-rank-row:nth-child(2) { animation-delay:0.35s; }
.nx-rank-row:nth-child(3) { animation-delay:0.5s; }
.nx-rank-row:nth-child(4) { animation-delay:0.65s; }
.nx-rank-row:nth-child(5) { animation-delay:0.8s; }
@keyframes rankSlideIn {
  to { opacity:1; transform:translateX(0); }
}
.nx-rank-pos {
  width:36px; height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  font-size:0.85rem;
  font-weight:700;
}
.nx-rank-pos.gold { background:rgba(217,119,6,0.15); color:var(--accent-light); }
.nx-rank-pos.teal { background:rgba(20,184,166,0.12); color:var(--teal-light); }
.nx-rank-kw {
  font-size:0.9rem;
  color:var(--fg);
  font-weight:500;
}
.nx-rank-change {
  font-size:0.8rem;
  font-weight:600;
  color:var(--green);
}

/* Traffic chart */
.nx-mini-chart {
  margin-top:1.25rem;
  padding-top:1rem;
  border-top:1px solid var(--border);
}
.nx-mini-chart-label {
  font-size:0.75rem;
  color:var(--fg-muted);
  margin-bottom:0.5rem;
}
.nx-chart-bars {
  display:flex;
  align-items:flex-end;
  gap:3px;
  height:60px;
}
.nx-chart-bar {
  flex:1;
  border-radius:2px 2px 0 0;
  min-width:4px;
  animation:barGrow 1s var(--ease-out) forwards;
  transform-origin:bottom;
  transform:scaleY(0);
}
@keyframes barGrow {
  to { transform:scaleY(1); }
}

/* === TRUST STRIP === */
.nx-trust-strip {
  padding:1.25rem 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:var(--bg-elevated);
  overflow:hidden;
}
.nx-trust-scroll {
  display:flex;
  gap:3rem;
  animation:trustScroll 30s linear infinite;
  white-space:nowrap;
}
.nx-trust-item {
  display:flex;
  align-items:center;
  gap:0.5rem;
  font-size:0.85rem;
  color:var(--fg-muted);
  flex-shrink:0;
}
.nx-trust-item .highlight {
  color:var(--fg);
  font-weight:700;
}
.nx-trust-dot {
  width:4px; height:4px;
  border-radius:50%;
  background:var(--fg-dim);
  flex-shrink:0;
}
@keyframes trustScroll {
  0% { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}

/* === SECTION HEADERS === */
.nx-section-header {
  text-align:center;
  max-width:680px;
  margin:0 auto 3.5rem;
}
.nx-divider {
  width:48px;
  height:3px;
  background:linear-gradient(90deg, var(--accent), var(--teal-light));
  border-radius:2px;
  margin:1rem auto;
}

/* === SERVICES GRID === */
.nx-services-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.25rem;
}
.nx-service-card {
  padding:1.75rem;
  position:relative;
  overflow:hidden;
}
.nx-service-card::before {
  content:'';
  position:absolute;
  top:0; left:0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg, var(--accent), transparent);
  opacity:0;
  transition:opacity 0.4s;
}
.nx-service-card:hover::before { opacity:1; }
.nx-service-icon {
  width:44px; height:44px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.25rem;
  margin-bottom:1rem;
}
.nx-service-icon.amber { background:var(--accent-glow); }
.nx-service-icon.teal { background:var(--teal-glow); }
.nx-service-icon.indigo { background:var(--indigo-glow); }
.nx-service-card .nx-h3 { margin-bottom:0.75rem; }
.nx-service-card .nx-body { font-size:0.9rem; }
.nx-service-link {
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  margin-top:1rem;
  font-size:0.85rem;
  font-weight:600;
  color:var(--accent-light);
  transition:gap 0.3s var(--ease-out);
}
.nx-service-link:hover { gap:0.6rem; }

/* === RESULTS / METRICS === */
.nx-results-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
}
.nx-result-card {
  padding:2rem;
  text-align:center;
}
.nx-result-num {
  font-size:3rem;
  font-weight:700;
  line-height:1;
  margin-bottom:0.5rem;
}
.nx-result-label {
  font-size:0.85rem;
  color:var(--fg-muted);
}
.nx-result-bar {
  height:4px;
  border-radius:2px;
  background:var(--surface);
  margin-top:1rem;
  overflow:hidden;
}
.nx-result-bar-fill {
  height:100%;
  border-radius:2px;
  transform-origin:left;
  transform:scaleX(0);
  transition:transform 1.5s var(--ease-out);
}
.nx-result-card.visible .nx-result-bar-fill { transform:scaleX(1); }

/* === PROCESS TIMELINE === */
.nx-timeline {
  position:relative;
  max-width:680px;
  margin:0 auto;
}
.nx-timeline::before {
  content:'';
  position:absolute;
  left:24px;
  top:0; bottom:0;
  width:2px;
  background:linear-gradient(to bottom, var(--accent), var(--teal-light), transparent);
}
.nx-timeline-step {
  display:flex;
  gap:2rem;
  padding-bottom:2.5rem;
  position:relative;
}
.nx-timeline-dot {
  width:50px; height:50px;
  min-width:50px;
  border-radius:50%;
  background:var(--glass);
  border:2px solid var(--glass-border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:0.9rem;
  color:var(--accent-light);
  z-index:1;
  transition:all 0.4s var(--ease-out);
}
.nx-timeline-step:hover .nx-timeline-dot {
  background:var(--accent-glow);
  border-color:var(--accent);
  box-shadow:0 0 20px var(--accent-glow);
}
.nx-timeline-content .nx-h3 { margin-bottom:0.5rem; }
.nx-timeline-content .nx-body { font-size:0.9rem; }

/* === CHART SECTION === */
.nx-chart-section {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  align-items:start;
}
.nx-chart-card {
  padding:2rem;
}

/* Animated line chart */
.nx-line-chart {
  position:relative;
  width:100%;
  height:200px;
}
.nx-line-chart svg {
  width:100%;
  height:100%;
}
.nx-chart-line {
  fill:none;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.nx-chart-area {
  opacity:0.1;
}
.nx-chart-line.animated {
  stroke-dasharray:1000;
  stroke-dashoffset:1000;
  animation:drawLine 2s var(--ease-out) forwards;
}
@keyframes drawLine {
  to { stroke-dashoffset:0; }
}

/* Gauge chart */
.nx-gauge {
  position:relative;
  width:160px;
  height:80px;
  margin:0 auto;
}
.nx-gauge svg { width:100%; height:100%; }
.nx-gauge-track {
  fill:none;
  stroke:var(--surface);
  stroke-width:10;
  stroke-linecap:round;
}
.nx-gauge-fill {
  fill:none;
  stroke-width:10;
  stroke-linecap:round;
  stroke-dasharray:251;
  stroke-dashoffset:251;
  transition:stroke-dashoffset 2s var(--ease-out);
}
.nx-gauge-value {
  position:absolute;
  bottom:4px;
  left:50%;
  transform:translateX(-50%);
  font-size:1.5rem;
  font-weight:700;
  color:var(--fg);
}

/* Donut chart */
.nx-donut {
  position:relative;
  width:140px;
  height:140px;
  margin:0 auto;
}
.nx-donut svg { width:100%; height:100%; transform:rotate(-90deg); }
.nx-donut-track {
  fill:none;
  stroke:var(--surface);
  stroke-width:8;
}
.nx-donut-fill {
  fill:none;
  stroke-width:8;
  stroke-linecap:round;
  stroke-dasharray:377;
  stroke-dashoffset:377;
  transition:stroke-dashoffset 2s var(--ease-out);
}
.nx-donut-center {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.nx-donut-num { font-size:1.75rem; font-weight:700; color:var(--fg); }
.nx-donut-label { font-size:0.7rem; color:var(--fg-muted); }

/* === TESTIMONIALS === */
.nx-testimonials-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.5rem;
}
.nx-testimonial {
  padding:2rem;
}
.nx-testimonial-stars {
  color:var(--accent);
  font-size:0.9rem;
  letter-spacing:2px;
  margin-bottom:1rem;
}
.nx-testimonial-text {
  color:var(--fg-muted);
  font-size:0.95rem;
  line-height:1.8;
  font-style:italic;
  margin-bottom:1.25rem;
}
.nx-testimonial-author {
  font-weight:600;
  font-size:0.9rem;
  color:var(--fg);
}
.nx-testimonial-role {
  font-size:0.8rem;
  color:var(--fg-dim);
}

/* === FAQ === */
.nx-faq-list {
  max-width:720px;
  margin:0 auto;
  list-style:none;
}
.nx-faq-item {
  border-bottom:1px solid var(--border);
}
.nx-faq-btn {
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  padding:1.25rem 0;
  background:none;
  border:none;
  cursor:pointer;
  color:var(--fg);
  font-size:1rem;
  font-weight:600;
  font-family:var(--font-sans);
  text-align:left;
  transition:color 0.2s;
}
.nx-faq-btn:hover { color:var(--accent-light); }
.nx-faq-icon {
  width:24px; height:24px;
  min-width:24px;
  border-radius:50%;
  background:var(--surface);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  color:var(--fg-muted);
  transition:transform 0.3s var(--ease-out);
}
.nx-faq-item.open .nx-faq-icon { transform:rotate(45deg); }
.nx-faq-answer {
  max-height:0;
  overflow:hidden;
  transition:max-height 0.4s var(--ease-out), padding 0.3s;
}
.nx-faq-item.open .nx-faq-answer {
  max-height:400px;
  padding-bottom:1.25rem;
}
.nx-faq-answer p {
  color:var(--fg-muted);
  font-size:0.95rem;
  line-height:1.8;
}

/* === CTA SECTION === */
.nx-cta-section {
  position:relative;
  padding:6rem 0;
  text-align:center;
  overflow:hidden;
}
.nx-cta-section::before {
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse 60% 50% at 50% 50%, var(--accent-glow), transparent 70%);
  pointer-events:none;
}
.nx-cta-box {
  position:relative;
  z-index:1;
  max-width:560px;
  margin:0 auto;
}

/* === FOOTER === */
.nx-footer {
  padding:4rem 0 2rem;
  border-top:1px solid var(--border);
  background:var(--bg-deep);
}
.nx-footer-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:2rem;
  margin-bottom:3rem;
}
.nx-footer-brand .logo { font-size:1.5rem; font-weight:800; color:var(--fg); margin-bottom:1rem; display:block; }
.nx-footer-brand .logo span { color:var(--accent); }
.nx-footer-brand p { color:var(--fg-muted); font-size:0.9rem; line-height:1.7; max-width:320px; }
.nx-footer-col .nx-footer-h {
  font-size:0.75rem;
  font-weight:600;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--fg-muted);
  margin-bottom:1rem;
}
.nx-footer-col a {
  display:block;
  color:var(--fg-dim);
  font-size:0.9rem;
  padding:0.3rem 0;
  transition:color 0.2s;
}
.nx-footer-col a:hover { color:var(--fg); }
.nx-footer-bottom {
  padding-top:2rem;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:0.8rem;
  color:var(--fg-dim);
}

/* === SCROLL ANIMATIONS === */
.nx-reveal {
  opacity:0;
  transform:translateY(24px);
  transition:opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.nx-reveal.visible {
  opacity:1;
  transform:translateY(0);
}
.nx-reveal-delay-1 { transition-delay:0.1s; }
.nx-reveal-delay-2 { transition-delay:0.2s; }
.nx-reveal-delay-3 { transition-delay:0.3s; }
.nx-reveal-delay-4 { transition-delay:0.4s; }

/* Stagger children */
.nx-stagger > * {
  opacity:0;
  transform:translateY(16px);
  transition:opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.nx-stagger.visible > *:nth-child(1) { transition-delay:0.05s; }
.nx-stagger.visible > *:nth-child(2) { transition-delay:0.1s; }
.nx-stagger.visible > *:nth-child(3) { transition-delay:0.15s; }
.nx-stagger.visible > *:nth-child(4) { transition-delay:0.2s; }
.nx-stagger.visible > *:nth-child(5) { transition-delay:0.25s; }
.nx-stagger.visible > *:nth-child(6) { transition-delay:0.3s; }
.nx-stagger.visible > * {
  opacity:1;
  transform:translateY(0);
}

/* Counter animation styling */
.nx-counter { display:inline-block; }

/* === RESPONSIVE === */
@media (min-width:900px) {
  .nx-hero-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:899px) {
  .nx-hero-stats { grid-template-columns:repeat(2,1fr); }
  .nx-services-grid { grid-template-columns:1fr; }
  .nx-results-grid { grid-template-columns:1fr; }
  .nx-chart-section { grid-template-columns:1fr; }
  .nx-testimonials-grid { grid-template-columns:1fr; }
  .nx-footer-grid { grid-template-columns:1fr 1fr; }
  .nx-timeline::before { left:14px; }
  .nx-timeline-dot { width:30px; height:30px; min-width:30px; font-size:0.75rem; }
  .nx-timeline-step { gap:1.25rem; }
}
@media (max-width:599px) {
  .nx-hero-stats { grid-template-columns:1fr 1fr; gap:1rem; }
  .nx-footer-grid { grid-template-columns:1fr; }
  .nx-footer-bottom { flex-direction:column; gap:0.5rem; text-align:center; }
  .nx-section { padding:4rem 0; }
}

/* === PARTICLE DOTS (decorative) === */
.nx-particles {
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.nx-particle {
  position:absolute;
  width:4px;
  height:4px;
  background:rgba(255,255,255,0.2);
  border-radius:50%;
  animation:particleFloat 15s linear infinite;
}
@keyframes particleFloat {
  0% { transform:translateY(0) translateX(0); opacity:0; }
  10% { opacity:1; }
  90% { opacity:1; }
  100% { transform:translateY(-100vh) translateX(50px); opacity:0; }
}

/* === COMPARISON TABLE === */
.nx-compare-table {
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--glass-border);
}
.nx-compare-table th {
  background:var(--bg-elevated);
  padding:1rem 1.25rem;
  font-size:0.8rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--fg-muted);
  text-align:left;
  border-bottom:1px solid var(--border);
}
.nx-compare-table td {
  padding:0.875rem 1.25rem;
  font-size:0.9rem;
  color:var(--fg-muted);
  border-bottom:1px solid var(--border);
}
.nx-compare-table tr:last-child td { border-bottom:none; }
.nx-compare-table .check { color:var(--green); font-weight:700; }
.nx-compare-table .cross { color:var(--red); font-weight:700; }
.nx-compare-table .nx-col { background:rgba(217,119,6,0.03); color:var(--fg); }

/* Location pills */
.nx-location-pills {
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  justify-content:center;
}
.nx-pill {
  padding:0.5rem 1rem;
  border-radius:2rem;
  font-size:0.85rem;
  font-weight:500;
  color:var(--fg-muted);
  background:var(--glass);
  border:1px solid var(--glass-border);
  transition:all 0.3s var(--ease-out);
  text-decoration:none;
}
.nx-pill:hover {
  color:var(--fg);
  background:var(--glass-hover);
  border-color:rgba(255,255,255,0.15);
  transform:translateY(-2px);
}
