/* ============================================================
   BILLER ENGINE — COODE Software Solutions
   Custom styles (Tailwind CDN extended)
============================================================ */

/* ----- Base ----- */
html { scroll-behavior: smooth; }
body { background-color: #0A1628; color: #fff; }
* { box-sizing: border-box; }

/* ----- Backgrounds ----- */
.bg-hero-gradient {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 184, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 184, 0.05) 0%, transparent 50%),
    #0A1628;
}
.bg-navy-lighter { background-color: #162840; }

.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ----- Navbar ----- */
#navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* ----- Typography ----- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00D4B8;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

/* ----- Layout ----- */
.section-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .section-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .section-container { padding-left: 2rem; padding-right: 2rem; }
}

/* ----- Buttons ----- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #00D4B8;
  color: #0A1628;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-size: 0.9375rem;
}
.btn-primary:hover {
  background-color: #00A896;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,184,0.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255,255,255,0.25);
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
  transform: translateY(-2px);
}

/* ----- Nav links ----- */
.nav-link {
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00D4B8;
  transition: width 0.2s;
}
.nav-link:hover { color: #00D4B8; }
.nav-link:hover::after { width: 100%; }

/* ----- Cards ----- */
.step-card {
  background: #0F2040;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s;
}
.step-card:hover {
  border-color: rgba(0,212,184,0.3);
  transform: translateY(-4px);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  font-weight: 800;
  font-size: 0.875rem;
}

.cost-card {
  background: #0F2040;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
}

.feature-card {
  background: #0F2040;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(0,212,184,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(0,212,184,0.1);
  border: 1px solid rgba(0,212,184,0.2);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-card {
  background: #0F2040;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.connector-card {
  background: #0A1628;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s;
}
.connector-card:hover {
  border-color: rgba(0,212,184,0.3);
  transform: translateY(-4px);
}

/* ----- Pipeline ----- */
.pipeline-card {
  background: #0F2040;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.pipeline-card:first-child { border-radius: 1rem 0 0 1rem; }
.pipeline-card:last-child { border-radius: 0 1rem 1rem 0; }
@media (max-width: 1023px) {
  .pipeline-card { border-radius: 0.75rem !important; }
}
.pipeline-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.3); }
.pipeline-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.pipeline-body {
  padding: 1.5rem;
  flex: 1;
}
.pipeline-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}
.pipeline-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.4rem;
}
.pipeline-arrow {
  position: absolute;
  right: -0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0,212,184,0.5);
  font-size: 1.5rem;
  font-weight: 300;
  z-index: 10;
  background: #0F2040;
  padding: 0.25rem 0.125rem;
}
@media (max-width: 1023px) {
  .pipeline-arrow { display: none; }
}

/* ----- Onboarding ----- */
.onboarding-step {
  background: #0F2040;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s;
}
.onboarding-step:first-child { border-radius: 1rem 0 0 1rem; }
.onboarding-step:last-child { border-radius: 0 1rem 1rem 0; }
@media (max-width: 639px) {
  .onboarding-step { border-radius: 0.75rem !important; }
}
.onboarding-header { margin-bottom: 1rem; }
.onboarding-arrow {
  position: absolute;
  right: -0.875rem;
  top: 2rem;
  color: #00D4B8;
  font-size: 1.25rem;
  z-index: 10;
}
@media (max-width: 1023px) {
  .onboarding-arrow { display: none; }
}
.onboarding-step--teal { border-top: 3px solid #00D4B8; }
.onboarding-step--yellow { border-top: 3px solid #EAB308; }

/* ----- Badges ----- */
.badge-available {
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(0,212,184,0.1);
  color: #00D4B8;
  border: 1px solid rgba(0,212,184,0.2);
  border-radius: 999px;
  padding: 0.125rem 0.625rem;
}
.badge-custom {
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(234,179,8,0.1);
  color: #EAB308;
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: 999px;
  padding: 0.125rem 0.625rem;
}

/* ----- Tech pills ----- */
.tech-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(0,212,184,0.08);
  color: #00D4B8;
  border: 1px solid rgba(0,212,184,0.18);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ----- Flow diagram arrows ----- */
.flow-arrow {
  font-size: 1.5rem;
  color: rgba(0,212,184,0.7);
  font-weight: 200;
  animation: flowPulse 2s ease-in-out infinite;
}
@keyframes flowPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; color: #00D4B8; }
}

/* ----- WhatsApp bubbles ----- */
.wa-bubble-out {
  background: #128C7E;
  color: #fff;
  padding: 0.625rem 0.875rem;
  border-radius: 1rem 1rem 0 1rem;
  max-width: 80%;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.wa-bubble-in {
  background: #0F2040;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.625rem 0.875rem;
  border-radius: 1rem 1rem 1rem 0;
  max-width: 85%;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ----- Contact form ----- */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.375rem;
}
.form-input {
  width: 100%;
  background: #0A1628;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.25); }
.form-input:focus { border-color: #00D4B8; box-shadow: 0 0 0 3px rgba(0,212,184,0.1); }
.form-input option { background: #0F2040; color: #fff; }

/* ----- Glow effects ----- */
.teal-glow {
  box-shadow: 0 0 40px rgba(0,212,184,0.08);
}

/* ----- WhatsApp floating button ----- */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 100;
  transition: all 0.2s;
  text-decoration: none;
}
.wa-float:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37,211,102,0.2);
  animation: waPulse 2s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0; }
}

/* ----- Animations ----- */
.anim-hidden { opacity: 0; transform: translateY(24px); }
.animate-fade-up {
  animation: fadeUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0A1628; }
::-webkit-scrollbar-thumb { background: #00D4B8; border-radius: 3px; }

/* ----- Selection ----- */
::selection { background: rgba(0,212,184,0.3); color: #fff; }

/* ----- System pills (solution diagram left panel) ----- */
.system-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.375rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

/* ----- Connector marquee ----- */
.connector-marquee-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.connector-marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  padding: 0.5rem 0;
}
.connector-marquee-wrapper:hover .connector-marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.connector-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(0,212,184,0.06);
  border: 1px solid rgba(0,212,184,0.15);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  cursor: default;
  transition: all 0.2s;
}
.connector-chip:hover {
  background: rgba(0,212,184,0.12);
  color: #00D4B8;
  border-color: rgba(0,212,184,0.35);
}
