/* BMate Public Website Styles
 * Extracted from public.html.erb layout
 * These styles apply to all public-facing marketing pages
 */

:root {
  --bs-primary: #5B5CE2;
  --bs-secondary: #f97316;
  --bs-light: #f7f8fc;
  --bs-dark: #101828;
}

body {
  font-family: "Inter", sans-serif;
  color: #4b5563;
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.display-4,
.display-5,
.display-6 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  color: #101828;
}

.text-primary { color: #5B5CE2 !important; }
.text-secondary { color: #f97316 !important; }
.bg-primary { background-color: #5B5CE2 !important; }
.bg-secondary { background-color: #f97316 !important; }
.border-primary { border-color: #5B5CE2 !important; }

.btn.btn-primary {
  background: linear-gradient(135deg, #5B5CE2 0%, #4B4CC7 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(91, 92, 226, 0.28);
  font-weight: 600;
}

.btn.btn-primary:hover {
  background: linear-gradient(135deg, #4143B8 0%, #34359A 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(65, 67, 184, 0.32);
}

.btn.btn-light {
  background: #ffffff !important;
  color: #5B5CE2 !important;
  border: 2px solid #5B5CE2 !important;
  font-weight: 600;
}

.btn.btn-light:hover {
  background: #5B5CE2 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 92, 226, 0.24);
}

.btn.btn-outline-light {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
}

.btn.btn-outline-light:hover {
  background: #ffffff !important;
  color: #5B5CE2 !important;
  transform: translateY(-2px);
}

.btn.btn-secondary {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600;
}

.btn {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bmate-full-page .navbar-brand h1 {
  letter-spacing: 0;
}

/* Remove header background shape */
.header::after {
  display: none !important;
}

.bmate-full-page .hero-header {
  min-height: 860px;
  padding-top: 145px;
  padding-bottom: 80px;
}

.hero-modern-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(91, 92, 226, 0.22);
  border-radius: 50rem;
  background: linear-gradient(135deg, rgba(91, 92, 226, 0.1), rgba(249, 115, 22, 0.09));
  padding: 10px 18px;
  color: #5B5CE2;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(71, 78, 132, 0.14);
}

.hero-modern-title {
  max-width: 760px;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-modern-copy {
  max-width: 650px;
  color: #667085;
  font-size: clamp(1.05rem, 1.35vw, 1.32rem);
  line-height: 1.75;
}

.hero-proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e4e7ec;
  border-radius: 50rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 9px 14px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-visual-wrap {
  position: relative;
  min-height: 590px;
}

.hero-visual-orb {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(520px, 92vw);
  height: min(520px, 92vw);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(91, 92, 226, 0.18), rgba(249, 115, 22, 0.12));
  filter: saturate(1.2);
}

.hero-dashboard {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 36px 90px rgba(71, 78, 132, 0.2);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid #edf2ff;
}

.hero-dashboard-body {
  padding: 22px;
  background: linear-gradient(180deg, #fbfdff, #ffffff);
}

.dashboard-card {
  border: 1px solid #e3ebff;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(71, 94, 158, 0.07);
}

.dashboard-metric {
  padding: 17px;
}

.dashboard-bar {
  flex: 1 1 0;
  width: 100%;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(180deg, #f97316, #5B5CE2);
}

.floating-dashboard-note {
  position: absolute;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px 18px;
  color: #101828;
  box-shadow: 0 20px 54px rgba(71, 78, 132, 0.16);
  font-weight: 700;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@media (min-width: 1200px) {
  .floating-dashboard-note { display: flex; }
  .floating-dashboard-note.note-one { top: 62px; right: -4px; }
  .floating-dashboard-note.note-two { bottom: 62px; left: -18px; }
}

@media (max-width: 991.98px) {
  .bmate-full-page .hero-header {
    padding-top: 180px;
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: auto;
  }

  .hero-modern-title {
    font-size: 2rem;
    line-height: 1.2;
    max-width: 100%;
    width: 100%;
  }

  .hero-modern-copy {
    font-size: 1rem;
    max-width: 100%;
    width: 100%;
  }

  .hero-modern-eyebrow {
    font-size: 0.85rem;
  }

  .hero-visual-wrap {
    min-height: auto;
  }

  .hero-visual-orb {
    inset: 40px 0 auto 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 575.98px) {
  .bmate-full-page .hero-header {
    padding-top: 140px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-modern-title {
    font-size: 1.5rem;
    line-height: 1.3;
    text-align: center;
  }

  .hero-modern-copy {
    font-size: 0.95rem;
    text-align: center;
  }

  .hero-modern-eyebrow {
    font-size: 0.8rem;
    text-align: center;
    justify-content: center;
  }

  .hero-proof-chip {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .bmate-full-page .hero-header .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .bmate-full-page .hero-header .d-flex.gap-3 {
    width: 100%;
  }

  .bmate-full-page .hero-header .d-flex.flex-wrap {
    justify-content: center;
  }
}

.bmate-full-page .footer {
  background: #101828;
}

.bmate-full-page .footer h4 {
  color: #ffffff !important;
}

.bmate-full-page .footer .footer-item a {
  color: rgba(255, 255, 255, 0.7) !important;
}

.bmate-full-page .footer .footer-item a:hover {
  color: #ffffff !important;
}

.bmate-full-page .footer .text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}

.bmate-full-page .footer .text-dark {
  color: #ffffff !important;
}

.bmate-full-page .footer .bg-light {
  background: rgba(255, 255, 255, 0.1) !important;
}

.bmate-full-page .footer .bg-light p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.bmate-full-page .footer .btn-light {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.bmate-full-page .footer .btn-light:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Monitor Mockup Styles */
.monitor-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.monitor-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monitor-screen {
  background: #1a1a2e;
  border-radius: 12px 12px 0 0;
  padding: 12px 12px 8px 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.monitor-screen::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #333;
  border-radius: 50%;
}

.monitor-screen img {
  border-radius: 4px;
  display: block;
}

.monitor-stand {
  width: 60px;
  height: 40px;
  background: linear-gradient(to bottom, #2d2d3a, #1a1a2e);
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.monitor-base {
  width: 120px;
  height: 12px;
  background: linear-gradient(to bottom, #1a1a2e, #0d0d15);
  border-radius: 0 0 8px 8px;
}

@media (max-width: 991.98px) {
  .monitor-screen {
    padding: 8px 8px 6px 8px;
  }

  .monitor-stand {
    width: 40px;
    height: 30px;
  }

  .monitor-base {
    width: 80px;
    height: 8px;
  }
}

/* FAQ Accordion Styles */
.FAQ .accordion-button {
  background-color: #ffffff;
  color: #101d36;
  font-weight: 600;
  box-shadow: none;
  border-radius: 8px;
}

.FAQ .accordion-button:not(.collapsed) {
  background-color: #5B5CE2;
  color: #ffffff;
  border-radius: 8px 8px 0 0;
}

.FAQ .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(91, 92, 226, 0.25);
}

.FAQ .accordion-button::after {
  filter: brightness(0) saturate(100%);
}

.FAQ .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.FAQ .accordion-collapse.collapse:not(.show) {
  display: none;
}

.FAQ .accordion-collapse.collapse.show {
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
}

.FAQ .accordion-collapse.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.FAQ .accordion-body {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 1.25rem;
}

.FAQ .accordion-item {
  border: none;
  background: transparent;
}

.FAQ .accordion {
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Phone Mockup Styles */
.phone-mockup {
  perspective: 1000px;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0d0d15;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-notch::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #2d2d3a;
  border-radius: 50%;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #5B5CE2 0%, #101828 100%);
  border-radius: 32px;
  overflow: hidden;
}

.phone-screen-content {
  padding-top: 40px;
  height: 100%;
}

.phone-button {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: #333;
  border-radius: 3px;
}

@media (max-width: 575.98px) {
  .phone-frame {
    width: 220px;
    height: 440px;
    border-radius: 32px;
    padding: 10px;
  }

  .phone-notch {
    width: 90px;
    height: 22px;
    top: 10px;
  }

  .phone-screen {
    border-radius: 26px;
  }

  .phone-screen-content {
    padding-top: 32px;
  }

  .phone-screen-content .p-3 {
    padding: 0.75rem !important;
  }

  .phone-screen-content h4 {
    font-size: 1.1rem;
  }
}

/* WhatsApp Floating Button */
.bm-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.bm-whatsapp-float:hover {
  background: #128C7E;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.bm-whatsapp-float i {
  font-size: 1.4rem;
}

.bm-whatsapp-float span {
  display: none;
}

@media (min-width: 768px) {
  .bm-whatsapp-float span {
    display: inline;
  }
}

@media (max-width: 767.98px) {
  .bm-whatsapp-float {
    padding: 16px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
}

/* Customer Logos / Trust Section */
.bm-customer-logos {
  padding: 40px 0;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.bm-customer-logos .bm-section-label {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.bm-logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.bm-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.bm-logo-item:hover {
  border-color: #f97316;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.bm-logo-item .bm-logo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.bm-logo-item .bm-logo-info {
  display: flex;
  flex-direction: column;
}

.bm-logo-item .bm-logo-info strong {
  font-size: 0.9rem;
  color: #111827;
}

.bm-logo-item .bm-logo-info small {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 400;
}

@media (max-width: 767.98px) {
  .bm-logo-grid {
    gap: 16px;
  }

  .bm-logo-item {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}
