* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }

body {
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: linear-gradient(145deg, rgb(244, 244, 246) 0%, rgb(234, 234, 238) 50%, rgb(224, 224, 230) 100%);
}

.page-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.principal {
    width: 820px;
    max-width: 100%;
    padding: 52px 52px 56px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    opacity: 0;
    transform: translateY(30px);
}

.principal > a:first-child {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}

#cf-logo {
    height: 64px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    opacity: 0;
    transform: translateY(-10px);
}

.screenshot-wrap {
    display: block;
    width: fit-content;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.13),
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(16px);
    line-height: 0;
}

.screenshot-wrap img {
    width: auto;
    max-width: 100%;
    display: block;
}

.description {
    margin-top: 32px;
    font-size: 15px;
    color: rgba(40, 40, 60, 0.7);
    line-height: 1.75;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
}

.requirements {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(60, 60, 80, 0.4);
    text-align: center;
    letter-spacing: 0.02em;
    opacity: 0;
}

.icon-showcase {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 6px;
    opacity: 0;
}

.icon-showcase img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    opacity: 0.75;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.12));
    transition: opacity 0.2s, transform 0.2s;
}

.icon-showcase img:hover {
    opacity: 1;
    transform: scale(1.18);
}

@media (max-width: 720px) {
    .icon-showcase img:nth-child(n+9) { display: none; }
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 32px 0;
    opacity: 0;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 22px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: rgba(40, 40, 60, 0.8);
    transition: border-color 0.2s, background 0.2s;
    letter-spacing: 0.01em;
}

.btn:hover { border-color: rgba(0, 0, 0, 0.18); background: rgba(255, 255, 255, 0.9); }

.btn-primary {
    background: rgba(30, 30, 50, 0.88);
    border-color: transparent;
    color: rgba(255, 255, 255, 0.92);
}

.btn-primary:hover { background: rgba(20, 20, 40, 0.96); border-color: transparent; }

.footer {
    margin-top: 28px;
    font-size: 12px;
    color: rgba(60, 60, 80, 0.38);
    letter-spacing: 0.04em;
    text-align: center;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: rgba(60, 60, 80, 0.65); }
.footer img { width: 18px; opacity: 0.5; vertical-align: middle; }

/* Modal */
#modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.32);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#modal-box {
    position: relative;
    width: min(880px, 96vw);
    max-height: 90vh;
    background: rgb(255, 255, 255);
    border-radius: 22px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.04);
    overflow-y: auto;
    overflow-x: hidden;
}

#modal-content {
    padding: 28px 32px 32px;
}

#modal-close {
    position: sticky;
    top: 11px;
    float: right;
    margin: 11px 12px 0 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.07);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(0,0,0,0.45);
    transition: background 0.18s;
    z-index: 10;
}

#modal-close:hover { background: rgba(0,0,0,0.13); }

@media (max-width: 720px) {
    .principal { padding: 36px 22px 42px; border-radius: 22px; }

    #modal-overlay { align-items: flex-end; }
    #modal-box {
        width: 100%;
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    #modal-content { padding: 16px 16px 28px; }
    #modal-close { width: 32px; height: 32px; font-size: 15px; }
}

@media (max-height: 500px) {
    #modal-overlay { align-items: flex-start; padding-top: 44px; }
    #modal-box { max-height: calc(100dvh - 44px); border-radius: 18px; width: min(880px, 96vw); }
}
