:root {
  --bg-primary: #1a0533;
  --bg-surface: #2c0a4a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #c4b5fd;
  --text-muted: #a78bfa;

  --primary-500: #5e35b1;
  --primary-400: #7e57c2;
  --primary-600: #4527a0;
  --highlight-500: #f59e0b;
  --highlight-400: #fbbf24;
  --customer-500: #2e7d32;
  --supplier-500: #ff695f;
  --warning-500: #f57c00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg-primary);
  color: white;
  overflow-x: hidden;
}

/* ---- Animations ---- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes float-delayed {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}
.animate-float-delayed {
  animation: float-delayed 5s ease-in-out 1s infinite;
}
.animate-slide-up {
  animation: slide-up 0.7s ease-out forwards;
}
.animate-bounce {
  animation: bounce 2s infinite;
}

/* ---- Hero Gradient ---- */
.hero-gradient {
  background:
    radial-gradient(
      ellipse at 30% 0%,
      rgba(94, 53, 177, 0.25) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 10%,
      rgba(245, 158, 11, 0.1) 0%,
      transparent 50%
    ),
    linear-gradient(to bottom, var(--bg-primary), var(--bg-surface));
}

/* ---- Glassmorphism ---- */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Typography ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--customer-500), var(--supplier-500));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* ---- Buttons ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  transition: all 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(94, 53, 177, 0.4);
}

/* ---- Navbar ---- */
.nav-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(26, 5, 51, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(94, 53, 177, 0.4);
  box-shadow: 0 4px 12px rgba(94, 53, 177, 0.3);
}

/* ---- Phone mockup & hero carousel ---- */
.phone-mockup {
  background: linear-gradient(145deg, #2c0a4a, #1a0533);
  border-radius: 2.5rem;
  padding: 0.75rem;
  box-shadow:
    0 25px 60px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}
.phone-screen {
  border-radius: 2rem;
  overflow: hidden;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s;
  cursor: pointer;
}
.hero-dot.active {
  background: var(--primary-500);
}

.carousel-slide-hero {
  display: none;
  animation: fade-in 0.5s ease-in-out;
}
.carousel-slide-hero.active {
  display: block;
}

/* ---- Feature Cards ---- */
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
  border-color: rgba(94, 53, 177, 0.3);
}

/* ---- Scroll Reveal ---- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Carousel (main) ---- */
.carousel-slide {
  display: none;
  animation: fade-in 0.5s ease-in-out;
}
.carousel-slide.active {
  display: block;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s;
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--primary-500);
}

/* ---- FAQ ---- */
.faq-content {
  display: block;
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.4s ease-out,
    padding 0.3s ease-out;
  padding: 0 1.25rem;
}
.faq-content.open {
  max-height: 300px;
  padding: 0.75rem 1.25rem 1.25rem;
}
.faq-content.hidden {
  display: none;
}
.faq-content:not(.hidden) {
  display: block;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-icon.rotated {
  transform: rotate(45deg);
}

/* ---- Support Modal ---- */
.support-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.support-modal-overlay.open {
  display: flex;
}
.support-modal {
  background: var(--bg-surface);
  border-radius: 0.25rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
.support-modal::-webkit-scrollbar {
  width: 4px;
}
.support-modal::-webkit-scrollbar-track {
  background: transparent;
}
.support-modal::-webkit-scrollbar-thumb {
  background: var(--primary-500);
  border-radius: 2px;
}

/* ---- Brand‑colored donation cards ---- */
.donation-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s;
  border-left: 4px solid transparent;
}
.donation-card:hover {
  transform: translateY(-3px);
}
.donation-card i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.donation-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.donation-card p {
  font-size: 0.75rem;
  color: #a78bfa;
}

/* Buy Me a Coffee */
.donation-bmc {
  border-left-color: #ffdd00;
}
.donation-bmc:hover {
  background: rgba(255, 221, 0, 0.1);
}
.donation-bmc i {
  color: #ffdd00;
}

/* Ko‑fi */
.donation-kofi {
  border-left-color: #f16061;
}
.donation-kofi:hover {
  background: rgba(241, 96, 97, 0.1);
}
.donation-kofi i {
  color: #f16061;
}

/* PayPal */
.donation-paypal {
  border-left-color: #0070ba;
}
.donation-paypal:hover {
  background: rgba(0, 112, 186, 0.1);
}
.donation-paypal i {
  color: #0070ba;
}

/* GitHub */
.donation-github {
  border-left-color: #6e5494;
}
.donation-github:hover {
  background: rgba(110, 84, 148, 0.1);
}
.donation-github i {
  color: #6e5494;
}

/* ---- Cryptocurrency cards with brand accents ---- */
.crypto-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 0.75rem;
  border-left: 4px solid transparent;
}
.crypto-btc {
  border-left-color: #f7931a;
}
.crypto-eth {
  border-left-color: #627eea;
}
.crypto-sol {
  border-left-color: #9945ff;
}
.crypto-doge {
  border-left-color: #c2a633;
}

.address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.5rem;
}
.address-row code {
  font-family: monospace;
  font-size: 0.7rem;
  word-break: break-all;
  flex: 1;
  color: #c4b5fd;
}
.copy-btn {
  background: var(--primary-500);
  border: none;
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: 0.2s;
}
.copy-btn:hover {
  background: var(--primary-600);
}

/* ---- Back to top ---- */
#back-to-top {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  background: var(--primary-500);
  color: white;
  border: none;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
#back-to-top:not(.visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}
#back-to-top:hover {
  background: var(--primary-600);
}

/* ---- Floating Support Button (FAB) ---- */
#fab-support {
  box-shadow: 0 8px 25px rgba(94, 53, 177, 0.5);
}
#fab-support:hover {
  box-shadow: 0 12px 35px rgba(94, 53, 177, 0.7);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .support-modal {
    padding: 1.25rem;
    border-radius: 0.25rem;
  }
  .hero-dot {
    width: 6px;
    height: 6px;
  }
}
