:root {
  --bg-dark: #06080f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-glow: rgba(59, 130, 246, 0.35);
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --accent-3: #06b6d4;
  --text-muted: #94a3b8;
  --glow-blue: rgba(59, 130, 246, 0.7);
  --glow-violet: rgba(139, 92, 246, 0.7);
  --glow-cyan: rgba(6, 182, 212, 0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: #e2e8f0;
  overflow-x: hidden;
}

/* ── Animated background mesh ── */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(59, 130, 246, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139, 92, 246, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    var(--bg-dark);
  animation: mesh-shift 12s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  0% {
    background:
      radial-gradient(ellipse 80% 60% at 20% 10%, rgba(59, 130, 246, 0.22) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139, 92, 246, 0.18) 0%, transparent 55%),
      radial-gradient(ellipse 50% 40% at 50% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
      var(--bg-dark);
  }
  100% {
    background:
      radial-gradient(ellipse 90% 70% at 30% 20%, rgba(139, 92, 246, 0.25) 0%, transparent 60%),
      radial-gradient(ellipse 70% 60% at 70% 30%, rgba(6, 182, 212, 0.2) 0%, transparent 55%),
      radial-gradient(ellipse 60% 50% at 40% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
      var(--bg-dark);
  }
}

.mesh-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 80%);
  animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px; }
}

/* ── Floating particles ── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  animation: particle-rise linear infinite;
}

.particles span:nth-child(1) { left: 10%; bottom: -10px; background: #60a5fa; box-shadow: 0 0 12px #60a5fa; animation-duration: 14s; animation-delay: 0s; }
.particles span:nth-child(2) { left: 25%; bottom: -10px; background: #a78bfa; box-shadow: 0 0 12px #a78bfa; animation-duration: 18s; animation-delay: -3s; width: 4px; height: 4px; }
.particles span:nth-child(3) { left: 45%; bottom: -10px; background: #22d3ee; box-shadow: 0 0 14px #22d3ee; animation-duration: 12s; animation-delay: -6s; }
.particles span:nth-child(4) { left: 60%; bottom: -10px; background: #60a5fa; box-shadow: 0 0 10px #60a5fa; animation-duration: 16s; animation-delay: -2s; }
.particles span:nth-child(5) { left: 75%; bottom: -10px; background: #c084fc; box-shadow: 0 0 12px #c084fc; animation-duration: 20s; animation-delay: -8s; width: 5px; height: 5px; }
.particles span:nth-child(6) { left: 88%; bottom: -10px; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; animation-duration: 15s; animation-delay: -4s; }
.particles span:nth-child(7) { left: 35%; bottom: -10px; background: #818cf8; box-shadow: 0 0 16px #818cf8; animation-duration: 22s; animation-delay: -10s; width: 2px; height: 2px; }
.particles span:nth-child(8) { left: 55%; bottom: -10px; background: #38bdf8; box-shadow: 0 0 12px #38bdf8; animation-duration: 17s; animation-delay: -7s; }

@keyframes particle-rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* ── Floating orbs ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.orb-1 { width: 400px; height: 400px; background: rgba(59,130,246,0.35); top: -10%; right: -5%; animation: float 8s ease-in-out infinite, orb-pulse 4s ease-in-out infinite; }
.orb-2 { width: 300px; height: 300px; background: rgba(139,92,246,0.3); bottom: 10%; left: -5%; animation: float 10s ease-in-out infinite -3s, orb-pulse 5s ease-in-out infinite -1s; }
.orb-3 { width: 200px; height: 200px; background: rgba(6,182,212,0.25); top: 40%; left: 40%; animation: float 7s ease-in-out infinite -5s, orb-pulse 3.5s ease-in-out infinite -2s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 25px) scale(0.92); }
}

@keyframes orb-pulse {
  0%, 100% { opacity: 0.7; filter: blur(80px); }
  50% { opacity: 1; filter: blur(90px); }
}

/* ── Nav ── */
.nav-glass {
  background: rgba(6, 8, 15, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-glass.scrolled {
  background: rgba(6, 8, 15, 0.92);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.nav-link {
  position: relative;
  color: #94a3b8;
  transition: color 0.2s, text-shadow 0.3s;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent);
  transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ── Gradient text ── */
.gradient-text {
  display: inline-block;
  padding-bottom: 0.12em;
  line-height: 1.2;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.5));
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Hero glowing headline (no clip – full descenders) ── */
.hero-headline-accent {
  line-height: 1.35;
  overflow: visible;
}

.hero-glow {
  display: inline;
  animation: text-glow-pulse 3s ease-in-out infinite;
}

.hero-glow-blue {
  color: #60a5fa;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.9), 0 0 40px rgba(96, 165, 250, 0.5), 0 0 80px rgba(96, 165, 250, 0.25);
  animation-delay: 0s;
}

.hero-glow-violet {
  color: #a78bfa;
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.9), 0 0 40px rgba(167, 139, 250, 0.5), 0 0 80px rgba(139, 92, 246, 0.25);
  animation-delay: 0.4s;
}

.hero-glow-cyan {
  color: #22d3ee;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.9), 0 0 40px rgba(34, 211, 238, 0.5), 0 0 80px rgba(6, 182, 212, 0.25);
  animation-delay: 0.8s;
}

@keyframes text-glow-pulse {
  0%, 100% { filter: brightness(1); opacity: 1; }
  50% { filter: brightness(1.25); opacity: 1; }
}

/* ── Glow cards (animated border) ── */
.glow-card {
  position: relative;
  animation: card-glow-pulse 4s ease-in-out infinite;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
  background-size: 300% 100%;
  animation: border-flow 4s linear infinite;
  z-index: -1;
  opacity: 0.45;
}

.glow-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  z-index: -1;
}

