/* =============================================
   XDIGITAL — DESIGN TOKENS & BASE
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

@property --electric-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg-primary:      #0A0E14;
  --bg-secondary:    #0D1520;
  --bg-card:         #111827;
  --bg-card-hover:   #162030;
  --accent-cyan:     #00E5C3;
  --accent-cyan-dim: rgba(0,229,195,0.12);
  --accent-cyan-glow:rgba(0,229,195,0.35);
  --accent-purple:   #7B5EA7;
  --accent-purple-dim:rgba(123,94,167,0.15);
  --accent-amber:    #F5A623;
  --text-primary:    #FFFFFF;
  --text-secondary:  #8B9BB4;
  --text-muted:      #3D5068;
  --border-subtle:   #1A2535;
  --font-main:       'Inter', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;
  --section-py:      96px;
  --container-max:   1280px;
  --container-px:    40px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-px); }
.section { padding: var(--section-py) 0; }

/* Section label */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 14px;
}
.section-label::before {
  content: ''; display: block; width: 22px; height: 2px;
  background: var(--accent-cyan); flex-shrink: 0;
}
.section-title {
  font-size: clamp(26px,3.5vw,46px); font-weight: 800; line-height: 1.12;
  letter-spacing: -.02em; margin-bottom: 14px;
}
.section-title span { color: var(--accent-cyan); }
.section-sub { font-size: 16px; color: var(--text-secondary); max-width: 560px; line-height: 1.7; }

/* Electric border */
@keyframes electric-spin { to { --electric-angle: 360deg; } }
.electric { position: relative; border-radius: 12px; }
.electric::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--electric-angle), transparent 0% 65%, var(--accent-cyan) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: electric-spin 4s linear infinite; z-index: 0; pointer-events: none;
}

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 28px; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover {
  border-color: rgba(0,229,195,.25); transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(0,229,195,.05);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; font-size: 14px; font-weight: 600;
  border-radius: 8px; cursor: pointer; transition: all .25s; border: none;
}
.btn-primary { background: var(--accent-cyan); color: var(--bg-primary); }
.btn-primary:hover { background: #05f5d5; box-shadow: 0 0 28px var(--accent-cyan-glow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border-subtle); }
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.btn-outline { background: transparent; color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.btn-outline:hover { background: var(--accent-cyan-dim); box-shadow: 0 0 20px rgba(0,229,195,.2); }

/* Tag */
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-cyan);
  background: var(--accent-cyan-dim); border: 1px solid rgba(0,229,195,.2);
  padding: 4px 10px; border-radius: 4px;
}

/* Fade-up animation */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px; background: rgba(10,14,20,.92);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-subtle);
  transition: border-color .3s, background .3s;
}
.navbar.scrolled { border-bottom-color: rgba(0,229,195,.15); background: rgba(10,14,20,.98); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.navbar-logo { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.navbar-logo .x { color: #fff; }
.navbar-logo .digital { color: var(--accent-cyan); }
.navbar-links { display: flex; align-items: center; gap: 34px; }
.navbar-links a {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-secondary); transition: color .2s;
}
.navbar-links a:hover { color: var(--accent-cyan); }
.navbar-right { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); transition: all .3s; border-radius: 2px; }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(10,14,20,.98); flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 22px; font-weight: 700; color: var(--text-primary); transition: color .2s; }
.mobile-nav a:hover { color: var(--accent-cyan); }
.mobile-nav-close { position: absolute; top: 20px; right: 24px; font-size: 28px; cursor: pointer; color: var(--text-secondary); background: none; border: none; line-height: 1; }

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; overflow: hidden; padding-top: 64px;
}
#tsparticles { position: absolute; inset: 0; z-index: 0; }
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; padding: 80px 0 140px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent-cyan);
  background: var(--accent-cyan-dim); border: 1px solid rgba(0,229,195,.2);
  padding: 6px 14px; border-radius: 4px; margin-bottom: 22px;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px; background: var(--accent-cyan);
  border-radius: 50%; animation: pulse-anim 2s infinite;
}
@keyframes pulse-anim {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.65); }
}
.hero-title {
  font-size: clamp(34px,4.5vw,62px); font-weight: 900;
  line-height: 1.07; letter-spacing: -.025em; margin-bottom: 22px;
}
.hero-title .highlight { color: var(--accent-cyan); }
.hero-sub { font-size: 17px; color: var(--text-secondary); line-height: 1.72; max-width: 460px; margin-bottom: 34px; }
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-x-wrap {
  width: 380px; height: 380px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-x-wrap .x-bg {
  font-size: 260px; font-weight: 900; color: rgba(255,255,255,.035);
  line-height: 1; position: relative; z-index: 2; letter-spacing: -.05em;
  text-shadow: 0 0 80px rgba(0,229,195,.25), 0 0 180px rgba(0,229,195,.1);
  animation: glow-breathe 4s ease-in-out infinite;
  user-select: none;
}
@keyframes glow-breathe {
  0%,100% { text-shadow: 0 0 80px rgba(0,229,195,.25), 0 0 180px rgba(0,229,195,.1); }
  50%      { text-shadow: 0 0 120px rgba(0,229,195,.55), 0 0 260px rgba(0,229,195,.2); }
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,229,195,.12);
  animation: ring-pulse 4s ease-in-out infinite;
}
.ring-1 { width: 180px; height: 180px; animation-delay: 0s; }
.ring-2 { width: 280px; height: 280px; animation-delay: .6s; }
.ring-3 { width: 370px; height: 370px; animation-delay: 1.2s; }
@keyframes ring-pulse {
  0%,100% { opacity: .12; transform: scale(1); }
  50%      { opacity: .3;  transform: scale(1.04); }
}

