/* =============================================
   NIRMIDH — BRAND DESIGN SYSTEM
   Quantum Violet + Neural Blue | Poppins + Inter
   ============================================= */

:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a2e;
  --violet: #3A0CA3;
  --blue: #4361EE;
  --gradient: linear-gradient(135deg, #3A0CA3, #4361EE);
  --gradient-text: linear-gradient(135deg, #7B5FE8, #4361EE, #60A5FA);
  --white: #F8F9FC;
  --muted: #8888a0;
  --border: rgba(67, 97, 238, 0.1);
  --border-hover: rgba(67, 97, 238, 0.35);
  --glow-violet: rgba(58, 12, 163, 0.35);
  --glow-blue: rgba(67, 97, 238, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   LOADER
   ============================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050508;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  z-index: 2;
}

.loader-ring {
  width: 100px;
  height: 100px;
}

.loader-ring-progress {
  transform-origin: center;
  transform: rotate(-90deg);
}

.loader-logo {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.08em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: loaderPulse 1.5s ease-in-out infinite alternate;
}

@keyframes loaderPulse {
  0% { opacity: 0.5; filter: brightness(0.8); }
  100% { opacity: 1; filter: brightness(1.2); }
}

.loader-status {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.loader-scanflash {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(67, 97, 238, 0.02) 2px, rgba(67, 97, 238, 0.02) 4px);
  opacity: 0;
  pointer-events: none;
}

/* =============================================
   BACKGROUND LAYERS
   ============================================= */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.015) 2px, rgba(0,0,0,0.015) 4px);
  opacity: 0.5;
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 12, 163, 0.08) 0%, rgba(67, 97, 238, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 99;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s;
}

body:hover .cursor-glow { opacity: 1; }

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(67, 97, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 97, 238, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.ambient {
  position: fixed;
  width: 500px;
  height: 500px;
  filter: blur(150px);
  z-index: 0;
  opacity: 0.5;
}

.ambient-1 {
  top: -200px;
  left: -100px;
  background: var(--glow-violet);
  animation: morphBlob1 14s ease-in-out infinite;
}

.ambient-2 {
  bottom: -200px;
  right: -120px;
  background: var(--glow-blue);
  animation: morphBlob2 16s ease-in-out infinite;
}

@keyframes morphBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); border-radius: 40% 60% 60% 40%; }
  33% { transform: translate(40px, -30px) scale(1.15); border-radius: 60% 40% 50% 50%; }
  66% { transform: translate(-20px, 40px) scale(0.9); border-radius: 50% 50% 40% 60%; }
}

@keyframes morphBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); border-radius: 50%; }
  50% { transform: translate(-30px, 25px) scale(1.2); border-radius: 60% 40% 60% 40%; }
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 48px);
  max-width: 960px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled .nav-inner {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(58, 12, 163, 0.15), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(58, 12, 163, 0.3), 0 0 40px rgba(67, 97, 238, 0.1);
  animation: btnGlow 4s ease-in-out infinite alternate;
}

@keyframes btnGlow {
  0% { box-shadow: 0 4px 20px rgba(58, 12, 163, 0.3), 0 0 40px rgba(67, 97, 238, 0.1); }
  100% { box-shadow: 0 4px 30px rgba(58, 12, 163, 0.5), 0 0 60px rgba(67, 97, 238, 0.15); }
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(58, 12, 163, 0.5), 0 0 80px rgba(67, 97, 238, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(58, 12, 163, 0.15), transparent),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(67, 97, 238, 0.1), transparent);
  z-index: -1;
  animation: heroBgShift 10s ease-in-out infinite alternate;
}

@keyframes heroBgShift {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text { z-index: 2; }

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 16px;
  min-height: 1.2em;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.chip:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(67, 97, 238, 0.1);
}

.hero-visual-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==============================
   HERO ANIMATED ORB
   ============================== */
