/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.header-brand {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #4164b2 0%, #5a7bc8 50%, #7091de 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 2s infinite;
}

.header-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4164b2;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #4164b2;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-btn {
    background: linear-gradient(135deg, #4164b2 0%, #5a7bc8 50%, #00267e 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #bbdefb 100%);
    padding-top: 80px;
    overflow: hidden;
    position: relative;
}

.decorative-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.decorative-1 {
    top: 80px;
    left: 40px;
    width: 16px;
    height: 16px;
    background: #4164b2;
    animation: bounce 2s infinite;
}

.decorative-2 {
    bottom: 128px;
    right: 64px;
    width: 12px;
    height: 12px;
    background: #5a7bc8;
    animation: bounce 2s infinite 1s;
}

.decorative-3 {
    top: 33%;
    right: 25%;
    width: 8px;
    height: 8px;
    background: #7091de;
    animation: pulse 2s infinite;
}

.decorative-4 {
    bottom: 25%;
    left: 33%;
    width: 12px;
    height: 12px;
    background: #4164b2;
    animation: bounce 2s infinite 0.5s;
}

.hero-content {
    text-align: center;
    color: #1a1a1a;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 24px;
    opacity: 1 !important; /* Ensure h1 is always visible */
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 16px;
    color: #4164b2;
}

.hero-description {
    font-size: 16px;
    margin-bottom: 32px;
    color: #666;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, #4164b2 0%, #5a7bc8 50%, #003ed0 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    background: #374151;
    color: white;
    padding: 12px 24px;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.btn-secondary:hover {
    background: #1f2937;
    transform: scale(1.05);
}

.btn-secondary:active {
    transform: scale(0.95);
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
}

.star {
    color: #fbbf24;
    font-size: 18px;
}

.stat-text {
    color: #666;
    font-size: 14px;
}

.stat-icon {
    color: #3b82f6;
    font-size: 16px;
}

/* Animations */
.gradient-text {
    color: #4164b2; /* Fallback color */
    background: linear-gradient(135deg, #5778c6 0%, #c85a5a 50%, #0034ad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .gradient-text {
        color: #4164b2 !important;
    }
}

.text-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
}

.text-fade-up-delay-1 {
    animation-delay: 0.3s;
}

.text-fade-up-delay-2 {
    animation-delay: 0.6s;
}

.text-fade-up-delay-3 {
    animation-delay: 0.9s;
}

.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

.scroll-fade {
    opacity: 0;
    transform: translateY(32px);
    transition: all 0.8s ease-in-out;
}

.scroll-fade.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-3px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.section-description {
    font-size: 20px;
    color: #666;
    max-width: 768px;
    margin: 0 auto;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.feature-card {
    text-align: center;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    animation: bounce 2s infinite;
}

.feature-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.feature-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.feature-btn {
    background: linear-gradient(135deg, #4164b2 0%, #5a7bc8 50%, #003ac3 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-btn:hover {
    transform: scale(1.05);
}

/* Download Section */
.download-section {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-btn {
    background: white;
    color: #1a1a1a;
    padding: 24px 32px;
    border-radius: 16px;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    border-color: #4164b2;
    transform: scale(1.05);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.download-btn:active {
    transform: scale(0.95);
}

.download-icon {
    font-size: 32px;
}

.download-text {
    text-align: left;
}

.download-small {
    font-size: 14px;
    opacity: 0.7;
}

.download-large {
    font-size: 18px;
    font-weight: bold;
}

/* Tutorial Section */
.tutorial-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #bbdefb 100%);
}

.video-container {
    margin-bottom: 64px;
}

.video-wrapper {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.video-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
}

.video-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}

.step-card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4164b2 0%, #5a7bc8 50%, #7091de 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.step-description {
    color: #666;
    line-height: 1.6;
}

.warning-box {
    margin-top: 48px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.warning-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.warning-title {
    font-size: 18px;
    font-weight: bold;
    color: #92400e;
    margin-bottom: 8px;
}

.warning-text {
    color: #92400e;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #bbdefb 100%);
}

.cta-content {
    background: white;
    padding: 48px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    max-width: 1024px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 20px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.btn-outline {
    border: 2px solid #4164b2;
    color: #4164b2;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #4164b2 0%, #5a7bc8 50%, #7091de 100%);
    color: white;
    transform: scale(1.05);
}

.btn-outline:active {
    transform: scale(0.95);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #374151 100%);
    color: white;
    padding: 64px 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #4164b2 0%, #5a7bc8 50%, #7091de 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 32px;
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-bottom: 32px;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 32px;
    color: #6b7280;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: black;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.modal-description {
    color: #666;
    text-align: center;
    line-height: 1.6;
    max-width: 512px;
    margin: 0 auto;
}

/* Responsive */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-stats {
        flex-direction: row;
    }
    
    .download-buttons {
        flex-direction: row;
    }
    
    .cta-buttons {
        flex-direction: row;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .cta-title {
        font-size: 40px;
    }
}

@media (min-width: 768px) {
    .header-menu {
        display: flex;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .cta-title {
        font-size: 48px;
    }
}

@media (max-width: 767px) {
    .header-menu {
        display: none;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .cta-content {
        padding: 32px 24px;
    }
    
    .video-wrapper {
        padding: 16px;
    }
    
    .step-card {
        padding: 16px;
    }
}