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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #f8f9fa;
}

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

/* Header */
header {
    background: #ffffff;
    color: #1d1d1f;
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.tagline {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: #357ABD;
}

.btn-primary:hover {
    background: #f5f5f7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.features h3 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.feature-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Screenshots Carousel Section */
.screenshots {
    padding: 80px 0;
    background: #f8f9fa;
}

.screenshots h3 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
}

/* Desktop: Show all images horizontally */
@media (min-width: 769px) {
    .carousel {
        display: flex;
        justify-content: center;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-container {
        flex: 1;
        overflow: visible;
    }

    .carousel-track {
        display: flex;
        gap: 30px;
        justify-content: center;
        transform: none !important;
    }

    .carousel-slide {
        flex: 1;
        max-width: 350px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .carousel-slide img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease;
    }

    .carousel-slide img:hover {
        transform: translateY(-10px);
    }

    .carousel-dots {
        display: none;
    }
}

/* Mobile: Carousel mode */
@media (max-width: 768px) {
    .carousel {
        position: relative;
        display: flex;
        align-items: center;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto;
    }

    .carousel-container {
        flex: 1;
        overflow: hidden;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    .carousel-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
    }

    .carousel-slide {
        min-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #ffffff;
    }

    .carousel-slide img {
        width: 100%;
        height: auto;
        display: block;
    }

    .carousel-btn {
        background: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        color: #4A90E2;
        flex-shrink: 0;
    }

    .carousel-btn:hover {
        background: #4A90E2;
        color: white;
        transform: scale(1.1);
    }

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

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 30px;
    }

    .carousel-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2px solid #4A90E2;
        background: transparent;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

    .carousel-dot.active {
        background: #4A90E2;
        transform: scale(1.2);
    }

    .carousel-dot:hover {
        background: #5BA3E8;
    }
}

/* Widgets Section */
.widgets {
    padding: 80px 0;
    background: linear-gradient(135deg, #5BA3E8 0%, #4A90E2 100%);
}

.widgets h3 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.widget-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.widget-description {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget-description:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
}

.widget-description h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.widget-description p {
    color: #6e6e73;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about h3 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.about p {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}

/* Footer */
footer {
    background: #f5f5f7;
    color: #6e6e73;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #e5e5e7;
}

footer p {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 36px;
    }

    .tagline {
        font-size: 18px;
    }

    .features h3,
    .widgets h3,
    .screenshots h3,
    .about h3 {
        font-size: 28px;
    }

    .feature-grid,
    .widget-showcase {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .carousel {
        gap: 10px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    .app-icon {
        width: 40px;
        height: 40px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 28px;
    }

    .features,
    .widgets,
    .screenshots,
    .about {
        padding: 60px 0;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}