@keyframes border-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes card-glow-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 50px rgba(139, 92, 246, 0.2); }
}

/* ── Buttons ── */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
  background-size: 200% auto;
  animation: btn-gradient 3s linear infinite, btn-glow 2s ease-in-out infinite;
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  overflow: hidden;
  transition: transform 0.2s;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 0 60px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.8), 0 0 80px rgba(139, 92, 246, 0.4);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 60%);
  animation: btn-shine 2.5s ease-in-out infinite;
}
.btn-primary svg { position: relative; z-index: 1; animation: arrow-nudge 1.5s ease-in-out infinite; }

@keyframes btn-gradient {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 0 60px rgba(99, 102, 241, 0.25); }
  50% { box-shadow: 0 0 45px rgba(59, 130, 246, 0.75), 0 0 90px rgba(139, 92, 246, 0.35); }
}
@keyframes btn-shine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  color: #e2e8f0;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.05);
}
.btn-ghost:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
  color: #fff;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #93c5fd;
  animation: badge-glow 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.45); border-color: rgba(96, 165, 250, 0.7); }
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px #22c55e;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.6), 0 0 8px #22c55e; }
  50% { opacity: 1; box-shadow: 0 0 0 8px rgba(34,197,94,0), 0 0 16px #22c55e; }
}

/* ── Hero image frame ── */
.hero-frame {
  position: relative;
  animation: frame-float 6s ease-in-out infinite;
}
.hero-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
  background-size: 300% 300%;
  z-index: -1;
  animation: border-flow 3s linear infinite;
}
.hero-frame::after {
  content: '';
  position: absolute;
  inset: -25px;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(139,92,246,0.4));
  filter: blur(35px);
  z-index: -2;
  animation: frame-glow 3s ease-in-out infinite;
}

@keyframes frame-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes frame-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ── Stats bar ── */
.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #93c5fd, #c084fc);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite, stat-glow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(147, 197, 253, 0.4));
}

@keyframes stat-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(147, 197, 253, 0.3)); }
  50% { filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.6)); }
}

/* ── Section styling ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation: label-flicker 4s ease-in-out infinite;
}

@keyframes label-flicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
  50% { opacity: 0.85; text-shadow: 0 0 25px rgba(59, 130, 246, 0.8); }
}

.section-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
}

/* ── Service cards ── */
.service-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.06));
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: card-shine 6s ease-in-out infinite;
}
.service-card:nth-child(2)::after { animation-delay: -1s; }
.service-card:nth-child(3)::after { animation-delay: -2s; }
.service-card:nth-child(4)::after { animation-delay: -3s; }
.service-card:nth-child(5)::after { animation-delay: -4s; }

@keyframes card-shine {
  0% { left: -100%; }
  20%, 100% { left: 150%; }
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25), 0 0 40px rgba(139, 92, 246, 0.15);
}
.service-card:hover::before { opacity: 1; }
.service-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(139,92,246,0.08));
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
  animation: featured-pulse 4s ease-in-out infinite;
}

@keyframes featured-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.15); }
  50% { box-shadow: 0 0 50px rgba(139, 92, 246, 0.3); }
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(139,92,246,0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  animation: icon-glow 3s ease-in-out infinite;
}

@keyframes icon-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.4); }
}

/* ── Pricing cards ── */
.price-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}
.price-card-standard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.price-card-popular {
  background: linear-gradient(160deg, rgba(59,130,246,0.18) 0%, rgba(139,92,246,0.12) 100%);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.25);
  animation: popular-glow 3s ease-in-out infinite;
}

@keyframes popular-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.2); }
  50% { box-shadow: 0 0 70px rgba(139, 92, 246, 0.4); }
}

.price-card-popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
  background-size: 300% 100%;
  animation: border-flow 3s linear infinite;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff 30%, #93c5fd, #c084fc);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  filter: drop-shadow(0 0 15px rgba(147, 197, 253, 0.4));
}

