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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2D3748;
    background: #FFFFFF;
    overflow-x: hidden;
}

/* ============================================
   Sadara Life Brand Colors & Variables
   ============================================ */
:root {
    /* Primary Colors */
    --primary-color: #66BC29;
    --primary-light: #7FD142;
    --primary-dark: #539422;
    
    /* Secondary Colors */
    --secondary-color: #E8F3E0;
    --accent-color: #38A169;
    --accent-color-2: #4CAF50;
    
    /* Text Colors */
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --text-light: #A0AEC0;
    --text-on-primary: #FFFFFF;
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-dark: #EDF2F7;
    --surface: #FFFFFF;
    --surface-variant: #F7FAFC;
    
    /* Status Colors */
    --success: #38A169;
    --error: #E53E3E;
    --warning: #ECC94B;
    --info: #3182CE;
    
    /* Financial Colors */
    --card-primary: #485DB2;
    --card-secondary: #5B6BBF;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-primary: 0 4px 16px rgba(102,188,41,0.3);
    
    /* Container */
    --max-width: 1200px;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    justify-content: center;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-on-primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102,188,41,0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

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

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

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

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

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

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    backdrop-filter: blur(5px);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
}

.logo-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-cta {
    background: var(--primary-color);
    color: var(--text-on-primary) !important;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { 
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 50%, var(--primary-dark) 100%); 
    }
    50% { 
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%); 
    }
}

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

.hero-content {
    text-align: left;
    color: var(--text-on-primary);
}

.logo-container {
    background: rgba(255, 255, 255, 0.15);
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.logo {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
}

.logo svg {
    width: 100%;
    height: 100%;
    color: var(--primary-color);
}

.logo .logo-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.2));
    border-radius: 8px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -2px;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ============================================
   Phone Mockup
   ============================================ */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1A202C;
    border-radius: 32px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    padding: var(--space-md);
    height: 100%;
}

.app-header {
    margin-bottom: var(--space-lg);
}

.status-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color), var(--accent-color));
    border-radius: 2px;
    margin-bottom: var(--space-md);
}

.app-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.app-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-on-primary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: var(--space-sm);
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.action-item {
    background: var(--secondary-color);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--space-xxl) 0;
    background: var(--bg-light);
}

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

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    padding: var(--space-sm);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-on-primary);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Download Section
   ============================================ */
.download {
    padding: var(--space-xxl) 0;
    background: var(--bg-primary);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.download-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: var(--shadow-sm);
}

.download-btn.app-store {
    background: linear-gradient(135deg, var(--text-primary), var(--card-primary));
    color: var(--text-on-primary);
}

.download-btn.google-play {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-on-primary);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-text {
    flex: 1;
}

.btn-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.app-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--secondary-color);
    border-radius: var(--radius-md);
}

.showcase-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    padding: var(--space-xs);
}

.showcase-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-on-primary);
}

.showcase-text {
    font-weight: 500;
    color: var(--text-primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-primary);
    color: var(--text-on-primary);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xxl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: rgba(102, 188, 41, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(102, 188, 41, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo .logo-text {
    color: var(--text-on-primary);
}

.footer-logo .logo-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(102, 188, 41, 0.3));
    border-radius: 3px;
}

.footer-desc {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: var(--space-sm);
}

.footer-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(56, 161, 105, 0.5);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1); 
    }
}

.footer-copyright {
    color: var(--text-light);
}

/* ============================================
   Logo Container Enhancements
   ============================================ */
.logo-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 188, 41, 0.2);
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.logo-container:hover .logo {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    /* Logo Responsiveness */
    .logo-container {
        width: 100px;
        height: 100px;
    }
    
    .logo {
        width: 75px;
        height: 75px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .footer-logo .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Smaller logo container on mobile */
    .logo-container {
        width: 80px;
        height: 80px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
    }
}