/* LoanFunnel Static Website Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary-50: #eff6ff; --primary-100: #dbeafe; --primary-200: #bfdbfe;
  --primary-500: #3b82f6; --primary-600: #2563eb; --primary-700: #1d4ed8;
  --primary-800: #1e40af; --primary-900: #1e3a8a;
  --accent-400: #4ade80; --accent-500: #22c55e; --accent-600: #16a34a; --accent-700: #15803d;
  --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-300: #d1d5db;
  --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563; --gray-700: #374151;
  --gray-800: #1f2937; --gray-900: #111827;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; background: var(--gray-50); color: var(--gray-900); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* Navbar */
.navbar { background: #fff; border-bottom: 1px solid var(--gray-100); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { display: flex; align-items: center; gap: .5rem; }
.logo-icon { width: 32px; height: 32px; background: var(--primary-600); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--gray-600); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--primary-600); }
.nav-links .btn-sm { background: var(--primary-600); color: #fff; padding: .5rem 1rem; border-radius: 8px; font-size: .875rem; }
.nav-links .btn-sm:hover { background: var(--primary-700); color: #fff; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--gray-100); padding: 1rem; }
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: .75rem 0; color: var(--gray-600); font-weight: 500; }

/* Buttons */
.btn-primary { display: inline-block; background: var(--primary-600); color: #fff; font-weight: 600; padding: .75rem 1.5rem; border-radius: 8px; border: none; cursor: pointer; transition: all .2s; font-size: 1rem; }
.btn-primary:hover { background: var(--primary-700); box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.btn-accent { display: inline-block; background: var(--accent-600); color: #fff; font-weight: 600; padding: .75rem 1.5rem; border-radius: 8px; border: none; cursor: pointer; transition: all .2s; font-size: 1rem; }
.btn-accent:hover { background: var(--accent-700); box-shadow: 0 4px 12px rgba(22,163,74,.3); }
.btn-outline { display: inline-block; background: rgba(255,255,255,.1); color: #fff; font-weight: 600; padding: .75rem 1.5rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); cursor: pointer; transition: all .2s; }
.btn-outline:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary-600), var(--primary-700), var(--primary-900)); color: #fff; position: relative; overflow: hidden; padding: 6rem 0; }
.hero::before { content: ''; position: absolute; top: 5rem; left: 2rem; width: 18rem; height: 18rem; background: rgba(255,255,255,.08); border-radius: 50%; filter: blur(60px); }
.hero::after { content: ''; position: absolute; bottom: 2rem; right: 2rem; width: 24rem; height: 24rem; background: rgba(74,222,128,.06); border-radius: 50%; filter: blur(60px); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border-radius: 999px; padding: .375rem 1rem; margin-bottom: 1.5rem; font-size: .875rem; font-weight: 500; }
.hero-badge .dot { width: 8px; height: 8px; background: var(--accent-400); border-radius: 50%; }
.hero h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--accent-400); }
.hero p { font-size: 1.125rem; color: rgba(219,234,254,.9); margin-bottom: 2rem; max-width: 32rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { display: flex; gap: 1.5rem; margin-top: 2rem; font-size: .875rem; color: rgba(219,234,254,.8); }
.hero-trust div { display: flex; align-items: center; gap: .5rem; }
.check-icon { color: var(--accent-400); }

.hero-card { background: rgba(255,255,255,.1); backdrop-filter: blur(12px); border-radius: 1rem; padding: 2rem; border: 1px solid rgba(255,255,255,.15); }
.hero-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero-card-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.hero-card-icon { width: 40px; height: 40px; background: var(--accent-500); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex-shrink: 0; }
.hero-card-item .title { font-weight: 600; }
.hero-card-item .desc { font-size: .875rem; color: rgba(219,234,254,.8); }

/* Sections */
.section { padding: 5rem 0; }
.section-white { background: #fff; }
.section-gray { background: var(--gray-50); }
.section-title { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); margin-bottom: .5rem; text-align: center; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-600); text-align: center; margin-bottom: 3rem; }

/* Cards Grid */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.card { background: #fff; border-radius: .75rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid var(--gray-100); padding: 1.5rem; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.card-center { text-align: center; }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h3 { font-weight: 600; color: var(--gray-900); margin-bottom: .25rem; }
.card .rate { color: var(--primary-600); font-weight: 600; font-size: .875rem; margin-top: .75rem; }
.card .desc { font-size: .875rem; color: var(--gray-500); margin-bottom: .75rem; }

/* Steps */
.step-icon { width: 56px; height: 56px; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: #fff; font-size: 1.25rem; font-weight: 700; }
.step-blue { background: var(--primary-600); }
.step-green { background: var(--accent-600); }
.step-purple { background: #9333ea; }

/* Stats */
.stats-row { display: flex; justify-content: center; gap: 4rem; margin-top: 2rem; }
.stat { text-align: center; }
.stat-value { font-size: 1.875rem; font-weight: 700; }
.stat-label { font-size: .875rem; color: var(--gray-500); }
.stat-blue { color: var(--primary-600); }
.stat-green { color: var(--accent-600); }
.stat-purple { color: #9333ea; }

/* CTA Section */
.cta-section { background: linear-gradient(to right, var(--primary-600), var(--primary-800)); color: #fff; padding: 4rem 0; text-align: center; }
.cta-section h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
.cta-section p { color: rgba(219,234,254,.9); font-size: 1.125rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--gray-900); color: var(--gray-300); padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer h3 { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: .5rem; font-size: .875rem; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--gray-800); margin-top: 2rem; padding-top: 2rem; text-align: center; font-size: .875rem; color: var(--gray-500); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 500; color: var(--gray-700); margin-bottom: .375rem; font-size: .875rem; }
.form-input { width: 100%; padding: .75rem 1rem; border-radius: 8px; border: 1px solid var(--gray-300); font-size: 1rem; outline: none; transition: all .2s; font-family: inherit; }
.form-input:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
textarea.form-input { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-card { background: #fff; border-radius: 1rem; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid var(--gray-100); max-width: 700px; margin: 0 auto; }

/* Calculator specific */
.calc-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 2rem; align-items: start; }
.result-card { background: var(--primary-600); color: #fff; border-radius: 1rem; padding: 2rem; text-align: center; }
.result-amount { font-size: 2.5rem; font-weight: 700; }
.result-label { font-size: .875rem; opacity: .8; }
.summary-card { background: #fff; border-radius: .75rem; padding: 1.5rem; border: 1px solid var(--gray-100); }
.summary-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--gray-100); font-size: .875rem; }
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--gray-600); }
.summary-row .value { font-weight: 600; }
.text-red { color: #dc2626; }
.text-bold { font-weight: 700; }

/* Resource Cards */
.resource-card { border-radius: 1rem; padding: 2rem; color: #fff; text-align: center; }
.resource-card h3 { font-size: 1.25rem; font-weight: 600; margin: 1rem 0 .5rem; }
.resource-card p { font-size: .875rem; opacity: .9; margin-bottom: 1.5rem; }
.resource-card .btn { display: inline-block; background: rgba(255,255,255,.2); color: #fff; font-weight: 600; padding: .625rem 1.25rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); cursor: pointer; transition: all .2s; }
.resource-card .btn:hover { background: rgba(255,255,255,.3); }
.rc-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.rc-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.rc-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.rc-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.rc-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.rc-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.rc-icon { font-size: 2.5rem; }

/* Hero variants */
.hero-teal { background: linear-gradient(135deg, #0d9488, #115e59); }
.hero-pink { background: linear-gradient(135deg, #ec4899, #9d174d); }
.hero-purple { background: linear-gradient(135deg, #a855f7, #6b21a8); }

/* Referral */
.referral-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.referral-step-icon { font-size: 3rem; margin-bottom: 1rem; }

/* Success state */
.success-card { background: #fff; border-radius: 1rem; padding: 3rem; text-align: center; max-width: 500px; margin: 0 auto; border: 1px solid var(--gray-100); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.success-icon { width: 64px; height: 64px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; }
.referral-code { font-family: monospace; font-size: 1.5rem; background: var(--gray-100); padding: .75rem 1.5rem; border-radius: 8px; display: inline-block; margin: 1rem 0; letter-spacing: 2px; font-weight: 700; }

/* Admin */
.admin-header { background: var(--gray-900); color: #fff; padding: 1rem 0; }
.admin-header .container { display: flex; justify-content: space-between; align-items: center; }
.admin-logo { display: flex; align-items: center; gap: .5rem; }
.admin-logo .icon { width: 32px; height: 32px; background: var(--primary-600); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.admin-right { display: flex; align-items: center; gap: 1.5rem; font-size: .875rem; }
.admin-right a { color: var(--gray-400); }
.admin-right a:hover { color: #fff; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border-radius: .75rem; padding: 1.5rem; border: 1px solid var(--gray-100); }
.stat-card .label { font-size: .875rem; color: var(--gray-500); margin-bottom: .25rem; }
.stat-card .number { font-size: 1.75rem; font-weight: 700; }
.stat-card .sub { font-size: .75rem; margin-top: .25rem; }

.table-wrap { background: #fff; border-radius: .75rem; border: 1px solid var(--gray-100); overflow: hidden; }
.table-wrap h3 { padding: 1rem 1.5rem; font-weight: 600; border-bottom: 1px solid var(--gray-100); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: .75rem 1.5rem; font-size: .75rem; text-transform: uppercase; color: var(--gray-500); background: var(--gray-50); font-weight: 600; }
td { padding: .75rem 1.5rem; border-top: 1px solid var(--gray-100); font-size: .875rem; }
.badge { display: inline-block; padding: .125rem .625rem; border-radius: 999px; font-size: .75rem; font-weight: 500; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }

/* Modal / Popup */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: #fff; border-radius: 1rem; padding: 2rem; max-width: 420px; width: 90%; }
.modal h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }

/* Chat Widget */
.chat-btn { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 56px; height: 56px; background: var(--primary-600); color: #fff; border: none; border-radius: 50%; cursor: pointer; z-index: 90; box-shadow: 0 4px 12px rgba(37,99,235,.4); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
.chat-window { display: none; position: fixed; bottom: 5.5rem; right: 1.5rem; width: 350px; max-height: 450px; background: #fff; border-radius: 1rem; box-shadow: 0 8px 30px rgba(0,0,0,.15); z-index: 90; overflow: hidden; flex-direction: column; }
.chat-window.active { display: flex; }
.chat-header { background: var(--primary-600); color: #fff; padding: 1rem; font-weight: 600; }
.chat-messages { flex: 1; padding: 1rem; overflow-y: auto; max-height: 300px; }
.chat-msg { margin-bottom: .75rem; font-size: .875rem; }
.chat-msg.bot { background: var(--gray-100); padding: .5rem .75rem; border-radius: 8px 8px 8px 2px; max-width: 85%; }
.chat-msg.user { background: var(--primary-600); color: #fff; padding: .5rem .75rem; border-radius: 8px 8px 2px 8px; max-width: 85%; margin-left: auto; }
.chat-input-row { display: flex; border-top: 1px solid var(--gray-200); }
.chat-input-row input { flex: 1; border: none; padding: .75rem; outline: none; font-size: .875rem; }
.chat-input-row button { background: var(--primary-600); color: #fff; border: none; padding: 0 1rem; cursor: pointer; font-weight: 600; }

/* Multi-step form */
.step-indicator { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.step-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .875rem; }
.step-dot.active { background: var(--primary-600); color: #fff; }
.step-dot.done { background: var(--accent-500); color: #fff; }
.step-dot.pending { background: var(--gray-200); color: var(--gray-500); }
.step-content { display: none; }
.step-content.active { display: block; }
.step-buttons { display: flex; justify-content: space-between; margin-top: 1.5rem; }

/* Checkbox */
.checkbox-row { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .75rem; font-size: .875rem; }
.checkbox-row input { margin-top: .25rem; }

/* Helpers */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.hidden { display: none; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-grid, .grid-5, .grid-3, .grid-2, .calc-layout, .footer-grid, .stat-cards, .referral-steps { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-trust { flex-direction: column; gap: .5rem; }
  .stats-row { flex-direction: column; gap: 1.5rem; }
  .hero { padding: 3rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .chat-window { width: calc(100% - 2rem); right: 1rem; }
}
