:root {
  --bg: #ffffff;
  --bg2: #f7f5fc;
  --bg3: #f0ecf9;
  --surface: #faf9fd;
  --accent: #7C3AED;
  --accent2: #3B82F6;
  --accent3: #A855F7;
  --text: #15112b;
  --text-muted: #6b6480;
  --border: rgba(124,58,237,0.15);
  --border-hover: rgba(124,58,237,0.45);
  --grad: linear-gradient(135deg, #7C3AED 0%, #A855F7 35%, #6366F1 70%, #3B82F6 100%);
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-body: 'Syne', sans-serif;
  --font-light: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ─── */
#cursor {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: difference;
}
#cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(124,58,237,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.3s ease;
}
.cursor-grow #cursor { width: 28px; height: 28px; }
.cursor-grow #cursor-ring { width: 64px; height: 64px; opacity: 0.4; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ─── THREE.JS CANVAS ─── */
#three-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 4rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(32px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.4s ease, background 0.4s ease;
}
nav.scrolled { padding: 0.9rem 4rem; background: rgba(255,255,255,0.92); box-shadow: 0 4px 24px rgba(124,58,237,0.08); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  animation: logoPulse 3s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.nav-logo:hover .logo-mark {
  transform: perspective(200px) rotateY(25deg) rotateX(-12deg) scale(1.1);
}
.logo-mark svg { width: 22px; height: 22px; }
@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.5); }
  50% { box-shadow: 0 0 0 14px rgba(124,58,237,0); }
}
.logo-text {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn-nav {
  background: var(--accent);
  color: #ffffff;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: none;
  position: relative;
  overflow: hidden;
}
.btn-nav::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-nav:hover { transform: translateY(-3px) translateZ(8px); box-shadow: 0 10px 30px rgba(124,58,237,0.35); }
.btn-nav:hover::before { opacity: 1; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 4rem 4rem;
  perspective: 1400px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(124,58,237,0.06) 0%, transparent 70%);
}

/* Perspective grid floor */
.hero-grid-3d {
  position: absolute;
  bottom: 0; left: -20%; right: -20%;
  height: 55%;
  background-image:
    linear-gradient(rgba(124,58,237,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(70deg) translateZ(-20px);
  transform-origin: bottom center;
  pointer-events: none;
  animation: gridPulse 4s ease-in-out infinite;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}
@keyframes gridPulse {
  0%,100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, rgba(124,58,237,0.03) 60%, transparent 100%);
  top: -250px; right: -150px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(168,85,247,0.09) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  animation: orbFloat 11s ease-in-out infinite reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
  top: 30%; left: 40%;
  animation: orbFloat 14s ease-in-out infinite;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-50px) scale(1.08); }
}

