/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #002B5C;      /* Deep Navy from Logo Background */
    --primary-dark: #001A3D; /* Darker shade for hovers */
    --secondary: #F59E0B;    /* Gold/Amber from Padlock Body */
    
    --dark: #0F172A; /* Slate 900 */
    --text-gray: #475569; /* Slate 600 */
    --light-bg: #F8FAFC; /* Slate 50 */
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 16px; /* Increased radius for modern look */
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FIX: Remove default mobile tap highlight color so custom animations show clearly */
a, button, .btn, .step-content, .feature-item, .benefit-card {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--light-bg); /* Changed from white to light-bg for contrast */
    line-height: 1.6;
    overflow-x: hidden;
    
    /* Sticky Footer Setup */
    min-height: 100vh;      
    display: flex;          
    flex-direction: column; 
    
    /* Subtle mesh background for the whole body to enhance glassmorphism */
    background-image: 
        radial-gradient(at 0% 0%, hsla(210,100%,96%,1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, hsla(210,100%,96%,1) 0, transparent 50%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 10px;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 14px 0 rgba(255, 255, 255, 0.2);
}

/* Reverted to standard hover */
.btn-primary:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(255, 255, 255, 0.3);
    outline: none;
}

/* Secondary button style */
.btn-accent {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-accent:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* IDEA 3: Dynamic Gradient Typography */
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    
    /* Gradient Text Effect */
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    display: inline-block; /* Required for gradient text scaling */
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- HEADER --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Glassmorphism Header */
    background-color: rgba(0, 43, 92, 0.9); /* Primary color with opacity */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
}

.logo i {
    color: var(--white);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

/* Nav Link Hover Animation - Rectangle Style Removed */
.nav-links a {
    display: inline-block; 
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-bottom: 5px; /* Reverted to simple padding for underline */
    transition: color 0.3s ease;
}

/* Restore Left-to-Right Underline Animation */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s ease-in-out;
}

/* Reverted to standard hover */
.nav-links a:hover {
    color: var(--white);
    outline: none;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle Styling */
.mobile-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--white); 
    margin-left: auto;
    background: transparent;
    border: none;
    padding: 5px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* --- ANIMATED HERO SECTION (Idea 5) --- */
.hero {
    padding: 6rem 0 5rem 0; /* More top padding */
    position: relative;
    overflow: hidden;
    color: var(--white);
    
    /* Animated Gradient Background */
    background: linear-gradient(-45deg, var(--primary), #0a192f, var(--primary-dark), #1e3a8a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* The Animation Keyframes */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Optional: Add a subtle overlay pattern if you want texture */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2; /* Ensure content is above background */
}

/* IDEA 3: Dynamic Gradient Typography for Hero */
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    
    /* Gradient Text Override for Hero */
    background: linear-gradient(to right, #ffffff 0%, #e2e8f0 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Subtle text shadow for depth */
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Button - Glass Style */
.hero .btn-primary {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.hero .btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background-color: var(--secondary); /* Slide in Gold on hover */
    transition: width 0.3s ease-in-out;
    z-index: -1;
}

.hero .btn-primary:hover::before {
    width: 100%;
}

.hero .btn-primary:hover {
    color: var(--white); /* Text white on Gold */
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    outline: none;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Phone Mockup - Reduced Size & Added Blue Pulse Animation */
.phone-mockup {
    width: 280px; /* Reduced width */
    height: 560px; /* Reduced height */
    background: var(--dark);
    border-radius: 40px;
    border: 8px solid #1e293b;
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 2;
    /* Add blue pulse animation */
    animation: pulse-blue 3s infinite;
}

/* Blue Pulse Animation Keyframes */
@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 43, 92, 0.7), 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 43, 92, 0), 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 43, 92, 0), 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    }
}

