:root {
    --color-desert-sand: #f87060;
    --color-accent: #e21f66;
    --color-green-wine: #589d6d;
    --color-white: #ffffff;
    --color-highlight: #c2ff90;
    --color-background: #000000;
}

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

/* iOS Safari font loading optimization */
@supports (font-display: swap) {
    * {
        font-display: swap;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-background);
    color: var(--color-white);
    line-height: 1.5;
}

/* Header & Navigation */
header {
    padding: 20px 110px;
    background: var(--color-desert-sand);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1158px;
    margin: 0 auto;
}

.logo {
    width: 180px;
    height: auto;
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cta-button {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    white-space: nowrap;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--color-green-wine);
    color: var(--color-white);
    border: 2px solid var(--color-green-wine);
}

/* Hero Section */
.hero {
    padding: 0 139px;
    margin-bottom: 50px;
    background: linear-gradient(180deg, var(--color-desert-sand) 0%, rgba(199, 150, 76, 0.00) 92.79%);
}

.hero-video {
    position: relative;
    width: 856px;
    height: 482px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 87px;
    height: 87px;
}

.play-button img {
    width: 100%;
    height: 100%;
}

.try-free-button {
    background-color: var(--color-green-wine);
    color: var(--color-white);
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    text-transform: uppercase;
    transition: all 0.3s ease;

}

.try-free-button.desktop {
    animation: buttonWave 1.5s ease-in-out infinite;
    transform: translateX(-50%) rotate(-5deg);
    position: absolute;
    bottom: 76px;
    left: 50%;
 }

 .try-free-box.mobile {
   display: none;
}

.try-free-button.mobile  {
    display: none;
}

.try-free-button.hover-animation {
    background-color: var(--color-desert-sand);
}

@keyframes buttonWave {
    0%, 100% {
        transform: translateX(-50%) rotate(-5deg);
    }
    50% {
        transform: translateX(-50%) rotate(5deg);
    }
}

@keyframes buttonWaveMobile {
    0%, 100% {
        transform: translateX(50%) rotate(-5deg);
    }
    50% {
        transform: translateX(50%) rotate(5deg);
    }
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 33px;
}

.title-section h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 128px;
    letter-spacing: -3.2px;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 500;
}

.real-text {
    color: var(--color-green-wine);
    text-shadow: 4px -3px 0px var(--color-desert-sand);
}

.desi-text, .desire {
    color: var(--color-desert-sand);
}

.waiting-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 51px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--color-desert-sand);
}

.one-click {
    color: var(--color-green-wine);
    text-shadow: 4px -3px 0px var(--color-desert-sand);
}

.bengali-text {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Noto Sans', 'Kalpurush', 'SolaimanLipi', 'Rupali', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: bold;
    font-size: 58px;
    line-height: 50px;
    color: var(--color-desert-sand);
    /* Enhanced text rendering for complex scripts */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* WebKit complex script support */
    -webkit-font-feature-settings: "liga" 1, "calt" 1, "clig" 1, "kern" 1;
    font-feature-settings: "liga" 1, "calt" 1, "clig" 1, "kern" 1;
    /* Unicode normalization support */
    unicode-bidi: isolate;
    /* Prevent font scaling issues */
    -webkit-text-size-adjust: none;
    /* Fallback for font loading issues */
    font-display: swap;
    /* Force hardware acceleration for complex scripts */
    transform: translateZ(0);
    will-change: auto;
}

/* Enhanced fallback when Bengali fonts fail to load */
.font-fallback .bengali-text {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    /* Adjust styling for fallback font */
    font-size: 52px;
    letter-spacing: 1px;
    /* Ensure proper Unicode handling in fallback */
    unicode-bidi: isolate;
    direction: ltr;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 283px);
    gap: 30px;
    justify-content: center;
    padding: 0 109px;
    margin-bottom: 50px;
}

.profile-card {
    position: relative;
    height: 277px;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-white);
    transition: all 0.5s ease;
}

.profile-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.card-image {
    width: 100%;
    height: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(3, 22, 63, 0) 40%, rgba(3, 22, 63, 0.6) 100%);
    padding: 20px;
}

.username {
    font-size: 12px;
    margin-bottom: 15px;
    display: block;
}

.stats {
    display: flex;
    gap: 29px;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat img {
    width: 15px;
    height: 15px;
}

.stat span {
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
}

/* CTA Section */
.cta-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        max-width: 1222px;
        margin: 0 auto;
        padding-bottom: 50px;
}

.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 44px;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.cta-section .btn-load-more {
    display: none;
}

.fantasy {
    color: var(--color-desert-sand);
}