.hero-anim {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-core {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7B5FE8, #3A0CA3 50%, #1a0650);
  box-shadow:
    0 0 60px rgba(58, 12, 163, 0.6),
    0 0 120px rgba(67, 97, 238, 0.3),
    inset 0 0 30px rgba(123, 95, 232, 0.4);
  animation: orbCoreGlow 4s ease-in-out infinite alternate;
}

@keyframes orbCoreGlow {
  0% {
    box-shadow: 0 0 60px rgba(58, 12, 163, 0.6), 0 0 120px rgba(67, 97, 238, 0.3), inset 0 0 30px rgba(123, 95, 232, 0.4);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 80px rgba(58, 12, 163, 0.8), 0 0 160px rgba(67, 97, 238, 0.4), inset 0 0 40px rgba(123, 95, 232, 0.6);
    transform: scale(1.05);
  }
}

.orb-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 12, 163, 0.15) 0%, rgba(67, 97, 238, 0.08) 40%, transparent 70%);
  animation: orbGlowPulse 5s ease-in-out infinite alternate;
}

@keyframes orbGlowPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 1; }
}

.orb-pulse {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(67, 97, 238, 0.15);
  animation: orbPulseExpand 3s ease-out infinite;
}

@keyframes orbPulseExpand {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}

/* Orbiting rings */
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.orb-ring-1 {
  width: 180px;
  height: 180px;
  border-color: rgba(67, 97, 238, 0.2);
  border-top-color: rgba(123, 95, 232, 0.6);
  border-right-color: rgba(67, 97, 238, 0.4);
  animation: ringOrbit1 8s linear infinite;
  transform: rotateX(65deg);
}

.orb-ring-2 {
  width: 260px;
  height: 260px;
  border-color: rgba(58, 12, 163, 0.1);
  border-bottom-color: rgba(67, 97, 238, 0.35);
  border-left-color: rgba(123, 95, 232, 0.2);
  animation: ringOrbit2 12s linear infinite reverse;
  transform: rotateX(72deg) rotateY(20deg);
}

.orb-ring-3 {
  width: 340px;
  height: 340px;
  border-color: rgba(67, 97, 238, 0.06);
  border-top-color: rgba(58, 12, 163, 0.2);
  animation: ringOrbit3 18s linear infinite;
  transform: rotateX(58deg) rotateY(-15deg);
}

@keyframes ringOrbit1 {
  from { transform: rotateX(65deg) rotateZ(0deg); }
  to   { transform: rotateX(65deg) rotateZ(360deg); }
}

@keyframes ringOrbit2 {
  from { transform: rotateX(72deg) rotateY(20deg) rotateZ(0deg); }
  to   { transform: rotateX(72deg) rotateY(20deg) rotateZ(360deg); }
}

@keyframes ringOrbit3 {
  from { transform: rotateX(58deg) rotateY(-15deg) rotateZ(0deg); }
  to   { transform: rotateX(58deg) rotateY(-15deg) rotateZ(360deg); }
}

/* Floating particles around orb */
.orb-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(123, 95, 232, 0.7);
  box-shadow: 0 0 6px rgba(67, 97, 238, 0.5);
}

.orb-particles span:nth-child(1) { top: 15%; left: 20%; animation: orbFloat 6s ease-in-out infinite; }
.orb-particles span:nth-child(2) { top: 10%; right: 25%; animation: orbFloat 7s ease-in-out infinite 0.5s; width: 2px; height: 2px; }
.orb-particles span:nth-child(3) { bottom: 20%; left: 15%; animation: orbFloat 8s ease-in-out infinite 1s; }
.orb-particles span:nth-child(4) { bottom: 15%; right: 20%; animation: orbFloat 5s ease-in-out infinite 1.5s; width: 4px; height: 4px; }
.orb-particles span:nth-child(5) { top: 40%; left: 5%; animation: orbFloat 9s ease-in-out infinite 0.8s; width: 2px; height: 2px; }
.orb-particles span:nth-child(6) { top: 35%; right: 8%; animation: orbFloat 7s ease-in-out infinite 2s; }
.orb-particles span:nth-child(7) { bottom: 35%; left: 30%; animation: orbFloat 6s ease-in-out infinite 0.3s; width: 2px; height: 2px; }
.orb-particles span:nth-child(8) { bottom: 40%; right: 30%; animation: orbFloat 8s ease-in-out infinite 1.2s; width: 4px; height: 4px; background: rgba(67, 97, 238, 0.6); }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  25% { transform: translate(8px, -12px); opacity: 1; }
  50% { transform: translate(-5px, -20px); opacity: 0.6; }
  75% { transform: translate(10px, -8px); opacity: 0.9; }
}