/* ── Marquee ── */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 20s linear infinite;
  width: max-content;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  flex-shrink: 0;
  padding: 0.5rem 1.25rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #93c5fd;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
  transition: all 0.3s;
}
.marquee-item:hover {
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.35);
  border-color: rgba(96, 165, 250, 0.5);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Project cards ── */
.project-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 50px rgba(59, 130, 246, 0.2);
}
.project-thumb {
  height: 12rem;
  position: relative;
  overflow: hidden;
}
.project-thumb img.absolute {
  position: absolute;
  inset: 0;
}
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,8,15,0.8) 0%, transparent 60%);
}

/* ── Contact form ── */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.875rem;
  color: #e2e8f0;
  font-size: 0.9375rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-input::placeholder { color: #64748b; }
.form-input:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 0 25px rgba(59, 130, 246, 0.15);
}

/* ── Tag pills ── */
.tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #93c5fd;
  transition: all 0.3s;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}
.tag:hover {
  background: rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
  color: #bfdbfe;
}

/* ── Footer gradient line ── */
.footer-gradient-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.6), rgba(139,92,246,0.6), rgba(6,182,212,0.6), transparent);
  background-size: 200% 100%;
  animation: border-flow 4s linear infinite;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* ── Scroll indicator ── */
.scroll-indicator {
  animation: bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .service-card.featured { grid-column: span 1; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stat-item:last-child { border-bottom: none; }
}

/* ── Site Logo ── */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.site-logo:hover { opacity: 0.92; }
.site-logo-icon {
  flex-shrink: 0;
  border-radius: 0.625rem;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
  animation: logo-glow 3s ease-in-out infinite;
}
@keyframes logo-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.5); }
}
.site-logo-text { line-height: 1.2; }
.site-logo-footer .site-logo-icon { width: 2.25rem; height: 2.25rem; }

/* ── KI Chat Widget ── */
#ki-chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  font-family: 'Inter', system-ui, sans-serif;
}

#ki-chat-toggle {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
  background-size: 200% auto;
  animation: btn-gradient 3s linear infinite, btn-glow 2s ease-in-out infinite;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
#ki-chat-toggle:hover { transform: scale(1.08); }

.ki-chat-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.5);
  animation: chat-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes chat-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

#ki-chat-panel {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  z-index: 2;
  width: min(22rem, calc(100vw - 2rem));
  height: 28rem;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.15);
  animation: chat-slide-up 0.3s ease-out;
}
#ki-chat-panel.hidden { display: none !important; }
@keyframes chat-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ki-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(139,92,246,0.08));
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}
.ki-chat-header-info { display: flex; align-items: center; gap: 0.75rem; }
.ki-chat-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}
.ki-chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ki-chat-title { font-weight: 700; color: #fff; font-size: 0.9375rem; margin: 0; }
.ki-chat-subtitle { font-size: 0.75rem; color: #64748b; margin: 0; display: flex; align-items: center; gap: 0.375rem; }
.ki-chat-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}
.ki-chat-close-btn,
#ki-chat-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  flex-shrink: 0;
}
.ki-chat-close-btn:hover,
#ki-chat-close:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.05);
}
.ki-chat-close-btn:active,
#ki-chat-close:active { transform: scale(0.95); }

.ki-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

.ki-chat-msg {
  max-width: 88%;
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.ki-chat-msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-bottom-left-radius: 0.25rem;
}
.ki-chat-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(59,130,246,0.35), rgba(99,102,241,0.3));
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #e2e8f0;
  border-bottom-right-radius: 0.25rem;
}
.ki-chat-msg strong { color: #93c5fd; font-weight: 600; }

.ki-chat-typing {
  display: flex; gap: 4px; align-items: center; padding: 0.75rem 1rem;
}
.ki-chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #64748b;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.ki-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.ki-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ki-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0 0.75rem 0.5rem;
}
.ki-chat-chip {
  padding: 0.3125rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.ki-chat-chip:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.ki-chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
#ki-chat-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #e2e8f0;
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#ki-chat-input::placeholder { color: #475569; }
#ki-chat-input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
#ki-chat-send {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
#ki-chat-send:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
#ki-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

.ki-chat-footer {
  text-align: center;
  font-size: 0.625rem;
  color: #475569;
  padding: 0 0.75rem 0.625rem;
  margin: 0;
}
.ki-chat-footer a { color: #64748b; text-decoration: underline; }
.ki-chat-footer a:hover { color: #93c5fd; }

@media (max-width: 480px) {
  #ki-chat-widget { bottom: 1rem; right: 1rem; }
  #ki-chat-panel { width: calc(100vw - 2rem); height: 26rem; }
}
