/* ========================================
   Meitu APK Download - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary: #E91E8C;
    --primary-dark: #C4167A;
    --primary-light: #FF4DB8;
    --secondary: #7B2FBF;
    --secondary-dark: #5A1F8C;
    --accent: #FF6B9D;
    --gradient-primary: linear-gradient(135deg, #E91E8C 0%, #7B2FBF 100%);
    --gradient-hero: linear-gradient(135deg, #1A0A1F 0%, #2D1037 50%, #1A0A1F 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --bg-dark: #0D0610;
    --bg-section: #130A17;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(233, 30, 140, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(233, 30, 140, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    padding: 1rem 0;
    background: transparent;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(13, 6, 16, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: var(--primary);
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.btn-download-nav {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.btn-download-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(233, 30, 140, 0.5);
}

.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-hero);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    left: 30%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(233, 30, 140, 0.15);
    border: 1px solid var(--border-glow);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 30, 140, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(233, 30, 140, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-download-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.btn-download-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(233, 30, 140, 0.5);
}

.btn-download-main .btn-size {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-item i {
    color: var(--accent);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 500px;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2a1a35 0%, #1a0f20 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow-lg), inset 0 0 30px rgba(233, 30, 140, 0.1);
    border: 1px solid var(--border-color);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2D1037 0%, #1A0A1F 100%);
    border-radius: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.app-preview {
    text-align: center;
}

.app-preview i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.app-preview span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.floating-card {
    position: absolute;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary);
}

.card-1 {
    top: 15%;
    right: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    left: -20px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    right: -10px;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 6rem 0;
    background: var(--bg-section);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(233, 30, 140, 0.1);
    border: 1px solid var(--border-glow);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(233, 30, 140, 0.3);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* ========================================
   Install Section
   ======================================== */
.install-section {
    padding: 6rem 0;
    background: var(--bg-dark);
    position: relative;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(233, 30, 140, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

/* ========================================
   Info Section
   ======================================== */
.info-section {
    padding: 6rem 0;
    background: var(--bg-section);
    position: relative;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}

.info-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table tr:hover {
    background: var(--bg-card-hover);
}

.info-table td {
    padding: 1.25rem 1.5rem;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 40%;
}

.info-label i {
    color: var(--primary);
    font-size: 1.1rem;
}

.info-value {
    color: var(--text-primary);
}

.version-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.free-badge {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.cta-box {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    padding: 4rem 0 2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--primary);
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.75rem;
    color: var(--primary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links a:hover i {
    transform: translateX(5px);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0;
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.disclaimer-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .navbar-collapse {
        background: rgba(13, 6, 16, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: var(--radius-lg);
        margin-top: 1rem;
        border: 1px solid var(--border-color);
    }
    
    .navbar-nav {
        margin-bottom: 1rem;
    }
    
    .btn-download-nav {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .section-header {
        text-align: center !important;
        margin-bottom: 3rem;
    }
    
    .section-description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-download-main {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .step-icon {
        display: none;
    }
    
    .info-table td {
        display: block;
        width: 100%;
        padding: 0.75rem 1.25rem;
    }
    
    .info-label {
        width: 100%;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .info-value {
        padding-top: 0;
        padding-left: 2rem;
    }
    
    .info-table tr {
        display: block;
        padding: 0.5rem 0;
    }
    
    .features-section,
    .install-section,
    .info-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .version-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .cta-box h3 {
        font-size: 1.25rem;
    }
}

/* ========================================
   Accessibility & Focus States
   ======================================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* ========================================
   Legal Pages Styles
   ======================================== */
.legal-section {
    padding: 8rem 0 4rem;
    background: var(--bg-dark);
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.legal-block {
    margin-bottom: 2.5rem;
}

.legal-block:last-child {
    margin-bottom: 0;
}

.legal-block h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-block h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.legal-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-block ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-block ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.highlight-block {
    background: rgba(233, 30, 140, 0.08);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.highlight-block h2 {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-footer {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 767.98px) {
    .legal-section {
        padding: 6rem 0 3rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-block h2 {
        font-size: 1.2rem;
    }
}