/* Glitch */
.glitch-target { position: relative; }
.glitch-target.glitching { animation: glitchText 0.3s steps(2) forwards; }

@keyframes glitchText {
  0% { text-shadow: 2px 0 #3A0CA3, -2px 0 #4361EE; }
  20% { text-shadow: -3px 0 #3A0CA3, 3px 0 #4361EE; transform: translate(-2px, 1px); }
  40% { clip-path: inset(20% 0 30% 0); transform: translate(2px, -1px); }
  60% { clip-path: inset(50% 0 10% 0); transform: translate(1px, 2px); }
  80% { clip-path: inset(10% 0 60% 0); transform: translate(-1px, -1px); }
  100% { text-shadow: none; transform: translate(0); clip-path: none; }
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section-header {
  margin-bottom: 48px;
  max-width: 640px;
}

.section-label {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(58, 12, 163, 0.12);
  border: 1px solid rgba(67, 97, 238, 0.15);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.section-lede {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* =============================================
   CARD GRID
   ============================================= */
.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* =============================================
   CARDS
   ============================================= */
.card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(58, 12, 163, 0.08);
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--glow-angle, 0deg), transparent 0%, rgba(67, 97, 238, 0.3) 10%, transparent 20%, transparent 50%, rgba(58, 12, 163, 0.25) 60%, transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.tilt-card:hover .card-glow { opacity: 1; }
.tilt-card { transform-style: preserve-3d; }

/* =============================================
   CARD VISUALS (animated section backgrounds)
   ============================================= */
.card-visual {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  background: rgba(58, 12, 163, 0.06);
  border: 1px solid rgba(67, 97, 238, 0.08);
  position: relative;
  overflow: hidden;
}

.card-compact .card-visual {
  height: 180px;
  margin-bottom: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(67, 97, 238, 0.08);
}

/* ---------- Strategy: target + path ---------- */
.vis-strategy {
  background:
    radial-gradient(circle at 70% 40%, rgba(58, 12, 163, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 25% 70%, rgba(67, 97, 238, 0.08) 0%, transparent 40%);
}

.vis-target {
  position: absolute;
  right: 16%;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1.5px solid rgba(67, 97, 238, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: targetPulse 3s ease-in-out infinite;
}

.vis-target::before {
  content: '';
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid rgba(67, 97, 238, 0.15);
  position: absolute;
}

.vis-target::after {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(123, 95, 232, 0.35);
  position: absolute;
}

.vis-target span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 16px rgba(67, 97, 238, 0.8), 0 0 40px rgba(67, 97, 238, 0.3);
  animation: targetDot 2s ease-in-out infinite alternate;
}

.vis-path {
  position: absolute;
  top: 50%;
  left: 8%;
  right: 45%;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(67, 97, 238, 0.1), rgba(67, 97, 238, 0.4), rgba(123, 95, 232, 0.4));
  animation: pathDraw 3s ease-in-out infinite;
}

.vis-path::before {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(67, 97, 238, 0.6);
  animation: pathDot 3s ease-in-out infinite;
}

@keyframes targetPulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateY(-50%) scale(1.06); opacity: 1; }
}

@keyframes targetDot {
  0% { transform: scale(1); box-shadow: 0 0 16px rgba(67, 97, 238, 0.8), 0 0 40px rgba(67, 97, 238, 0.3); }
  100% { transform: scale(1.5); box-shadow: 0 0 24px rgba(67, 97, 238, 1), 0 0 50px rgba(67, 97, 238, 0.4); }
}

@keyframes pathDraw {
  0% { clip-path: inset(0 100% 0 0); }
  50% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

@keyframes pathDot {
  0% { right: 100%; opacity: 0; }
  10% { opacity: 1; }
  50% { right: 0; opacity: 1; }
  90% { opacity: 0; }
  100% { right: 0; opacity: 0; }
}

/* ---------- Model: neural net nodes + lines ---------- */
.vis-model {
  background:
    radial-gradient(circle at 50% 40%, rgba(58, 12, 163, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(67, 97, 238, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(67, 97, 238, 0.06) 0%, transparent 40%);
}

.vis-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 12px rgba(67, 97, 238, 0.5);
  animation: nodePulse 2.5s ease-in-out infinite;
}

.vis-node.n1 { left: 10%; top: 22%; animation-delay: 0s; }
.vis-node.n2 { left: 8%;  bottom: 22%; animation-delay: 0.3s; }
.vis-node.n3 { left: 48%; top: 44%; width: 16px; height: 16px; animation-delay: 0.6s; }
.vis-node.n4 { right: 10%; top: 22%; animation-delay: 0.9s; }
.vis-node.n5 { right: 8%;  bottom: 22%; animation-delay: 1.2s; }

.vis-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vis-lines line {
  stroke: rgba(67, 97, 238, 0.18);
  stroke-width: 1;
  stroke-dasharray: 5 5;
  animation: lineFlow 3s linear infinite;
}

@keyframes nodePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(67, 97, 238, 0.5); }
  50% { transform: scale(1.35); box-shadow: 0 0 24px rgba(67, 97, 238, 0.8); }
}

@keyframes lineFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -30; }
}

