:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --primary: #6366f1;
    --cyan: #06b6d4;
    --orange: #f59e0b;
    --gradient: linear-gradient(135deg, var(--primary), var(--cyan));
}

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

html, body {
    overflow-x: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary);
}

.blob-2 {
    top: 300px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: var(--cyan);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Navbar */
.navbar {
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.nav-logo {
    height: 300px;
    border-radius: 12px;
    max-width: 100%;
    object-fit: contain;
}

.logo i {
    color: var(--cyan);
    font-size: 32px;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 60px 0;
    padding-top: 10px;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

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

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -10px rgba(99, 102, 241, 0.7);
}

.btn-primary i {
    font-size: 24px;
}

.download-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Referral Banner */
.ref-banner {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease;
}

.ref-banner.hidden {
    display: none;
}

.ref-badge {
    display: inline-block;
    background: var(--gradient);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ref-banner h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: white;
}

.ref-banner p {
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features */
.features {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    margin-bottom: 24px;
}

.bg-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bg-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.bg-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-logo {
    height: 200px;
    border-radius: 8px;
    max-width: 100%;
    object-fit: contain;
}

.footer-brand i {
    color: var(--cyan);
}

footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.5);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.hidden {
    opacity: 0;
    transform: translateX(100px);
    pointer-events: none;
}

.toast i {
    font-size: 24px;
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero { padding: 40px 0; min-height: auto; }
    .feature-grid { grid-template-columns: 1fr; }
    
    .nav-logo {
        height: auto;
        max-height: 220px; /* Increased height for mobile */
    }
    
    .footer-logo {
        height: auto;
        max-height: 100px; /* Reduced height for mobile */
    }
    
    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }
}
