/* =========================
   BASE RESET
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #0D2B45;
}

/* =========================
   COLORS CUSTOM
========================= */

:root {
  --primary: #5cc02a;
  --navy-deep: #0D2B45;
  --background-light: #f7f8f6;
  --background-dark: #172012;
}

/* =========================
   NAVBAR EFFECT
========================= */

#navbar {
  background: transparent;
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding-top: 14px;
  padding-bottom: 14px;
  margin-top: 12px;
}

/* =========================
   BUTTON PRIMARY
========================= */

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(92, 192, 42, 0.35);
}

/* =========================
   SOFT PULSE
========================= */

@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(92, 192, 42, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(92, 192, 42, 0);
  }
}

.pulse-dgii {
  animation: softPulse 2.5s infinite;
}

/* =========================
   REVEAL ANIMATION
========================= */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
}

.reveal.active {
  animation: slideUp 0.8s ease forwards;
}

/* =========================
   STOCK BAR
========================= */

.stock-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #facc15, #ef4444);
  width: 80%;
  transition: width 3s ease;
}

/* =========================
   KPI EFFECT
========================= */

@keyframes countUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kpi-reveal {
  opacity: 0;
}

.kpi-reveal.active {
  animation: countUpFade 0.8s ease forwards;
}

/* =========================
   GRAPH BAR
========================= */

.bar {
  width: 14px;
  border-radius: 6px;
  height: 0;
  transition: height 1.2s ease;
}

.bar.animate {
  height: var(--h);
}

/* =========================
   FEATURE CARDS
========================= */

.feature-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}

.feature-card.show {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: rgba(34,197,94,0.3);
}

.feature-card:hover .icon-animate {
  transform: scale(1.1);
}

.feature-card:hover .icon-glow {
  box-shadow: 0 0 35px rgba(34,197,94,0.45);
}

.feature-card:hover .badge-animate {
  transform: translateX(0) scale(1.05);
}

/* =========================
   LOGO SCROLL
========================= */

.scroll-wrapper {
  width: 100%;
  overflow: hidden;
}

.scroll-track {
  display: flex;
  width: max-content;
  animation: scrollInfinite 30s linear infinite;
}

@keyframes scrollInfinite {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.logo-item {
  font-weight: 600;
  font-size: 1rem;
  color: #64748b;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.logo-item:hover {
  color: var(--navy-deep);
  transform: scale(1.05);
}

/* =========================
   TABLE HOVER
========================= */

table tbody tr {
  transition: all 0.3s ease;
}

table tbody tr:hover {
  background-color: #f8fafc;
}

/* =========================
   FOOTER
========================= */

.footer-modern {
  background: #0D2B45;
  color: #cbd5e1;
  padding: 60px 0;
}

.footer-modern a {
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.footer-modern a:hover {
  color: #ffffff;
}

/* =========================
   RESPONSIVE FIX
========================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   SMOOTH TRANSITIONS GLOBAL
========================= */

a, button {
  transition: all 0.3s ease;
}
