/* ============================================================
   Splity Pay — Shared Stylesheet (Clean Purple Theme)
   ============================================================ */

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

:root {
  --white:      #ffffff;
  --off:        #f7f6ff;
  --lavender:   #f0eeff;
  --border:     #e8e4f8;
  --purple:     #7c3aed;
  --purple-dk:  #5b21b6;
  --purple-lt:  #a78bfa;
  --purple-xs:  #ede9fe;
  --text:       #0f0a1e;
  --muted:      #64748b;
  --light:      #94a3b8;
}

body { font-family: 'Inter', sans-serif; background: #fff; color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5 { line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
p { color: var(--muted); }

/* ---- Reusables ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ---- Pill Badge ---- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--border); background: var(--white); color: var(--purple);
}
.pill-purple { background: var(--purple); color: #fff; border-color: var(--purple); }
.pill-xs     { background: var(--purple-xs); border-color: var(--border); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s ease; text-decoration: none; border: none;
}
.btn-primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.25);
}
.btn-primary:hover { background: var(--purple-dk); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(124,58,237,0.35); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-xs); }
.btn-ghost { background: transparent; color: var(--purple); padding: 8px 0; }
.btn-ghost:hover { gap: 14px; }

/* ---- Cards ---- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: all 0.25s ease;
}
.card:hover { border-color: var(--purple-lt); box-shadow: 0 12px 40px rgba(124,58,237,0.1); transform: translateY(-3px); }
.card-purple { background: var(--purple); color: #fff; border-color: var(--purple); }
.card-lavender { background: var(--lavender); border-color: var(--border); }
.card-off { background: var(--off); border-color: var(--border); }

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1200px; margin: 0 auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ---- Hero ---- */
.hero { padding: 160px 0 96px; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-kicker { margin-bottom: 20px; }
.hero h1 { font-size: clamp(42px, 5vw, 72px); margin-bottom: 20px; }
.hero-desc { font-size: 18px; margin-bottom: 36px; max-width: 440px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.hero-img { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 24px 80px rgba(124,58,237,0.1); }
.hero-img img { width: 100%; display: block; }

/* ---- Floating cards ---- */
.hero-float { position: relative; }
.float-card {
  position: absolute; background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  display: flex; align-items: center; gap: 12px; min-width: 180px;
}
.float-card-bottom { bottom: -20px; left: -32px; }
.float-card-top    { top: -20px; right: -32px; }
.float-card .icon  { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-card .label { font-size: 11px; color: var(--light); font-weight: 500; }
.float-card .value { font-size: 14px; font-weight: 700; color: var(--text); }

/* ---- Partner strip ---- */
.partners { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partners-label { font-size: 12px; font-weight: 600; color: var(--light); text-transform: uppercase; letter-spacing: 0.08em; text-align: center; margin-bottom: 28px; }
.partners-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.partner-logo-item { opacity: 0.35; transition: opacity 0.2s; filter: grayscale(1); font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.partner-logo-item:hover { opacity: 0.7; }

/* ---- Section header ---- */
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header h2 { font-size: clamp(32px, 4vw, 56px); margin: 12px 0 16px; }
.section-header p { font-size: 17px; max-width: 560px; }
.section-header.center p { margin: 0 auto; }

/* ---- Bento grid ---- */
.bento { display: grid; gap: 16px; }
.bento-2 { grid-template-columns: 1fr 1fr; }
.bento-3 { grid-template-columns: 1fr 1fr 1fr; }
.bento-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.bento-span2 { grid-column: span 2; }
.bento-span3 { grid-column: span 3; }

/* ---- Feature card ---- */
.feat-card { padding: 32px; }
.feat-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; background: var(--purple-xs); color: var(--purple); font-size: 20px; }
.feat-card.card-purple .feat-icon { background: rgba(255,255,255,0.2); color: #fff; }
.feat-card h3 { font-size: 18px; margin-bottom: 8px; }
.feat-card.card-purple p { color: rgba(255,255,255,0.75); }

/* ---- Stats ---- */
.stat-card { padding: 40px; }
.stat-card .num { font-size: 48px; font-weight: 900; color: var(--purple); letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.stat-card .label { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---- Service card ---- */
.svc-card { display: flex; flex-direction: column; }
.svc-card img { width: 100%; height: 200px; object-fit: cover; }
.svc-body { padding: 24px; flex: 1; }
.svc-body h3 { font-size: 17px; margin-bottom: 8px; }
.svc-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--purple); margin-top: 16px; transition: gap 0.2s; }
.svc-card:hover .svc-arrow { gap: 10px; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; text-align: left; background: none; border: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text); gap: 16px; }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--purple-xs); color: var(--purple); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; transition: transform 0.3s, background 0.2s; }
.faq-answer { max-height: 0; overflow: hidden; }
.faq-answer p { padding-bottom: 22px; font-size: 15px; line-height: 1.7; }

/* ---- Form ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 15px; color: var(--text);
  background: var(--white); outline: none; font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--light); }
.form-group select option { color: var(--text); }

/* ---- CTA Banner ---- */
.cta-banner { background: var(--purple); color: #fff; border-radius: 28px; padding: 72px 64px; }
.cta-banner h2 { color: #fff; }
.cta-banner p  { color: rgba(255,255,255,0.75); }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ---- Footer ---- */
footer { background: var(--off); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 240px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--purple); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; font-size: 14px; transition: all 0.2s; }
.social-link:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-xs); }

/* ---- Progress bar ---- */
.progress-bar { height: 3px; background: linear-gradient(90deg, var(--purple), var(--purple-lt)); position: fixed; top:0; left:0; z-index:9999; transition: width 0.1s; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f8f6ff; }
::-webkit-scrollbar-thumb { background: var(--purple-lt); border-radius: 3px; }

/* ---- Mobile hamburger ---- */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .bento-3 { grid-template-columns: 1fr 1fr; }
  .bento-4 { grid-template-columns: 1fr 1fr; }
  .bento-span3 { grid-column: span 2; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-img { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 24px; background: #fff; border-bottom: 1px solid var(--border); }
  .mobile-menu .nav-link { font-size: 16px; }
  .bento-2, .bento-3, .bento-4 { grid-template-columns: 1fr; }
  .bento-span2, .bento-span3 { grid-column: span 1; }
  .section { padding: 64px 0; }
  .cta-banner { padding: 48px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .float-card { display: none; }
  .partners-logos { gap: 24px; }
}
