/* === CSS RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-deep: #050505;
    --bg-dark: #0a0a0c;
    --bg-surface: #121217;
    --text-primary: #ffffff;
    --text-muted: #a0a0ab;
    --accent-purple: #8b5cf6;
    --accent-gold: #fbbf24;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Figtree', sans-serif;
    --nav-height: 80px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-deep);
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10 10L90 90M90 10L10 90' stroke='rgba(255,255,255,0.03)' stroke-width='0.5'/%3E%3C/svg%3E");
}

/* === UTILITIES === */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

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

.zigzag-section {
    clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 calc(100% - 50px));
    margin: -50px 0;
    padding: 150px 0;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.glow-text {
    background: linear-gradient(to bottom, #fff, #a0a0ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

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

/* === BUTTONS === */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), #6366f1);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.6);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
    background: var(--glass-bg);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

/* === NAVIGATION === */
.floating-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    min-width: 320px;
}

.nav-pill {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 8px 12px 8px 24px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-deep);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-name {
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1rem;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-gold);
}

.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .floating-nav {
        width: 90%;
    }
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: block;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }
    .nav-pill {
        justify-content: space-between;
        gap: 0;
    }
}

/* === HERO === */
.mischief-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    background: radial-gradient(circle at center, #1a1033 0%, var(--bg-deep) 100%);
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: 20px;
    line-height: 0.9;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-inline: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
}

.stat-item .stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    font-family: var(--font-heading);
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 30px;
        flex-direction: column;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

/* === FEATURES === */
.showcase-grid {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    padding: 20px 5% 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.showcase-grid::-webkit-scrollbar {
    display: none;
}

.feature-card {
    flex: 0 0 340px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius-lg);
    scroll-snap-align: start;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
}

.feature-icon {
    font-size: 48px;
    color: var(--accent-gold);
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* === GALLERY === */
.mischief-gallery-container {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 0 5%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mischief-gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.gallery-img {
    height: 500px;
    width: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-deep);
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .gallery-img {
        height: 350px;
    }
}

/* === STATS STRIPS === */
.stats-strips {
    padding: 0;
}

.stat-strip {
    width: 100%;
    padding: 80px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-strip:nth-child(even) {
    background: rgba(139, 92, 246, 0.05);
}

.stat-strip:nth-child(odd) {
    background: rgba(251, 191, 36, 0.03);
}

.stat-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-number {
    font-size: clamp(4rem, 15vw, 10rem);
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 0.8;
    color: rgba(255,255,255,0.9);
}

.stat-info {
    text-align: right;
}

.stat-label-bold {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.stat-sublabel {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .stat-strip .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .stat-info {
        text-align: left;
    }
}

/* === REVIEWS === */
.reviews-section {
    background: var(--bg-dark);
}

.rating-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 40px;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.rating-score {
    text-align: center;
}

.score-num {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    display: block;
}

.stars-row {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.rating-bars {
    flex: 1;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent-gold);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.review-card {
    background: var(--bg-surface);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-meta h4 {
    font-size: 1rem;
    color: #fff;
}

.review-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .rating-header {
        flex-direction: column;
        padding: 24px;
    }
}

/* === DOWNLOAD CTA === */
.download-section {
    text-align: center;
    background: radial-gradient(circle at top, #1a1033 0%, var(--bg-deep) 100%);
}

.cta-app-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin: 0 auto 32px;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
}

.cta-tagline {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* === FOOTER === */
.dark-footer {
    background: #000;
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .nav-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

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

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

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-purple);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-purple);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* === SCROLL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 5px;
    border: 3px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* === MOBILE MENU === */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-overlay a {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
}

/* === LEGAL PAGES STYLES === */
.legal-page {
    padding-top: 160px;
}

.legal-content {
    max-width: 800px;
    margin-inline: auto;
}

.legal-content h2 {
    margin: 40px 0 20px;
    color: var(--accent-gold);
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.legal-content ul {
    margin: 0 0 20px 20px;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 10px;
}

/* Auto-fix: prevent default blue/purple browser links */
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: currentColor; }
