@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-tertiary: #f093fb;
    --accent-orange: #ff6b6b;
    --accent-orange-dark: #ee5a24;
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-secondary: 0 4px 16px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-secondary: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
    --gradient-tertiary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

/* Logo */
.logo {
    font-size: 5rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5)); }
    to { filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.8)); }
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.subtitle {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.9;
}

.description {
    font-size: clamp(1rem, 3vw, 1.1rem);
    max-width: 600px;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    line-height: 1.7;
    opacity: 0.8;
}

/* Download Section */
.download-section {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.download-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    width: 100%;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.download-card.latest::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.download-card.stable::before {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.download-card:hover::before {
    transform: scaleX(1);
}

.download-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-primary);
}

.version-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-secondary);
}

.version-badge.stable-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.download-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-size: 0.95rem;
}

.download-btn {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    min-width: 200px;
    justify-content: center;
    width: 100%;
}

.latest-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stable-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.latest-btn:hover {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.stable-btn:hover {
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.4);
}

.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.6s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.download-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.download-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-primary);
    border-radius: 25px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

/* Unique colors for specific navigation links */
.nav-link[href="reseller.html"] {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: rgba(76, 175, 80, 0.5);
    color: var(--text-primary);
    font-weight: 600;
}

.nav-link[href="reseller.html"]:hover {
    background: linear-gradient(135deg, #45a049, #2E7D32);
    border-color: rgba(76, 175, 80, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.nav-link[href="auto-reply.html"] {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    border-color: rgba(156, 39, 176, 0.5);
    color: var(--text-primary);
    font-weight: 600;
}

.nav-link[href="auto-reply.html"]:hover {
    background: linear-gradient(135deg, #7B1FA2, #4A148C);
    border-color: rgba(156, 39, 176, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
}

/* Chrome Page Specific Styles */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    opacity: 0.9;
}

.version-info {
    background: var(--bg-card);
    padding: 1rem 2rem;
    border-radius: 25px;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-secondary);
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 4rem;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    display: block;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.8;
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-primary);
    position: relative;
    z-index: 10;
}

.footer-text {
    opacity: 0.7;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content, .hero-section {
        padding: 2rem 1rem;
    }
    
    .logo {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }
    
    .download-buttons-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .download-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 180px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-link {
        min-width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-content, .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .logo {
        font-size: 3.5rem;
    }
    
    .download-buttons-container {
        max-width: 350px;
        gap: 1rem;
    }
    
    .download-card {
        padding: 1.25rem;
    }
    
    .download-card h3 {
        font-size: 1.3rem;
    }
    
    .download-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background: var(--accent-primary);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--accent-primary);
    color: var(--text-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}
