/**
 * Leaf ERP Public Landing Page Stylesheet
 * Premium White & Blue Light Theme
 */

:root {
  --primary-blue: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-blue: #0ea5e9;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --font-family: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.landing-page {
  background: var(--bg-light) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font-family);
  overflow-x: hidden;
  color: var(--text-dark);
}

body.landing-page #wrapper,
body.landing-page #content,
body.landing-page .container,
body.landing-page .container .row {
  max-width: none !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.landing-container {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Background animated mesh & glowing orbs (Low opacity for light theme) */
.landing-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.landing-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #3b82f6, #93c5fd);
  top: -10%;
  left: -10%;
  animation: landingOrbMove1 25s infinite alternate ease-in-out;
}

.landing-orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #0ea5e9, #bae6fd);
  bottom: -20%;
  right: -10%;
  animation: landingOrbMove2 30s infinite alternate ease-in-out;
}

.landing-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #10b981, #a7f3d0);
  top: 40%;
  left: 35%;
  opacity: 0.06;
}

@keyframes landingOrbMove1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.1); }
  100% { transform: translate(-50px, 150px) scale(0.9); }
}

@keyframes landingOrbMove2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -90px) scale(0.95); }
  100% { transform: translate(80px, -140px) scale(1.15); }
}

/* Header & Navbar */
.landing-header {
  position: relative;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.landing-navbar {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.landing-logo:hover {
  opacity: 0.9;
  text-decoration: none;
  color: var(--text-dark);
}

.landing-logo svg,
.landing-logo img,
.landing-logo a img,
.footer-logo img,
.footer-logo a img {
  max-height: 32px !important;
  max-width: 140px !important;
  height: auto !important;
  width: auto !important;
  display: inline-block !important;
  object-fit: contain !important;
  color: var(--primary-blue);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.landing-lang-select {
  margin-right: 0.5rem;
}

.landing-lang-select .bootstrap-select .btn {
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-dark) !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  outline: none !important;
}

.landing-lang-select .bootstrap-select .filter-option-inner-inner {
  color: var(--text-dark) !important;
}

.landing-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.landing-nav-btn:hover {
  text-decoration: none;
}

.client-btn {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary-blue);
}

.client-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-hover);
}

.admin-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

.admin-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-blue));
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Hero Section */
.landing-hero {
  position: relative;
  z-index: 5;
  padding: 8rem 2rem 7rem 2rem;
  text-align: center;
  overflow: hidden;
  background: transparent;
  clip-path: inset(0 0 0 0);
}

.hero-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.75), rgba(15, 23, 42, 0.88));
  z-index: 2;
}

.landing-hero .container {
  position: relative;
  z-index: 3;
  max-width: 900px !important;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85) !important;
  max-width: 720px;
  margin: 0 auto 3rem auto;
  line-height: 1.7;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn:hover {
  text-decoration: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
}

.primary-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-blue));
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

.secondary-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.secondary-btn:hover {
  background: #f8fafc;
  border-color: var(--border-hover);
  transform: translateY(-2px);
  color: var(--text-dark);
}

/* Modules Section */
.landing-modules {
  position: relative;
  z-index: 5;
  padding: 5rem 2rem;
}

.landing-modules .container {
  max-width: 1200px !important;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.module-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.06), 0 0 30px rgba(37, 99, 235, 0.05);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--primary-blue);
  margin-bottom: 1.8rem;
  transition: all 0.3s ease;
}

.module-card:hover .card-icon {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-hover);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.module-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 1rem 0;
}

.module-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Bank Verification Highlight */
.landing-verify-highlight {
  position: relative;
  z-index: 5;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.4);
}

.landing-verify-highlight .container {
  max-width: 1200px !important;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.landing-verify-highlight h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.highlight-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.banks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.banks-list span {
  padding: 0.4rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
}

/* Mock UI Panel */
.verify-mock-ui {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.05), 0 0 50px rgba(0, 0, 0, 0.01);
  overflow: hidden;
  max-width: 450px;
  margin: 0 auto;
  text-align: left;
}

.mock-header {
  background: #f8fafc;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 6px;
  border-bottom: 1px solid var(--border-light);
}

.mock-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mock-header .dot.red { background: #ff5f56; }
.mock-header .dot.yellow { background: #ffbd2e; }
.mock-header .dot.green { background: #27c93f; }

.mock-title {
  margin-left: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mock-body {
  padding: 2rem;
}

.mock-input-group {
  margin-bottom: 1.25rem;
}

.mock-input-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.mock-input {
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-family: monospace;
}

.mock-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 1.5rem;
}

.mock-status.success {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Stats Section */
.landing-stats {
  position: relative;
  z-index: 5;
  padding: 2rem 2rem;
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 0 0 0.5rem 0;
}

.stat-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
}

/* Deep Dive Row Layout */
.landing-deep-dive {
  position: relative;
  z-index: 5;
  padding: 6rem 2rem;
}

.landing-deep-dive .container {
  max-width: 1200px !important;
}

.dive-row {
  display: flex;
  margin-bottom: 7rem;
  gap: 4rem;
}

.dive-row:last-child {
  margin-bottom: 0;
}

.dive-row .col-md-6 {
  flex: 1;
  padding: 0;
}

.dive-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.dive-icon-wrapper.blue {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-blue);
}

.dive-icon-wrapper.green {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}

.dive-icon-wrapper.purple {
  background: rgba(139, 92, 246, 0.08);
  color: #8b5cf6;
}

.dive-icon-wrapper.orange {
  background: rgba(249, 115, 22, 0.08);
  color: #f97316;
}

.dive-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.dive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dive-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.dive-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-blue);
  font-weight: 900;
}

/* Why Choose Us Section */
.landing-why-choose {
  position: relative;
  z-index: 5;
  padding: 5rem 2rem;
  background: rgba(255, 255, 255, 0.3);
  border-top: 1px solid var(--border-light);
}

.landing-why-choose .container {
  max-width: 1200px !important;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.why-card i {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.why-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.why-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* FAQ Section */
.landing-faq {
  position: relative;
  z-index: 5;
  padding: 5rem 2rem;
  border-top: 1px solid var(--border-light);
}

.landing-faq .container {
  max-width: 800px !important;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.faq-item h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.landing-footer {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--border-light);
  padding: 4rem 2rem;
  background: #ffffff;
  margin-top: auto;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-verify-highlight .row {
    flex-direction: column;
    gap: 3rem;
  }

  .highlight-desc {
    max-width: 100%;
  }

  .verify-mock-ui {
    max-width: 100%;
  }

  .dive-row {
    flex-direction: column !important;
    gap: 2.5rem;
    margin-bottom: 4rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .landing-navbar {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }
}
