/* Cozy Simscape - Single Page Website Styles with Interactive Popups */

/* Reset and Base Styles - Performance Optimized */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Enable hardware acceleration for better performance */
.feature-card,
.download-card,
.faq-item,
.changelog-item,
.legal-card,
.stat-card,
.dark-mode-toggle,
.btn,
.modal-content {
    will-change: transform;
    transform: translateZ(0);
}

body {
    font-family: 'Poppins', 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #6B4F3A;
    background: linear-gradient(135deg, #FFF7ED 0%, #FBE9D0 100%);
    background-attachment: fixed;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #7d6354;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6B4F3A;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #FBE9D0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ee7f47;
    font-family: 'Playfair Display', serif;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #7d6354;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: #ee7f47;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f7c099 0%, #ee7f47 50%, #e06635 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    background: none;
    font-family: inherit;
}

.btn-primary {
    background: #fff;
    color: #ee7f47;
    border-color: #fff;
    border-radius: 9999px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #fef7f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(238, 127, 71, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: #ee7f47;
    border-color: #ee7f47;
    border-radius: 9999px;
}

.btn-outline:hover {
    background: #ee7f47;
    color: white;
    transform: translateY(-2px);
}

.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: #6B4F3A;
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #7d6354;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    background: transparent;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    border: 1px solid #FBE9D0;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(238, 127, 71, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #4a3c2a;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.feature-card p {
    color: #5d4e37;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


/* Download Section */
.download {
    background: transparent;
}

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

.download-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    text-align: center;
    border: 2px solid #FBE9D0;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: #ee7f47;
    box-shadow: 0 8px 32px rgba(238, 127, 71, 0.15);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    color: #4a3c2a;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.download-card p {
    color: #5d4e37;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* FAQ Section */
.faq {
    background: linear-gradient(135deg, #FBE9D0 0%, #FFF7ED 100%);
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    border: 1px solid #FBE9D0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(238, 127, 71, 0.15);
}

.faq-item h3 {
    color: #4a3c2a;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.faq-item p {
    color: #5d4e37;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


/* Changelog Section */
.changelog {
    background: linear-gradient(135deg, #FFF7ED 0%, #FBE9D0 100%);
}

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

.changelog-version {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    border: 1px solid #FBE9D0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.changelog-version:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(238, 127, 71, 0.15);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.version-header h3 {
    color: #4a3c2a;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.version-date {
    color: #5d4e37;
    font-size: 0.9rem;
}

.changelog-version p {
    color: #5d4e37;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Legal Section */
.legal {
    background: transparent;
}

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

.legal-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    border: 1px solid #FBE9D0;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.legal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(238, 127, 71, 0.15);
}

.legal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.legal-card h3 {
    color: #4a3c2a;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.legal-card p {
    color: #5d4e37;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #6B4F3A 0%, #5a4231 100%);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    color: #fff;
    font-weight: 500;
    margin: 0;
}

/* Popup Modal */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.popup-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    background: linear-gradient(135deg, #ee7f47, #d4a574);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popup-icon {
    font-size: 3rem;
}

.popup-title {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin: 0;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover {
    transform: scale(1.2);
}

.popup-body {
    padding: 2rem;
    color: #6B4F3A;
    line-height: 1.6;
}

.popup-body h3 {
    color: #ee7f47;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.popup-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.popup-body li {
    margin-bottom: 0.5rem;
}

/* Performance Optimized Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Optimize transitions for better performance */
.feature-card,
.download-card,
.faq-item,
.changelog-item,
.legal-card,
.stat-card,
.btn,
.dark-mode-toggle {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile Touch Optimization & Performance */
@media (hover: none) and (pointer: coarse) {
    .feature-card, .stat-card, .faq-item,  .legal-card {
        min-height: 60px;
        padding: 1.5rem;
        /* Optimize for mobile scrolling */
        -webkit-overflow-scrolling: touch;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        /* Prevent text selection on touch */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
        /* Smooth scrolling on mobile */
        -webkit-overflow-scrolling: touch;
    }
    
    /* Optimize animations for mobile */
    .feature-card:hover,
    .download-card:hover,
    .faq-item:hover,
    .changelog-item:hover,
    .legal-card:hover {
        transform: none; /* Disable hover transforms on mobile */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .features-grid,
    .download-grid,
    .faq-grid,
    .changelog-grid,
    .legal-grid {
        grid-template-columns: 1fr;
    }
    
    
    .highlight-cards {
        grid-template-columns: 1fr;
    }
    
    .popup-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .popup-header {
        padding: 1.5rem;
    }
    
    .popup-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    
}






/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid #ee7f47;
    outline-offset: 2px;
}