/* ============================================================
   Loan Management System — Ultra-Mobile Optimized CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main:        #f8fafc;
  --bg-card:        #ffffff;
  --bg-card-alt:    #f1f5f9;
  --navy:           #0f172a;
  --navy-muted:     #1e293b;
  --border:         #e2e8f0;
  --border-hover:   #cbd5e1;
  --text:           #0f172a;
  --text-muted:     #475569;
  --text-light:     #64748b;
  --green:          #10b981;
  --green-hover:    #059669;
  --green-glow:     #34d399;
  --green-bg:       rgba(16,185,129,0.08);
  --green-border:   rgba(16,185,129,0.25);
  --gold:           #f59e0b;
  --radius-lg:      24px;
  --radius-md:      16px;
  --radius-sm:      10px;
  --shadow-sm:      0 2px 8px rgba(15,23,42,0.04);
  --shadow-md:      0 12px 32px rgba(15,23,42,0.06);
  --shadow-lg:      0 24px 60px rgba(15,23,42,0.1);
  --glass:          rgba(255,255,255,0.85);
  --glass-border:   rgba(256,256,256,0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg-main); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; width: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Container Layout ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; width: 100%; }
.container-sm { max-width: 840px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ── Typography & Gradients ── */
.display-1 { font-size: clamp(34px, 5.2vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; color: var(--navy); }
.display-2 { font-size: clamp(26px, 3.8vw, 44px); font-weight: 800; line-height: 1.18; letter-spacing: -1px; color: var(--navy); }
.display-3 { font-size: clamp(20px, 2.8vw, 32px); font-weight: 700; line-height: 1.25; letter-spacing: -.5px; color: var(--navy); }

.text-gradient {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--green-hover);
  background: var(--green-bg); padding: 7px 16px; border-radius: 99px;
  border: 1px solid var(--green-border); margin-bottom: 20px; max-width: 100%;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: radarPulse 1.8s infinite; flex-shrink: 0; }