/* Hero stats strip */
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  background: rgba(13,21,32,.95); border-top: 1px solid var(--border-subtle);
}
.hero-stats-inner { display: flex; align-items: stretch; }
.hero-stat {
  flex: 1; padding: 22px 0; text-align: center;
  border-right: 1px solid var(--border-subtle);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num { font-size: 26px; font-weight: 800; color: var(--accent-cyan); line-height: 1; margin-bottom: 4px; }
.hero-stat-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }

/* =============================================
   SERVICES
   ============================================= */
#services { background: var(--bg-primary); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; flex-wrap: wrap; gap: 20px; }
.services-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 26px 22px; cursor: pointer;
  transition: all .3s ease;
}
.service-card:hover {
  border-color: var(--accent-cyan); background: var(--bg-card-hover);
  box-shadow: 0 0 32px rgba(0,229,195,.08); transform: translateY(-6px);
}
.svc-num { font-family: var(--font-mono); font-size: 10px; color: var(--accent-cyan); letter-spacing: .1em; margin-bottom: 14px; }
.svc-icon {
  width: 38px; height: 38px; background: var(--accent-cyan-dim);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
  border: 1px solid rgba(0,229,195,.15);
}
.svc-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.svc-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
/* Service card color variants */
.svc-icon.amber { background: rgba(245,166,35,.1); border-color: rgba(245,166,35,.2); }
.svc-icon.purple { background: rgba(123,94,167,.12); border-color: rgba(123,94,167,.2); }
.svc-num.amber  { color: var(--accent-amber); }
.svc-num.purple { color: var(--accent-purple); }
.service-card:has(.svc-icon.amber):hover  { border-color: var(--accent-amber); box-shadow: 0 0 32px rgba(245,166,35,.08); }
.service-card:has(.svc-icon.purple):hover { border-color: var(--accent-purple); box-shadow: 0 0 32px rgba(123,94,167,.08); }

/* =============================================
   STATS BAR
   ============================================= */
#stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
.stats-grid { display: flex; align-items: stretch; }
.stat-item {
  flex: 1; padding: 38px 20px; text-align: center;
  border-right: 1px solid var(--border-subtle);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 38px; font-weight: 900; color: var(--accent-cyan); line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }

/* =============================================
   CASE STUDIES
   ============================================= */
#results { background: var(--bg-primary); }
.cs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 24px; }
.cs-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; transition: all .3s; }
.cs-card:hover { border-color: rgba(0,229,195,.25); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.cs-top {
  display: flex; align-items: center; gap: 8px; padding: 10px 22px;
  background: rgba(0,229,195,.05); border-bottom: 1px solid var(--border-subtle); height: 42px;
}
.cs-vtag { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-cyan); }
.cs-geo  { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.cs-sep  { width: 1px; height: 12px; background: var(--border-subtle); }
.cs-body { padding: 22px; }
.cs-company { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.cs-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.cs-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 14px; }
.cs-metric-big { font-size: 30px; font-weight: 900; line-height: 1; }
.cs-metric-big.c { color: var(--accent-cyan); }
.cs-metric-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
.cs-metric-sub  { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.cs-aggregate { display: flex; align-items: stretch; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; }
.cs-agg { flex: 1; padding: 18px; text-align: center; border-right: 1px solid var(--border-subtle); }
.cs-agg:last-child { border-right: none; }
.cs-agg-num { font-size: 20px; font-weight: 800; color: var(--accent-cyan); }
.cs-agg-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

/* =============================================
   WHY XDIGITAL
   ============================================= */
#why { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.why-icon { width: 46px; height: 46px; background: var(--accent-cyan-dim); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.why-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.why-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* =============================================
   PRICING
   ============================================= */
#pricing { background: var(--bg-primary); }
.pricing-header { text-align: center; margin-bottom: 52px; }
.pricing-header .section-label { justify-content: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; align-items: stretch; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 26px 22px; position: relative; transition: all .3s; display: flex; flex-direction: column; }
.pricing-card:hover { border-color: rgba(0,229,195,.3); transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--accent-cyan); box-shadow: 0 0 44px rgba(0,229,195,.1); }
.popular-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent-cyan); color: var(--bg-primary);
  font-family: var(--font-mono); font-size: 8px; font-weight: 700;
  letter-spacing: .12em; padding: 3px 12px; border-radius: 20px; white-space: nowrap;
}
.plan-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px; }
.plan-price { font-size: 30px; font-weight: 900; line-height: 1; margin-bottom: 3px; }
.plan-period { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.plan-spend { display: inline-block; font-family: var(--font-mono); font-size: 10px; color: var(--accent-cyan); background: var(--accent-cyan-dim); padding: 3px 8px; border-radius: 4px; margin-bottom: 14px; }
.plan-best { font-size: 11px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.plan-incl-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.plan-features { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pf { display: flex; align-items: flex-start; gap: 7px; font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
.pf::before { content: ''; width: 5px; height: 5px; background: var(--accent-cyan); border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.pricing-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em; color: var(--text-muted); text-align: center; margin-top: 24px; }

/* =============================================
   TECHNOLOGY
   ============================================= */
#technology { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); }
.tech-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-top: 48px; align-items: stretch; }
.tech-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 24px; transition: all .3s; display: flex; flex-direction: column; }
.tech-card:hover { border-color: rgba(0,229,195,.22); box-shadow: 0 0 24px rgba(0,229,195,.06); }
.tech-badge { display: inline-block; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; padding: 3px 10px; border-radius: 4px; margin-bottom: 14px; background: var(--accent-cyan-dim); color: var(--accent-cyan); border: 1px solid rgba(0,229,195,.18); }
.tech-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.tech-items { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tech-item { font-size: 11px; color: var(--text-secondary); padding-left: 14px; position: relative; line-height: 1.5; }
.tech-item::before { content: '→'; position: absolute; left: 0; color: var(--accent-cyan); font-size: 10px; }

/* =============================================
   COMMUNITY SPECIAL OFFER
   ============================================= */
#community { background: var(--bg-primary); }
.community-wrap {
  position: relative; background: var(--bg-card); border-radius: 16px;
  padding: 52px; overflow: hidden;
}
.community-wrap::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--electric-angle), transparent 0% 58%, var(--accent-cyan) 76% 84%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: electric-spin 5s linear infinite; pointer-events: none;
}
.comm-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.comm-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-limited { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; background: rgba(245,166,35,.12); color: var(--accent-amber); border: 1px solid rgba(245,166,35,.25); }
.badge-slots   { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; background: rgba(0,229,195,.1); color: var(--accent-cyan); border: 1px solid rgba(0,229,195,.2); }
.comm-specs { display: flex; gap: 28px; flex-wrap: wrap; }
.comm-spec-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.comm-spec-val { font-size: 13px; font-weight: 600; }
.comm-title { font-size: clamp(26px,2.8vw,42px); font-weight: 800; margin-bottom: 10px; }
.comm-sub { font-size: 14px; color: var(--text-secondary); max-width: 580px; line-height: 1.7; margin-bottom: 36px; }
.comm-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 36px; }
.comm-step { background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 18px; }
.step-n { font-family: var(--font-mono); font-size: 10px; color: var(--accent-cyan); margin-bottom: 6px; }
.step-t { font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.step-d { font-size: 11px; color: var(--text-secondary); line-height: 1.55; }
.comm-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.comm-why { font-size: 12px; color: var(--text-secondary); max-width: 440px; line-height: 1.6; padding: 14px 16px; background: rgba(255,255,255,.02); border: 1px solid var(--border-subtle); border-radius: 8px; }
.comm-why strong { color: var(--text-primary); }

/* =============================================
   TRUSTED CLIENTS
   ============================================= */
#clients { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); }
.clients-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; margin-top: 44px; margin-bottom: 18px; }
.client-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 14px 10px; text-align: center; transition: all .25s; }
.client-card:hover { border-color: rgba(0,229,195,.28); transform: translateY(-3px); }
.client-dot { width: 6px; height: 6px; border-radius: 50%; margin: 0 auto 8px; }
.client-dot.active { background: var(--accent-cyan); box-shadow: 0 0 8px rgba(0,229,195,.5); }
.client-dot.past   { background: var(--text-muted); }
.client-name { font-size: 11px; font-weight: 600; margin-bottom: 3px; line-height: 1.3; }
.client-yrs  { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); }
.client-type { font-size: 9px; color: var(--text-secondary); margin-top: 3px; }
.clients-legend { display: flex; gap: 20px; align-items: center; }
.leg { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-secondary); }
.leg-dot { width: 6px; height: 6px; border-radius: 50%; }

