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

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

:root {
    --primary-color: #64748B;
    --primary-light: #94A3B8;
    --secondary-color: #0F766E;
    --secondary-light: #5EEAD4;
    --accent-color: #0EA5E9;
    
    --emergency-color: #B91C1C;
    --emergency-light: #DC2626;
    --error-color: #DC2626;
    --success-color: #059669;
    
    --background-color: #FFFFFF;
    --surface-color: #F8FAFC;
    --surface-variant: #F1F5F9;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-hint: #94A3B8;
    --text-on-primary: #FFFFFF;
    --text-on-secondary: #FFFFFF;
    --text-on-emergency: #FFFFFF;
    --text-on-surface: #1D1B20;
    
    --border-color: #E2E8F0;
    --border-focus: #64748B;
    --divider-color: #F1F5F9;
    
    --category-health: #10B981;
    --category-utilities: #0F766E;
    --category-transport: #8B5CF6;
    --category-banking: #3B82F6;
    --category-government: #64748B;
    --category-education: #22C55E;
    --category-security: #F59E0B;
    
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    
    --container-max-width: 1200px;
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-xxl: 24px;
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-xxxl: 64px;
    
    --animation-fast: 200ms;
    --animation-medium: 300ms;
    --animation-slow: 500ms;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--animation-medium) ease, visibility var(--animation-medium) ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--divider-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--animation-medium) ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--animation-fast) ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.nav-cta {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all var(--animation-fast) ease;
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

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

.hero {
    padding-top: calc(80px + var(--spacing-xxxl));
    padding-bottom: var(--spacing-xxxl);
    background: var(--background-color);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxxl);
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.highlight {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all var(--animation-fast) ease;
}

.download-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.download-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

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

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-stat i {
    color: var(--secondary-color);
    width: 16px;
    height: 16px;
}

.phone-mockup {
    width: 320px;
    padding: 12px;
    margin: 0 auto;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-screenshot {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxxl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features {
    padding: var(--spacing-xxxl) 0;
    background: var(--surface-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--background-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--animation-medium) ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.feature-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--surface-variant);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--surface-variant);
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-badge i {
    width: 16px;
    height: 16px;
}

.feature-card:nth-child(1) .feature-icon {
    background: var(--emergency-color);
    color: var(--text-on-emergency);
}

.feature-card:nth-child(1) .feature-number {
    color: var(--emergency-color);
}

.benefits {
    padding: var(--spacing-xxxl) 0;
    background: var(--background-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.benefit-item {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--surface-color);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--animation-medium) ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-secondary);
    flex-shrink: 0;
}


.benefit-item:nth-child(1) .benefit-icon,
.benefit-item:nth-child(3) .benefit-icon,
.benefit-item:nth-child(4) .benefit-icon {
    background: var(--secondary-color);
}

.benefit-stat {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.benefit-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.benefit-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-it-works {
    padding: var(--spacing-xxxl) 0;
    background: var(--surface-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.step {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--background-color);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all var(--animation-medium) ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-color);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-illustration {
    width: 80px;
    height: 80px;
    background: var(--surface-variant);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-lg) auto var(--spacing-lg);
    color: var(--primary-color);
}


.step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta {
    padding: var(--spacing-xxxl) 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .download-buttons {
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.cta .download-btn {
    background: white;
    color: var(--text-primary);
    border-color: white;
}

.cta .download-btn:hover {
    background: var(--surface-color);
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xxxl);
    margin-top: var(--spacing-xl);
}

.cta-stat {
    text-align: center;
}

.cta-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.cta-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-xxxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    transition: color var(--animation-fast) ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all var(--animation-fast) ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@media (max-width: 768px) {
    .nav {
        padding: var(--spacing-md);
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        justify-content: center;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .phone-mockup {
        width: 80%;
        max-width: 300px;
        height: auto;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .benefits-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 90%;
        max-width: 280px;
        height: auto;
    }
}