/* ========================================
   MEM Player Website - Styles
   ======================================== */

:root {
    /* Colors */
    --primary: #0066CC;
    --primary-light: #3399FF;
    --primary-dark: #004C99;
    --secondary: #00AAFF;
    --accent: #00D4FF;

    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    --white: #FFFFFF;
    --black: #000000;

    --success: #10B981;
    --error: #EF4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 170, 255, 0.04) 50%, transparent 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(0, 102, 204, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ========================================
   Utility Classes
   ======================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ========================================
   Navbar
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link-secondary {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
}

.nav-link-secondary:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

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

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    opacity: 0.08;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: 100px;
    left: -100px;
    opacity: 0.06;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    opacity: 0.04;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--gray-900);
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    padding: 16px;
}

.app-header {
    padding: 16px 0;
    margin-bottom: 16px;
}

.app-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.folder-item,
.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    background: var(--gray-50);
}

.folder-icon,
.file-icon {
    font-size: 24px;
}

.folder-info,
.file-info {
    flex: 1;
}

.folder-name,
.file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

.folder-count,
.file-meta {
    font-size: 12px;
    color: var(--gray-500);
}

.file-item.active {
    background: rgba(0, 102, 204, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.file-lock {
    font-size: 16px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        top: 8px;
        opacity: 1;
    }

    50% {
        top: 20px;
        opacity: 0.5;
    }
}

/* ========================================
   Animations
   ======================================== */

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   Section Headers
   ======================================== */

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

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

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

/* ========================================
   Features Section
   ======================================== */

.features-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.08);
    border-radius: var(--radius-md);
    color: var(--primary);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works-section {
    padding: var(--section-padding) 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.step {
    display: flex;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: var(--transition-normal);
}

.step:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   Download Section
   ======================================== */

.download-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.download-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.download-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: var(--white);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.download-btn svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.download-text {
    text-align: left;
}

.download-text span {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
}

.download-text strong {
    font-size: 18px;
    color: var(--gray-900);
}

.download-visual {
    position: relative;
    z-index: 1;
}

.floating-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.float-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-size: 32px;
    animation: float 4s ease-in-out infinite;
}

.float-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.float-icon:nth-child(3) {
    animation-delay: 1s;
}

.float-icon:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    padding: var(--section-padding) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.contact-card {
    text-align: center;
    padding: 48px 32px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.contact-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.08);
    border-radius: 50%;
    color: var(--primary);
    margin: 0 auto 24px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 15px;
    color: var(--gray-600);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    max-width: 280px;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-brand .logo-icon {
    background: var(--gradient-primary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-column a {
    font-size: 14px;
    color: var(--gray-400);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 13px;
}

/* ========================================
   Legal Pages (Privacy, Terms)
   ======================================== */

.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.legal-header p {
    color: var(--gray-500);
    font-size: 14px;
}

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

.legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 40px 0 16px;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 28px 0 12px;
}

.legal-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content li {
    color: var(--gray-600);
    margin-bottom: 8px;
    line-height: 1.7;
    list-style: disc;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 44px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-card {
        grid-template-columns: 1fr;
        padding: 48px;
        text-align: center;
    }

    .download-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid,
    .steps-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .feature-card {
        padding: 24px;
    }

    .download-card {
        padding: 32px 24px;
    }

    .download-content h2 {
        font-size: 28px;
    }
}