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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #ffffff;
    color: #030213;
    line-height: 1.5;
}

/* Typography */
h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3125px;
    text-align: center;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.4492px;
    text-align: center;
    margin-bottom: 32px;
}

h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.4395px;
    margin-bottom: 8px;
}

p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.3125px;
    color: #717182;
}

a {
    color: #717182;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* Layout Containers */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Hero Section */
.hero {
    padding: 96px 0 64px;
    text-align: center;
}

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

.hero-description {
    max-width: 672px;
    margin: 0 auto 48px;
    text-align: center;
}

.app-store-link {
    display: inline-block;
}

.app-store-link img {
    height: 56px;
    width: auto;
}

/* Phone Screenshots */
.phone-screenshots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 0 24px;
    flex-wrap: wrap;
}

.screenshot {
    width: 256px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Problem Section */
.problem-section {
    background: rgba(236, 236, 240, 0.3);
    padding: 64px 24px;
    border-radius: 14px;
    margin: 64px auto;
    max-width: 788px;
}

.problem-section h2 {
    margin-bottom: 24px;
}

.problem-section p {
    text-align: center;
    margin-bottom: 16px;
}

.problem-section p:last-child {
    margin-bottom: 0;
}

/* Features Section */
.features-section {
    padding: 96px 0;
}

.features-section h2 {
    margin-bottom: 48px;
}

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

.feature-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #030213;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    color: #030213;
    margin-bottom: 16px;
}

.feature-card p {
    flex: 1;
}

/* How It Works Section */
.how-it-works-section {
    background: rgba(236, 236, 240, 0.3);
    padding: 64px 24px;
    border-radius: 14px;
    margin: 64px auto;
    max-width: 788px;
}

.how-it-works-section h2 {
    margin-bottom: 32px;
}

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

.step h3 {
    color: #030213;
}

.step p {
    text-align: left;
}

/* CTA Section */
.cta-section {
    padding: 96px 24px;
    text-align: center;
}

.cta-icon {
    width: 120px;
    height: 120px;
    border-radius: 26.67px;
    margin: 0 auto 32px;
    display: block;
}

.cta-section h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
}

.cta-section p {
    text-align: center;
    margin-bottom: 32px;
}

/* Footer */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 33px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

footer p {
    text-align: center;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 64px 0 48px;
    }

    .phone-screenshots {
        gap: 24px;
    }

    .screenshot {
        width: 200px;
    }

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

    .problem-section,
    .how-it-works-section {
        margin: 48px 16px;
    }

    .features-section {
        padding: 64px 0;
    }

    .cta-section {
        padding: 64px 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 0 32px;
    }

    .phone-screenshots {
        flex-direction: column;
        gap: 24px;
    }

    .screenshot {
        width: min(256px, 90vw);
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 28px;
    }

    .problem-section,
    .how-it-works-section {
        padding: 48px 20px;
        border-radius: 0;
        margin: 32px 0;
    }

    .features-section {
        padding: 48px 0;
    }

    .cta-section {
        padding: 48px 20px;
    }
}
