/* ==========================================================================
   Design Tokens & Variables (Based on Munji App Identity)
   ========================================================================== */
   :root {
    /* Brand Colors */
    --color-primary: #EF4D23;
    --color-primary-dark: #A04100;
    --color-primary-light: #FF6B00;
    
    /* Status Colors */
    --color-success: #22C55E;
    --color-emergency: #AE3313;
    --color-info: #0061A4;

    /* Neutrals */
    --color-text-primary: #1A1C1C;
    --color-text-secondary: #26231F;
    --color-text-muted: #5A4136;
    --color-bg: #FFFFFF;
    --color-surface: #F2F0EC;
    --color-border: #E5E0DA;

    /* Gradients */
    --gradient-primary: linear-gradient(90deg, var(--color-primary-light), var(--color-primary-dark));
    
    /* Shadow */
    --shadow-card: 0 4px 12px rgba(13, 10, 44, 0.06);
    --shadow-hover: 0 8px 24px rgba(239, 77, 35, 0.15);

    /* Typography */
    --font-family: 'Cairo', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--color-text-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-family: var(--font-family);
    text-decoration: none;
    transition: var(--transition-medium);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 77, 35, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn-large {
    padding: 14px 32px;
    font-size: 1.125rem;
}

.btn-store {
    background-color: var(--color-text-primary);
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 600;
    transition: var(--transition-fast);
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(255, 107, 0, 0.05), transparent 40%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Simple Mockup Animation */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup-frame {
    width: 300px;
    height: 600px;
    background: var(--color-text-primary);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.mockup-frame:hover {
    transform: rotate(0deg) translateY(-10px);
}

.mockup-screen {
    background: var(--color-bg);
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mockup-header {
    height: 40px;
    background: var(--color-surface);
    border-radius: 8px;
    width: 100%;
}

.mockup-card {
    height: 100px;
    background: var(--color-surface);
    border-radius: 16px;
    width: 100%;
    animation: pulse 3s infinite ease-in-out;
}

.mockup-card:nth-child(2) { animation-delay: 0.2s; background: rgba(239, 77, 35, 0.1); }
.mockup-card:nth-child(3) { animation-delay: 0.4s; }
.mockup-card:nth-child(4) { animation-delay: 0.6s; }

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 100px 0;
    background-color: var(--color-bg);
}

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

.feature-card {
    background: var(--color-surface);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--color-border);
    transition: var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    background: white;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.emergency-icon { background: rgba(174, 51, 19, 0.1); border: 2px solid var(--color-emergency); }
.tasks-icon { background: rgba(34, 197, 94, 0.1); border: 2px solid var(--color-success); }
.initiatives-icon { background: rgba(0, 97, 164, 0.1); border: 2px solid var(--color-info); }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

.feature-card p {
    color: var(--color-text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--color-text-primary);
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { margin: 0 auto 2rem; }
    .hero-buttons { justify-content: center; }
    
    .mockup-frame { margin-top: 3rem; }
    
    .store-buttons {
        flex-direction: column;
        align-items: center;
    }
}
