:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --secondary: #8B5CF6;
    --bg-dark: #0F172A;
    --surface: #1E293B;
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Glassmorphism utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Animated Aurora Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(59, 130, 246, 0.3); /* Primary */
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(139, 92, 246, 0.3); /* Secondary */
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: rgba(236, 72, 153, 0.2); /* Pink accent */
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* Navbar */
.navbar {
    padding: 24px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

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

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

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

.nav-links a:not(.btn-primary-outline):hover {
    color: var(--primary-light);
}

.btn-primary-outline {
    padding: 10px 24px;
    border: 2px solid var(--primary);
    border-radius: 100px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

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

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Download Buttons */
.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 16px;
    color: white;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.btn-download:hover {
    transform: translateY(-4px);
}

.btn-download i {
    font-size: 32px;
}

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

.btn-text span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.btn-text strong {
    font-size: 16px;
    font-weight: 800;
}

.btn-download.android {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-download.android:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.btn-download.ios {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Mockup */
.mockup-frame {
    width: 100%;
    max-width: 320px;
    height: 640px;
    margin: 0 auto;
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.mockup-content {
    background: var(--bg-dark);
    width: 100%;
    height: 100%;
    border-radius: 28px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

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

.avatar {
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-wallet {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 32px;
}

.wallet-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.wallet-amount {
    font-size: 24px;
    font-weight: 900;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mockup-item {
    background: var(--glass-bg);
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.mockup-item.data { color: #10B981; }
.mockup-item.airtime { color: #F59E0B; }
.mockup-item.electricity { color: #EF4444; }
.mockup-item.cable { color: #8B5CF6; }

.mockup-ai-fab {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 12px 24px rgba(59, 130, 246, 0.6); }
    100% { transform: scale(1); }
}

/* Features Section */
.features {
    padding: 120px 0;
}

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

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

.feature-card {
    padding: 32px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
}

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

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

/* PWA Modal */
.pwa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pwa-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.pwa-modal-content {
    background: var(--surface);
    width: 90%;
    max-width: 400px;
    padding: 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.pwa-modal-overlay.active .pwa-modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.modal-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.pwa-modal-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.pwa-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.pwa-steps {
    margin-bottom: 32px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.pwa-steps li {
    margin-bottom: 12px;
    font-size: 14px;
}

.pwa-steps i {
    color: var(--primary);
    vertical-align: middle;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

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

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

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

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

    .cta-group {
        justify-content: center;
        margin-bottom: 64px;
    }

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

@media (max-width: 600px) {
    .navbar {
        padding: 16px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    .hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-links a:not(.btn-primary-outline) {
        display: none;
    }
    
    .btn-primary-outline {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn-download {
        justify-content: center;
        padding: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .mockup-frame {
        max-width: 100%;
        height: 500px;
        padding: 8px;
        border-radius: 32px;
    }
    
    .mockup-content {
        padding: 16px;
        border-radius: 24px;
    }
    
    .wallet-amount {
        font-size: 20px;
    }
    
    .mockup-item {
        height: 70px;
        font-size: 24px;
    }
    
    .orb-1 { width: 100vw; height: 100vw; }
    .orb-2 { width: 90vw; height: 90vw; }
    .orb-3 { width: 80vw; height: 80vw; }
}

@media (max-width: 380px) {
    .logo span {
        display: none;
    }
    .hero-title {
        font-size: 28px;
    }
}
