/* Kratom Kenya — Tailwind + Alpine custom styles */

:root {
  color-scheme: dark;
}

[x-cloak] { display: none !important; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Custom Scrollbar for Dark Theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Reveal animation (IntersectionObserver toggles .is-visible) */
.js-reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Form Input & Button Utilities */
.kk-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.5);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.kk-input:focus {
  border-color: #67e8f9;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}
.kk-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.kk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: #06b6d4;
  color: #0f172a;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
  cursor: pointer;
}
.kk-btn-primary:hover {
  background: #22d3ee;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}
.kk-btn-primary:active {
  transform: translateY(0);
}

.kk-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}
.kk-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Social buttons */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  transition: 200ms ease;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

/* Hero blobs */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: floaty 10s ease-in-out infinite;
}
.blob-1 {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 120px;
  background: rgba(34, 211, 238, 0.35); /* brand */
  animation-duration: 12s;
}
.blob-2 {
  width: 480px;
  height: 480px;
  right: -160px;
  top: 60px;
  background: rgba(163, 159, 121, 0.35); /* sand */
  animation-duration: 14s;
}
.blob-3 {
  width: 360px;
  height: 360px;
  left: 35%;
  bottom: -180px;
  background: rgba(255, 255, 255, 0.12);
  animation-duration: 16s;
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -18px, 0) scale(1.03); }
}

/* Shimmer bar */
@keyframes shimmer {
  0% { transform: translateX(-60%); opacity: 0.35; }
  50% { opacity: 0.8; }
  100% { transform: translateX(60%); opacity: 0.35; }
}
.animate-shimmer {
  animation: shimmer 3.5s ease-in-out infinite;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal { transition: none; transform: none; opacity: 1; }
  .blob, .animate-shimmer { animation: none !important; }
}
