/*
 * Nabii Intelligence Platform — Design System
 * Clean, modern aesthetic with Bebas Neue titles and dark lime accents
 */

/* =============================================
   TYPOGRAPHY
   ============================================= */
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bebas Neue for headings */
h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  letter-spacing: 0.02em;
}

/* Override for small UI text that shouldn't use Bebas */
.font-body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: normal;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}

/* =============================================
   LINE CLAMPING
   ============================================= */
.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* =============================================
   FOCUS & ACCESSIBILITY
   ============================================= */
*:focus-visible {
  outline: 2px solid #65a30d;
  outline-offset: 2px;
}

/* =============================================
   NO-SCROLLBAR UTILITY
   ============================================= */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =============================================
   MICRO-ANIMATIONS
   ============================================= */

/* Fade-in from bottom */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Staggered delays */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

/* Fade-in from left */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out forwards;
  opacity: 0;
}

/* Scale-in */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
  opacity: 0;
}

/* Floating (subtle) */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Shimmer / Skeleton */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.08) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Pulse slow */
@keyframes pulse-slow {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2s ease-in-out infinite;
}

/* Counter tick-up */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-count-up {
  animation: countUp 0.4s ease-out forwards;
}

/* Marquee for tickers */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 25s linear infinite;
}

/* Spin slow */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 12s linear infinite;
}

/* =============================================
   CARD SYSTEM — Extra breathing room
   ============================================= */
.card {
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

@media (prefers-color-scheme: dark) {
  .card {
    background: rgba(30, 30, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
}

/* Card without hover lift */
.card-static {
  background: white;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

@media (prefers-color-scheme: dark) {
  .card-static {
    background: rgba(30, 30, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }
}

/* =============================================
   GRADIENT UTILITIES — Dark lime accent
   ============================================= */
.gradient-mint {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

.gradient-lavender {
  background: linear-gradient(135deg, #EDE7F6 0%, #D1C4E9 100%);
}

.gradient-peach {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
}

.gradient-sky {
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

/* Brand gradient — dark lime */
.gradient-brand {
  background: linear-gradient(135deg, #4d7c0f 0%, #65a30d 100%);
}

/* Sentiment bar */
.sentiment-bar {
  background: linear-gradient(to right, #3b82f6 0%, #3b82f6 33%, #10b981 33%, #10b981 66%, #f59e0b 66%, #f59e0b 100%);
}

/* =============================================
   GLASS MORPHISM
   ============================================= */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (prefers-color-scheme: dark) {
  .glass {
    background: rgba(20, 20, 30, 0.7);
  }
}

/* =============================================
   SCROLL REVEAL (JS toggles .revealed)
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   INTERACTIVE ELEMENTS
   ============================================= */
a,
button {
  transition: all 0.2s ease;
}

/* Pricing card popular glow — dark lime */
.pricing-popular {
  box-shadow: 0 0 0 2px #65a30d, 0 20px 40px rgba(101, 163, 13, 0.15);
}

/* Nav link active indicator — dark lime */
.nav-active {
  background: rgba(101, 163, 13, 0.08);
  color: #4d7c0f;
}

@media (prefers-color-scheme: dark) {
  .nav-active {
    background: rgba(101, 163, 13, 0.15);
    color: #a3e635;
  }
}

/* =============================================
   COUNTER ANIMATION TARGET (JS)
   ============================================= */
.counter {
  font-variant-numeric: tabular-nums;
}