/* --- CSS VARIABLES & BASIC SETUP --- */
:root {
    --bg-dark: #0b0b0f;
    --bg-card: #141418;
    --text-light: #F5F5F7;
    --text-muted: #8D8D92;
    --font-family: 'Inter', sans-serif;

    /* Brand accents inspired by quso.ai */
    --primary-500: #7C3AED; /* violet-600 */
    --primary-400: #A855F7; /* violet-500 */
    --accent-400: #22D3EE;  /* cyan-400 */
    --accent-pink: #EC4899; /* pink-500 */

    --gradient-primary: linear-gradient(90deg, var(--primary-400) 0%, var(--primary-500) 50%, var(--accent-400) 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(124,58,237,0.15), rgba(34,211,238,0.05));
    --glass: rgba(255,255,255,0.06);
    --card-border: rgba(168, 85, 247, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

::selection { background: rgba(124,58,237,0.35); color: #fff; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

h1 { font-size: 2.8rem; font-weight: 900; }
h2 { font-size: 2.2rem; }
p { color: var(--text-muted); margin-bottom: 20px; }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(124,58,237,0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 38px rgba(124,58,237,0.45);
}

/* --- HEADER & NAVIGATION --- */
.header {
    background-color: rgba(16, 16, 16, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light);
    text-decoration: none;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-btn { display: none; }

.hamburger {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile nav overlay */
.nav-links.active {
    display: flex;
    position: fixed;
    inset: 0;
    padding-top: 90px;
    background: rgba(8, 8, 12, 0.95);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 90;
}
.nav-links.active a {
    font-size: 1.1rem;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 150px;
    text-align: center;
}

.hero { position: relative; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute;
    inset: -20% -20% auto -20%;
    height: 70vh;
    background: radial-gradient(60% 60% at 50% 0%, rgba(124,58,237,0.35) 0%, rgba(34,211,238,0.18) 35%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

.hero-content h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* (Removed) shine/glare effect */

.hero-content p {
    max-width: 600px;
    margin: 20px auto 30px;
    font-size: 1.1rem;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 6px auto 28px;
}
.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 9999px;
    background: var(--glass);
    border: 1px solid var(--card-border);
}
.stat-value {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.stat-label { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }

/* Flip counter styles (downloads) */
.flip-counter {
    display: inline-flex;
    gap: 4px;
    vertical-align: middle;
}
.stat-value .suffix { margin-left: 4px; }

.digit {
    position: relative;
    width: 28px;
    height: 40px;
    perspective: 600px;
}
.digit .slot {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    overflow: hidden;
}
.digit .top,
.digit .bottom {
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--text-light);
    font-size: 1.1rem;
}
.digit .top {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.digit .flip-upper,
.digit .flip-lower {
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    backface-visibility: hidden;
}
.digit .flip-upper {
    top: 0;
    height: 50%;
    transform-origin: center bottom;
}
.digit .flip-lower {
    bottom: 0;
    height: 50%;
    transform-origin: center top;
}

.digit.flip .flip-upper { animation: flipTop 0.35s ease-in forwards; }
.digit.flip .flip-lower { animation: flipBottom 0.35s ease-out 0.175s forwards; }

@keyframes flipTop {
    0% { transform: rotateX(0); }
    100% { transform: rotateX(-90deg); }
}
@keyframes flipBottom {
    0% { transform: rotateX(90deg); }
    100% { transform: rotateX(0); }
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.cta-buttons img {
    height: 50px;
    width: auto;
    aspect-ratio: auto;
}

.hero-visual img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 20px;
}

/* --- FEATURES SECTION --- */
.feature-card {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
    background: var(--glass);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset, 0 12px 40px rgba(124,58,237,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset, 0 16px 54px rgba(124,58,237,0.12);
}

.feature-image img {
    border-radius: 15px;
    width: 100%;
    height: auto;
    max-width: 350px;
}

.feature-text {
    text-align: center;
}

/* --- HOW IT WORKS SECTION --- */
.how-it-works-section {
    background-color: var(--bg-card);
    text-align: center;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 15px;
}

/* --- REVIEWS SECTION --- */
.reviews-section h2 { text-align: center; }

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.review-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
}
.review-card .stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.review-card p {
    color: var(--text-light);
    font-style: italic;
}
.review-card h4 {
    margin-top: 20px;
    color: var(--text-light);
}
.review-card h4 span {
    display: block;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

/* --- Infinite reviews ticker --- */
.reviews-ticker {
    margin-top: 30px;
    overflow: hidden; /* hide overflow for auto-animate */
    position: relative;
}

.reviews-track {
    display: flex;
    width: max-content; /* allow content to define width */
    animation: marquee 40s linear infinite;
}

.reviews-ticker:hover .reviews-track {
    animation-play-state: paused; /* pause on hover */
}

.track-group {
    display: flex;
}

.ticker-card {
    background-color: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 10px;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    white-space: normal;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- FAQ SECTION --- */
.faq-section h2 { text-align: center; }

.faq-container {
    max-width: 700px;
    margin: 40px auto 0;
}

.faq-item {
    background-color: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer p {
    padding: 0 20px 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
}

/* --- CTA SECTION --- */
.cta-section {
    background: var(--gradient-primary);
    text-align: center;
    border-radius: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    padding: 80px 0;
}
.cta-section h2 { font-size: 2rem; }
.cta-section .cta-buttons img { height: 55px; }


/* --- FOOTER --- */
.footer {
    background-color: var(--bg-card);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: var(--text-light);
}

.social-links a {
    display: inline-block;
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hidden.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* New animation system */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
    will-change: opacity, transform;
}
[data-animate="fade-right"] { transform: translateX(-24px); }
[data-animate="fade-left"] { transform: translateX(24px); }
[data-animate="scale-in"] { transform: scale(0.96); }

[data-animate].is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger support: delays applied via inline style or JS */
[data-stagger] > * {
    transition-delay: var(--stagger-delay, 0ms);
}

/* Button shine effect */
.btn.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn.btn-shine::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -150%;
    width: 120%;
    height: 300%;
    transform: rotate(15deg);
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: shine 3.2s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-120%) rotate(15deg); }
    60% { transform: translateX(220%) rotate(15deg); }
    100% { transform: translateX(220%) rotate(15deg); }
}

/* --- MEDIA QUERIES (TABLET & UP) --- */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.8rem; }
    
    .nav-links { display: flex; }
    .nav-btn { display: inline-block; }
    .hamburger { display: none; }
    .nav-links.active {
        /* Mobile-only styles are reset here */
        transform: none;
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: none;
        padding-top: 0;
    }

    .feature-card {
        flex-direction: row;
        text-align: left;
    }
    .feature-card.reverse {
        flex-direction: row-reverse;
    }
    .feature-text { text-align: left; }
    
    .steps-container {
        flex-direction: row;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .cta-section h2 { font-size: 2.5rem; }
}

/* --- MEDIA QUERIES (DESKTOP & UP) --- */
@media (min-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-card { gap: 80px; }
}

/* --- MEDIA QUERIES (MOBILE) --- */
@media (max-width: 480px) {
    .cta-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
    .cta-buttons img {
        height: 44px;
    }
    .feature-card {
        padding: 18px;
        gap: 20px;
    }
}

/* --- USER VIDEOS LINKS --- */
.user-videos h2 { text-align: center; }
.user-videos p { text-align: center; }

.link-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    margin-top: 24px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.link-card {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    align-items: center;
    gap: 14px;
    background: var(--glass);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 420px;
    scroll-snap-align: start;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 16px 54px rgba(124,58,237,0.12);
}

.link-thumb {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    background: #0f0f14;
    border: 1px solid var(--card-border);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.link-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-icon {
    font-size: 28px;
    color: var(--text-light);
    opacity: 0.9;
}

.link-meta {
    min-width: 0;
}

.link-title {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-url {
    color: var(--text-muted);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-open {
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: #1d1d23;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
}

/* preserve horizontal scroll on larger screens */