/* =============================================
   TESTIMONIALS
   ============================================= */
#testimonials { background: var(--bg-primary); }
.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 48px; }
.test-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 26px; transition: all .3s; }
.test-card:hover { border-color: rgba(0,229,195,.2); transform: translateY(-4px); }
.test-topic { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 12px; }
.test-quote { font-size: 13px; color: var(--text-secondary); line-height: 1.72; margin-bottom: 22px; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,229,195,.08); border: 1px solid rgba(0,229,195,.28); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--accent-cyan); flex-shrink: 0; }
.test-name { font-size: 13px; font-weight: 600; }
.test-role { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: .04em; margin-top: 2px; }

/* =============================================
   TEAM
   ============================================= */
#team { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); }
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 48px; }
.team-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 26px; transition: all .3s; }
.team-card:hover { border-color: rgba(0,229,195,.22); transform: translateY(-4px); }
.team-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(0,229,195,.08); border: 2px solid var(--accent-cyan); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--accent-cyan); margin-bottom: 14px; }
.team-name { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.team-role { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 14px; }
.team-bio { font-size: 12px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; }
.team-skills { display: flex; flex-direction: column; gap: 4px; }
.team-skill { font-size: 11px; color: var(--text-muted); }

/* =============================================
   INVESTMENT
   ============================================= */
#invest { background: var(--bg-primary); }
.invest-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.invest-areas { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.invest-area { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px; transition: border-color .3s; }
.invest-area:hover { border-color: rgba(0,229,195,.2); }
.ia-badge { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; padding: 3px 7px; border-radius: 4px; flex-shrink: 0; margin-top: 2px; }
.ia-badge.ai   { background: var(--accent-cyan-dim); color: var(--accent-cyan); border: 1px solid rgba(0,229,195,.2); }
.ia-badge.data { background: var(--accent-purple-dim); color: var(--accent-purple); border: 1px solid rgba(123,94,167,.2); }
.ia-badge.tech { background: rgba(0,229,195,.05); color: #4cc8b5; border: 1px solid rgba(76,200,181,.2); }
.ia-badge.know { background: rgba(245,166,35,.1); color: var(--accent-amber); border: 1px solid rgba(245,166,35,.2); }
.ia-badge.mktg { background: rgba(255,255,255,.04); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.ia-title { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.ia-desc  { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }

.invest-right { text-align: center; padding: 48px 32px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; }
.invest-amount { font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -.03em; margin-bottom: 6px; }
.invest-amount-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 28px; }
.invest-return { font-size: 68px; font-weight: 900; color: var(--accent-amber); line-height: 1; text-shadow: 0 0 40px rgba(245,166,35,.3); margin-bottom: 6px; }
.invest-return-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 24px; }
.invest-steps { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.istep { font-size: 11px; color: var(--text-secondary); padding: 7px 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border-subtle); border-radius: 6px; }
.iarrow { color: var(--accent-cyan); font-size: 14px; }

/* =============================================
   CONTACT
   ============================================= */
#contact { border-top: 1px solid var(--border-subtle); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.contact-title { font-size: clamp(32px,3.5vw,54px); font-weight: 900; line-height: 1.08; margin-bottom: 14px; }
.contact-sub { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; max-width: 380px; }
.contact-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.contact-method { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 10px; transition: all .25s; }
.contact-method:hover { border-color: var(--accent-cyan); box-shadow: 0 0 20px rgba(0,229,195,.07); }
.cm-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); min-width: 68px; }
.cm-val { font-size: 13px; font-weight: 500; }
.cm-val a { color: var(--accent-cyan); }
.contact-audit { padding: 18px; background: rgba(0,229,195,.04); border: 1px solid rgba(0,229,195,.14); border-radius: 10px; }
.audit-t { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 10px; }
.audit-items { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.audit-item { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-secondary); }
.audit-item::before { content: '✓'; color: var(--accent-cyan); font-weight: 700; }
.contact-visual { display: flex; align-items: center; justify-content: center; }
.contact-glow { width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,195,.14) 0%, rgba(123,94,167,.08) 55%, transparent 70%); display: flex; align-items: center; justify-content: center; animation: glow-breathe 4s ease-in-out infinite; }
.contact-symbol { font-size: 110px; font-weight: 900; color: rgba(255,255,255,.04); text-shadow: 0 0 60px rgba(0,229,195,.4), 0 0 120px rgba(123,94,167,.2); user-select: none; }