@keyframes radarPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Full-Width Base Hero Financial Ticker Bar ── */
.hero-base-ticker {
  width: 100%; margin-top: 50px; padding: 12px 0;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm); overflow: hidden; position: relative; z-index: 10;
}
.hero-base-ticker-inner {
  display: flex; align-items: center; gap: 16px; max-width: 100%; overflow: hidden;
}
.ticker-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800;
  color: #065f46; background: #d1fae5; padding: 5px 12px; border-radius: 99px; white-space: nowrap; flex-shrink: 0; margin-left: 16px;
}
.ticker-track-container {
  overflow: hidden; white-space: nowrap; width: 100%; display: flex; align-items: center;
}
.ticker-marquee {
  display: inline-flex; gap: 28px; font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.ticker-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ticker-item strong { color: var(--navy); }
.ticker-item span { color: var(--green-hover); font-weight: 700; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; padding: 13px 26px; border-radius: 99px;
  border: 1px solid transparent; cursor: pointer; transition: all .25s ease;
  max-width: 100%; text-align: center; line-height: 1.25; word-break: break-word;
}
.cards-grid .btn, .feature-card .btn { white-space: normal; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 24px rgba(16,185,129,0.25); }
.btn-green:hover { background: var(--green-hover); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(16,185,129,0.35); }
.btn-outline-dark { background: #fff; color: var(--navy); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-outline-dark:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Creative Light Navbar ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border); transition: all .3s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 16px 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo-text { font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.nav-logo-text span { display: block; font-size: 9.5px; font-weight: 600; color: var(--green-hover); letter-spacing: 1.5px; }
.nav-links { display: flex; gap: 32px; }
.nav-link { font-size: 14.5px; font-weight: 600; color: var(--text-muted); transition: color .2s ease; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 3px; background: var(--green); border-radius: 3px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ── Mobile Nav Hamburger Button & Overlay ── */
.nav-hamburger {
  display: none; background: none; border: none; color: var(--navy);
  font-size: 26px; cursor: pointer; padding: 6px 10px; border-radius: 8px;
  line-height: 1; transition: all .2s ease;
}
@media (max-width: 992px) {
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
}

.nav-mobile {
  position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 85vw;
  background: rgba(15, 23, 42, 0.98); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 32px 24px; display: flex; flex-direction: column; gap: 16px;
  z-index: 10000; transform: translateX(100%); transition: transform .3s ease;
  border-left: 1px solid rgba(255, 255, 255, 0.1); box-shadow: -10px 0 40px rgba(0,0,0,0.5);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile .nav-link {
  font-size: 16px; font-weight: 700; color: #ffffff; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between;
}
.nav-mobile .nav-link:hover, .nav-mobile .nav-link.active { color: #10b981; }

/* ── App-Style Mobile Bottom Navigation Bar ── */
.mobile-bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(18px);
  border-top: 1px solid var(--border); padding: 8px 12px 12px;
  box-shadow: 0 -4px 20px rgba(15,23,42,0.08);
}
.mobile-bottom-nav { display: flex; justify-content: space-around; align-items: center; }
.mobile-bottom-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-decoration: none; transition: color .2s ease;
}
.mobile-bottom-item.active, .mobile-bottom-item:hover { color: var(--green-hover); }
.mobile-bottom-icon { font-size: 18px; line-height: 1; }

/* ── Faint Spinning 3D World Globe Watermark Animation (Centered in Middle) ── */
.faint-spinning-globe-watermark {
  position: absolute; top: 50%; left: 50%; width: 680px; height: 680px;
  opacity: 0.12; pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%);
  animation: spinGlobeCenter 40s linear infinite;
}
@keyframes spinGlobeCenter {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Centered Section Background Watermarks (Middle Position) ── */
.watermark-bg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(48px, 9vw, 105px); font-weight: 900;
  color: rgba(15,23,42,0.035); pointer-events: none; user-select: none; line-height: 1;
  letter-spacing: -2px; z-index: 0; white-space: nowrap; text-align: center; width: 100%;
}
.watermark-icon {
  position: absolute; right: 20px; bottom: 20px; font-size: 64px;
  opacity: 0.04; pointer-events: none; user-select: none; z-index: 0;
}
.grid-pattern-bg {
  background-image: radial-gradient(rgba(16,185,129,0.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* ── Creative Light Hero Section ── */
.hero-creative {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 140px 0 0; position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
}
.hero-orb-green {
  position: absolute; top: -120px; right: -100px; width: 650px; height: 650px;
  border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%); pointer-events: none;
}
.hero-orb-blue {
  position: absolute; bottom: -100px; left: -100px; width: 500px; height: 500px;
  border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

/* ── Dynamic Moving & Pulsing Financial Chart Animations ── */
.animated-chart-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 0;
  animation: drawChartLine 8s ease-in-out infinite alternate;
}
@keyframes drawChartLine {
  0% { stroke-dashoffset: 600; }
  100% { stroke-dashoffset: 0; }
}

.pulsing-chart-point {
  animation: pulsePoint 2s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes pulsePoint {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(16,185,129,0.4)); }
  100% { transform: scale(1.4); filter: drop-shadow(0 0 10px rgba(52,211,153,0.9)); }
}

.floating-chart-badge {
  animation: floatChartBadge 3s ease-in-out infinite alternate;
}
@keyframes floatChartBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.laser-scan-bar {
  position: absolute; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, transparent, #10b981, transparent);
  box-shadow: 0 0 12px #34d399; opacity: 0.6; pointer-events: none;
  animation: laserScan 6s linear infinite;
}
@keyframes laserScan {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { left: 100%; opacity: 0; }
}

/* ── Hero Creative Floating Visual Card ── */
.hero-visual-card {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; overflow: hidden;
}
.hero-badge-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700;
  color: #065f46; background: #d1fae5; padding: 4px 12px; border-radius: 99px; margin-bottom: 16px;
}
.calc-field { margin-bottom: 20px; position: relative; z-index: 1; }
.calc-label { font-size: 12px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; display: flex; justify-content: space-between; }
.calc-slider { width: 100%; height: 6px; accent-color: var(--green); cursor: pointer; border-radius: 4px; }
.calc-result-box {
  background: var(--bg-main); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; z-index: 1;
}
.calc-result-item .val { font-size: 24px; font-weight: 800; color: var(--green-hover); }
.calc-result-item .lbl { font-size: 11px; font-weight: 700; color: var(--text-light); text-transform: uppercase; }

/* ── Floating Badge Card Overlay ── */
.floating-status-badge {
  position: absolute; bottom: -18px; left: -18px; background: #ffffff;
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 18px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; z-index: 10;
}

/* ── Clean Financial Growth Card ── */
.financial-chart-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg); padding: 40px; color: #ffffff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
}
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; position: relative; z-index: 1; }
.chart-tabs { display: flex; gap: 6px; background: rgba(255,255,255,0.08); padding: 4px; border-radius: 99px; }
.chart-tab { padding: 6px 16px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.6); border-radius: 99px; cursor: pointer; transition: all .2s ease; }
.chart-tab.active { background: var(--green); color: #fff; }

/* ── Section Blocks ── */
.section { padding: 90px 0; position: relative; overflow: hidden; }
.section-white { background: #ffffff; }
.section-alt { background: var(--bg-main); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; position: relative; z-index: 1; }

/* ── Feature & Product Grid ── */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; position: relative; z-index: 1;
}
.feature-card {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: all .3s ease; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(16,185,129,0.3); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--green-bg);
  color: var(--green-hover); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px; border: 1px solid var(--green-border); position: relative; z-index: 1;
}
.feature-title { font-size: 18.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; position: relative; z-index: 1; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; position: relative; z-index: 1; }

