/* CashLabs premium UI — keep primary #0fbd2c + Inter; logo untouched */
:root {
  --cl-primary: #0fbd2c;
  --cl-ink: #0f172a;
  --cl-muted: #64748b;
  --cl-line: rgba(15, 23, 42, 0.08);
  --cl-soft: #f6f8f6;
  --cl-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --cl-shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.12);
  --cl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Keep Tailwind's primary text green when homepage markup is rendered in the main document. */
.text-primary { color: var(--cl-primary); }
/* Preserve the existing green hover treatment for links injected after Tailwind initializes. */
[class~="hover:text-primary"]:hover { color: var(--cl-primary); }

html { scroll-behavior: smooth; }

/* —— Nav mega menus (header injects richer styles; keep fallbacks here) —— */
.mega-menu {
  display: none !important;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}
.nav-dd {
  position: relative;
}
.nav-dd:hover > .mega-menu,
.nav-dd:focus-within > .mega-menu {
  display: block !important;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: cl-menu-in 0.28s var(--cl-ease) both;
}
@keyframes cl-menu-in {
  0% { opacity: 0; transform: translateY(16px) scale(0.96); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.mega-item {
  transition: background 0.18s ease, transform 0.18s ease;
}
.mega-item:hover {
  transform: translateX(2px);
}

/* —— Atmosphere —— */
.cl-page-bg {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 189, 44, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(15, 189, 44, 0.07), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--cl-soft) 48%, #ffffff 100%);
}
.cl-hero-mesh {
  position: relative;
  overflow: hidden;
}
.cl-hero-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 189, 44, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 189, 44, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%);
  pointer-events: none;
}
.cl-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.55;
}
.cl-orb-a {
  width: 280px;
  height: 280px;
  background: rgba(15, 189, 44, 0.22);
  top: -80px;
  right: 8%;
  animation: cl-float 8s ease-in-out infinite;
}
.cl-orb-b {
  width: 180px;
  height: 180px;
  background: rgba(15, 189, 44, 0.12);
  bottom: 10%;
  left: 5%;
  animation: cl-float 10s ease-in-out infinite reverse;
}
@keyframes cl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}

/* —— Cards —— */
.cl-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--cl-line);
  border-radius: 1.25rem;
  box-shadow: var(--cl-shadow);
  transition: transform 0.35s var(--cl-ease), box-shadow 0.35s var(--cl-ease), border-color 0.35s ease;
  height: 100%;
}
.cl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cl-shadow-lg);
  border-color: rgba(15, 189, 44, 0.35);
}
.cl-card-static {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--cl-line);
  border-radius: 1.25rem;
  box-shadow: var(--cl-shadow);
}
.cl-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* —— Buttons —— */
.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: 0.9rem;
  transition: transform 0.25s var(--cl-ease), box-shadow 0.25s ease, background 0.2s ease;
}
.cl-btn:hover { transform: translateY(-2px); }
.cl-btn-primary {
  background: var(--cl-primary);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 189, 44, 0.28);
}
.cl-btn-primary:hover {
  background: #0eaa28;
  box-shadow: 0 18px 40px rgba(15, 189, 44, 0.35);
}
.cl-btn-ghost {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--cl-ink);
}
.cl-btn-ghost:hover { border-color: rgba(15, 189, 44, 0.4); }

/* —— Forms —— */
.cl-field input,
.cl-field textarea,
.cl-field select {
  width: 100%;
  margin-top: 0.4rem;
  border-radius: 0.9rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cl-field input:focus,
.cl-field textarea:focus,
.cl-field select:focus {
  outline: none;
  border-color: rgba(15, 189, 44, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 189, 44, 0.12);
}

/* —— Motion —— */
@keyframes cl-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.cl-rise { animation: cl-rise 0.75s var(--cl-ease) both; }
.cl-rise-d1 { animation: cl-rise 0.75s var(--cl-ease) 0.12s both; }
.cl-rise-d2 { animation: cl-rise 0.75s var(--cl-ease) 0.24s both; }
.cl-rise-d3 { animation: cl-rise 0.75s var(--cl-ease) 0.36s both; }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--cl-ease), transform 0.7s var(--cl-ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--cl-ease), transform 0.55s var(--cl-ease);
}
[data-reveal-stagger].is-in > *:nth-child(1) { transition-delay: 0.04s; }
[data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: 0.22s; }
[data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: 0.28s; }
[data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: 0.34s; }
[data-reveal-stagger].is-in > *:nth-child(7) { transition-delay: 0.4s; }
[data-reveal-stagger].is-in > * {
  opacity: 1;
  transform: none;
}

.cl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 189, 44, 0.2);
  background: rgba(15, 189, 44, 0.08);
  color: #0b7a1c;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  letter-spacing: 0.02em;
}

.cl-url-bar {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cl-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: rgba(15, 189, 44, 0.1);
  color: var(--cl-primary);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--cl-ease);
}
.cl-card:hover .cl-icon-tile {
  background: var(--cl-primary);
  color: #fff;
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
