/* Base Styles */
:root {
    --primary-color: #4a6cf7;
    --primary-rgb: 74, 108, 247;
    --primary-dark: #3a56d4;
    --secondary-color: #6c757d;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--gray-900);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

section {
    padding: 4rem 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #4a6cf7 0%, #6a3ef8 100%);
    color: white;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 8px;
    margin-right: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
}

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

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.nav-links a:hover {
    color: white;
}

.download-btn {
    background-color: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.download-btn:hover {
    background-color: var(--gray-100);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4a6cf7 0%, #6a3ef8 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.app-store-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.app-store-placeholder {
    height: 40px;
    background-color: white;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    font-weight: 600;
    transition: var(--transition);
}

.app-store-btn:hover .app-store-placeholder {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
}

/* Features Section */
.features {
    padding: 5rem 0;
    position: relative;
    min-height: 200px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Loading Spinner */
.loading-spinner {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(74, 108, 247, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none; /* Hide by default */
}

@keyframes spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* Show spinner when loading */
.features.loading .loading-spinner {
    display: block;
}

/* Hide feature grid when loading */
.features.loading .feature-grid {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show feature grid when loaded */
.features.loaded .feature-grid {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hide spinner when loaded */
.features.loaded .loading-spinner {
    display: none;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    contain: layout;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Make feature cards visible by default */
    opacity: 1;
    transform: translateY(0);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.icon-placeholder {
    width: 30px;
    height: 30px;
    background-color: rgba(var(--primary-rgb), 0.2);
    border-radius: 50%;
    display: block;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
}

/* How It Works Section */
.how-it-works {
    background-color: var(--gray-100);
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.step {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

.step-content {
    flex: 1;
    margin-bottom: 20px;
    padding-top: 1.5rem; /* Add padding to make room for the step number */
}

.step-image {
    margin-top: auto;
    text-align: center;
}

.step-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a6cf7 0%, #6a3ef8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.step-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--gray-200);
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

/* Testimonials Section */
.testimonials {
    background-color: white;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.testimonial {
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 350px;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--gray-300);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.3;
}

.quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.author {
    font-weight: 600;
    color: var(--gray-700);
}

/* FAQ Section */
.faq {
    background-color: var(--gray-100);
    text-align: center;
}

.faq h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: left;
    height: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Download Section */
.download {
    background-color: #0056b3;
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.download h2,
.download-description,
.share-text {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.share-section {
    margin-top: 2rem;
    text-align: center;
}

.share-section p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.share-buttons a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    padding: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease;
}

.share-buttons a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo .logo-placeholder {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    margin-right: 0.5rem;
}

.footer-logo h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.link-group h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.75rem;
}

.link-group a {
    color: var(--gray-400);
    transition: var(--transition);
}

.link-group a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .app-store-buttons {
        justify-content: center;
    }
    
    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .steps, .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: none !important;
    }

    .nav-links {
        display: none !important;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .features {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    
    .features h2, .how-it-works h2, .testimonials h2, .faq h2, .download h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 0.75rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .nav-links {
        width: 100%;
    }
    
    .cta-button {
        margin-left: auto;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .app-store-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image-placeholder {
        height: 300px;
    }
    
    .features {
        padding: 3rem 0;
        min-height: 150px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card.animate:nth-child(n) {
        transition-delay: calc(0.1s * var(--card-index, 0));
    }
    
    .steps, .faq-grid {
        grid-template-columns: 1fr;
    }
} 