:root {
    --primary-color: #8A2BE2;
    /* BlueViolet */
    --secondary-color: #4B0082;
    /* Indigo */
    --accent-color: #00FFFF;
    /* Cyan */
    --text-color: #FFFFFF;
    --bg-color: #0F0F1A;
    --card-bg: #1A1A2E;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s;
}

.logo-img {
    height: 40px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    filter: brightness(0) invert(1);
    /* Force black text to white */
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a:not(.cta-button):hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.nav-cta {
    padding: 10px 25px !important;
    box-shadow: none !important;
    background: rgba(138, 43, 226, 0.2) !important;
    border: 1px solid var(--primary-color);
}

.nav-cta:hover {
    background: var(--primary-color) !important;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.9rem;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #2a0a4a 0%, #0F0F1A 60%);
    padding: 100px 5% 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 40px;
    z-index: 1;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.hero-content h1 span {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.3));
}

.hero-p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /* Better mobile adjustments */
}

/* Store Button Styles */
.store-button {
    display: inline-flex !important;
    /* Override default inline-block */
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.store-icon {
    width: 24px;
    height: 24px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    /* Adjusted padding */
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    transition: 0.3s;
    min-width: 160px;
    /* Establish uniform width */
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.6);
}

.secondary-button {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.secondary-button:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Video Section Styles --- */
.video-section {
    padding: 80px 20px;
    text-align: center;
    background: transparent;
    /* Seamless blend */
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.shorts-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.video-frame {
    /* Adjusted for desktop to be less overwhelming */
    width: 270px;
    height: 480px;
    /* 9:16 approx ratio */
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(112, 0, 255, 0.3);
    /* Purple glow */
    border: 6px solid #1a1a1a;
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-frame:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(112, 0, 255, 0.6);
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Secondary Button Style */
.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile Adjustments for Video */
@media (max-width: 768px) {
    .shorts-grid {
        gap: 30px;
    }

    .video-frame {
        /* Reduced size for mobile to avoid taking up full screen height */
        width: 240px;
        height: 426px;
        /* 9:16 ratio */
    }
}

/* Hero Image & Animation */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Base style for all magical rings */
.hero-image::before,
.hero-image::after,
.hero-image .magic-ring {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    /* Organic, non-circular shape */
    background: transparent;
    z-index: 0;
    opacity: 0.8;
    filter: blur(1px);
}

/* Ring 1 - Large Cyan Vortex */
.hero-image::before {
    width: 500px;
    height: 500px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color);
    border-left: 2px solid transparent;
    animation: magic-spin 10s linear infinite;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
}

/* Ring 2 - Medium Purple Orbit */
.hero-image::after {
    width: 420px;
    height: 420px;
    border: 1px solid rgba(138, 43, 226, 0.1);
    border-bottom: 3px solid var(--primary-color);
    border-right: 2px solid transparent;
    animation: magic-spin-reverse 7s linear infinite;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    /* Different organic shape */
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.15);
}

/* Floating Image */
.floating-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    /* Reduced size slightly to let magic shine */
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 40px rgba(138, 43, 226, 0.3));
    animation: float-magical 5s ease-in-out infinite;
}

@keyframes magic-spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes magic-spin-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes float-magical {
    0% {
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 0 40px rgba(138, 43, 226, 0.3));
    }

    50% {
        transform: translateY(-15px) scale(1.02);
        filter: drop-shadow(0 0 60px rgba(0, 255, 255, 0.4));
    }

    100% {
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 0 40px rgba(138, 43, 226, 0.3));
    }
}

/* Features */
.features {
    padding: 100px 5%;
    background: linear-gradient(to bottom, var(--bg-color), #05050a);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Feature Cards - Polished */
.feature-card {
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.9), rgba(10, 10, 15, 0.95));
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Brighter border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    /* Depth */
    position: relative;
    /* For overflow/glow handling */
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.2);
    /* Colored glow on hover */
}

/* Feature Image Container - Integrated Look */
.feature-img {
    width: 100%;
    height: 180px;
    /* Slightly smaller for better proportions */
    object-fit: contain;
    padding: 10px;
    transition: transform 0.5s;
    filter: drop-shadow(0 0 15px rgba(108, 92, 231, 0.3));
    /* Glow BEHIND image content */
    margin-bottom: 20px;
}

.feature-card:hover .feature-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(108, 92, 231, 0.6));
    /* Intensify glow */
}

/* Call to Action Section - Centering Fix */
.cta-section {
    text-align: center !important;
    /* Force center text */
}

