/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
    /* Color Palette - Rich, Premium Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent-color: #ec4899;
    --accent-dark: #db2777;

    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.5);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xl: 3.5rem;
    --font-size-lg: 2rem;
    --font-size-md: 1.25rem;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* ==========================================================================
   Language Toggle
   ========================================================================== */
.lang-toggle {
    position: fixed;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.2);
}

.lang-divider {
    color: var(--text-muted);
    font-weight: 300;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-2xl) 0;
}

/* Animated Background */
.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-bg);
    opacity: 1;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
    animation-duration: 14s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
    animation-duration: 16s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Logo */
.logo-container {
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 1s ease;
}

.logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.3));
    transition: transform var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Title & Subtitle */
.hero-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    font-weight: 300;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease both;
}

.feature-card:nth-child(1) {
    animation-delay: 0.6s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.7s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.8s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    animation: bounce 2s infinite;
}

.feature-card:hover .feature-icon {
    animation: bounce 0.6s infinite;
}

.feature-card h3 {
    font-size: var(--font-size-md);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.feature-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 300;
}

@keyframes bounce {

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

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

/* Download Section */
.download-section {
    animation: fadeInUp 1s ease 0.9s both;
}

.download-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }

    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 87, 108, 0.4);
    }
}

.download-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-width: 250px;
}

.download-btn::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: left 0.5s;
}

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

.download-btn.android {
    background: linear-gradient(135deg, #3ddc84 0%, #2cb96e 100%);
    color: white;
}

.download-btn.windows {
    background: linear-gradient(135deg, #00a4ef 0%, #0078d4 100%);
    color: white;
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 32px;
    height: 32px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-platform {
    font-size: var(--font-size-md);
    font-weight: 700;
    line-height: 1.2;
}

.btn-label {
    font-size: var(--font-size-sm);
    font-weight: 400;
    opacity: 0.9;
}

.version-info {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 300;
}

/* ==========================================================================
   Email Subscription Section
   ========================================================================== */
.email-section {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease 1.1s both;
}

.email-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.email-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.email-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.email-input {
    flex: 1;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all var(--transition-normal);
    outline: none;
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

.email-input:invalid {
    border-color: rgba(255, 255, 255, 0.1);
}

.email-submit {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md) var(--spacing-xl);
    color: white;
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.email-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.email-submit:active {
    transform: translateY(0);
}

.form-message {
    min-height: 24px;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
}

.form-message.success {
    color: #3ddc84;
    background: rgba(61, 220, 132, 0.1);
    border: 1px solid rgba(61, 220, 132, 0.3);
}

.form-message.error {
    color: #f5576c;
    background: rgba(245, 87, 108, 0.1);
    border: 1px solid rgba(245, 87, 108, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.footer p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 300;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 400;
    transition: all var(--transition-fast);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-light);
    transition: width var(--transition-normal);
}

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

.footer-link:hover::after {
    width: 100%;
}

.footer-divider {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.footer-powered {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    font-weight: 400;
    margin-top: var(--spacing-xs);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --font-size-xl: 2.5rem;
        --font-size-lg: 1.5rem;
        --font-size-md: 1.125rem;
    }

    .lang-toggle {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    .logo {
        width: 120px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .download-btn {
        min-width: auto;
        width: 100%;
    }

    .hero {
        padding: var(--spacing-xl) 0;
    }

    .form-group {
        flex-direction: column;
    }

    .email-submit {
        width: 100%;
    }

    .footer-content {
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-xl: 2rem;
        --font-size-lg: 1.25rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}