/* ================================
   CSS VARIABLES
   ================================ */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #8b5cf6;
    --bg-dark: #000000;
    --bg-card: rgba(10, 10, 15, 0.4);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

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

/* ================================
   CUSTOM CURSOR
   ================================ */
.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease;
}

.cursor-blob {
    position: fixed;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    filter: blur(25px);
    opacity: 0.8;
    mix-blend-mode: screen;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

.cursor-blob.hover {
    width: 100px;
    height: 100px;
    opacity: 1;
}

/* ================================
   ANIMATED BACKGROUND CANVAS
   ================================ */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ================================
   CONTAINER
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: #ffffff;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.5),
        0 0 60px rgba(96, 165, 250, 0.3);
}

/* Blur Text Animation */
.blur-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2em;
}

.blur-text .char {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-30px);
    will-change: transform, filter, opacity;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

.hero-requirement {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.4s;
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    overflow: hidden;
    cursor: none;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.5);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover .btn-glow {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ================================
   SCROLL INDICATOR
   ================================ */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ================================
   SECTIONS
   ================================ */
section {
    padding: 8rem 0;
    position: relative;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-divider {
    width: 80px;
    height: 6px;
    background: var(--primary);
    margin: 0 auto 4rem;
    border-radius: 3px;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about {
    text-align: center;
}

.scroll-reveal-container {
    perspective: 1000px;
}

.about-text {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.8;
    color: #d4d4d8;
    max-width: 900px;
    margin: 0 auto;
}

/* Scroll Reveal Text Effect */
.scroll-reveal-text {
    transform-origin: 0% 50%;
    opacity: 0.1;
}

.scroll-reveal-text .word {
    display: inline-block;
    opacity: 0.1;
    filter: blur(4px);
    transition: opacity 0.3s ease, filter 0.3s ease;
    will-change: opacity, filter;
}

/* ================================
   FEATURES SECTION
   ================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    position: relative;
    padding: 3rem 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: none;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.feature-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.feature-card:hover .feature-glow {
    opacity: 1;
}

/* ================================
   DOWNLOAD SECTION
   ================================ */
.download {
    background: rgba(0, 0, 0, 0.4);
}

.download-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 3rem;
    padding: 4rem 3rem;
    text-align: center;
}

.download-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.download-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.download-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    text-decoration: none;
    color: white;
    transition: var(--transition-smooth);
    cursor: none;
    overflow: hidden;
}

.download-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
}

.download-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
}

.download-primary:hover {
    box-shadow: var(--shadow-glow);
}

.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.download-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.download-card:hover .card-shine {
    opacity: 1;
    animation: shine 1.5s ease infinite;
}

.download-compatibility {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2rem;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

/* ================================
   SOCIAL SECTION
   ================================ */
.social-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
}

.social-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 4rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    text-decoration: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    cursor: none;
    overflow: hidden;
}

.social-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.social-icon {
    width: 3rem;
    height: 3rem;
    fill: currentColor;
    transition: all 0.4s ease;
}

.social-card:hover .social-icon {
    transform: scale(1.2) rotate(5deg);
}

.social-card:hover .social-icon.instagram {
    fill: #e1306c;
}

.social-card:hover .social-icon.youtube {
    fill: #ff0000;
}

.social-glow {
    position: absolute;
    inset: -100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.social-card:hover .social-glow {
    opacity: 1;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-credits {
    text-align: right;
}

.footer-credits p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.highlight {
    color: white;
    font-weight: 700;
}

.heart-text {
    margin-top: 0.5rem;
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
}

/* ================================
   REVEAL ANIMATIONS
   ================================ */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ================================
   KEYFRAME ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor-dot,
    .cursor-blob {
        display: none;
    }
    
    a, button, .btn, .feature-card, .download-card, .social-card {
        cursor: pointer;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 400px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-credits {
        text-align: center;
    }
    
    .download-box {
        padding: 3rem 1.5rem;
    }
}