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

:root {
    --brand-color: #008080;
    --brand-light: #e0f7f7;
    --brand-lighter: #f0fbfb;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --background: #ffffff;
    --section-bg: #fafafa;
    --border-color: #e5e5e5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
    min-height: 100vh;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.feature-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative;
    padding: 30px 20px 60px 20px;
    max-width: 700px;
}

.hero-logo {
    margin-bottom: 40px;
}

.app-icon {
    width: 90%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
    display: block;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.app-store-button {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0;
    margin: 0;
    line-height: 0;
    border: none;
}

.app-store-button:hover {
    transform: translateY(-2px);
}

.app-store-button:active {
    transform: translateY(0);
}

.app-store-badge {
    height: 60px;
    width: auto;
    display: block;
    padding: 0;
    margin: 0;
    border: none;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Screenshots Section */
.screenshots {
    background: transparent;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.screenshot-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-image {
    width: 100%;
    max-width: 310px;
    height: auto;
    display: block;
    margin: 0 auto;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 128, 128, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Carousel Section */
.carousel-section {
    background-color: #ffffff;
}

.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

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

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #d0d0d0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

.carousel-dot.is-active {
    background: var(--brand-color);
}

@media (max-width: 768px) {
    .carousel {
        max-width: 100%;
    }
    
    .carousel-control {
        padding: 10px 14px;
        font-size: 1.2rem;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-image {
        max-width: 280px;
    }
    
    .carousel-control {
        padding: 8px 12px;
        font-size: 1rem;
    }
}

/* FAQs Section */
.faqs {
    background: transparent;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.1);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--brand-color);
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--brand-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px 24px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    padding-top: 8px;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 40px 0;
}

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

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--brand-light);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

    .hero-tagline {
        font-size: 1.5rem;
        color: #000000;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .screenshot-image {
        max-width: 220px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .app-icon {
        width: 85%;
        max-width: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.375rem;
        color: #000000;
    }

    .app-store-badge {
        height: 50px;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-image {
        max-width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-separator {
        display: none;
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .app-store-button,
    .faq-item {
        animation: fadeInUp 0.6s ease-out;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