.no-strings {
    color: var(--color-green-wine);
}

.description {
    font-size: 24px;
    max-width: 1222px;
}

.description .bold {
    font-weight: bold;
}

/* Footer */
footer {
    padding: 0 110px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1222px;
    margin: 0 auto;
    gap: 49px;
    padding: 50px 0;
    border-top: 2px solid var(--color-white);
}

.footer-logo {
    width: 180px;
    height: auto;
}

.footer-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-info {
    text-align: right;
    font-size: 16px;
}

.footer-info a {
    color: var(--color-white);
    text-decoration: underline;
    margin-left: 10px;
    line-height: 1;
}

.footer-badges {
    display: flex;
    gap: 7px;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 5px;
}

.footer-badges img {
    height: 12px;
    width: auto;
}

/* Responsive Design */
@media (max-width: 1440px) {
    header, .hero, .profile-grid, .cta-section, footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-video {
        width: 100%;
        max-width: 856px;
        height: auto;
        aspect-ratio: 856/482;
    }

    .profile-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 283px));
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    .logo img {
        height: 38px;
    }

    .cta-button {
        font-size: 12px;
        padding: 6px 14px;
    }

    .try-free-button.mobile {
        display: inline-block;
        font-size: 20px;
        padding: 6px 14px;
        animation: buttonWaveMobile 1.5s ease-in-out infinite;
        transform: translateX(50%);
        margin-top: 20px;
        width: 100%;
        max-width: 50%;
        text-align: center;
    }

    .try-free-button.desktop {
        display: none;
    }

    .play-button img {
        width: 100%;
        max-width: 65px;
    }


    .title-section h1 {
        font-size: 64px;
        letter-spacing: -1.2px;
    }

    .real-text, .one-click {
        text-shadow: 2px -2px 2px var(--color-desert-sand);
    }

    .waiting-text {
        font-size: 32px;
        line-height: 1;
    }

    .bengali-text {
        font-size: 36px;
        /* Enhanced iOS mobile font rendering */
        -webkit-text-size-adjust: 100%;
        /* Prevent iOS font scaling issues */
        line-height: 1.2;
        /* Better line height for mobile */
        letter-spacing: 0.5px;
        /* Improve readability on small screens */
    }

    .profile-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .profile-card {
        display: none;
    }
    
    /* Show only 1st, 2nd and 6th cards */
    .profile-card:nth-child(1),
    .profile-card:nth-child(2),
    .profile-card:nth-child(6) {
        display: block;
        height: auto;
    }

    .cta-section h2 {
        font-size: 32px;
        line-height: normal;
    }

    .cta-section h2 span{
        display: block;
    }

    .cta-section .btn-load-more {
        display: block;
        margin: 0 auto 50px;
        text-align: center;
        font-size: 20px;
        font-family: 'Montserrat', sans-serif;
        font-weight: bold;
        text-transform: uppercase;
        background-color: var(--color-green-wine);
        color: var(--color-white);
        border-radius: 50px;
        text-decoration: none;
        padding: 10px 20px;
        width: 100%;
        max-width: 200px;
    }

    .cta-section .btn-load-more:hover {
        background-color: var(--color-desert-sand);
        color: var(--color-white);
    }

    

    .description {
        font-size: 18px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

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

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

@media (max-width: 415px) {
    .try-free-button.mobile {
        font-size: 12px;
    }
}

/* iOS and macOS specific Bengali font optimizations */
@supports (-webkit-touch-callout: none) {
    .bengali-text {
        /* Enhanced WebKit Bengali rendering */
        -webkit-font-feature-settings: "liga" 1, "calt" 1, "clig" 1, "kern" 1, "rlig" 1;
        font-feature-settings: "liga" 1, "calt" 1, "clig" 1, "kern" 1, "rlig" 1;
        /* Force text shaping for complex scripts */
        text-rendering: geometricPrecision;
        /* Prevent text scaling on iOS */
        -webkit-text-size-adjust: 100%;
        /* Better font loading on WebKit */
        font-display: block;
    }
    
    /* iOS mobile specific adjustments */
    @media (max-width: 768px) {
        .bengali-text {
            /* Optimized font size for mobile WebKit */
            font-size: 34px;
            line-height: 1.1;
            /* Enhanced mobile rendering */
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }
    }
}

/* Safari-specific fixes for Bengali character rendering */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .bengali-text {
        /* Safari-specific text rendering optimization */
        text-rendering: optimizeSpeed;
        /* Prevent character substitution issues */
        font-variant-ligatures: contextual;
        -webkit-font-variant-ligatures: contextual;
    }
}