/* Alfa WhatsApp Manager — Store navy × WhatsApp green */
:root {
  --alfa-navy-0: #050a12;
  --alfa-navy-1: #0a1628;
  --alfa-navy-2: #0f2744;
  --alfa-blue: #1d8cf8;
  --alfa-blue-hover: #3b9dff;
  --alfa-blue-dim: rgba(29, 140, 248, 0.14);
  --alfa-blue-glow: rgba(29, 140, 248, 0.35);
  --wa-green: #25d366;
  --wa-green-deep: #075e54;
  --wa-green-dim: rgba(37, 211, 102, 0.14);
  --wa-green-glow: rgba(37, 211, 102, 0.35);
  --ps-bg: var(--alfa-navy-0);
  --ps-surface: rgba(255, 255, 255, 0.04);
  --ps-border: rgba(255, 255, 255, 0.1);
  --ps-text: #e8edf5;
  --ps-muted: #94a3b8;
  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.wm-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 85% -10%, rgba(37, 211, 102, 0.16), transparent 50%),
    radial-gradient(ellipse 70% 45% at 5% 5%, rgba(29, 140, 248, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(7, 94, 84, 0.12), transparent 55%),
    linear-gradient(180deg, var(--alfa-navy-1) 0%, var(--ps-bg) 40%, #04080f 100%);
  color: var(--ps-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.wm-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.wm-page > * { position: relative; z-index: 1; }

.wm-nav {
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(5, 10, 18, 0.78);
  border-bottom: 1px solid var(--ps-border);
}

.wm-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff !important;
  font-size: 1.05rem;
}

.wm-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem);
}

.wm-hero h1,
.wm-section-title,
.demo-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.wm-hero h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.4rem);
  color: #fff;
}

.wm-hero-lead {
  color: var(--ps-muted);
  font-size: 1.1rem;
  max-width: 38rem;
  line-height: 1.55;
}

.wm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--wa-green-dim);
  color: #86efac;
  border: 1px solid rgba(37, 211, 102, 0.35);
  letter-spacing: 0.01em;
}

.wm-btn-wa,
.wm-btn-blue,
.wm-btn-ghost {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wm-btn-wa {
  background: var(--wa-green);
  border: none;
  color: #062816 !important;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 0.7rem;
  box-shadow: 0 8px 28px var(--wa-green-glow);
}

.wm-btn-wa:hover {
  background: #2fe574;
  color: #062816 !important;
  transform: translateY(-1px);
}

.wm-btn-wa:disabled,
.wm-btn-ghost:disabled {
  opacity: 0.45;
  transform: none;
  cursor: not-allowed;
  box-shadow: none;
}

.wm-btn-blue {
  background: var(--alfa-blue);
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 0.7rem;
  box-shadow: 0 8px 28px var(--alfa-blue-glow);
}

.wm-btn-blue:hover {
  background: var(--alfa-blue-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.wm-btn-ghost {
  border: 1px solid var(--ps-border);
  color: var(--ps-text) !important;
  background: var(--ps-surface);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 0.7rem;
}

.wm-btn-ghost:hover {
  border-color: rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.08);
  color: #fff !important;
}

.wm-card {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: 1.1rem;
  padding: 1.5rem;
  height: 100%;
  transition: border-color 0.2s;
}

.wm-card:hover {
  border-color: rgba(37, 211, 102, 0.28);
}

.wm-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--wa-green-dim);
  color: #86efac;
}

.wm-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}

.wm-muted { color: var(--ps-muted); }
.wm-link { color: var(--alfa-blue) !important; }
.wm-link:hover { color: var(--alfa-blue-hover) !important; }

.wm-flow-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-deep));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.wm-chat-mock {
  background:
    linear-gradient(160deg, rgba(7, 94, 84, 0.4), rgba(15, 39, 68, 0.92)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: 1.35rem;
  padding: 1.35rem;
  min-height: 300px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.wm-bubble {
  max-width: 85%;
  padding: 0.7rem 0.95rem;
  border-radius: 1.05rem;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  line-height: 1.4;
  animation: wm-rise 0.5s ease both;
}

.wm-bubble-in {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 0.25rem;
}

.wm-bubble-out {
  background: rgba(37, 211, 102, 0.28);
  margin-left: auto;
  border-bottom-right-radius: 0.25rem;
  animation-delay: 0.12s;
}

.wm-bubble-in:nth-child(3) { animation-delay: 0.2s; }
.wm-bubble-out:nth-child(4) { animation-delay: 0.32s; }
.wm-bubble-in:nth-child(5) { animation-delay: 0.44s; }
.wm-bubble-out:nth-child(6) { animation-delay: 0.56s; }

.wm-footer {
  border-top: 1px solid var(--ps-border);
  color: var(--ps-muted);
  font-size: 0.875rem;
}

.wm-cta-band {
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.12), rgba(29, 140, 248, 0.08)) !important;
  border-color: rgba(37, 211, 102, 0.22) !important;
}

.wm-pricing {
  border: 1px solid var(--ps-border);
  border-radius: 1.1rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  height: 100%;
}

.wm-pricing.popular {
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.12);
}

/* Shared form controls on dark surfaces */
.wm-page .form-control {
  background: rgba(6, 13, 24, 0.7);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  border-radius: 0.65rem;
  padding: 0.7rem 0.9rem;
}
.wm-page .form-control:focus {
  background: rgba(6, 13, 24, 0.85);
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
  color: #fff;
}
.wm-page .form-control::placeholder { color: #64748b; }

@keyframes wm-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes wm-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.wm-anim {
  animation: wm-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wm-anim-d1 { animation-delay: 0.06s; }
.wm-anim-d2 { animation-delay: 0.14s; }
.wm-anim-d3 { animation-delay: 0.22s; }
.wm-anim-d4 { animation-delay: 0.3s; }

/* Panel shell */
.wm-shell { display: flex; min-height: 100vh; }
.wm-side {
  width: 260px;
  flex-shrink: 0;
  background: rgba(5, 10, 18, 0.92);
  border-right: 1px solid var(--ps-border);
  padding: 1.25rem 1rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}
.wm-side .side-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0.5rem;
}
.wm-side .side-brand .mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #25d366, #075e54);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}
.wm-side .nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.75rem 0.75rem 0.35rem;
  font-weight: 600;
}
.wm-side a {
  color: #94a3b8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.wm-side a:hover,
.wm-side a.active {
  background: rgba(37, 211, 102, 0.12);
  color: #fff;
}
.wm-side a.active {
  box-shadow: inset 2px 0 0 var(--wa-green);
}
.wm-main {
  flex: 1;
  padding: 1.75rem 1.5rem;
  min-width: 0;
}
.wm-main h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
@media (max-width: 900px) {
  .wm-shell { flex-direction: column; }
  .wm-side { width: 100%; border-right: 0; border-bottom: 1px solid var(--ps-border); }
}
