/* ─── Logo on dark backgrounds ─── */
/* Boosts the light/pastel logo so it's clearly visible on dark navy.
   Remove or adjust if your logo already looks correct on dark backgrounds. */
.logo-dark-bg {
  filter: brightness(1.6) saturate(1.4) contrast(1.1) drop-shadow(0 0 8px rgba(139,92,246,0.35));
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080C18; }
::-webkit-scrollbar-thumb { background: #7C3AED; border-radius: 3px; }

/* ─── Hero background ─── */
.hero-bg {
  background: radial-gradient(ellipse 90% 55% at 50% -5%, rgba(124,58,237,0.35) 0%, transparent 65%),
              linear-gradient(180deg, #0B0F1C 0%, #080C18 100%);
}

/* ─── Dot grid ─── */
.grid-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ─── Gradient text ─── */
.text-gradient {
  background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 50%, #C4B5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── CTA gradient ─── */
.cta-gradient {
  background: linear-gradient(135deg, #5B21B6 0%, #7C3AED 45%, #8B5CF6 100%);
  position: relative;
  overflow: hidden;
}
.cta-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── Navbar ─── */
#navbar { background: transparent; }
#navbar.scrolled {
  background: rgba(8, 12, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ─── Language switcher ─── */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 3px;
  gap: 1px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.40);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
  line-height: 1.4;
}
.lang-btn:hover:not(.active) { color: rgba(255,255,255,0.85); }
.lang-btn.active {
  background: #7C3AED;
  color: #fff;
  box-shadow: 0 0 10px rgba(124,58,237,0.45);
}

/* ─── Dashboard card ─── */
.dashboard-card {
  transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 50px rgba(124,58,237,0.18);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.dashboard-card:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

/* ─── Float animation ─── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
.anim-float { animation: float 3.5s ease-in-out infinite; }

/* ─── Scroll fade-up ─── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.anim-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.anim-delay-100 { transition-delay: 0.10s; }
.anim-delay-200 { transition-delay: 0.20s; }
.anim-delay-300 { transition-delay: 0.30s; }
.anim-delay-400 { transition-delay: 0.40s; }

/* ─── Feature cards ─── */
.feature-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  box-shadow: 0 8px 40px rgba(124,58,237,0.18);
  transform: translateY(-5px);
}

/* ─── Compat logos ─── */
.compat-logo { transition: color 0.2s ease, transform 0.2s ease; }
.compat-logo:hover { transform: scale(1.08); }

/* ─── Step connector ─── */
.step-connector {
  position: absolute;
  top: 40px;
  left: calc(33.333% + 40px);
  right: calc(33.333% + 40px);
  height: 1px;
  background: linear-gradient(90deg, #7C3AED, #8B5CF6, #7C3AED);
  opacity: 0.3;
}

/* ─── Sparkline bars ─── */
.sparkbar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 24px;
  margin-top: 8px;
}
.sparkbar span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: currentColor;
  opacity: 0.7;
}

/* ─── Score ring ─── */
.score-ring { transform-origin: center; transform: rotate(-90deg); }
