html {
  scroll-behavior: smooth;
}

::selection {
  background-color: #2563eb;
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: #2563eb;
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus {
  left: 1rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Nav */
.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  border-radius: 0.5rem;
  transition: color 0.2s ease;
}
.dark .nav-link { color: #cbd5e1; }
.nav-link:hover { color: #2563eb; }
.dark .nav-link:hover { color: #60a5fa; }

.mobile-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  border-radius: 0.75rem;
  transition: background 0.2s ease;
}
.dark .mobile-link { color: #cbd5e1; }
.mobile-link:hover { background: #eff6ff; color: #2563eb; }
.dark .mobile-link:hover { background: rgba(37,99,235,0.15); color: #60a5fa; }

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: 0.9rem;
  transition: background 0.2s ease;
}
.mega-link:hover { background: #eff6ff; }
.dark .mega-link:hover { background: rgba(37,99,235,0.12); }
.mega-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}
.dark .mega-title { color: #fff; }
.mega-sub {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}
.dark .mega-sub { color: #94a3b8; }

/* Footer */
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f1f5f9;
  margin-bottom: 1rem;
}
.footer-link {
  color: #94a3b8;
  transition: color 0.2s ease;
}
.footer-link:hover { color: #fff; }
.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.06);
  color: #cbd5e1;
  transition: all 0.2s ease;
}
.social-icon:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
}

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Gradient text & surfaces */
.gradient-text {
  background: linear-gradient(90deg, #2563eb, #7c3aed, #14b8a6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient 8s ease infinite;
}
.gradient-mesh {
  background-image:
    radial-gradient(at 20% 20%, rgba(37,99,235,0.18) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(124,58,237,0.15) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(20,184,166,0.14) 0px, transparent 50%);
}
.dark .gradient-mesh {
  background-image:
    radial-gradient(at 20% 20%, rgba(37,99,235,0.25) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(124,58,237,0.22) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(20,184,166,0.18) 0px, transparent 50%);
}

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.4);
}
.dark .glass {
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Cards */
.card-premium {
  border-radius: 1.5rem;
  border: 1px solid rgba(15,23,42,0.06);
  background: #fff;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}
.dark .card-premium {
  background: #0f172a;
  border-color: rgba(255,255,255,0.08);
}
.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(15,23,42,0.15);
  border-color: rgba(37,99,235,0.25);
}
.dark .card-premium:hover {
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

/* Ripple */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.ripple-effect {
  position: absolute;
  border-radius: 9999px;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(2.5); opacity: 0; }
}

/* Counter section number */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Timeline */
.timeline-line {
  background: linear-gradient(to bottom, #2563eb, #7c3aed, #14b8a6);
}

/* Blob decoration */
.blob {
  filter: blur(60px);
  opacity: 0.5;
}

/* Filter pills */
.filter-pill {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.dark .filter-pill {
  color: #cbd5e1;
  background: #1e293b;
}
.filter-pill:hover {
  border-color: #2563eb;
  color: #2563eb;
}
.filter-pill-active {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: #fff !important;
}

/* Section labels */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}
.dark .section-eyebrow {
  color: #60a5fa;
}