/* =============================================
   FOOTER
   ============================================= */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-logo { font-size: 17px; font-weight: 800; }
.footer-logo .x { color: #fff; }
.footer-logo .digital { color: var(--accent-cyan); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-copy { font-family: var(--font-mono); font-size: 9px; letter-spacing: .07em; color: var(--text-muted); text-align: right; line-height: 1.6; }

/* =============================================
   RICH MULTI-COLOR VISUAL SYSTEM
   ============================================= */

/* Extra tokens */
:root {
  --accent-amber-dim:   rgba(245,166,35,.12);
  --accent-amber-glow:  rgba(245,166,35,.35);
  --accent-purple-glow: rgba(123,94,167,.35);
}

/* ── Hero rings — multi-color ── */
.ring-1 { border-color: rgba(0,229,195,.18); }
.ring-2 { border-color: rgba(245,166,35,.12); animation-delay: .6s; }
.ring-3 { border-color: rgba(123,94,167,.10); animation-delay: 1.2s; }

/* ── Hero stats — alternating colors ── */
.hero-stat:nth-child(2) .hero-stat-num { color: var(--accent-amber); }
.hero-stat:nth-child(3) .hero-stat-num { color: var(--accent-purple); }
.hero-stat:nth-child(4) .hero-stat-num { color: var(--accent-amber); }

/* ── Section background lighting pools ── */
#services { position: relative; overflow: hidden; }
#services::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 80% at 95% 30%, rgba(245,166,35,.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 5%  75%, rgba(123,94,167,.05) 0%, transparent 60%);
}
#services > .container { position: relative; z-index: 1; }

#results { position: relative; overflow: hidden; }
#results::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 60% at 88% 20%, rgba(123,94,167,.06) 0%, transparent 60%),
    radial-gradient(ellipse 35% 45% at 10% 80%, rgba(245,166,35,.04) 0%, transparent 55%);
}
#results > .container { position: relative; z-index: 1; }

#why { position: relative; overflow: hidden; }
#why::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 70% at 5%  45%, rgba(245,166,35,.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 55% at 95% 55%, rgba(0,229,195,.04)  0%, transparent 55%);
}
#why > .container { position: relative; z-index: 1; }

#technology { position: relative; overflow: hidden; }
#technology::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 70% at 8%  50%, rgba(0,229,195,.04)  0%, transparent 55%),
    radial-gradient(ellipse 45% 60% at 92% 70%, rgba(245,166,35,.04) 0%, transparent 55%);
}
#technology > .container { position: relative; z-index: 1; }

#pricing { position: relative; overflow: hidden; }
#pricing::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(0,229,195,.05) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 95% 15%,  rgba(123,94,167,.04) 0%, transparent 50%);
}
#pricing > .container { position: relative; z-index: 1; }

#community { position: relative; overflow: hidden; }
#community::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 70% at 90% 50%, rgba(245,166,35,.04) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 30%, rgba(0,229,195,.04)  0%, transparent 55%);
}
#community > .container { position: relative; z-index: 1; }

/* ── Rainbow separator above stats bar ── */
#stats-bar { position: relative; }
#stats-bar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber) 40%, var(--accent-purple) 72%, var(--accent-cyan));
  opacity: .45;
}
#stats-bar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    -55deg,
    transparent 0px, transparent 24px,
    rgba(255,255,255,.008) 24px, rgba(255,255,255,.008) 25px
  );
}
.stats-grid { position: relative; z-index: 1; }

/* Stats numbers — alternating */
.stat-item:nth-child(2) .stat-num { color: var(--accent-amber); }
.stat-item:nth-child(3) .stat-num { color: var(--accent-purple); }
.stat-item:nth-child(4) .stat-num { color: var(--accent-amber); }

