/* ==========================================================================
   CareAPI Marketing — Premium Dark & Gold Design System
   ========================================================================== */

:root {
  --bg-base: #090a0f;
  --bg-surface: #11131c;
  --bg-elevated: #171a26;
  --brand: #f1b90c;
  --brand-light: #ffdb58;
  --brand-dark: #c99700;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-brand: rgba(241, 185, 12, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: #f3f4f6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #262938;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-dark);
}

/* Subtle Grid Background */
.bg-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(17, 19, 28, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-card {
  background: linear-gradient(180deg, rgba(25, 28, 41, 0.78) 0%, rgba(15, 17, 25, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 185, 12, 0.32);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 24px -8px rgba(241, 185, 12, 0.14);
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f1b90c 55%, #ffdf70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-gradient {
  background: linear-gradient(90deg, #f1b90c 0%, #ffdf70 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Primary Glow CTA */
.glow-button {
  box-shadow: 0 0 24px rgba(241, 185, 12, 0.28);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-button:hover {
  box-shadow: 0 0 34px rgba(241, 185, 12, 0.55);
  transform: translateY(-2px);
}

.glow-button:active {
  transform: translateY(0);
}

/* Ambient Blob Animations */
@keyframes blobFloat {
  0%, 100% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(28px, -36px) scale(1.08);
  }
  66% {
    transform: translate(-24px, 24px) scale(0.94);
  }
}

.animate-blob {
  animation: blobFloat 12s ease-in-out infinite;
}

.animation-delay-2000 {
  animation-delay: 2.5s;
}

.animation-delay-4000 {
  animation-delay: 5s;
}

/* Infinite Marquee */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-mask {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Code Block */
.code-font {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Active Nav Link */
.nav-link-active {
  color: #f1b90c !important;
  position: relative;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1b90c, #ffdb58);
}

/* Mobile Menu Transition */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.25s ease;
}
