/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    background-color: #EFFFF1;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

/* Text wrapping for paragraphs and headers */
p, h1, h2, h3, h4, h5, h6 {
    text-wrap: pretty;
}

/* Header Section */
.fretta-header {
    padding: 80px 20px 100px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.back-link {
    position: absolute;
    left: 20px;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #333;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border-radius: 50%;
    z-index: 10;
}

.back-link:hover {
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.05);
}

.back-link:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px #000 !important;
    border-radius: 8px !important;
}

.back-link svg {
    width: 24px;
    height: 24px;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.header-text {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.header-icon-container {
    margin-bottom: 24px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.header-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.fretta-title {
    font-family: 'Instrument Serif', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

.fretta-description {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.125rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.header-download {
    margin-bottom: 40px;
    text-align: center;
}

.download-link-header {
    display: inline-block;
    text-decoration: none;
}

.download-link-header:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px #000 !important;
    border-radius: 8px !important;
}

.download-button-header {
    height: 60px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: block;
}

.download-button-header:hover {
    opacity: 0.8;
}

.header-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.header-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.875rem;
    color: #666;
}

.header-feature-item svg {
    color: #666;
    flex-shrink: 0;
}

.header-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.header-mock-image {
    max-width: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Main Content */
.fretta-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.fretta-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Introduction Section */
.intro-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.intro-text {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.125rem;
    color: #333;
    line-height: 1.7;
}

/* Features Section */
.features-section {
    width: 100%;
    padding: 0;
}

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

.feature-card {
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-card-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.875rem;
    font-weight: 400;
    color: #000;
    margin: 0;
    line-height: 1.3;
}

.feature-card-description {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Closing Section */
.closing-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.closing-text {
    font-family: 'Instrument Serif', serif;
    font-size: 1.375rem;
    font-weight: 400;
    color: #333;
    line-height: 1.3;
}

.closing-cta {
    font-weight: 500;
    color: #000;
}

/* Download Section */
.download-section {
    display: flex;
    justify-content: center;
    padding-top: 16px;
}

.download-link {
    display: inline-block;
    text-decoration: none;
}

.download-link:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px #000 !important;
    border-radius: 8px !important;
}

.download-button {
    cursor: pointer;
    transition: opacity 0.2s ease;
    max-width: 180px;
    height: auto;
    display: block;
}

.download-button:hover {
    opacity: 0.8;
}

/* Footer */
.fretta-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 60px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-link,
.privacy-link {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.875rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-link {
    margin-left: 24px;
}

.footer-link:hover,
.privacy-link:hover {
    color: #2400ff;
}

.footer-link:focus,
.privacy-link:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px #000 !important;
    border-radius: 8px !important;
}

/* Responsive Design */

/* Desktop */
@media (min-width: 1200px) {
    .fretta-header {
        padding: 100px 40px 120px;
    }

    .header-text {
        text-align: left;
    }

    .header-icon-container {
        margin-left: 0;
        margin-right: 0;
    }

    .header-app-icon {
        width: 100px;
        height: 100px;
    }

    .fretta-title {
        font-size: 4.5rem;
        text-align: left;
    }

    .closing-text {
        font-size: 1.5rem;
    }

    .fretta-description {
        font-size: 1.25rem;
        text-align: left;
    }

    .header-download {
        text-align: left;
    }

    .header-container {
        gap: 80px;
    }

    .header-mock-image {
        max-width: 600px;
    }

    .features-grid {
        gap: 16px;
    }

    .feature-card {
        padding: 28px;
    }

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

    .feature-card-description {
        font-size: 1.125rem;
    }

    .fretta-content {
        gap: 64px;
    }

    .download-button {
        max-width: 200px;
    }

    .fretta-footer {
        padding: 60px 20px;
        margin-top: 80px;
    }

    .footer-link,
    .privacy-link {
        font-size: 1rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .fretta-header {
        padding: 80px 40px 100px;
        min-height: auto;
    }

    .header-container {
        flex-direction: column;
        gap: 60px;
    }

    .header-text {
        max-width: 100%;
        text-align: center;
        order: 2;
    }

    .header-visual {
        min-height: 500px;
        width: 100%;
        order: 1;
    }

    .header-mock-image {
        max-width: 400px;
    }

    .fretta-main {
        padding: 0 40px 80px;
    }

    .header-app-icon {
        width: 90px;
        height: 90px;
    }

    .fretta-title {
        font-size: 3.5rem;
    }

    .fretta-description {
        font-size: 1.125rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .feature-card {
        padding: 24px;
    }

    .closing-text {
        font-size: 1.375rem;
    }

    .back-link {
        left: 20px;
    }

    .fretta-footer {
        padding: 40px 40px;
        margin-top: 60px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .fretta-header {
        padding: 60px 20px 60px;
        min-height: auto;
    }

    .header-container {
        flex-direction: column;
        gap: 40px;
    }

    .header-text {
        max-width: 100%;
        text-align: center;
        order: 2;
    }

    .header-visual {
        min-height: 400px;
        width: 100%;
        order: 1;
    }

    .header-mock-image {
        max-width: 320px;
    }

    .header-icon-container {
        margin-bottom: 20px;
    }

    .header-app-icon {
        width: 70px;
        height: 70px;
    }

    .fretta-title {
        font-size: 2.25rem;
        margin-bottom: 20px;
    }

    .fretta-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .header-download {
        margin-bottom: 32px;
    }

    .download-button-header {
        height: 50px;
    }

    .header-features {
        gap: 12px;
    }

    .header-feature-item {
        font-size: 0.8125rem;
    }

    .header-feature-item svg {
        width: 18px;
        height: 18px;
    }

    .fretta-main {
        padding: 0 20px 60px;
    }

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

    .feature-card {
        padding: 24px;
    }

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

    .feature-card-description {
        font-size: 0.9375rem;
    }

    .closing-text {
        font-size: 1.25rem;
    }

    .fretta-content {
        gap: 40px;
    }

    .back-link {
        width: 44px;
        height: 44px;
        left: 15px;
        top: 15px;
    }

    .back-link svg {
        width: 20px;
        height: 20px;
    }

    .fretta-footer {
        padding: 32px 20px;
        margin-top: 48px;
    }

    .footer-link,
    .privacy-link {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .fretta-header {
        padding: 50px 15px 50px;
    }

    .header-text {
        text-align: center;
    }

    .header-icon-container {
        margin-bottom: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .header-app-icon {
        width: 60px;
        height: 60px;
    }

    .fretta-title {
        font-size: 1.875rem;
        text-align: center;
    }

    .fretta-description {
        font-size: 0.9375rem;
        text-align: center;
    }

    .header-download {
        text-align: center;
    }

    .header-mock-image {
        max-width: 260px;
    }

    .header-visual {
        min-height: 350px;
    }

    .closing-section {
        text-align: center;
    }

    .download-section {
        text-align: center;
    }

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

    .feature-card {
        padding: 20px;
    }

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

    .feature-card-description {
        font-size: 0.875rem;
    }

    .closing-text {
        font-size: 1.125rem;
    }
}

