* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    width: 100vw;
    font-size: 62.5%;
}

.main {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.horizontal-line {
    background-color: rgb(215 215 215);
    height: 0.1rem;
    width: 100%;
}

.image-container {
    margin: 0.9rem 0;
}

/* Gradient Text */
.gradient-text {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to right, #ff7171, #9271ff, #4a79ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1rem;
}

.text {
    font-size: 1.3rem;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to right, #ff7171, #9271ff, #4a79ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.5rem;
}

.gradient-text-small {
    font-size: 1.4rem;
    font-weight: 500;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to right, #ff7171, #4a79ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.3rem;
}

.heading-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-grid {
    width: 100%;
    max-width: 800px;
    padding-top: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.logo {
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #333;
}

.logo-img {
    height: 4rem;
    width: 4rem;
}

.top-row {
    margin-bottom: 1rem;
    gap: 1rem;
}

.bottom-row {
    padding: 0 4rem;
    gap: 1rem;
}

.display-logos {
    width: 100%;
    height: 35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-con {
    text-align: center;
    max-width: 100rem;
    padding: 0 2rem;
    margin-top: 0.01rem;
}

.text-description {
    font-size: 1.1rem;
    letter-spacing: 0.0001rem;
    word-spacing: 0.0001rem;
    font-weight: 400;
    color: #333;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
}

.container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.btn-con {
    margin-top: 2.5rem;
    margin-bottom: 5rem;
    display: flex;
    justify-content: center;
}

.purchase-btn {
    padding: 0.9rem 3rem;
    font-size: 1.4rem;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    background: linear-gradient(to right, #ff7171, #9271ff, #4a79ff);
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    font-weight: 500;
}

.purchase-btn:hover {
    opacity: 0.9;
}

.purchase-btn a,
.purchase-btn a:hover,
.purchase-btn a:active,
.purchase-btn a:visited,
.purchase-btn a:focus {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    outline: none;  /* Remove focus outline */
}

.offer-btn a,
.offer-btn a:hover,
.offer-btn a:active,
.offer-btn a:visited,
.offer-btn a:focus {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    outline: none;  /* Remove focus outline */
}

.info-content {
    background: linear-gradient(to bottom, #C7DBF1, #FFFFFF);
    width: 100%;
    padding: 4rem 2rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.apps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}

.app-card {
    background: white;
    width: 100%;
    max-width: 48rem;
    padding: 1.5rem;
    border-radius: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
    margin: 0 auto;
}

.app-card:hover {
    box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.08);
}

.app-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.app-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}

.app-text {
    margin-top: -0.7rem;
}

.app-text h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.4rem;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: left;
}

.app-text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.download-btn {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    margin-left: 1.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background: #eee;
}

.download-btn img {
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.download-btn.active img {
    transform: rotate(180deg);
}

.offer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
}

.offer-card {
    background: linear-gradient(to right top, #556EF1, #CF97CA);
    max-width: 60rem;
    width: 100%;
    padding: 2rem;
    border-radius: 2rem;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-card h2 {
    font-size: 2.6rem;
    font-weight: 600;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 1rem;
}

.subscription-text {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.apps-text {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.price-text {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.offer-btn {
    background: white;
    color: #6B66FA;
    border: none;
    padding: 1rem 3.5rem;
    border-radius: 3rem;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.offer-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.copyright {
    margin-top: 1rem;
    text-align: center;
    padding: 0 2rem;
}

.copyright-text {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 1rem;
}

.trademark-text {
    font-size: 0.8rem;
    color: #333;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 80rem;
    margin: 0 auto;
    line-height: 1.4;
}

.app-section {
    width: 100%;
    margin-bottom: 1rem;
}

.preview-images {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    opacity: 0;
    transition: all 0.3s ease-out;
    margin-top: 0;
    background: transparent;
    padding: 0 2rem;
}

.preview-images.show {
    max-height: 40rem;
    opacity: 1;
    padding: 2rem;
    margin-top: 0.5rem;
}

.preview-number {
    width: 14rem;
    height: 24rem;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-number img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

.spinner {
    width: 35px;
    height: 35px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #556EF1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* iPhones (Small screens: SE, 5, 6, 7, 8) */
@media only screen and (max-width: 375px) {
    .gradient-text {
        font-size: 2rem;
    }

    .text {
        font-size: 1.1rem;
    }

    .purchase-btn {
        font-size: 1.2rem;
        padding: 0.7rem 2rem;
    }

    .app-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.8rem;
        font-size: 1rem;
    }

    .logo-img {
        width: 2.5rem;
        height: 2.5rem;
    }

    .preview-number {
        width: 12rem;
        height: 20rem;
    }

    .app-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* iPhone 12, 13, 14, 15 (Medium Screens) */
@media only screen and (max-width: 430px) {
    .gradient-text {
        font-size: 2.2rem;
    }

    .text {
        font-size: 1.2rem;
    }

    .purchase-btn {
        font-size: 1.2rem;
        padding: 0.8rem 2.5rem;
    }

    .logo {
        width: 3rem;
        height: 3rem;
    }

    .logo-img {
        width: 3rem;
        height: 3rem;
    }

    .preview-number {
        width: 13rem;
        height: 22rem;
    }

    .app-icon {
        width: 4rem;
        height: 4rem;
    }
}

/* iPads (Tablets) */
@media only screen and (min-width: 601px) and (max-width: 834px) {
    .logo-row {
        gap: 0.7rem;
        margin-bottom: 0.7rem;
    }

    .bottom-row {
        padding: 0 0.5rem;
        gap: 0.7rem;
    }

    .logo-grid {
        padding: 1rem 0.3rem;
    }

    .logo-img {
        width: 4rem;
        height: 4rem;
    }

    .logo {
        width: 4.5rem;
        height: 4.5rem;
    }

    .app-icon {
        width: 4rem;
        height: 4rem;
    }
}

/* Samsung Galaxy Tab S7, S8, S9 */
@media only screen and (min-width: 601px) and (max-width: 800px) {
    .logo-row {
        gap: 0.7rem;
        margin-bottom: 0.7rem;
    }

    .bottom-row {
        padding: 0 0.5rem;
        gap: 0.7rem;
    }

    .logo-grid {
        padding: 1rem 0.3rem;
    }

    .logo {
        width: 4.5rem;
        height: 4.5rem;
    }

    .app-icon {
        width: 5rem;
        height: 5rem;
    }
}

/* Samsung Galaxy S21, S22, S23 */
@media only screen and (max-width: 412px) {
    .gradient-text {
        font-size: 2rem;
    }

    .text {
        font-size: 1.1rem;
    }

    .logo {
        width: 4rem;
        height: 4rem;
    }

    .preview-number {
        width: 12rem;
        height: 20rem;
    }

    .app-icon {
        width: 4.5rem;
        height: 4.5rem;
    }
}

/* General mobile adjustments */
@media only screen and (max-width: 600px) {
    .logo-grid {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .logo-row {
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1rem;
        justify-content: center;
        width: 100%;
    }

    .logo {
        width: 2.5rem !important;
        height: 2.5rem !important;
        border-radius: 0.8rem;
        font-size: 1rem;
    }

    /* Remove any special styling for bottom row */
    .bottom-row {
        padding: 0;
        gap: 1rem;  /* Same gap as other rows */
    }

    /* Specific styles for each row to maintain consistent grid */
    .logo-row:nth-child(1),
    .logo-row:nth-child(2),
    .logo-row:nth-child(3) {
        display: grid;
        gap: 1rem;
        width: 100%;
        max-width: 320px;  /* To keep logos centered and gaps consistent */
    }

    .logo-row:nth-child(1),
    .logo-row:nth-child(2) {
        grid-template-columns: repeat(4, 1fr);
    }

    .logo-row:nth-child(3) {
        grid-template-columns: repeat(3, 1fr);
    }

    .text-con {
        padding: 0 1rem;
    }

    .preview-images {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .preview-images.show {
        max-height: 80rem;
        opacity: 1;
        padding: 0rem;
        margin-top: 1.5rem;
    }

    .purchase-btn {
        font-size: 1.1rem;
        padding: 0.7rem 2rem;
    }

    .app-icon {
        width: 4rem;
        height: 4rem;
    }

    .app-card {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .download-btn {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        padding: 0.8rem;
    }

    .app-info {
        width: 100%;
        justify-content: center;
    }

    .app-text h3 {
        text-align: center;
    }
}

/* Specific adjustment for 546px range */
@media only screen and (min-width: 500px) and (max-width: 546px) {
    .logo-row {
        gap: 0.9rem;
    }
    .logo {
        width: 3rem;
        height: 3rem;
    }
}

/* Specific adjustment for 440px to 605px range */
@media only screen and (min-width: 440px) and (max-width: 605px) {
    .logo-row {
        gap: 2rem !important;
    }
    .bottom-row {
        margin-top: 1.2rem;
    }
    .logo {
        width: 3rem !important;
        height: 3rem !important;
    }
}

.logo img {
    outline: none;
    border: none;
    box-shadow: none;
}

.logo img:focus,
.logo img:active,
.logo img:hover {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}