/* ---------- Deploy: rocket + trail ---------- */
.vis-deploy {
  background:
    radial-gradient(circle at 50% 30%, rgba(58, 12, 163, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(67, 97, 238, 0.08) 0%, transparent 40%);
}

.vis-rocket {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rocketFloat 3s ease-in-out infinite;
}

.vis-rocket-body {
  width: 24px;
  height: 50px;
  background: var(--gradient);
  border-radius: 12px 12px 4px 4px;
  position: relative;
  box-shadow: 0 0 20px rgba(67, 97, 238, 0.4);
}

.vis-rocket-body::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 14px solid #3A0CA3;
}

.vis-rocket-body::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 12px;
  border-radius: 0 0 6px 6px;
  background: rgba(67, 97, 238, 0.25);
}

.vis-rocket-flame {
  width: 14px;
  height: 24px;
  margin-top: 2px;
  background: linear-gradient(180deg, #4361EE, #7B5FE8, rgba(123, 95, 232, 0.15));
  border-radius: 50% 50% 50% 50% / 20% 20% 80% 80%;
  animation: flameFlicker 0.15s ease-in-out infinite alternate;
  box-shadow: 0 10px 24px rgba(67, 97, 238, 0.5);
}

.vis-trail {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vis-trail span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(67, 97, 238, 0.3);
  animation: trailFade 1.5s ease-out infinite;
}

.vis-trail span:nth-child(1) { animation-delay: 0s; opacity: 0.5; }
.vis-trail span:nth-child(2) { animation-delay: 0.3s; opacity: 0.3; width: 3px; height: 3px; }
.vis-trail span:nth-child(3) { animation-delay: 0.6s; opacity: 0.2; width: 2px; height: 2px; }

@keyframes rocketFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

@keyframes flameFlicker {
  0% { transform: scaleX(1) scaleY(1); opacity: 0.9; }
  100% { transform: scaleX(1.2) scaleY(1.1); opacity: 1; }
}

@keyframes trailFade {
  0% { transform: translateY(0); opacity: 0.5; }
  100% { transform: translateY(24px); opacity: 0; }
}

/* ---------- Healthcare: pulse line + heart ---------- */
.vis-healthcare {
  background:
    radial-gradient(circle at 30% 40%, rgba(58, 12, 163, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(67, 97, 238, 0.08) 0%, transparent 40%);
}

.vis-pulse {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
}

.vis-pulse polyline {
  fill: none;
  stroke: rgba(67, 97, 238, 0.5);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: pulseDraw 2.5s ease-in-out infinite;
}

.vis-heart {
  width: 22px;
  height: 20px;
  position: absolute;
  bottom: 16px;
  right: 16px;
  animation: heartBeat 1.2s ease-in-out infinite;
}

.vis-heart::before,
.vis-heart::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 20px;
  border-radius: 10px 10px 0 0;
  background: rgba(123, 95, 232, 0.6);
}

.vis-heart::before {
  left: 0;
  transform: rotate(-45deg);
  transform-origin: bottom right;
}

.vis-heart::after {
  right: 0;
  transform: rotate(45deg);
  transform-origin: bottom left;
}

@keyframes pulseDraw {
  0% { stroke-dashoffset: 400; opacity: 0.3; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -400; opacity: 0.3; }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

/* ---------- Finance: bar chart + trend line ---------- */
.vis-finance {
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
  padding: 0 12% 15%;
  background:
    radial-gradient(circle at 50% 90%, rgba(58, 12, 163, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(67, 97, 238, 0.06) 0%, transparent 40%);
}

.vis-bar {
  width: 14%;
  border-radius: 4px 4px 0 0;
  background: var(--gradient);
  opacity: 0.5;
  animation: barGrow 2s ease-out infinite alternate;
  box-shadow: 0 0 10px rgba(67, 97, 238, 0.2);
  transform-origin: bottom;
}

.vis-bar.b1 { height: 35%; animation-delay: 0s; }
.vis-bar.b2 { height: 60%; animation-delay: 0.15s; }
.vis-bar.b3 { height: 42%; animation-delay: 0.3s; }
.vis-bar.b4 { height: 78%; animation-delay: 0.45s; }
.vis-bar.b5 { height: 52%; animation-delay: 0.6s; }

.vis-chart-line {
  position: absolute;
  bottom: 15%;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(123, 95, 232, 0.5), rgba(67, 97, 238, 0.5), transparent);
  animation: chartLineGlow 2s ease-in-out infinite alternate;
}

.vis-chart-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(67, 97, 238, 0.8);
}

@keyframes barGrow {
  0% { transform: scaleY(0.65); opacity: 0.3; }
  100% { transform: scaleY(1); opacity: 0.7; }
}

@keyframes chartLineGlow {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ---------- Code: terminal + cursor ---------- */
.vis-code {
  background: rgba(6, 6, 14, 0.5);
}

.vis-terminal {
  position: absolute;
  inset: 0;
  background: transparent;
  padding: 36px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vis-terminal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(67, 97, 238, 0.06);
  border-bottom: 1px solid rgba(67, 97, 238, 0.08);
}

.vis-term-line {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(67, 97, 238, 0.35), rgba(123, 95, 232, 0.2), transparent);
  animation: termType 3s ease-out infinite;
}

.vis-term-line.l1 { width: 65%; animation-delay: 0s; }
.vis-term-line.l2 { width: 45%; animation-delay: 0.8s; }
.vis-term-line.l3 { width: 80%; animation-delay: 1.6s; }

.vis-cursor {
  width: 8px;
  height: 14px;
  background: var(--blue);
  border-radius: 1px;
  position: absolute;
  bottom: 20px;
  left: 16px;
  animation: cursorBlink 1s step-end infinite;
  box-shadow: 0 0 8px rgba(67, 97, 238, 0.6);
}

@keyframes termType {
  0% { clip-path: inset(0 100% 0 0); opacity: 0.3; }
  40% { clip-path: inset(0 0 0 0); opacity: 0.7; }
  100% { clip-path: inset(0 0 0 0); opacity: 0.5; }
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- Commerce: grid dots + flow arrow ---------- */
.vis-commerce {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(58, 12, 163, 0.1) 0%, transparent 60%);
}

.vis-grid-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(67, 97, 238, 0.35);
  justify-self: center;
  align-self: center;
  animation: dotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(67, 97, 238, 0.2);
}

