/* =============================================
   CRANE FINANCE - Premium Stylesheet v2.0
   ============================================= */

/* CSS Variables */
:root {
    --primary: #0A1628;
    --primary-light: #1A2D4A;
    --secondary: #00D4AA;
    --secondary-dark: #00B894;
    --secondary-glow: rgba(0, 212, 170, 0.4);
    --accent: #FF6B35;
    --white: #FFFFFF;
    --light: #F7F9FC;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gradient-primary: linear-gradient(135deg, #0A1628 0%, #1A2D4A 100%);
    --gradient-secondary: linear-gradient(135deg, #00D4AA 0%, #00B894 100%);
    --gradient-hero: linear-gradient(135deg, #0A1628 0%, #0F2137 50%, #0A1628 100%);
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.12);
    --shadow-lg: 0 20px 50px rgba(10, 22, 40, 0.18);
    --shadow-xl: 0 25px 60px rgba(10, 22, 40, 0.25);
    --shadow-glow: 0 0 40px var(--secondary-glow);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--light);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Typography */
.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}
.btn:hover::before { opacity: 1; }
.btn-primary {
    background: var(--gradient-secondary);
    color: var(--primary);
    box-shadow: 0 4px 20px var(--secondary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--secondary-glow);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--gray-200);
}
.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary-dark);
    background: rgba(0, 212, 170, 0.05);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-lg { padding: 18px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 800;
}
.logo-icon { flex-shrink: 0; }
.logo-text { color: var(--primary); }
.logo-text .highlight { color: var(--secondary); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 8px 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 12px 24px; }
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 100px;
    background: var(--gradient-hero);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0, 184, 148, 0.1) 0%, transparent 50%);
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 0%, transparent 70%);
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content { color: var(--white); }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.hero-badge svg { flex-shrink: 0; }
.hero h1 {
    font-size: 54px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; margin-bottom: 56px; }
.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
}
.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}
.hero-stats { display: flex; align-items: center; gap: 36px; }
.stat { text-align: center; }
.stat-number {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
}
.stat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}
.stat-divider { width: 1px; height: 50px; background: rgba(255, 255, 255, 0.15); }

/* Loan Calculator Card */
.loan-calculator-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 36px;
    box-shadow: var(--shadow-xl);
    min-height: 420px;
    position: relative;
}
.loan-calculator-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-secondary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(20px);
}
.loan-calculator-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary);
}
.loan-calculator-card #_lg_form_ { min-height: 350px; }

/* Trust Badges */
.trust-badges {
    background: var(--white);
    padding: 32px 0;
    border-bottom: 1px solid var(--gray-100);
}
.badges-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.badge-item { display: flex; align-items: center; gap: 14px; }
.badge-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    color: var(--secondary);
}
.badge-text { display: flex; flex-direction: column; }
.badge-text strong { font-size: 14px; font-weight: 700; color: var(--primary); }
.badge-text span { font-size: 12px; color: var(--gray-500); }

/* Sections */
section { padding: 100px 0; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(0, 212, 170, 0.1);
    color: var(--secondary-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.section-header h2 { font-size: 40px; margin-bottom: 16px; }
.section-header p { font-size: 18px; color: var(--gray-500); line-height: 1.7; }

/* Trustpilot Summary */
.trustpilot-summary { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stars-row { display: flex; gap: 4px; }
.trust-text { font-size: 14px; color: var(--gray-500); }

/* Features */
.features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
    padding: 36px 28px;
    background: var(--light);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 212, 170, 0.2);
}
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--primary);
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--gray-500); line-height: 1.7; font-size: 15px; }

