/* =========================================================
   P2L — Digital Lending Platform
   Shared stylesheet (Bootstrap 5 is loaded before this file)
   ========================================================= */

:root{
  --primary: #0052CC;
  --primary-dark: #003D99;
  --secondary: #00B894;
  --accent: #4F46E5;
  --bg: #F8FAFC;
  --bg-alt: #EEF2F9;
  --dark: #1E293B;
  --dark-soft: #334155;
  --white: #FFFFFF;
  --muted: #64748B;
  --line: #E2E8F0;

  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0,82,204,0.07) 0%, rgba(79,70,229,0.07) 100%);
  --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);

  --shadow-sm: 0 1px 2px rgba(30,41,59,0.06), 0 2px 8px rgba(30,41,59,0.04);
  --shadow-md: 0 8px 24px rgba(30,41,59,0.08);
  --shadow-lg: 0 20px 48px rgba(30,41,59,0.14);
  --shadow-glow: 0 12px 32px rgba(0,82,204,0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  font-family:'Inter', sans-serif;
  color:var(--dark-soft);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4,h5,h6{
  font-family:'Poppins', sans-serif;
  font-weight:700;
  color:var(--dark);
  letter-spacing:-0.02em;
}

a{ text-decoration:none; color:inherit; }
ul{ list-style:none; padding:0; margin:0; }
img{ max-width:100%; display:block; }

.section{ padding:36px 0; }
.section-sm{ padding:20px 0; }
section[id]{ scroll-margin-top:64px; }
.bg-alt{ background:var(--bg-alt); }
.bg-dark{ background:var(--gradient-dark); color:#fff; }
.bg-dark h1, .bg-dark h2, .bg-dark h3{ color:#fff; }

.text-gradient{
  background:var(--gradient-primary);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600;
  color:var(--primary);
  background:rgba(0,82,204,0.08);
  border:1px solid rgba(0,82,204,0.16);
  padding:6px 14px;
  border-radius:100px;
  margin-bottom:12px;
  letter-spacing:0.02em;
}
.eyebrow i{ font-size:11px; }
.bg-dark .eyebrow{ background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.14); color:#8FB4FF; }

.section-head{ max-width:680px; }
.section-head.mx-auto{ text-align:center; }
.section-head h2{ font-size:36px; margin-bottom:10px; }
.section-head p{ color:var(--muted); font-size:16px; margin-bottom:0; }

/* ---------- BUTTONS ---------- */
.btn{ border-radius:10px; font-weight:600; font-size:15px; padding:12px 26px; transition:all .25s ease; border:none; }
.btn-p2l-primary{
  background:var(--gradient-primary); color:#fff;
  box-shadow:0 6px 18px rgba(0,82,204,0.28);
}
.btn-p2l-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(0,82,204,0.36); color:#fff; }
.btn-p2l-outline{
  background:#fff; color:var(--dark); border:1.5px solid var(--line);
}
.btn-p2l-outline:hover{ border-color:var(--primary); color:var(--primary); transform:translateY(-2px); }
.bg-dark .btn-p2l-outline{ background:transparent; color:#fff; border-color:rgba(255,255,255,0.25); }
.bg-dark .btn-p2l-outline:hover{ border-color:#fff; }
.btn-sm-pill{ padding:8px 18px; font-size:13.5px; border-radius:100px; }

/* ---------- NAVBAR ---------- */
.navbar{
  padding:16px 0;
  background:rgba(248,250,252,0.85);
  backdrop-filter:blur(12px);
  transition:box-shadow .25s ease, padding .25s ease;
}
.navbar.scrolled{ box-shadow:var(--shadow-sm); padding:10px 0; }
.navbar-brand{ display:flex; align-items:center; gap:10px; }
.navbar-brand img{ height:34px; width:auto; }
.navbar-brand .brand-name{ font-family:'Poppins',sans-serif; font-weight:700; font-size:19px; color:var(--dark); }
.navbar-brand .brand-sub{ font-size:9.5px; letter-spacing:0.12em; color:var(--muted); text-transform:uppercase; display:block; margin-top:-2px; }
.nav-link{ font-weight:500; font-size:14.5px; color:var(--dark-soft) !important; padding:8px 16px !important; }
.nav-link:hover, .nav-link.active{ color:var(--primary) !important; }
.navbar .dropdown-menu{ border:none; box-shadow:var(--shadow-lg); border-radius:var(--radius-sm); padding:10px; }
.navbar .dropdown-item{ border-radius:8px; padding:9px 14px; font-size:14px; }
.navbar .dropdown-item:hover{ background:var(--bg-alt); color:var(--primary); }

/* ---------- HERO ---------- */
.hero{
  padding:88px 0 36px;
  background:
    radial-gradient(760px 420px at 88% -8%, rgba(0,82,204,0.10), transparent 65%),
    radial-gradient(600px 340px at -5% 30%, rgba(0,184,148,0.08), transparent 60%),
    var(--bg);
  position:relative; overflow:hidden;
}
.hero h1{ font-size:42px; line-height:1.2; }
.hero p.lead{ font-size:18px; color:var(--muted); max-width:540px; }
.hero-stats{ display:flex; gap:36px; margin-top:24px; flex-wrap:wrap; }
.hero-stats .stat b{ font-family:'Poppins',sans-serif; font-size:24px; color:var(--dark); display:block; }
.hero-stats .stat span{ font-size:12.5px; color:var(--muted); }

@media (min-width: 992px){
  .hero-dash-col{ margin-top:54px; }
}

/* glass dashboard mock */
.glass-card{
  background:rgba(255,255,255,0.72);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,0.6);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  padding:26px;
}
.dash-mock .dash-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.dash-mock .dash-head .dots span{ width:9px; height:9px; border-radius:50%; display:inline-block; margin-right:5px; }
.dash-pill{ font-size:11px; font-weight:600; padding:4px 10px; border-radius:100px; background:rgba(0,184,148,0.12); color:#059669; margin-right:135px; }
.dash-row{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--line); font-size:13.5px; }
.dash-row:last-child{ border-bottom:none; }
.dash-avatar{ width:32px; height:32px; border-radius:9px; background:var(--gradient-primary); display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:11px; font-weight:700; margin-right:10px; }
.dash-bar-chart{ display:flex; align-items:flex-end; gap:8px; height:70px; margin-top:14px; }
.dash-bar-chart div{ flex:1; background:var(--gradient-primary); border-radius:5px 5px 0 0; opacity:0.85; }
.float-badge{
  position:absolute; background:#fff; border-radius:14px; box-shadow:var(--shadow-lg);
  padding:12px 16px; display:flex; align-items:center; gap:10px; font-size:12.5px; font-weight:600;
  z-index:2;
}
.float-badge i{ width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:14px; }

/* ---------- CARDS ---------- */
.card-p2l{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-md);
  padding:32px 28px; height:100%; transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-p2l:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:transparent; }
.card-icon{
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:var(--gradient-soft); color:var(--primary); font-size:20px;
  margin-bottom:20px;
}
.card-p2l h3, .card-p2l h4{ font-size:18px; margin-bottom:10px; }
.card-p2l p{ color:var(--muted); font-size:14.5px; margin-bottom:0; }

.feature-item{ display:flex; gap:16px; padding:20px 0; border-bottom:1px solid var(--line); }
.feature-item:last-child{ border-bottom:none; }
.feature-item i{ width:42px; height:42px; border-radius:11px; background:var(--gradient-soft); color:var(--primary); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:16px; }
.feature-item h4{ font-size:15.5px; margin-bottom:4px; }
.feature-item p{ font-size:13.5px; color:var(--muted); margin:0; }

.product-card{ background:#fff; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--line); height:100%; transition:box-shadow .25s ease, transform .25s ease; }
.product-card:hover{ box-shadow:var(--shadow-lg); transform:translateY(-6px); }
.product-card .p-top{ background:var(--gradient-soft); padding:34px 28px 24px; }
.product-card .p-top i{ font-size:26px; color:var(--primary); }
.product-card .p-body{ padding:22px 28px 28px; }
.product-card h3{ font-size:17.5px; margin-bottom:8px; }
.product-card p{ font-size:14px; color:var(--muted); }

.industry-card{ position:relative; border-radius:var(--radius-md); overflow:hidden; padding:30px 24px; background:var(--gradient-dark); color:#fff; min-height:190px; display:flex; flex-direction:column; justify-content:flex-end; transition:transform .25s ease; }
.industry-card:hover{ transform:translateY(-6px); }
.industry-card i{ font-size:24px; margin-bottom:14px; color:#8FB4FF; }
.industry-card h4{ color:#fff; font-size:17px; margin-bottom:0; }

.stat-block{ text-align:center; }
.stat-block .num{ font-family:'Poppins',sans-serif; font-weight:700; font-size:42px; color:var(--dark); }
.bg-dark .stat-block .num{ color:#fff; }
.stat-block .lbl{ color:var(--muted); font-size:14px; margin-top:4px; }
.bg-dark .stat-block .lbl{ color:#94A3B8; }

.testimonial-card{ background:#fff; border-radius:var(--radius-md); padding:30px; border:1px solid var(--line); height:100%; }
.testimonial-card .stars{ color:#F59E0B; font-size:13px; margin-bottom:14px; }
.testimonial-card p.quote{ font-size:15px; color:var(--dark-soft); margin-bottom:22px; }
.testimonial-author{ display:flex; align-items:center; gap:12px; }
.testimonial-author .avatar{ width:44px; height:44px; border-radius:50%; background:var(--gradient-primary); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:14px; }
.testimonial-author .name{ font-weight:600; font-size:14px; color:var(--dark); }
.testimonial-author .role{ font-size:12.5px; color:var(--muted); }

.partner-logo{ display:flex; align-items:center; justify-content:center; height:64px; border:1px solid var(--line); border-radius:12px; background:#fff; font-family:'Poppins',sans-serif; font-weight:600; color:var(--muted); font-size:14px; transition:box-shadow .2s ease, color .2s ease; }
.partner-logo:hover{ box-shadow:var(--shadow-sm); color:var(--primary); }

.tech-chip{ display:inline-flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 18px; font-weight:600; font-size:14px; color:var(--dark); box-shadow:var(--shadow-sm); }
.tech-chip i{ color:var(--primary); font-size:18px; }

.security-item{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-md); padding:26px; height:100%; }
.security-item i{ width:46px; height:46px; border-radius:12px; background:rgba(0,184,148,0.1); color:var(--secondary); display:flex; align-items:center; justify-content:center; font-size:19px; margin-bottom:16px; }
.security-item h4{ font-size:16px; margin-bottom:8px; }
.security-item p{ font-size:13.5px; color:var(--muted); margin:0; }

.check-card{ display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:18px 20px; }
.check-card i{ color:var(--secondary); font-size:18px; }
.check-card span{ font-weight:600; font-size:14.5px; color:var(--dark); }

.timeline-step{ display:flex; gap:20px; }
.timeline-step .num-circle{ width:44px; height:44px; border-radius:50%; background:var(--gradient-primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-family:'Poppins',sans-serif; flex-shrink:0; }
.timeline-step .line{ width:2px; flex:1; background:var(--line); margin:6px 0; }

/* ---------- CTA BAND ---------- */
.cta-band{ background:var(--gradient-primary); border-radius:var(--radius-lg); padding:60px; color:#fff; position:relative; overflow:hidden; }
.cta-band h2{ color:#fff; font-size:32px; }
.cta-band p{ color:rgba(255,255,255,0.85); }
.cta-band .btn-p2l-outline{ background:rgba(255,255,255,0.12); color:#fff; border-color:rgba(255,255,255,0.35); }
.cta-band .btn-p2l-outline:hover{ background:rgba(255,255,255,0.2); }

/* ---------- FOOTER ---------- */
footer.site-footer{ background:#0F172A; color:#94A3B8; padding:72px 0 24px; }
footer.site-footer h5{ color:#fff; font-size:15px; margin-bottom:20px; }
footer.site-footer ul li{ margin-bottom:11px; }
footer.site-footer a{ color:#94A3B8; font-size:14px; transition:color .2s ease; }
footer.site-footer a:hover{ color:#fff; }
footer.site-footer .footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
footer.site-footer .footer-brand img{ height:30px; }
footer.site-footer .footer-brand span{ font-family:'Poppins',sans-serif; font-weight:700; color:#fff; font-size:17px; }
footer.site-footer p.desc{ font-size:14px; line-height:1.7; max-width:280px; }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{ width:36px; height:36px; border-radius:9px; background:rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ background:var(--primary); color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,0.08); margin-top:48px; padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; }

/* ---------- BACK TO TOP ---------- */
#backToTop{
  position:fixed; bottom:28px; right:28px; z-index:999;
  width:46px; height:46px; border-radius:50%;
  background:var(--gradient-primary); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-lg);
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:all .3s ease; border:none; cursor:pointer;
}
#backToTop.show{ opacity:1; visibility:visible; transform:translateY(0); }

/* ---------- PAGE HEADER (interior pages) ---------- */
.page-header{ padding:110px 0 60px; background:var(--gradient-dark); color:#fff; }
.page-header h1{ color:#fff; font-size:38px; }
.page-header .breadcrumb-p2l{ font-size:13px; color:#94A3B8; margin-bottom:14px; }
.page-header .breadcrumb-p2l a:hover{ color:#fff; }
.page-header .breadcrumb-p2l i{ font-size:9px; margin:0 8px; }
.page-header p{ color:#B8C4D9; max-width:560px; margin-top:12px; }

/* ---------- CONTACT ---------- */
.contact-info-card{ display:flex; gap:16px; align-items:flex-start; padding:20px 0; border-bottom:1px solid var(--line); }
.contact-info-card:last-child{ border-bottom:none; }
.contact-info-card i{ width:44px; height:44px; border-radius:12px; background:var(--gradient-soft); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.contact-info-card h4{ font-size:15px; margin-bottom:3px; }
.contact-info-card p{ font-size:14px; color:var(--muted); margin:0; }
.map-placeholder{ height:220px; border-radius:var(--radius-md); background:var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M0 50h100M50 0v100' stroke='%23E2E8F0' stroke-width='1'/%3E%3C/svg%3E"); display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:14px; border:1px dashed var(--line); }
.form-control{ border:1.5px solid var(--line); border-radius:10px; padding:12px 14px; font-size:14.5px; }
.form-control:focus{ border-color:var(--primary); box-shadow:0 0 0 4px rgba(0,82,204,0.1); }
label.form-label{ font-size:13px; font-weight:600; color:var(--dark); margin-bottom:6px; }

@media (max-width: 991px){
  .hero{ padding:78px 0 28px; }
  .hero h1{ font-size:36px; }
  .page-header{ padding:76px 0 28px; }
  .section{ padding:26px 0; }
  .cta-band{ padding:30px 20px; text-align:center; }
  footer.site-footer{ padding:40px 0 16px; }
}