.vis-grid-dot:nth-child(1) { animation-delay: 0s; }
.vis-grid-dot:nth-child(2) { animation-delay: 0.15s; }
.vis-grid-dot:nth-child(3) { animation-delay: 0.3s; }
.vis-grid-dot:nth-child(4) { animation-delay: 0.45s; }
.vis-grid-dot:nth-child(5) { animation-delay: 0.6s; background: var(--blue); box-shadow: 0 0 16px rgba(67, 97, 238, 0.6); width: 12px; height: 12px; }
.vis-grid-dot:nth-child(6) { animation-delay: 0.75s; }
.vis-grid-dot:nth-child(7) { animation-delay: 0.9s; }
.vis-grid-dot:nth-child(8) { animation-delay: 1.05s; }
.vis-grid-dot:nth-child(9) { animation-delay: 1.2s; }

.vis-flow-arrow {
  position: absolute;
  width: 70px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(123, 95, 232, 0.5));
  bottom: 22px;
  right: 14px;
  animation: flowArrowMove 2s ease-in-out infinite;
}

.vis-flow-arrow::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(123, 95, 232, 0.5);
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.5); opacity: 1; }
}

@keyframes flowArrowMove {
  0% { transform: translateX(-20px); opacity: 0; }
  50% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(20px); opacity: 0; }
}

