/* ==========================================
   Bimini Loan Landing Page Styles
   Colors: #3461FD (primary), #101010, #5C5C5C, #787878
   Font: SF Pro / System
   ========================================== */

/* CSS Variables */
:root {
    --primary: #3461FD;
    --primary-dark: #2850d9;
    --primary-light: #5a7eff;
    --black: #101010;
    --gray-dark: #5C5C5C;
    --gray: #787878;
    --gray-light: #a0a0a0;
    --gray-lighter: #e5e5e5;
    --white: #ffffff;
    --bg-light: #f8f9fc;
    
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(52, 97, 253, 0.08);
    --shadow-md: 0 8px 30px rgba(52, 97, 253, 0.12);
    --shadow-lg: 0 20px 60px rgba(52, 97, 253, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-header {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
}

.logo-icon {
    width: 45px;
    height: 45px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-dark);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-lighter);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-dark);
    padding: 8px 0;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(52, 97, 253, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 97, 253, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 540px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 17px;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 14px;
    color: var(--gray);
}

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

.phone-mockup {
    position: relative;
    width: 280px;
    height: 580px;
    background: var(--black);
    border-radius: 44px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}

.phone-mockup img {
    border-radius: 36px;
}

.phone-mockup.small {
    width: 240px;
    height: 500px;
    border-radius: 36px;
    padding: 10px;
}

.phone-mockup.small img {
    border-radius: 28px;
}

.phone-mockup.light-phone {
    background: #1a1a1a;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #3461FD 0%, #2850d9 100%);
    border-radius: 34px;
    overflow: hidden;
    position: relative;
}

.phone-mockup.small .phone-screen {
    border-radius: 28px;
}

/* Placeholder Image */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
}

.placeholder-image::after {
    content: attr(data-label);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    animation: float 3s ease-in-out infinite;
}

.floating-card .card-icon {
    width: 32px;
    height: 32px;
    background: #e8f0fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.card-1 {
    top: 20%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 25%;
    left: -5%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--white);
}

.section-dark {
    background: var(--black);
}

.section-gradient {
    background: linear-gradient(270deg, #09CAFF 12.96%, #0066CC 76.64%);
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(52, 97, 253, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.section-title {
    font-size: 40px;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title.white {
    color: var(--white);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-dark);
    line-height: 1.6;
}

.section-subtitle.white {
    color: rgba(255, 255, 255, 0.85);
}

.section-text {
    font-size: 17px;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 28px;
}

.section-text.light {
    color: rgba(255, 255, 255, 0.8);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-grid.reverse {
    direction: rtl;
}

.section-grid.reverse > * {
    direction: ltr;
}

.section-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Feature List */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--gray-dark);
}

.check-icon {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
}

.check-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
}

/* ==========================================
   FEATURES GRID
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: rgba(52, 97, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
}

.feature-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--black);
}

.feature-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

/* ==========================================
   AI SECTION
   ========================================== */
.ai-bubble {
    position: absolute;
    background: var(--white);
    padding: 12px 18px;
    border-radius: 20px 20px 20px 4px;
    box-shadow: var(--shadow-card);
    font-size: 13px;
    color: var(--gray-dark);
    animation: floatBubble 4s ease-in-out infinite;
}

.bubble-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.bubble-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
    border-radius: 20px 20px 4px 20px;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-8px); opacity: 1; }
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--gray-dark);
}

.ai-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* ==========================================
   STATUS TAGS
   ========================================== */
.status-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.status-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-tag.submitted {
    background: rgba(52, 97, 253, 0.2);
    color: #5a7eff;
}

.status-tag.pending {
    background: rgba(254, 168, 6, 0.2);
    color: #FEA706;
}

.status-tag.approved {
    background: rgba(53, 208, 129, 0.2);
    color: #35D081;
}

.status-tag.declined {
    background: rgba(250, 0, 0, 0.2);
    color: #FF0000;
}

/* ==========================================
   TOOLS SECTION
   ========================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.tool-card {
    background: var(--bg-light);
    padding: 28px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--gray-lighter);
    transition: var(--transition);
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tool-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.tool-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
}

.tool-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--black);
}

.tool-card p {
    font-size: 13px;
    color: var(--gray);
}

.tools-footer {
    text-align: center;
    font-size: 16px;
    color: var(--gray-dark);
}

/* ==========================================
   TRUST SECTION
   ========================================== */
.section-trust {
    background: var(--bg-light);
    padding: 100px 0;
}

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

.trust-lead {
    font-size: 20px;
    color: var(--gray-dark);
    margin-bottom: 40px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--gray-dark);
    box-shadow: var(--shadow-sm);
}

.trust-x {
    color: #dc3545;
    font-weight: 700;
    font-size: 18px;
}

.trust-check {
    color: #28a745;
    font-weight: 700;
    font-size: 18px;
}

.trust-footer {
    font-size: 17px;
    color: var(--black);
    font-weight: 500;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: rgba(52, 97, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
}

.contact-text {
    font-size: 17px;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.contact-email {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    padding: 12px 28px;
    background: rgba(52, 97, 253, 0.08);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.contact-email:hover {
    background: rgba(52, 97, 253, 0.15);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.section-cta {
    background: linear-gradient(135deg, #3461FD 0%, #2850d9 100%);
    padding: 80px 0;
}

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

.cta-content h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.cta-note {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-company {
    font-size: 14px;
    color: var(--gray);
}

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

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-disclaimer {
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-disclaimer p {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.7;
}

.footer-disclaimer strong {
    color: var(--gray-light);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .features-grid,
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .section-grid.reverse {
        direction: ltr;
    }
    
    .section-content {
        text-align: center;
    }
    
    .feature-list {
        align-items: center;
    }
    
    .ai-features {
        align-items: center;
    }
    
    .status-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav,
    .btn-header {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .floating-card {
        display: none;
    }
    
    .ai-bubble {
        display: none;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .phone-mockup {
        width: 220px;
        height: 450px;
    }
    
    .phone-mockup.small {
        width: 200px;
        height: 410px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}