/* ============================================
   BorrowCash Website Styles
   ============================================ */

/* CSS Variables */
:root {
    --navy: #0D47A1;
    --navy-dark: #083575;
    --blue: #1976D2;
    --blue-light: #E3F2FD;
    --gold: #FFC107;
    --green: #2E7D32;
    --text-dark: #212121;
    --text-med: #061825;
    --text-light: #9E9E9E;
    --bg-cream: #FFFBF5;
    --bg-white: #FFFFFF;
    --border: #E0E0E0;
    --shadow: 0 4px 20px rgba(13, 71, 161, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Fraunces', serif;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-med);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--navy);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    transition: all 0.3s;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-secondary:hover {
    background: var(--blue-light);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.05) 0%, rgba(25, 118, 210, 0.05) 100%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--navy);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: var(--gold);
    opacity: 0.5;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-med);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    gap: 3rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-med);
    font-weight: 500;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 30px 60px rgba(13, 71, 161, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-cream);
    border-radius: 30px;
    overflow: hidden;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.app-preview {
    width: 100%;
}

.preview-header {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 15px 15px 0 0;
    font-weight: 600;
}

.preview-content {
    background: white;
    padding: 1rem;
    border-radius: 0 0 15px 15px;
}

.preview-card {
    background: var(--blue-light);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.card-label {
    font-size: 0.75rem;
    color: var(--text-med);
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-white);
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-med);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--text-med);
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: var(--bg-cream);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.step-text {
    color: var(--text-med);
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.9;
    font-size: 0.875rem;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--navy);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-med);
    line-height: 1.7;
}

/* Download Section */
.download {
    padding: 6rem 0;
    background: var(--bg-cream);
}

.download-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--navy);
    margin-bottom: 1rem;
}

.download-subtitle {
    font-size: 1.125rem;
    color: var(--text-med);
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--text-dark);
    color: white;
    border-radius: 12px;
    transition: transform 0.3s;
}

.store-button:hover {
    transform: translateY(-2px);
}

.store-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.store-name {
    font-size: 1.125rem;
    font-weight: 600;
}

.download-note {
    color: var(--text-med);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    opacity: 0.8;
}

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

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