/* ── Case study cards — color-coded per card ── */
.cs-grid .cs-card:nth-child(2) .cs-top {
  background: rgba(245,166,35,.06);
  border-bottom-color: rgba(245,166,35,.15);
}
.cs-grid .cs-card:nth-child(2) .cs-vtag { color: var(--accent-amber); }
.cs-grid .cs-card:nth-child(2) .cs-metric-big.c { color: var(--accent-amber); }
.cs-grid .cs-card:nth-child(2):hover {
  border-color: rgba(245,166,35,.32); box-shadow: 0 12px 40px rgba(245,166,35,.09);
}
.cs-grid .cs-card:nth-child(3) .cs-top {
  background: rgba(123,94,167,.07);
  border-bottom-color: rgba(123,94,167,.18);
}
.cs-grid .cs-card:nth-child(3) .cs-vtag { color: var(--accent-purple); }
.cs-grid .cs-card:nth-child(3) .cs-metric-big.c { color: var(--accent-purple); }
.cs-grid .cs-card:nth-child(3):hover {
  border-color: rgba(123,94,167,.32); box-shadow: 0 12px 40px rgba(123,94,167,.09);
}

/* Aggregate strip */
.cs-agg:nth-child(2) .cs-agg-num { color: var(--accent-amber); }
.cs-agg:nth-child(3) .cs-agg-num { color: var(--accent-purple); }
.cs-agg:nth-child(4) .cs-agg-num { color: var(--accent-amber); }

/* ── Why grid — colored left-border accent + icon colors ── */
.why-icon { border: 1px solid rgba(0,229,195,.18); }
.why-grid .card { border-left: 3px solid rgba(0,229,195,.3); }
.why-grid .card:nth-child(2) { border-left-color: rgba(245,166,35,.42); }
.why-grid .card:nth-child(3) { border-left-color: rgba(123,94,167,.42); }
.why-grid .card:nth-child(2) .why-icon {
  background: rgba(245,166,35,.1); border-color: rgba(245,166,35,.22);
}
.why-grid .card:nth-child(3) .why-icon {
  background: rgba(123,94,167,.12); border-color: rgba(123,94,167,.25);
}
/* Hover: preserve left-border color */
.why-grid .card:hover         { border-color: rgba(0,229,195,.22); border-left-color: rgba(0,229,195,.6); }
.why-grid .card:nth-child(2):hover {
  border-color: rgba(245,166,35,.18); border-left-color: rgba(245,166,35,.65);
  box-shadow: 0 8px 40px rgba(245,166,35,.07);
}
.why-grid .card:nth-child(3):hover {
  border-color: rgba(123,94,167,.18); border-left-color: rgba(123,94,167,.65);
  box-shadow: 0 8px 40px rgba(123,94,167,.07);
}

/* ── Testimonial cards — colored top-border + topics + avatars ── */
.test-card { border-top: 2px solid rgba(0,229,195,.32); }
.test-grid .test-card:nth-child(2) { border-top-color: rgba(245,166,35,.4); }
.test-grid .test-card:nth-child(3) { border-top-color: rgba(123,94,167,.4); }
.test-grid .test-card:nth-child(2) .test-topic  { color: var(--accent-amber); }
.test-grid .test-card:nth-child(3) .test-topic  { color: var(--accent-purple); }
.test-grid .test-card:nth-child(2) .test-avatar {
  border-color: rgba(245,166,35,.4); color: var(--accent-amber); background: rgba(245,166,35,.08);
}
.test-grid .test-card:nth-child(3) .test-avatar {
  border-color: rgba(123,94,167,.4); color: #A884D4; background: rgba(123,94,167,.1);
}
.test-grid .test-card:nth-child(2):hover { border-color: rgba(245,166,35,.28); }
.test-grid .test-card:nth-child(3):hover { border-color: rgba(123,94,167,.28); }