.cta-section h2 {
    text-align: center;
    margin-bottom: 10px;
}

.cta-section p {
    text-align: center;
    opacity: 0.8;
}

.download-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Feature Card Image Updates */
.card-image {
    height: 200px;
    /* Reduced from 250px to prevent "huge" look */
    width: 100%;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-img {
    width: 100%;
    height: 200px;
    /* Constrain height on desktop too */
    object-fit: contain;
    padding: 10px;
    transition: transform 0.5s;
}

.feature-card:hover .feature-img {
    transform: scale(1.1);
    /* Zoom effect on hover */
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: transparent;
    position: relative;
    z-index: 10;
}

/* Responsive Updates */
@media (max-width: 900px) {
    .feature-card {
        margin-bottom: 20px;
    }

    .card-image {
        /* Circular Spotlight Effect */
        width: 280px;
        /* Fixed size for circle */
        height: 280px;
        border-radius: 50%;
        /* Perfect circle */
        margin: 0 auto 15px auto;
        /* Center horizontally */

        /* PROMINENT background for contrast */
        background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(138, 43, 226, 0.05) 70%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.2) inset, 0 0 20px rgba(138, 43, 226, 0.1);
        /* Enhanced glow */

        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        /* Remove padding to let image fill if needed */
    }

    .feature-img {
        height: 200px !important;
        /* Slightly reduced to fit circle comfortably without touching edges */
        width: auto !important;
        max-width: 80%;
        /* Ensure it fits width-wise */
        object-fit: contain;
        margin-bottom: 0;
        filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.8));
    }


    .hero-content {
        flex-direction: column;
        /* Text/Button FIRST, Image SECOND */
        text-align: center;
        padding-top: 5px;
        /* Reduce padding further */
        gap: 10px;
        /* Tighter gap */
    }

    .hero-text {
        text-align: center;
        order: 1;
        /* Explicitly order first */
    }

    .hero-image {
        order: 2;
        /* Explicitly order second */
        width: 100%;
        margin-bottom: 20px;
        min-height: auto;
        display: flex;
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        margin-bottom: 5px;
        /* Reduce container height impact */
        min-height: auto;
    }

    .floating-img {
        max-height: 160px;
        /* Further reduced to keep logo visible "above fold" if possible */
        width: auto;
        max-width: 80vw;
    }

    /* Adjust magic rings size for mobile */
    .hero-image::before,
    .hero-image::after {
        width: 300px !important;
        height: 300px !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
        /* Slightly smaller text */
    }

    nav {
        display: none;
    }

    /* Ensure feature images look good on small screens */
    .shorts-grid {
        gap: 30px;
    }

    .video-frame {
        width: 240px;
        height: 426px;
    }

    /* Fix Mobile Navigation: Hide menu items but keep language button visible */
    nav ul {
        display: none !important;
        /* Hide standard menu links */
    }

    nav {
        display: block !important;
        /* Keep nav container to hold the button */
        position: absolute;
        top: 20px;
        right: 20px;
    }

    /* Specifically show the language button even if ul is hidden, we need to extract it or style it separately.
       Since it's inside the UL in the HTML, we need a CSS workaround or HTML change.
       Wait, if it's inside the UL and we hide the UL, the button hides too.
       Correct approach: Hide LI elements EXCEPT the one containing the button, or move the button in HTML.
       Let's try a CSS-only fix first by hiding LIs but showing the button.
    */
    nav ul {
        display: flex !important;
        position: absolute;
        top: 0;
        right: 0;
        flex-direction: row;
        gap: 10px;
    }

    nav ul li {
        display: none;
        /* Hide all list items by default on mobile */
    }

    nav ul li:last-child {
        display: block;
        /* Show ONLY the last item (Language Button) */
    }
}

/* Shared utility for emoji icons */
.emoji-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.4));
}

/* --- New Landing Page Conversion Styles --- */

.hero-subtitle-bold {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.highlight-text {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-block;
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
}

.large-cta {
    padding: 18px 40px !important;
    font-size: 1.15rem !important;
    min-width: 280px !important;
    display: flex;
    justify-content: center;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6) !important;
}

.hero-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.ios-coming-soon {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 10px;
}

@media (max-width: 900px) {
    .hero-buttons-container {
        align-items: center;
        width: 100%;
    }

    .large-cta {
        width: 100% !important;
        max-width: 320px;
    }

    .ios-coming-soon {
        margin-left: 0;
    }
}