/* ─── MozStock Landing Page — Custom Styles ─── */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(10, 90, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(10, 90, 255, 0.25);
}

#navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

#navbar .nav-link:hover {
  color: #fff;
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

/* ─── Hero gradient background ─── */
.hero-bg {
  background: linear-gradient(135deg, #0A5AFF 0%, #0040CC 60%, #002899 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(255, 255, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 200, 100, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bg>* {
  position: relative;
}

/* ─── Feature cards ─── */
.feature-card {
  background: #fff;
  border: 1px solid #cccccc;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  border-color: #0A5AFF;
  box-shadow: 0 8px 32px rgba(10, 90, 255, 0.12);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ─── Permission badge ─── */
.perm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Tailwind custom color extensions (used via inline style for hero) ─── */
:root {
  --primary: #0A5AFF;
  --primary-dark: #0747C9;
  --primary-light: #EEF3FF;
  --green: #16A34A;
  --green-light: #DCFCE7;
}

/* ─── Smooth anchor offset for fixed navbar ─── */
[id] {
  scroll-margin-top: 80px;
}

/* ─── Mobile menu transition ─── */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* ─── Download button pulse ─── */
.btn-download-pulse {
  animation: pulse-ring 2s ease infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(10, 90, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(10, 90, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(10, 90, 255, 0);
  }
}

/* ─── Animated bar chart ─── */
.chart-bar {
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Responsive tweaks ─── */
@media (max-width: 640px) {
  .hero-bg {
    min-height: 100svh;
  }
}