/* ── Tech cards on homepage — alternate badge colors ── */
.tech-grid .tech-card:nth-child(2) .tech-badge {
  background: rgba(123,94,167,.12); color: #A884D4; border-color: rgba(123,94,167,.22);
}
.tech-grid .tech-card:nth-child(4) .tech-badge {
  background: var(--accent-amber-dim); color: var(--accent-amber); border-color: rgba(245,166,35,.22);
}
.tech-grid .tech-card:nth-child(5) .tech-badge {
  background: rgba(123,94,167,.12); color: #A884D4; border-color: rgba(123,94,167,.22);
}
.tech-grid .tech-card:nth-child(2) .tech-item::before { color: #A884D4; }
.tech-grid .tech-card:nth-child(4) .tech-item::before { color: var(--accent-amber); }
.tech-grid .tech-card:nth-child(5) .tech-item::before { color: #A884D4; }
.tech-grid .tech-card:nth-child(2):hover { border-color: rgba(123,94,167,.28); box-shadow: 0 0 24px rgba(123,94,167,.07); }
.tech-grid .tech-card:nth-child(4):hover { border-color: rgba(245,166,35,.25); box-shadow: 0 0 24px rgba(245,166,35,.07); }
.tech-grid .tech-card:nth-child(5):hover { border-color: rgba(123,94,167,.25); box-shadow: 0 0 24px rgba(123,94,167,.06); }

/* ── Pricing — colored top-border + spend badge + feature dots ── */
.pricing-card { border-top: 2px solid var(--border-subtle); }
.pricing-card:nth-child(1) { border-top-color: rgba(123,94,167,.55); }
.pricing-card:nth-child(2) { border-top-color: rgba(245,166,35,.50); }
.pricing-card.featured      { border-top-color: var(--accent-cyan)  !important; }
.pricing-card:nth-child(4) { border-top-color: rgba(245,166,35,.50); }
.pricing-card:nth-child(5) { border-top-color: rgba(123,94,167,.55); }

.pricing-card:nth-child(1) .plan-spend { background: rgba(123,94,167,.1);  color: #A884D4; border-color: rgba(123,94,167,.28); }
.pricing-card:nth-child(2) .plan-spend { background: var(--accent-amber-dim); color: var(--accent-amber); border-color: rgba(245,166,35,.28); }
.pricing-card:nth-child(4) .plan-spend { background: var(--accent-amber-dim); color: var(--accent-amber); border-color: rgba(245,166,35,.28); }
.pricing-card:nth-child(5) .plan-spend { background: rgba(123,94,167,.1);  color: #A884D4; border-color: rgba(123,94,167,.28); }

.pricing-card:nth-child(1) .pf::before { background: #A884D4; }
.pricing-card:nth-child(2) .pf::before { background: var(--accent-amber); }
.pricing-card:nth-child(4) .pf::before { background: var(--accent-amber); }
.pricing-card:nth-child(5) .pf::before { background: #A884D4; }

.pricing-card:nth-child(1):hover { border-color: rgba(123,94,167,.35); }
.pricing-card:nth-child(2):hover { border-color: rgba(245,166,35,.32); }
.pricing-card:nth-child(4):hover { border-color: rgba(245,166,35,.32); }
.pricing-card:nth-child(5):hover { border-color: rgba(123,94,167,.35); }

/* Featured pricing card — corner brackets */
.pricing-card.featured::after {
  content: '';
  position: absolute; bottom: 10px; right: 10px;
  width: 18px; height: 18px;
  border-bottom: 2px solid rgba(0,229,195,.4);
  border-right:  2px solid rgba(0,229,195,.4);
  pointer-events: none;
}

/* ── Team avatars — cycle colors ── */
.team-grid .team-card:nth-child(2) .team-avatar {
  border-color: var(--accent-amber); color: var(--accent-amber); background: rgba(245,166,35,.08);
}
.team-grid .team-card:nth-child(2) .team-role { color: var(--accent-amber); }
.team-grid .team-card:nth-child(3) .team-avatar {
  border-color: var(--accent-purple); color: #A884D4; background: rgba(123,94,167,.1);
}
.team-grid .team-card:nth-child(3) .team-role { color: var(--accent-purple); }
.team-grid .team-card:nth-child(4) .team-avatar {
  border-color: var(--accent-amber); color: var(--accent-amber); background: rgba(245,166,35,.08);
}
.team-grid .team-card:nth-child(4) .team-role { color: var(--accent-amber); }

/* ── Investment section — enhanced amber glow ── */
.invest-right {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245,166,35,.04) 100%);
  border-color: rgba(245,166,35,.22);
}
.invest-return {
  text-shadow: 0 0 60px rgba(245,166,35,.55), 0 0 130px rgba(245,166,35,.22);
}

/* ── Community wrap — enriched ── */
.community-wrap {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0,229,195,.025) 50%, rgba(245,166,35,.025) 100%);
}
.badge-limited { box-shadow: 0 0 14px rgba(245,166,35,.18); }

/* ── Client cards — multi-color on borders + category label (dots stay semantic) ── */
.clients-grid .client-card { border-top: 2px solid rgba(0,229,195,.18); }
.clients-grid .client-card:nth-child(3n+2) { border-top-color: rgba(245,166,35,.28); }
.clients-grid .client-card:nth-child(3n+3) { border-top-color: rgba(123,94,167,.28); }
.clients-grid .client-card:nth-child(3n+2) .client-type { color: var(--accent-amber); }
.clients-grid .client-card:nth-child(3n+3) .client-type { color: rgba(167,132,212,.85); }

/* ── Footer — rainbow top line ── */
footer::before {
  content: '';
  display: block; height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-amber) 40%, var(--accent-purple) 72%, var(--accent-cyan));
  opacity: .3;
  margin-bottom: -2px;
}

/* =============================================
   CYBERPUNK — GLITCH / GLOW / BLINK
   ============================================= */

/* ── Keyframes ── */

/* Chromatic-aberration glitch via text-shadow + skew */
@keyframes glitch {
  0%,82%,100% { text-shadow: none; transform: translate(0); filter: none; }
  84%  { text-shadow: -2px 0 rgba(0,229,195,.9), 2px 0 rgba(245,166,35,.9);
         transform: translate(1px,0) skewX(2deg); }
  86%  { text-shadow: 2px 0 rgba(123,94,167,.8), -2px 0 rgba(0,229,195,.7);
         transform: translate(-2px,0); }
  88%  { text-shadow: none; transform: translate(0); }
  90%  { text-shadow: -3px 0 rgba(245,166,35,.7), 3px 0 rgba(123,94,167,.7);
         transform: translate(2px,0) skewX(-1.5deg); filter: brightness(1.3); }
  92%  { text-shadow: none; transform: translate(0); filter: none; }
}
@keyframes glitch-fast {
  0%,88%,100% { text-shadow: none; transform: translate(0); }
  90% { text-shadow: -2px 0 rgba(0,229,195,.95), 2px 0 rgba(245,166,35,.9);
        transform: translate(1px,0) skewX(1.5deg); }
  92% { text-shadow: none; transform: translate(0); }
  94% { text-shadow: 2px 0 rgba(123,94,167,.9), -1px 0 rgba(0,229,195,.8);
        transform: translate(-1px,0); }
  96% { text-shadow: none; transform: translate(0); }
}