.phone-screen {
    background: linear-gradient(180deg, var(--primary) 0%, #4F46E5 100%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Floating Cards - Glassmorphism (Idea 1) */
.float-card {
    position: absolute;
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
    z-index: 3;
    color: var(--dark);
}

.float-1 { top: 80px; left: -30px; animation-delay: 0s; }
.float-2 { bottom: 100px; right: -30px; animation-delay: 2s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes float-mobile {
    0% { transform: scale(0.85) translateY(0px); }
    50% { transform: scale(0.85) translateY(-15px); }
    100% { transform: scale(0.85) translateY(0px); }
}

/* --- BENEFITS (Glass Cards & Micro-interactions) --- */
.benefits {
    padding: 6rem 0;
    background: transparent;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

/* IDEA 4: Enhanced Micro-interactions for Cards */
.benefit-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.95);
    /* Glow Effect - Made Yellow (Secondary) More Visible */
    box-shadow: 0 25px 50px rgba(0, 43, 92, 0.2), 0 0 40px rgba(245, 158, 11, 0.3); 
    border-color: var(--white);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.8);
    transition: 0.3s;
}

.benefit-card:hover .icon-circle {
    transform: rotate(10deg) scale(1.1); /* Fun interaction on hover */
    background: linear-gradient(135deg, var(--white) 0%, #EFF6FF 100%);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.benefit-card p {
    color: var(--text-gray);
}

/* --- FEATURES GRID (Reverted to Normal Uniform Layout) --- */
.features {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.5) 100%);
}

.feature-grid {
    display: grid;
    /* Reverted to uniform grid */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.feature-item {
    padding: 1.5rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column; /* Kept column layout for Icon Top, Text Bottom */
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Micro-interaction: Hover Glow */
.feature-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary); /* Gold border on hover */
    background: #fff;
    z-index: 2;
}

.feature-item i {
    color: var(--secondary); 
    font-size: 1.5rem;
    background: rgba(245, 158, 11, 0.1); 
    padding: 12px;
    border-radius: 12px;
    transition: 0.3s;
    margin-bottom: 5px;
}

.feature-item:hover i {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.feature-item span {
    font-weight: 700;
    color: var(--dark);
}

/* --- HOW IT WORKS (Layout Updated + Glass Steps) --- */
.how-it-works {
    padding: 6rem 0;
    background: transparent;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.how-it-works-image img {
    width: 100%;
    border-radius: var(--radius);
    /* Shadow updated to trigger stronger blue glow on hover */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Normal shadow */
    transition: all 0.3s ease;
}

.how-it-works-image img:hover {
    box-shadow: 0 30px 60px -10px #002B5C; /* Blue theme shadow on hover */
    transform: translateY(-5px);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 43, 92, 0.3);
}

/* Connector Line */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    width: 2px;
    height: calc(100% - 10px);
    background: rgba(0, 43, 92, 0.2);
    z-index: 1;
}

.step-content {
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    padding: 1.5rem;
    border-radius: var(--radius);
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: 0.3s;
}

.step-content:hover {
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.step-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- FOOTER --- */
footer {
    background: var(--primary); 
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 1rem 0;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-brand p {
    margin-bottom: 1.5rem;
    max-width: 300px;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    color: var(--white);
}

.social-icons a:hover {
    background: var(--white);
    color: var(--primary);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 968px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-image { margin-top: 3rem; }
    
    /* ANIMATION FIX: Show floating cards on mobile */
    .float-card { 
        display: flex; 
        animation-name: float-mobile; /* Use specific mobile animation */
    }
    
    /* Reposition them safely so they don't overflow */
    .float-1 { left: 0; top: 20px; }
    .float-2 { right: 0; bottom: 20px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
    .how-it-works-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mobile-toggle { 
        display: block; 
    }
    
    .nav-wrapper {
        flex-wrap: wrap;
        gap: 20px;
    }

    .nav-links { 
        display: none; 
        width: 100%;
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        padding-left: 0;
        gap: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 20px;
    }

    .nav-links.active {
        display: flex;
    }
    
    .section-title h2 { font-size: 2rem; }
    .benefits-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    /* Mobile Feature Grid - 1 column */
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile optimizations for small screens (e.g. iPhone, Pixel) */
@media (max-width: 412px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Ensure tap states are visible */
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Adjust floating elements to not cause overflow */
    .float-card {
        transform: scale(0.75);
        padding: 10px 15px;
    }
    .float-1 { left: -10px; top: 40px; }
    .float-2 { right: -10px; bottom: 40px; }
    
    /* Phone mockup resizing */
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}