/* ── Team Grid ── */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.team-card {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; text-align: center; color: var(--navy); transition: transform .2s ease; box-shadow: var(--shadow-sm);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fff;
}
.team-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.team-role { font-size: 12px; font-weight: 700; color: var(--green-hover); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.team-bio { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── FAQ Accordion ── */
.faq-wrap { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.faq-item {
  background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 14px; overflow: hidden; transition: all .2s ease; box-shadow: var(--shadow-sm);
}
.faq-question {
  padding: 20px 24px; font-size: 16px; font-weight: 700; color: var(--navy);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
}
.faq-answer {
  padding: 0 24px 20px; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open { border-color: var(--green); box-shadow: var(--shadow-md); }

/* ── Creative Light CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg); padding: 56px 44px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}

/* ── Footer ── */
.footer { background: #ffffff; color: var(--navy); padding: 80px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-link { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; transition: color .2s ease; }
.footer-link:hover { color: var(--green-hover); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; display: flex; justify-content: space-between; font-size: 13px; color: var(--text-light); }

/* ── Responsive Mobile Alignment & Padding Overrides ── */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links, .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .faint-spinning-globe-watermark { display: none; }
}

@media (max-width: 768px) {
  .container, .container-sm { padding: 0 16px; }
  .hero-creative { padding: 105px 0 0; }
  .section { padding: 56px 0; }

  /* Hero Mobile Alignments */
  .display-1 { font-size: 32px; text-align: left; }
  .eyebrow { font-size: 10.5px; padding: 6px 14px; }
  .hero-creative p { font-size: 15.5px !important; margin-bottom: 24px !important; text-align: left; }

  .hero-creative .btn-lg { width: 100%; text-align: center; justify-content: center; margin-bottom: 10px; }
  .hero-creative div[style*="display:flex;gap:16px"] { flex-direction: column; gap: 10px !important; margin-bottom: 28px !important; }

  /* Hero Social Proof Stats Mobile Grid */
  .hero-creative div[style*="border-top:1px solid var(--border)"] {
    display: grid !important; grid-template-columns: 1fr 1fr 1fr; gap: 12px !important; text-align: center;
  }
  .hero-creative div[style*="width:1px;height:32px"] { display: none !important; }

  /* Hero 3D Card & Floating Badges Mobile Containment */
  .hero-visual-card { padding: 20px; }
  .card-3d-graphic { height: 180px; padding: 18px; margin-bottom: 16px; }
  .card-number { font-size: 16px; letter-spacing: 2px; }
  .floating-status-badge {
    position: relative; bottom: 0; left: 0; margin-top: 16px; width: 100%; justify-content: flex-start;
  }

  /* Financial Performance Chart Card Mobile */
  .financial-chart-card { padding: 24px 16px; }
  .chart-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .chart-header h2 { font-size: 20px !important; }

  /* Base Ticker Mobile */
  .hero-base-ticker { margin-top: 36px; padding: 10px 0; }
  .ticker-badge { margin-left: 12px; padding: 4px 10px; font-size: 10px; }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-bar { display: block; }
  body { padding-bottom: 64px; }

  /* CTA Banner Mobile */
  .cta-banner { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
  .cta-banner .btn-lg { width: 100%; justify-content: center; }

  /* Footer Mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-creative div[style*="border-top:1px solid var(--border)"] {
    grid-template-columns: 1fr; gap: 16px !important; text-align: left;
  }
}
