/* --- VARIABLES --- */
:root {
    --navy: #000080;
    --navy-light: #1A1A99;
    --saffron: #FF9933;
    --saffron-hover: #E68A2E;
    --bg-light: #F5F6F9;
    --text-dark: #0D1F2D;
    --text-muted: #666666;
    --green: #138808;
    --white: #FFFFFF;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .badge, .btn, .logo {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(245, 246, 249, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 128, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-weight: 800;
    font-size: 22px;
    color: var(--navy);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

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

/* --- BUTTONS --- */
.btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--saffron);
    color: var(--white);
    border: 2px solid var(--saffron);
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.btn-primary:hover {
    background-color: var(--saffron-hover);
    border-color: var(--saffron-hover);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--navy);
    color: var(--white);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 160px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}

.shape-1 {
    width: 500px;
    height: 500px;
    background-color: rgba(0, 0, 128, 0.05);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background-color: rgba(255, 153, 51, 0.08);
    bottom: -50px;
    left: -100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(0, 0, 128, 0.08);
    color: var(--navy);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 24px;
}

.hero-content .highlight {
    color: var(--saffron);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.store-btn img {
    height: 48px;
    transition: transform 0.3s ease;
}

.store-btn:hover img {
    transform: translateY(-3px);
}

.trust-indicators {
    display: flex;
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 600;
}

/* --- HERO VISUAL & MOCKUP --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 620px;
    background-color: var(--white);
    border-radius: 40px;
    border: 12px solid var(--text-dark);
    box-shadow: 0 25px 50px rgba(0, 0, 128, 0.15);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: var(--text-dark);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.app-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    z-index: 5;
}

.card-1 {
    top: 15%;
    left: -40px;
    animation: float 5s ease-in-out infinite alternate;
}

.card-2 {
    bottom: 20%;
    right: -40px;
    animation: float 7s ease-in-out infinite alternate-reverse;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.green {
    background-color: var(--green);
    box-shadow: 0 0 10px rgba(19, 136, 8, 0.5);
}

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

/* --- ANIMATION CLASSES --- */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}
.fade-up { transform: translateY(30px); }
.slide-left { transform: translateX(40px); }
.slide-right { transform: translateX(-40px); }

/* --- LAYOUT SECTIONS --- */
.section {
    padding: 100px 0;
    overflow: hidden; /* Prevent animation overflow */
}

.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--bg-light); }
.bg-navy { background-color: var(--navy); }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-light { color: rgba(255, 255, 255, 0.8) !important; }
.mt-30 { margin-top: 30px; }
.justify-center { justify-content: center; }

.section-header {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--navy);
    margin: 20px 0;
    border-radius: 4px;
}
.divider.saffron { background-color: var(--saffron); }

/* --- FEATURES GRID --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 128, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,128,0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 153, 51, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- SPLIT LAYOUT --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl; 
}
.split-layout.reverse > * {
    direction: ltr; 
}

.split-content h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.2;
}

.split-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
}

/* Visual Placeholder Blocks */
.visual-box {
    background: var(--bg-light);
    border-radius: 24px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,128,0.05);
}

.stat-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 12px solid var(--saffron);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stat-number { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600;}

.floating-alert {
    position: absolute;
    bottom: 40px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--green);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.vault-illustration {
    background: var(--navy-light);
    border-radius: 24px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.vault-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    animation: float 6s ease-in-out infinite;
}

/* --- FOOTER --- */
.footer {
    background: var(--white);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(0,0,128,0.05);
}

.cta-box {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.cta-box h2 {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,128,0.05);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--navy);
    font-weight: 600;
}

/* --- GO TO TOP BUTTON --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--saffron);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
}

.scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--navy);
    box-shadow: 0 6px 20px rgba(0, 0, 128, 0.3);
    transform: translateY(-3px);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
    .split-layout, .split-layout.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .section-header h2 { font-size: 2rem; }
    .split-content h2 { font-size: 1.8rem; }
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-links span {
        display: block;
        margin: 0 0 10px 0 !important;
    }
    .cta-box h2 { font-size: 1.8rem; }
    
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
    }
}

/* ==========================================================================
   SPLIT PAGE LAYOUT (LOGIN / SIGNUP)
   ========================================================================== */

/* Remove scrolling on desktop for the split view */
.split-page-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background-color: var(--white);
}

.split-page-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- LEFT 70%: VISUAL --- */
.split-visual-section {
    flex: 0 0 70%;
    background-color: var(--navy);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 8%;
    box-shadow: inset -10px 0 30px rgba(0,0,0,0.2);
}

.split-visual-content {
    position: relative;
    z-index: 10;
}

/* Glowing Background Orbs */
.split-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.6;
}

.orb-primary {
    width: 600px;
    height: 600px;
    background: var(--saffron);
    top: -200px;
    left: -200px;
    animation: float 10s ease-in-out infinite alternate;
}

.orb-secondary {
    width: 500px;
    height: 500px;
    background: #00E5FF; /* Cyan for a tech feel */
    bottom: -150px;
    right: 10%;
    animation: float 8s ease-in-out infinite alternate-reverse;
}

/* --- RIGHT 30%: FORM --- */
.split-form-section {
    flex: 0 0 30%;
    min-width: 400px; /* Prevents it from getting too skinny */
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 20;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto; /* Allows scrolling if screen is too short */
}

.form-container {
    width: 100%;
    max-width: 360px; /* Keeps the form inputs at a readable width */
}

/* --- FORM ELEMENTS --- */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 1.1rem;
    color: var(--navy);
    opacity: 0.6;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 48px; /* Extra padding on left for icon */
    background-color: var(--bg-light);
    border: 1px solid rgba(0,0,128,0.1);
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--saffron);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.1);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    border-radius: 12px; /* Matches input fields */
}

/* --- LINKS --- */
.forgot-link {
    font-size: 0.85rem;
    color: var(--saffron);
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--saffron-hover);
    text-decoration: underline;
}

.signup-prompt {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,128,0.05);
}

.signup-prompt p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.signup-prompt a {
    color: var(--navy);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
}

.signup-prompt a:hover {
    color: var(--saffron);
    text-decoration: underline;
}

/* --- RESPONSIVE COLLAPSE FOR LOGIN --- */
@media (max-width: 1024px) {
    /* Adjust ratios on smaller laptops */
    .split-visual-section { flex: 0 0 60%; }
    .split-form-section { flex: 0 0 40%; }
}

@media (max-width: 768px) {
    /* Hide the visual section entirely on mobile/tablets */
    .split-page-body {
        overflow: auto; /* Re-enable scrolling on mobile */
    }
    .split-page-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .split-visual-section {
        display: none; /* Hides the 70% graphic completely */
    }
    .split-form-section {
        flex: 1;
        width: 100%;
        min-width: 100%;
        box-shadow: none;
        padding: 40px 20px;
    }
}