:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --text-color: #333;
    --light-gray: #f5f5f7;
    --dark-gray: #86868b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
.nav-header {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo::after {
    content: 'AI';
    font-size: 0.8em;
    color: var(--secondary-color);
    font-weight: 900;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 8rem 5% 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
    gap: 2rem;
}

.hero-content {
    flex: 0 0 40%;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.app-badges {
    margin: 2rem 0;
}

.app-store-badge img {
    height: 40px;
    transition: transform 0.3s ease;
}

.app-store-badge img:hover {
    transform: scale(1.05);
}

.ratings {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.stars {
    color: #FFD700;
}

/* Hero Screenshots */
.hero-screenshots {
    flex: 0 0 60%;
    overflow: hidden;
    position: relative;
}

.screenshot-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 1rem;
}

.screenshot-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.screenshot {
    flex: 0 0 auto;
    width: 240px;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.screenshot:hover {
    transform: translateY(-10px);
}

/* Features Section */
.features {
    padding: 5rem 5%;
    background: var(--light-gray);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    justify-content: center;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 350px;
}

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

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.step {
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 350px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

/* Reviews Section */
.reviews {
    padding: 5rem 5%;
    background: var(--light-gray);
}

.reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    justify-items: center;
    justify-content: center;
}

@media (min-width: 1200px) {
    .review-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.reviewer i {
    font-size: 2.5rem;
    color: var(--dark-gray);
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-color);
}

.reviewer-title {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Download Section */
.download {
    padding: 5rem 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.requirements {
    color: var(--dark-gray);
    margin: 2rem 0;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--light-gray);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    justify-content: center;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--dark-gray);
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        padding: 6rem 5% 2rem;
    }

    .hero-content {
        flex: 0 0 45%;
    }

    .hero-screenshots {
        flex: 0 0 55%;
    }

    .screenshot {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding-top: 6rem;
        min-height: auto;
    }

    .hero-content {
        flex: 1 0 auto;
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .hero-screenshots {
        flex: 1 0 auto;
        width: 100%;
    }

    .screenshot-scroll {
        padding: 0.5rem;
        gap: 1rem;
    }

    .screenshot {
        width: 180px;
    }

    .ratings {
        justify-content: center;
    }

    .nav-header {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .review-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .logo {
        font-size: 1.25rem;
    }
}

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

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}