/* Neon text glow pulses */
@keyframes neon-pulse-cyan {
  0%,100% { text-shadow: 0 0 8px rgba(0,229,195,.4),  0 0 24px rgba(0,229,195,.15); }
  50%      { text-shadow: 0 0 18px rgba(0,229,195,.85), 0 0 52px rgba(0,229,195,.35), 0 0 90px rgba(0,229,195,.12); }
}
@keyframes neon-pulse-amber {
  0%,100% { text-shadow: 0 0 8px rgba(245,166,35,.4),  0 0 24px rgba(245,166,35,.15); }
  50%      { text-shadow: 0 0 18px rgba(245,166,35,.85), 0 0 52px rgba(245,166,35,.35), 0 0 90px rgba(245,166,35,.12); }
}
@keyframes neon-pulse-purple {
  0%,100% { text-shadow: 0 0 8px rgba(168,132,212,.4),  0 0 24px rgba(123,94,167,.15); }
  50%      { text-shadow: 0 0 18px rgba(168,132,212,.8),  0 0 52px rgba(123,94,167,.3),  0 0 90px rgba(123,94,167,.1); }
}

/* Box glow pulses */
@keyframes box-glow-cyan {
  0%,100% { box-shadow: 0 0 10px rgba(0,229,195,.2), inset 0 0 8px rgba(0,229,195,.04); }
  50%      { box-shadow: 0 0 28px rgba(0,229,195,.55), 0 0 56px rgba(0,229,195,.2), inset 0 0 16px rgba(0,229,195,.06); }
}
@keyframes box-glow-amber {
  0%,100% { box-shadow: 0 0 10px rgba(245,166,35,.2), inset 0 0 8px rgba(245,166,35,.04); }
  50%      { box-shadow: 0 0 28px rgba(245,166,35,.55), 0 0 56px rgba(245,166,35,.2), inset 0 0 16px rgba(245,166,35,.06); }
}
@keyframes box-glow-border-cyan {
  0%,100% { box-shadow: 0 0 0 1px rgba(0,229,195,.15), 0 0 16px rgba(0,229,195,.08); }
  50%      { box-shadow: 0 0 0 1px rgba(0,229,195,.55), 0 0 32px rgba(0,229,195,.2), 0 0 64px rgba(0,229,195,.08); }
}

/* Flicker (electrical instability) */
@keyframes flicker {
  0%,18%,20%,50%,52%,64%,100% { opacity: 1; }
  19%,51%,63% { opacity: .45; }
}
@keyframes flicker-subtle {
  0%,96%,100% { opacity: 1; }
  97%,99% { opacity: .6; }
}

/* Transform-only glitch (for elements that already have text-shadow animations) */
@keyframes glitch-xform {
  0%,82%,100% { transform: translate(0); filter: none; }
  84% { transform: translate(1px,0) skewX(2deg);   filter: brightness(1.35) hue-rotate(15deg); }
  86% { transform: translate(-2px,0);               filter: brightness(.9)  hue-rotate(-15deg); }
  88% { transform: translate(0);                    filter: none; }
  90% { transform: translate(2px,0) skewX(-1.5deg); filter: brightness(1.3) saturate(1.5); }
  92% { transform: translate(0);                    filter: none; }
}

/* Blinking cursor */
@keyframes cursor-blink {
  0%,49% { opacity: 1; }
  50%,100% { opacity: 0; }
}

/* Scan-line sweep over card on hover */
@keyframes scanline-sweep {
  from { transform: translateY(-100%); opacity: .7; }
  to   { transform: translateY(280%);  opacity: 0; }
}

/* ── Apply effects ── */

/* Logo X: quick glitch on hover */
.navbar-logo:hover .x {
  animation: glitch-fast .55s steps(1) infinite;
}

/* Hero title: very occasional glitch */
.hero-title {
  animation: glitch 11s steps(1) 1s infinite;
}
.hero-title:hover {
  animation: glitch .45s steps(1) infinite;
}

/* Big X watermark: combined breathe + rare transform-glitch (no text-shadow conflict) */
.hero-x-wrap .x-bg {
  animation: glow-breathe 4s ease-in-out infinite, glitch-xform 9s steps(1) 3s infinite;
}

/* Section labels: blinking terminal cursor */
.section-label::after {
  content: '_';
  animation: cursor-blink 1.1s step-end infinite;
  opacity: .65;
  margin-left: 2px;
}

/* Stat numbers: neon glow */
.stat-num                         { animation: neon-pulse-cyan   3.2s ease-in-out infinite; }
.stat-item:nth-child(2) .stat-num { animation: neon-pulse-amber  3.2s ease-in-out .4s infinite; }
.stat-item:nth-child(3) .stat-num { animation: neon-pulse-purple 3.2s ease-in-out .8s infinite; }
.stat-item:nth-child(4) .stat-num { animation: neon-pulse-amber  3.2s ease-in-out 1.2s infinite; }

/* Hero stat numbers */
.hero-stat-num                         { animation: neon-pulse-cyan   4s ease-in-out infinite; }
.hero-stat:nth-child(2) .hero-stat-num { animation: neon-pulse-amber  4s ease-in-out .5s infinite; }
.hero-stat:nth-child(3) .hero-stat-num { animation: neon-pulse-purple 4s ease-in-out 1s  infinite; }
.hero-stat:nth-child(4) .hero-stat-num { animation: neon-pulse-amber  4s ease-in-out 1.5s infinite; }

