@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-color: #08060F;
    --primary: #D6185D;
    --primary-light: #FFA2B2;
    --primary-dark: #8C0E3C;
    --glass-bg: rgba(25, 22, 38, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Animations */
.bg-blobs {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 60vw; height: 60vw;
    background: rgba(214, 24, 93, 0.25);
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 70vw; height: 70vw;
    background: rgba(89, 18, 145, 0.25);
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    top: 30%; left: 40%;
    width: 50vw; height: 50vw;
    background: rgba(255, 162, 178, 0.15);
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(15%, 15%) scale(1.1) rotate(15deg); }
}

/* Reusables */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFA2B2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.highlight-badge {
    background: rgba(214, 24, 93, 0.15);
    border-color: rgba(214, 24, 93, 0.3);
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(8, 6, 15, 0.7); /* Slightly darker for readability */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(214, 24, 93, 0.4);
}

.play { color: var(--text-main); }
.serialok { color: var(--primary); }

.lang-switch {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.lang-switch a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-switch a.active {
    color: #FFFFFF;
    background-color: var(--primary);
    box-shadow: 0 4px 10px rgba(214, 24, 93, 0.3);
}

.lang-switch a:hover:not(.active) {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
main {
    flex: 1;
}

.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content .glass-badge {
    margin-bottom: 24px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.detail-message-box {
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 16px 16px 0;
    margin-bottom: 30px;
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.6;
}

.app-version {
    margin-bottom: 40px;
    color: var(--text-muted);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 36px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #E91E63 0%, #FF4B8D 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.6), inset 0 -2px 0 rgba(0,0,0,0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visual-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 0;
}

.poster-mockup {
    position: relative;
    z-index: 1;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-poster {
    width: 280px;
    border-radius: 24px;
    display: block;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.poster-mockup:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 50px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 0 2px #333, 0 0 0 1px rgba(255,255,255,0.1);
    z-index: 1;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 38px;
}

.phone-mockup img.fallback {
    width: 50%;
    height: 50%;
    margin: 50% auto;
    object-fit: contain;
    display: block;
}

.floating-anim {
    animation: float-phone 6s ease-in-out infinite;
}

@keyframes float-phone {
    0% { transform: translateY(0) perspective(1000px) rotateY(-15deg) rotateX(5deg); }
    50% { transform: translateY(-20px) perspective(1000px) rotateY(-12deg) rotateX(2deg); }
    100% { transform: translateY(0) perspective(1000px) rotateY(-15deg) rotateX(5deg); }
}

/* Screenshots Section */
.screenshots-section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.screenshots-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    position: relative;
    height: 600px;
}

.screenshot-card {
    width: 280px;
    height: 580px;
    border-radius: 40px;
    padding: 10px;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center center;
    cursor: pointer;
}

.screenshot-card:nth-child(1) {
    transform: translateX(-220px) scale(0.85) rotate(-5deg);
    z-index: 1;
    opacity: 0.7;
}

.screenshot-card.center-card {
    transform: translateX(0) scale(1) translateY(-20px);
    z-index: 3;
    opacity: 1;
    box-shadow: 0 30px 60px rgba(214, 24, 93, 0.2), 0 0 0 1px rgba(255,255,255,0.1);
}

.screenshot-card:nth-child(3) {
    transform: translateX(220px) scale(0.85) rotate(5deg);
    z-index: 1;
    opacity: 0.7;
}

.screenshot-card:hover {
    z-index: 4;
    opacity: 1;
    transform: translateX(0) scale(1.05) translateY(-30px) rotate(0);
}

.screen-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #000;
}

.screen-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    padding: 40px 20px;
    margin-top: auto;
}

.footer-inner {
    border-radius: 24px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 60px;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons {
        justify-content: flex-start;
    }

    .detail-message-box {
        border-left: 4px solid var(--primary);
        border-top: none;
        border-radius: 0 16px 16px 0;
        text-align: left;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    /* Preserve the 3D tilt on mobile! */
    .phone-mockup {
        transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    }
    
    .floating-anim {
        animation: float-phone-mobile 6s ease-in-out infinite;
    }
    
    @keyframes float-phone-mobile {
        0% { transform: translateY(0) perspective(1000px) rotateY(-15deg) rotateX(5deg); }
        50% { transform: translateY(-15px) perspective(1000px) rotateY(-12deg) rotateX(2deg); }
        100% { transform: translateY(0) perspective(1000px) rotateY(-15deg) rotateX(5deg); }
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Keep desktop 3D overlapping cards on mobile by scaling down! */
    .screenshots-gallery {
        height: 400px;
        transform: scale(0.65);
        transform-origin: center top;
        margin-bottom: -150px; /* compensate for scaled height */
    }
    
    .screenshot-card, .screenshot-card:nth-child(1), .screenshot-card.center-card, .screenshot-card:nth-child(3) {
        position: absolute; /* Restore absolute positioning from desktop */
        width: 280px;
        height: 580px;
        opacity: 0.8;
    }

    /* Redefining transforms just to be sure they override any previous mobile styles */
    .screenshot-card:nth-child(1) {
        transform: translateX(-220px) scale(0.85) rotate(-5deg) !important;
        z-index: 1;
    }

    .screenshot-card.center-card {
        transform: translateX(0) scale(1) translateY(-20px) !important;
        z-index: 3;
        opacity: 1;
    }

    .screenshot-card:nth-child(3) {
        transform: translateX(220px) scale(0.85) rotate(5deg) !important;
        z-index: 1;
    }

    .screenshot-card:hover {
        z-index: 4;
        opacity: 1;
        transform: translateX(0) scale(1.05) translateY(-30px) rotate(0) !important;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .phone-mockup {
        width: 100%;
        max-width: 280px;
        height: 560px;
    }
    
    .screenshots-gallery {
        transform: scale(0.5);
        margin-bottom: -250px;
    }
    
    .logo-text {
        display: none;
    }
}