/* Floating 3D shapes */
.hero-shape {
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(124,58,237,0.12);
}
.shape-1 {
  width: 80px; height: 80px;
  top: 22%; right: 14%;
  border-radius: 12px;
  animation: rotateShape3d 14s linear infinite;
}
.shape-2 {
  width: 44px; height: 44px;
  top: 58%; right: 24%;
  border-radius: 6px;
  border-color: rgba(168,85,247,0.15);
  animation: rotateShape3d 9s linear infinite reverse;
}
.shape-3 {
  width: 130px; height: 130px;
  bottom: 18%; left: 7%;
  border-radius: 50%;
  border-color: rgba(124,58,237,0.09);
  animation: rotateShape3d 20s linear infinite;
}
.shape-4 {
  width: 24px; height: 24px;
  top: 40%; left: 20%;
  border-radius: 4px;
  border-color: rgba(124,58,237,0.2);
  animation: rotateShape3d 6s linear infinite;
}
@keyframes rotateShape3d {
  0%   { transform: perspective(500px) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  25%  { transform: perspective(500px) rotateX(40deg) rotateY(25deg) rotateZ(15deg); }
  50%  { transform: perspective(500px) rotateX(-20deg) rotateY(55deg) rotateZ(-8deg); }
  75%  { transform: perspective(500px) rotateX(30deg) rotateY(-20deg) rotateZ(25deg); }
  100% { transform: perspective(500px) rotateX(0deg) rotateY(360deg) rotateZ(0deg); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1100px; width: 100%;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  will-change: transform;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-headline .line-1 {
  display: block; color: var(--text);
  opacity: 0; transform: translateY(60px) translateZ(-60px);
}
.hero-headline .line-2 {
  display: block;
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
  font-style: italic;
  opacity: 0; transform: translateY(60px) translateZ(-30px);
  text-shadow: 2px 2px 0px rgba(124,58,237,0.12);
}
.hero-headline .line-3 {
  display: block;
  background: linear-gradient(100deg, #A855F7 0%, #7C3AED 35%, #3B82F6 68%, #3B82F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0; transform: translateY(60px) translateZ(0px);
  text-shadow: 0 4px 24px rgba(124,58,237,0.18);
}

/* glitch on .line-3 */
.hero-headline .line-3 {
  position: relative;
}
.hero-headline .line-3::before,
.hero-headline .line-3::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}
.hero-headline .line-3::before {
  color: #A855F7;
  animation: glitch1 6s infinite 3s;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.hero-headline .line-3::after {
  color: #3B82F6;
  animation: glitch2 6s infinite 3.1s;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%,94%,100% { opacity: 0; transform: translate(0); }
  95% { opacity: 0.7; transform: translate(-4px, 0); }
  96% { opacity: 0.5; transform: translate(4px, 0); }
  97% { opacity: 0.8; transform: translate(-2px, 0); }
  98%,99% { opacity: 0; transform: translate(0); }
}
@keyframes glitch2 {
  0%,94%,100% { opacity: 0; transform: translate(0); }
  95% { opacity: 0.5; transform: translate(4px, 0); }
  96% { opacity: 0.7; transform: translate(-3px, 0); }
  97% { opacity: 0; transform: translate(0); }
}

.hero-sub {
  max-width: 540px;
  font-family: var(--font-light);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-top: 2rem;
  opacity: 0;
  will-change: transform;
}

.hero-actions {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 2.5rem;
  opacity: 0;
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  display: inline-flex; align-items: center; gap: 8px;
  position: relative; overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.btn-primary::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.45s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { box-shadow: 0 16px 48px rgba(124,58,237,0.32), 0 4px 0 rgba(124,58,237,0.15); }

.btn-ghost {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: none;
  transition: color 0.3s ease;
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost svg { transition: transform 0.3s ease; }
.btn-ghost:hover svg { transform: translateX(6px); }

.hero-stats {
  display: flex; gap: 3rem;
  margin-top: 4rem;
  opacity: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  will-change: transform;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.02em;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── MARQUEE ─── */
.marquee-section {
  padding: 1.5rem 0;
  background: var(--accent);
  overflow: hidden;
  transform: perspective(1200px) rotateX(2deg);
  box-shadow: 0 16px 40px rgba(124,58,237,0.25);
}
.marquee-track {
  display: flex;
  animation: marqueeRun 22s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.marquee-dot { width: 6px; height: 6px; background: #ffffff; border-radius: 50%; opacity: 0.4; }
@keyframes marqueeRun { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── SECTIONS ─── */
section { padding: 7rem 4rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 400;
}
.section-title em { color: var(--accent); font-style: italic; }

/* ─── SERVICES ─── */
#services { background: var(--bg2); }

.services-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.service-card {
  background: var(--bg2);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: none;
  transform-style: preserve-3d;
  transition: background 0.4s ease, transform 0.12s ease, box-shadow 0.4s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { background: var(--surface); box-shadow: 0 24px 60px rgba(124,58,237,0.14), 0 4px 16px rgba(21,17,43,0.06); z-index: 2; }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(21,17,43,0.05);
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  line-height: 1;
  transition: color 0.4s ease;
}
.service-card:hover .service-num { color: rgba(124,58,237,0.14); }

.service-icon {
  width: 48px; height: 48px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transform: translateZ(18px);
  transform-style: preserve-3d;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.service-card:hover .service-icon {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.4);
  transform: translateZ(28px) scale(1.1) rotate(8deg);
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--accent); }

.service-title { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; letter-spacing: -0.01em; transform: translateZ(10px); transform-style: preserve-3d; }
.service-desc { font-family: var(--font-light); font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; font-weight: 300; }

.service-arrow {
  display: flex; align-items: center; gap: 6px;
  margin-top: 1.5rem;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  opacity: 0; transform: translateY(10px) translateZ(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-style: preserve-3d;
}
.service-card:hover .service-arrow { opacity: 1; transform: translateY(0) translateZ(14px); }

/* ─── MEDIA LOGOS ─── */
#media { overflow: hidden; }
.logos-container { position: relative; margin-top: 3rem; }
.logos-fade-left, .logos-fade-right {
  position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
  pointer-events: none;
}
.logos-fade-left { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.logos-fade-right { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.logos-row {
  display: flex;
  animation: logoScroll 28s linear infinite;
  width: max-content;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}
.logos-row:last-child { animation-direction: reverse; animation-duration: 34s; }
.logo-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 0.6rem 1.5rem;
  margin: 0 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted);
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
  transform: perspective(300px) translateZ(0);
}
.logo-pill:hover {
  background: rgba(124,58,237,0.05);
  border-color: rgba(124,58,237,0.3);
  color: var(--text);
  transform: perspective(300px) translateZ(18px) translateY(-4px);
  box-shadow: 0 10px 24px rgba(124,58,237,0.12);
}
.logo-pill-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
@keyframes logoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── WHY US ─── */
#why { background: var(--bg3); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; margin-top: 4rem; }
.why-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  transform-style: preserve-3d;
  position: relative; overflow: visible;
}
.stat-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.stat-card:hover { box-shadow: 0 28px 56px rgba(124,58,237,0.16), 0 4px 16px rgba(21,17,43,0.06); border-color: rgba(124,58,237,0.3); }
.stat-card:hover::after { opacity: 1; }

.stat-num { font-family: var(--font-display); font-size: 3.2rem; color: var(--accent); line-height: 1; display: block; transform: translateZ(22px); transform-style: preserve-3d; }
.stat-suffix { font-size: 1.8rem; color: var(--accent3); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; font-weight: 500; }

.why-text .section-title { margin-bottom: 1.5rem; }
.why-features { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.why-feature {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  transform: perspective(400px) translateZ(0);
}
.why-feature:hover {
  border-color: rgba(124,58,237,0.25);
  transform: perspective(400px) translateZ(10px);
  box-shadow: 0 10px 24px rgba(124,58,237,0.14);
}
.feature-check { width: 20px; height: 20px; flex-shrink: 0; background: rgba(124,58,237,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.feature-check svg { width: 10px; height: 10px; }
.feature-text { font-family: var(--font-light); font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; font-weight: 300; }
.feature-text strong { color: var(--text); font-weight: 600; }

/* ─── TESTIMONIALS ─── */
.testimonials-header { text-align: center; margin-bottom: 4rem; }
.testimonials-header .section-eyebrow { justify-content: center; }
.testimonials-header .section-eyebrow::before { display: none; }

.testimonials-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.23,1,0.32,1), border-color 0.3s ease, box-shadow 0.3s ease;
  backface-visibility: hidden;
}
.testi-card::before {
  content: '"';
  position: absolute; top: -0.5rem; left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 6rem;
  color: rgba(124,58,237,0.07);
  line-height: 1;
}
.testi-card:hover {
  transform: rotateY(7deg) rotateX(-5deg) translateY(-10px) translateZ(16px);
  box-shadow: 12px 24px 50px rgba(124,58,237,0.18), 0 4px 16px rgba(21,17,43,0.06);
  border-color: rgba(124,58,237,0.3);
}

.stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.star { width: 14px; height: 14px; color: var(--accent); }
.testi-text { font-family: var(--font-light); font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; font-weight: 300; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: var(--accent); border: 1px solid rgba(124,58,237,0.3); flex-shrink: 0; }
.author-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.author-role { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ─── CTA ─── */
#cta {
  background: var(--bg2);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(124,58,237,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  transform-style: preserve-3d;
}
.cta-title .accent {
  color: var(--accent);
  display: inline-block;
  transform: translateZ(24px);
  text-shadow: 0 8px 36px rgba(124,58,237,0.45), 5px 5px 0 rgba(124,58,237,0.15);
  animation: float3d 4.5s ease-in-out infinite;
}
@keyframes float3d {
  0%,100% { transform: translateZ(24px) translateY(0); }
  50%      { transform: translateZ(44px) translateY(-8px); }
}
.cta-sub { font-family: var(--font-light); font-size: 1.05rem; color: var(--text-muted); font-weight: 300; max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.7; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.btn-outline {
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--accent);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; cursor: none;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-outline:hover { background: rgba(124,58,237,0.08); transform: translateY(-2px) translateZ(6px); box-shadow: 0 8px 24px rgba(124,58,237,0.15); }

/* ─── FOOTER ─── */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 4rem 4rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer-brand p { font-family: var(--font-light); font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-top: 1rem; font-weight: 300; max-width: 280px; }
.footer-socials { display: flex; gap: 12px; margin-top: 1.5rem; }
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  cursor: none; text-decoration: none;
  transform: perspective(200px) translateZ(0);
}
.social-btn:hover { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.06); transform: perspective(200px) translateZ(12px) translateY(-4px); box-shadow: 0 8px 20px rgba(124,58,237,0.18); }
.social-btn svg { width: 16px; height: 16px; stroke: var(--text-muted); }
.social-btn:hover svg { stroke: var(--accent); }

.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-family: var(--font-light); font-size: 0.88rem; color: var(--text-muted); text-decoration: none; font-weight: 300; transition: color 0.3s ease; display: inline-flex; align-items: center; gap: 6px; }
.footer-col a::before { content: ''; width: 0; height: 1px; background: var(--accent); transition: width 0.3s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-col a:hover::before { width: 12px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; }
.footer-copy { font-family: var(--font-light); font-size: 0.82rem; color: var(--text-muted); font-weight: 300; }
.footer-copy span { color: var(--accent); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: perspective(700px) translateZ(-50px) translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.23,1,0.32,1), transform 0.9s cubic-bezier(0.23,1,0.32,1);
}
.reveal.visible {
  opacity: 1;
  transform: perspective(700px) translateZ(0) translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }

.count-target { display: inline; }

/* ─── MAGNETIC BTN ─── */
.magnetic-wrap { display: inline-block; }

/* ─── HAMBURGER ─── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: none; background: none; border: none; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }
  #hero { padding: 7rem 1.5rem 4rem; }
  section { padding: 4rem 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .testimonials-track { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  footer { padding: 3rem 1.5rem 1.5rem; }
  .hero-grid-3d { display: none; }
}

/* ─── SECTORS CARDS (scoped) ─── */
.sector-card {
  background: var(--bg2);
  padding: 2.2rem;
  cursor: default;
  transition: background 0.35s ease, transform 0.25s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.sector-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.sector-card:hover { background: var(--surface); box-shadow: 0 20px 50px rgba(124,58,237,0.14), 0 4px 16px rgba(21,17,43,0.06); z-index: 2; }
.sector-card:hover::before { transform: scaleX(1); }
.sector-icon {
  width: 44px; height: 44px;
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.sector-card:hover .sector-icon {
  background: rgba(124,58,237,0.14);
  border-color: rgba(124,58,237,0.4);
  transform: scale(1.1) rotate(6deg);
}
.sector-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.sector-name { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.sector-desc { font-family: var(--font-light); font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; font-weight: 300; }
@media (max-width: 900px) {
  .sectors-grid { grid-template-columns: repeat(2,1fr) !important; }
}

/* ─── BRANDS TICKER (scoped) ─── */
.brands-section {
  padding: 5rem 0;
  background: var(--bg2);
  overflow: hidden;
  position: relative;
}
.brands-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(124,58,237,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.brands-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
  padding: 0 4rem;
}
.brands-header .section-eyebrow {
  justify-content: center;
}
.brands-header .section-eyebrow::before { display: none; }

.brands-ticker-wrap {
  position: relative;
  overflow: hidden;
}
.brands-ticker-wrap::before,
.brands-ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}
.brands-ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg2), transparent);
}
.brands-ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg2), transparent);
}

.brands-ticker {
  display: flex;
  width: max-content;
  animation: brandsTicker 32s linear infinite;
}
.brands-ticker:hover { animation-play-state: paused; }

.brands-ticker-reverse {
  display: flex;
  width: max-content;
  animation: brandsTicker 28s linear infinite reverse;
  margin-top: 1.25rem;
}
.brands-ticker-reverse:hover { animation-play-state: paused; }

@keyframes brandsTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.75rem;
  margin: 0 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  cursor: default;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  transform: perspective(400px) translateZ(0);
  position: relative;
  overflow: hidden;
}
.brand-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.brand-chip:hover {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.35);
  color: var(--text);
  transform: perspective(400px) translateZ(16px) translateY(-4px);
  box-shadow: 0 12px 28px rgba(124,58,237,0.16);
}
.brand-chip:hover::before { opacity: 1; }

.brand-chip-icon {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.brand-chip:hover .brand-chip-icon { transform: scale(1.4); }

/* ─── CASE STUDY CARDS (scoped) ─── */
.cs-card:hover { background: var(--bg3) !important; }
.cs-card:hover .cs-bar { transform: scaleX(1) !important; }
@media (max-width: 900px) {
  .cs-card > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 2rem !important; }
}