/* Case study metric numbers */
.cs-metric-big.c                                    { animation: neon-pulse-cyan   4s ease-in-out infinite; }
.cs-grid .cs-card:nth-child(2) .cs-metric-big.c    { animation: neon-pulse-amber  4s ease-in-out .3s infinite; }
.cs-grid .cs-card:nth-child(3) .cs-metric-big.c    { animation: neon-pulse-purple 4s ease-in-out .6s infinite; }

/* Aggregate strip */
.cs-agg-num                         { animation: neon-pulse-cyan   4.5s ease-in-out infinite; }
.cs-agg:nth-child(2) .cs-agg-num   { animation: neon-pulse-amber  4.5s ease-in-out .4s infinite; }
.cs-agg:nth-child(3) .cs-agg-num   { animation: neon-pulse-purple 4.5s ease-in-out .8s infinite; }
.cs-agg:nth-child(4) .cs-agg-num   { animation: neon-pulse-amber  4.5s ease-in-out 1.2s infinite; }

/* Investment return: intense amber neon */
.invest-return { animation: neon-pulse-amber 2.4s ease-in-out infinite; }

/* ss-num: subtle flicker */
.ss-num { animation: flicker-subtle 9s linear infinite; }

/* Featured pricing card: cyan border glow */
.pricing-card.featured { animation: box-glow-border-cyan 3s ease-in-out infinite; }

/* invest-right card: amber box glow */
.invest-right { animation: box-glow-amber 3.5s ease-in-out infinite; }

/* Hero eyebrow badge: cyan box glow */
.hero-eyebrow { animation: box-glow-cyan 4s ease-in-out infinite; }

/* Tag chips: cyan box glow */
.tag { animation: box-glow-cyan 3.5s ease-in-out infinite; }

/* Tech badges: flicker */
.tech-badge { animation: flicker-subtle 7s linear 1s infinite; }

/* Svc-num: flicker */
.svc-num { animation: flicker-subtle 11s linear infinite; }

/* Plan price: subtle neon */
.plan-price { animation: neon-pulse-cyan 5s ease-in-out infinite; }
.pricing-card:nth-child(1) .plan-price,
.pricing-card:nth-child(5) .plan-price { animation: neon-pulse-purple 5s ease-in-out infinite; }
.pricing-card:nth-child(2) .plan-price,
.pricing-card:nth-child(4) .plan-price { animation: neon-pulse-amber  5s ease-in-out infinite; }

/* Hero title highlight: flicker */
.hero-title .highlight { animation: flicker-subtle 13s linear 2s infinite; }

/* Page hero h1 span: occasional glitch */
.page-hero h1 span {
  animation: glitch 13s steps(1) 2s infinite;
}
.page-hero h1 span:hover {
  animation: glitch .45s steps(1) infinite;
}

/* ss-num colors: neon matching their palette */
.ss-num        { animation: neon-pulse-cyan   7s ease-in-out infinite, flicker-subtle 9s linear infinite; }
.ss-num.amber  { animation: neon-pulse-amber  7s ease-in-out .5s infinite, flicker-subtle 9s linear .5s infinite; }
.ss-num.purple { animation: neon-pulse-purple 7s ease-in-out 1s infinite, flicker-subtle 9s linear 1s infinite; }

/* Card scan-line sweep on hover */
.cs-card,
.sub-card,
.why-grid .card,
.tech-card,
.pricing-card { overflow: hidden; }

.cs-card::after,
.sub-card::after,
.tech-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 35%;
  background: linear-gradient(to bottom,
    rgba(0,229,195,.06) 0%,
    rgba(0,229,195,.03) 60%,
    transparent 100%);
  transform: translateY(-100%);
  pointer-events: none;
  z-index: 1;
}
.cs-card:hover::after,
.sub-card:hover::after,
.tech-card:hover::after {
  animation: scanline-sweep .7s ease-out forwards;
}

/* Button: glitch flash on hover */
.btn-primary:hover {
  animation: glitch-fast .45s steps(1) 1;
}

/* Community wrap electric border: amber-boosted glow */
.community-wrap { animation: box-glow-cyan 4s ease-in-out infinite; }

/* Navbar scrolled: ambient cyan glow */
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,229,195,.07), 0 0 60px rgba(0,229,195,.03);
}

/* Footer logo: glitch on hover */
.footer-logo:hover .x {
  animation: glitch-fast .5s steps(1) infinite;
}

/* ── Page hero scan-line overlay (inner pages) ── */
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 3px,
    rgba(0,229,195,.008) 3px, rgba(0,229,195,.008) 4px
  );
}

/* ── Reduce motion: respect user preferences ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .services-grid, .pricing-grid, .tech-grid { grid-template-columns: repeat(3,1fr); }
  .clients-grid { grid-template-columns: repeat(5,1fr); }
}
@media (max-width: 860px) {
  .hero-content { grid-template-columns: 1fr; gap: 0; padding-bottom: 120px; }
  .hero-visual { display: none; }
  .cs-grid, .why-grid, .test-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .invest-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-visual { display: none; }
  .comm-steps { grid-template-columns: repeat(2,1fr); }
  :root { --section-py: 68px; --container-px: 24px; }
}
@media (max-width: 600px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .services-grid, .tech-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3,1fr); }
  .cs-grid, .why-grid, .test-grid, .team-grid { grid-template-columns: 1fr; }
  .hero-stats-inner { flex-wrap: wrap; }
  .hero-stat { min-width: 50%; }
  .comm-steps { grid-template-columns: 1fr; }
  .stats-grid { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stat-item:last-child { border-bottom: none; }
  .cs-aggregate { flex-wrap: wrap; }
  .cs-agg { min-width: 50%; }
}