/* How It Works */
.how-it-works-preview { background: var(--light); }
.steps-timeline { display: flex; align-items: flex-start; justify-content: center; gap: 24px; margin-bottom: 48px; }
.step { flex: 1; max-width: 300px; text-align: center; }
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    color: var(--primary);
    margin: 0 auto 24px;
    box-shadow: var(--shadow-glow);
    position: relative;
}
.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed var(--secondary);
    opacity: 0.3;
}
.step-content h3 { font-size: 20px; margin-bottom: 10px; }
.step-content p { color: var(--gray-500); line-height: 1.7; }
.step-connector {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--gray-200));
    margin-top: 36px;
    border-radius: 2px;
}

/* Testimonials */
.testimonials { background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
    padding: 28px;
    background: var(--light);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.testimonial-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.stars { display: flex; gap: 2px; }
.review-date { font-size: 13px; color: var(--gray-400); }
.testimonial-card > p { font-size: 15px; color: var(--gray-700); line-height: 1.7; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-info { display: flex; flex-direction: column; flex: 1; }
.author-name { font-weight: 600; color: var(--primary); font-size: 15px; }
.author-location { font-size: 13px; color: var(--gray-500); }
.verified-badge { flex-shrink: 0; }

/* CTA */
.cta-section {
    background: var(--gradient-hero);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0, 212, 170, 0.15) 0%, transparent 50%);
}
.cta-content { position: relative; text-align: center; max-width: 600px; margin: 0 auto; }
.cta-content h2 { font-size: 40px; color: var(--white); margin-bottom: 16px; }
.cta-content > p { font-size: 18px; color: rgba(255, 255, 255, 0.75); margin-bottom: 36px; }
.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer { background: var(--primary); color: var(--white); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand > p { color: rgba(255, 255, 255, 0.6); max-width: 280px; line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: var(--primary); }
.footer-links h4, .footer-contact h4 { font-size: 15px; font-weight: 700; margin-bottom: 20px; color: var(--white); }
.footer-links ul { display: flex; flex-direction: column; gap: 14px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); font-size: 15px; }
.footer-links a:hover { color: var(--secondary); }
.contact-item { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.6); font-size: 14px; margin-bottom: 14px; }
.contact-item svg { flex-shrink: 0; color: var(--secondary); }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 14px; }
.disclaimer { margin-top: 8px; font-size: 12px !important; }

/* Page Header */
.page-header {
    background: var(--gradient-hero);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
}
.page-header h1 { font-size: 48px; color: var(--white); margin-bottom: 16px; position: relative; }
.page-header p { font-size: 18px; color: rgba(255, 255, 255, 0.75); max-width: 600px; margin: 0 auto; position: relative; }

/* Content Sections */
.content-section { padding: 80px 0; }
.content-section.alt { background: var(--white); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--gray-700); margin-bottom: 8px; }
.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Responsive */
@media (max-width: 1024px) {
    .badges-wrapper { justify-content: center; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 600px; margin: 0 auto; }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .loan-calculator-card { max-width: 480px; margin: 0 auto; }
    .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .badges-wrapper { justify-content: center; gap: 20px; }
    .badge-item { flex: 0 0 45%; justify-content: center; }
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 36px; }
    .hero-cta { flex-direction: column; }
    .hero-stats { flex-wrap: wrap; }
    .stat-divider { display: none; }
    .section-header h2 { font-size: 32px; }
    .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .steps-timeline { flex-direction: column; align-items: center; }
    .step-connector { width: 2px; height: 40px; margin: 0; background: linear-gradient(180deg, var(--secondary), var(--gray-200)); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand > p { margin: 0 auto 24px; }
    .footer-social { justify-content: center; }
    .page-header h1 { font-size: 36px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero-badge { font-size: 12px; padding: 8px 14px; }
    .loan-calculator-card { padding: 24px; }
    .btn-lg { padding: 14px 24px; font-size: 14px; }
    .section-header h2 { font-size: 26px; }
    .badge-item { flex: 0 0 100%; }
}

/* Animation */
.animate-element { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-element.animate-in { opacity: 1; transform: translateY(0); }
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.form-control.error { border-color: #EF4444; }

@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        gap: 16px;
    }
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}
