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

:root {
    --text-dark: #4d250e;
    --text-medium: #76685d;
    --text-light: #faf2e9;
    --text-accent: #efa758;
    --bg-white: #f2eae1;
    --card-bg: #fff9ef;
    --surface: #fff9ef;
    --overlay: #e7dbcd;
    --border-light: #e1d1c2;
    --accent-color: #f1706e;
    --accent-secondary: #f2ac5a;
    --progress: #f4ad46;
    --progress-bg: #f2e6d5;
    --highlight: #f5e2b8;
    --radius-large: 30px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

/* Header and Navigation */
header {
    position: static;
    width: 100%;
    background-color: var(--bg-white);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 0 0 auto;
}

.logo-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.language-switcher {
    margin-left: auto;
}

.icon-link {
    text-decoration: none;
    font-size: 1.3rem;
    transition: opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.icon-link:hover {
    opacity: 0.7;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: block;
    filter: brightness(0) saturate(100%) invert(20%) sepia(30%) saturate(600%) hue-rotate(350deg) brightness(95%) contrast(90%);
}

.icon-link[aria-label="Threads"] .social-icon {
    width: 24px;
    height: 24px;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.current-lang {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.current-lang:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.lang-option:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.lang-option:hover {
    background-color: var(--overlay);
}

.lang-option.active {
    background-color: var(--accent-color);
    color: var(--text-light);
    font-weight: 600;
}

.lang-option.active:hover {
    background-color: var(--accent-color);
}

/* Hero Section */
.hero {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 2rem 3rem;
    text-align: center;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.highlight-wrapper {
    position: relative;
    display: inline-block;
    padding: 0.5rem;
}

.highlight-text {
    position: relative;
    color: var(--text-light);
    z-index: 10;
}

.highlight-bg {
    position: absolute;
    inset: 0;
    background-color: #f1706e;
    z-index: 0;
    border-radius: 0.75rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-block;
    transition: all 0.2s ease;
}

.store-badge img {
    height: 56px;
    width: auto;
    display: block;
}

.store-badge:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Screenshots Section */
.screenshots {
    padding: 4rem 2rem;
    background-color: var(--bg-white);
}

.screenshots-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.phone-mockup {
    flex-shrink: 0;
}

.screenshot-image {
    width: 280px;
    height: auto;
    border-radius: 2rem;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-image:hover {
    transform: scale(1.05);
}

/* Screen 1 - Library */
.book-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-large);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.book-cover {
    width: 60px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    border-radius: 0.3rem;
    flex-shrink: 0;
}

.book-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.book-progress {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Screen 2 - Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    background-color: var(--card-bg);
    border-radius: var(--radius-large);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Screen 3 - Calendar */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    background-color: var(--progress-bg);
    border-radius: 0.4rem;
}

.calendar-day.active {
    background-color: var(--accent-color);
}

/* Ratings Section */
.ratings-section {
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--bg-white);
}

.ratings-section .rating-item {
    display: inline-block;
    margin: 0 2rem 1rem;
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1rem;
}

.rating-text {
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 2rem;
    background-color: var(--bg-white);
}

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

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-large);
    border: 1px solid var(--border-light);
}

.testimonial-card .stars {
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background-color: var(--bg-white);
}

.features-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    padding: 2.5rem;
    border-radius: 1rem;
    min-height: 20rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

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

.feature-card-1 {
    background: linear-gradient(180deg, #f1706e 0%, #f2ac5a 100%);
}

.feature-card-2 {
    background: linear-gradient(180deg, #f2ac5a 0%, #efa758 100%);
}

.feature-card-3 {
    background: linear-gradient(180deg, #efa758 0%, #f1706e 100%);
}

.feature-card-4 {
    background: linear-gradient(180deg, #f1706e 0%, #f2ac5a 100%);
}

.feature-card-5 {
    background: linear-gradient(180deg, #f2ac5a 0%, #efa758 100%);
}

.feature-card-6 {
    background: linear-gradient(180deg, #efa758 0%, #f1706e 100%);
}

.feature-card-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.feature-card-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.9;
    line-height: 1.6;
}

.feature-card-image {
    position: relative;
    width: auto;
    max-width: 300px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background-color: var(--bg-white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.cta-section .download-buttons {
    justify-content: center;
}

/* Footer */
footer {
    background-color: var(--bg-white);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

footer .logo {
    font-size: 1.2rem;
}

footer .logo-icon {
    width: 48px;
    height: 48px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-medium);
    text-decoration: underline;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-dark);
}

.footer-credit {
    color: var(--text-medium);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .phone-mockup:last-child {
        display: none;
    }
}

@media (max-width: 800px) {
    .feature-card {
        flex-direction: column;
        gap: 1.5rem;
        min-height: auto;
        padding: 2rem;
    }

    .feature-card-image {
        max-width: 250px;
        max-height: 400px;
    }
}


@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem 2rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .screenshots-container {
        flex-direction: row;
        justify-content: center;
    }

    .phone-mockup:nth-child(2) {
        display: none;
    }

    .screenshot-image {
        width: 260px;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0;
    }

    .nav-container .logo {
        order: 1;
    }

    .language-switcher {
        margin-left: 0;
        order: 1;
    }

    .nav-links {
        flex-basis: 100%;
        order: 2;
        justify-content: flex-start;
        gap: 0.75rem;
        margin-top: 0.75rem;
    }

    .icon-link {
        font-size: 1.1rem;
    }

    .current-lang {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: 50px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }

    .icon-link[aria-label="Threads"] .social-icon {
        width: 20px;
        height: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .features-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        flex-direction: column;
        min-height: auto;
        padding: 1.5rem;
        gap: 1rem;
    }

    .feature-card-title {
        font-size: 1.5rem;
    }

    .feature-card-subtitle {
        font-size: 1rem;
    }

    .feature-card-image {
        max-width: 200px;
        max-height: 350px;
    }

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

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

    .ratings-section .rating-item {
        display: block;
        margin: 1rem 0;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .screenshot-image {
        width: 240px;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-card-title {
        font-size: 1.3rem;
    }

    .feature-card-subtitle {
        font-size: 0.95rem;
    }

    .feature-card-image {
        max-width: 180px;
        max-height: 300px;
    }
}