/* ---------- Ops: interlocking gears ---------- */
.vis-ops {
  background:
    radial-gradient(circle at 40% 40%, rgba(58, 12, 163, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 65% 65%, rgba(67, 97, 238, 0.08) 0%, transparent 40%);
}

.vis-gear {
  position: absolute;
  border-radius: 50%;
  border: 2.5px solid rgba(67, 97, 238, 0.35);
}

.vis-gear::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid rgba(67, 97, 238, 0.2);
}

.vis-gear::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.3;
}

.vis-gear.g1 {
  width: 72px;
  height: 72px;
  left: 22%;
  top: 18%;
  animation: gearSpin 6s linear infinite;
  box-shadow:
    0 0 12px rgba(67, 97, 238, 0.12),
    0 -40px 0 -34px rgba(67, 97, 238, 0.3),
    0 40px 0 -34px rgba(67, 97, 238, 0.3),
    -40px 0 0 -34px rgba(67, 97, 238, 0.3),
    40px 0 0 -34px rgba(67, 97, 238, 0.3),
    28px -28px 0 -34px rgba(67, 97, 238, 0.3),
    -28px 28px 0 -34px rgba(67, 97, 238, 0.3),
    28px 28px 0 -34px rgba(67, 97, 238, 0.3),
    -28px -28px 0 -34px rgba(67, 97, 238, 0.3);
}

.vis-gear.g2 {
  width: 54px;
  height: 54px;
  right: 22%;
  bottom: 18%;
  animation: gearSpin 6s linear infinite reverse;
  box-shadow:
    0 0 12px rgba(123, 95, 232, 0.12),
    0 -30px 0 -24px rgba(123, 95, 232, 0.3),
    0 30px 0 -24px rgba(123, 95, 232, 0.3),
    -30px 0 0 -24px rgba(123, 95, 232, 0.3),
    30px 0 0 -24px rgba(123, 95, 232, 0.3),
    22px -22px 0 -24px rgba(123, 95, 232, 0.3),
    -22px 22px 0 -24px rgba(123, 95, 232, 0.3);
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Education: lightbulb + rays ---------- */
.vis-edu {
  background:
    radial-gradient(circle at 50% 40%, rgba(58, 12, 163, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 40%, rgba(67, 97, 238, 0.06) 0%, transparent 60%);
}

.vis-bulb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vis-bulb-glow {
  width: 44px;
  height: 56px;
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(67, 97, 238, 0.5) 0%, rgba(123, 95, 232, 0.3) 70%, rgba(123, 95, 232, 0.1) 100%);
  box-shadow: 0 0 40px rgba(67, 97, 238, 0.4), 0 0 80px rgba(58, 12, 163, 0.2);
  animation: bulbGlow 2.5s ease-in-out infinite alternate;
  position: relative;
}

.vis-bulb-glow::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 10px;
  border-radius: 0 0 4px 4px;
  background: rgba(67, 97, 238, 0.25);
  border: 1px solid rgba(67, 97, 238, 0.2);
  border-top: none;
}

.vis-rays {
  position: absolute;
  inset: -50px;
}

.vis-rays span {
  position: absolute;
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, rgba(67, 97, 238, 0.5), transparent);
  border-radius: 2px;
  left: 50%;
  top: 0;
  transform-origin: 50% calc(50% + 50px);
}

.vis-rays span:nth-child(1) { transform: rotate(0deg); animation: rayPulse 2s ease-in-out infinite 0s; }
.vis-rays span:nth-child(2) { transform: rotate(90deg); animation: rayPulse 2s ease-in-out infinite 0.5s; }
.vis-rays span:nth-child(3) { transform: rotate(180deg); animation: rayPulse 2s ease-in-out infinite 1s; }
.vis-rays span:nth-child(4) { transform: rotate(270deg); animation: rayPulse 2s ease-in-out infinite 1.5s; }

@keyframes bulbGlow {
  0% { box-shadow: 0 0 40px rgba(67, 97, 238, 0.3), 0 0 80px rgba(58, 12, 163, 0.15); opacity: 0.7; }
  100% { box-shadow: 0 0 50px rgba(67, 97, 238, 0.6), 0 0 100px rgba(58, 12, 163, 0.3); opacity: 1; }
}

@keyframes rayPulse {
  0%, 100% { opacity: 0.3; height: 18px; }
  50% { opacity: 0.8; height: 26px; }
}

.card-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(67, 97, 238, 0.1);
  border: 1px solid rgba(67, 97, 238, 0.15);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.card ul {
  padding-left: 16px;
  list-style: disc;
}

.card ul li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 4px;
}

.card-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(58, 12, 163, 0.25);
  letter-spacing: 0.02em;
}

.card-meta {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(67, 97, 238, 0.06);
  border: 1px solid rgba(67, 97, 238, 0.08);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  margin-top: 12px;
  line-height: 1.5;
}

/* Industry (compact) cards */
.card-compact {
  padding: 0;
  overflow: hidden;
}

.card-compact .card-badge {
  position: relative;
  margin: -20px 0 0 20px;
  z-index: 2;
}

.card-compact p,
.card-compact .card-meta {
  padding-left: 20px;
  padding-right: 20px;
}

.card-compact p {
  font-size: 0.88rem;
  margin-top: 14px;
}

.card-compact .card-meta {
  margin-left: 20px;
  margin-right: 20px;
  margin-bottom: 20px;
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.product-card {
  padding-left: 28px;
}

.product-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient);
  border-radius: 0 4px 4px 0;
}

.product-accent.alt {
  background: linear-gradient(180deg, #4361EE, #60A5FA);
}

.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.product-card h4 {
  font-size: 1.1rem;
  margin-top: 8px;
}

.product-badge {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(58, 12, 163, 0.12);
  border: 1px solid rgba(67, 97, 238, 0.2);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-badge.alt {
  background: rgba(67, 97, 238, 0.1);
  color: #60A5FA;
  border-color: rgba(96, 165, 250, 0.2);
}

/* =============================================
   METRICS BANNER
   ============================================= */
.metrics-banner {
  position: relative;
  z-index: 1;
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(58, 12, 163, 0.08), rgba(67, 97, 238, 0.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric {
  text-align: center;
  padding: 24px 16px;
}

.metric h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.metric p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* =============================================
   TIMELINE (PROCESS)
   ============================================= */
.timeline {
  position: relative;
  padding-left: 60px;
}

.timeline-line {
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform-origin: top;
}

.timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--gradient);
  border-radius: 2px;
  transition: height 0.3s;
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
}

.timeline-step:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -60px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.timeline-marker span {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-step:hover .timeline-marker {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(58, 12, 163, 0.2);
}

.timeline-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  flex: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.timeline-step:hover .timeline-content {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.timeline-content h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =============================================
   CASE STUDIES
   ============================================= */
.case-card { padding-top: 28px; }

.case-accent {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--gradient);
  border-radius: 0 0 3px 3px;
}

.case-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.case-stat {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.case-stat strong {
  font-size: 1.1rem;
}

/* =============================================
   CTA
   ============================================= */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(58, 12, 163, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 30% 60%, rgba(67, 97, 238, 0.08), transparent);
  z-index: -1;
}

.cta-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.cta-content .section-lede {
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0 32px;
}

.footer-divider {
  height: 1px;
  background: var(--gradient);
  opacity: 0.2;
  margin-bottom: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  color: var(--muted);
  font-size: 0.82rem;
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(6px);
  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

[data-delay="150"].visible { transition-delay: 150ms; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: auto; padding: 140px 0 60px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { width: calc(100% - 32px); top: 10px; }
  .nav-links { display: none; }
  .card-grid.cols-3,
  .card-grid.cols-2 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: 48px; }
  .timeline-marker { left: -48px; width: 40px; height: 40px; }
  .section { padding: 60px 0; }
  .cursor-glow { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scanlines, .cursor-glow, #particles { display: none; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
