* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Updated Header Layout */
.main-header {
    background-color: #1e3a8a; /* Deep blue background */
    padding: 15px 0 35px 0; /* Added padding at bottom for the wave */
    color: white;
    position: relative;
}

.custom-shape-divider-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 20px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #ea580c; /* Generic orange wave color */
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 22px;
    color: #6b7280; /* Generic grayed logo text */
}

.main-header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-header nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.main-header nav a.active {
    color: #fde047; /* Yellow active state */
}

.main-header nav a:hover {
    color: #fde047;
}

.header-btn {
    background: linear-gradient(to right, #fb923c, #ea580c);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid white;
    font-size: 14px;
}

.header-btn:hover {
    background: linear-gradient(to right, #ea580c, #c2410c);
}

main {
    flex: 1;
    padding-bottom: 40px;
}

/* App Hero Section */
.app-hero {
    background: linear-gradient(to bottom, #1e3a8a, #4338ca, #7e22ce, #7f1d1d);
    color: white;
    text-align: center;
    padding: 60px 20px 100px 20px;
    margin-bottom: 0;
    position: relative;
}

.hero-content-wrapper {
    max-width: 900px;
    margin: auto;
    position: relative;
    z-index: 10;
}

.app-hero h1 {
    font-size: 38px;
    margin-bottom: 25px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.app-icon-placeholder {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    border: 3px solid #fbbf24;
    border-radius: 20px;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: #f3f4f6;
    margin-bottom: 35px;
    padding: 0 20px;
}

.hero-download-btn {
    display: inline-block;
    background: linear-gradient(to right, #4f46e5, #c026d3, #ea580c);
    color: white;
    padding: 15px 35px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.hero-download-btn:hover {
    transform: scale(1.05);
}

/* Hero Bottom Divider */
.hero-shape-divider-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 1;
}

.hero-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(130% + 1.3px);
    height: 45px;
}

/* App Info Grid Section */
.app-info-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px 0;
    border-top: 1px solid #7c2d23; /* Maroon top border */
    border-bottom: 1px solid #7c2d23; /* Maroon bottom border */
}

.app-info-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 0 10px;
}

@media (max-width: 900px) {
    .app-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 500px) {
    .app-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.app-info-card {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 15px 10px;
    text-align: center;
    background-color: #ffffff;
}

.info-icon {
    font-size: 24px;
    color: #7c2d23; /* Maroon icon color */
    margin-bottom: 10px;
    display: block;
    line-height: 1;
}

.app-info-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.app-info-card p {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
}

/* Intro Article Box & Post Images */
.intro-article {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    padding: 25px 30px;
    background-color: #ffffff;
    border: 1px solid #fde047; /* Light yellow border */
    box-shadow: 0 0 12px 2px rgba(253, 224, 71, 0.6); /* Yellow glow effect */
    border-radius: 2px;
}

.intro-article p {
    margin: 0 0 15px 0;
    line-height: 1.8;
    font-size: 16px;
    color: #1f2937;
}

.intro-article img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 15px auto;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.post-btn {
    display: inline-block;
    background-color: #ea580c;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.3);
}

.post-btn:hover {
    background-color: #c2410c;
}

/* Promo Image & Section Header */
.promo-image-container {
    max-width: 1000px;
    margin: 0 auto 15px auto;
    text-align: center;
}

.promo-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section-title-btn {
    display: block;
    max-width: 1000px;
    margin: 0 auto 40px auto;
    background-color: #7f1d1d; /* Dark maroon/red block */
    color: #ffffff;
    text-align: center;
    padding: 16px;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}

.section-title-btn:hover {
    background-color: #991b1b;
}

/* Features Section */
.features {
    margin: 20px 0 40px 0;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.features h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.features ul {
    list-style: none;
    padding: 0;
}
.features li {
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pros and Cons */
.pros-cons {
    margin: 40px 0;
}
.pros-cons h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
}
.comparison-grid {
    display: flex;
    gap: 25px;
}
@media (max-width: 768px) {
    .comparison-grid {
        flex-direction: column;
    }
}
.card {
    flex: 1;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.card h3 {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}
.card ul {
    list-style: none;
    padding: 0;
}
.card li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pros {
    background-color: #f0fdf4;
    border-top: 4px solid #22c55e;
}
.pros h3 {
    color: #166534;
}
.cons {
    background-color: #fef2f2;
    border-top: 4px solid #ef4444;
}
.cons h3 {
    color: #991b1b;
}

/* FAQ Section */
.faq {
    margin: 40px 0;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.faq h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    text-align: center;
}
details {
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}
summary {
    padding: 18px;
    font-weight: 600;
    cursor: pointer;
    background-color: #f8f9fa;
    color: #2d3748;
    list-style: none;
    position: relative;
}
summary::-webkit-details-marker {
    display: none;
}
summary:hover {
    background-color: #edf2f7;
}
details[open] summary {
    background-color: #1e3a8a;
    color: white;
}
details p {
    padding: 18px;
    margin: 0;
    background-color: #ffffff;
    color: #4a5568;
    border-top: 1px solid #e5e7eb;
    line-height: 1.7;
}

/* Main Footer */
.main-footer {
    background-color: #16119b; /* Deep blue matching the screenshot */
    color: #ffffff;
    padding: 25px 40px;
    margin-top: 40px;
    font-size: 15px;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 18px;
}
.scroll-top-btn {
    background: transparent;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
}
.scroll-top-btn:hover {
    transform: translateY(-3px);
}
.footer-right {
    color: #ffffff;
}
.footer-right a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 6px;
}
.footer-right a:hover {
    text-decoration: underline;
}
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Default (Desktop) visibility for hamburger */
.hamburger-menu { display: none; }
.sidebar-overlay { display: none; }
.close-menu { display: none; }

/* --- GLOBAL RESPONSIVE RULES (Mobile & Tablet) --- */
@media (max-width: 768px) {
    /* Layout */
    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* Header Mobile Layout */
    .header-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .hamburger-menu {
        display: block;
        cursor: pointer;
    }
    
    .logo {
        flex-grow: 1;
        text-align: center;
        font-size: 18px;
    }
    .logo img {
        max-height: 35px !important;
        margin: 0 auto;
    }
    
    .header-btn {
        font-size: 13px;
        padding: 8px 12px;
    }

    /* Mobile Side Menu sliding animation */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 260px;
        height: 100vh;
        background-color: #1e3a8a;
        z-index: 1000;
        display: block;
        transition: left 0.35s ease-in-out;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }
    .mobile-sidebar.open {
        left: 0;
    }
    
    .close-menu {
        display: block;
    }

    .main-header nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 25px;
        gap: 25px;
        margin-top: 20px;
    }
    
    .main-header nav a {
        font-size: 18px;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
    }

    /* Dark background overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.6);
        z-index: 999;
    }
    .sidebar-overlay.open {
        display: block;
    }

    /* Hero Section */
    .app-hero {
        padding: 40px 15px 80px 15px;
    }
    .app-hero h1 {
        font-size: 28px;
    }
    .app-icon-placeholder {
        width: 100px;
        height: 100px;
        font-size: 18px;
        margin-bottom: 15px;
    }
    .hero-description {
        font-size: 15px;
        padding: 0;
    }
    .hero-download-btn {
        font-size: 16px;
        padding: 12px 25px;
    }
    
    /* Articles & Posts */
    .intro-article {
        padding: 15px;
    }
    .section-title-btn {
        font-size: 18px;
        padding: 12px;
    }
    
    /* Footer */
    .footer-right {
        line-height: 2.2;
    }
}

@media (max-width: 480px) {
    /* Tiny screens (Small phones) */
    .app-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .app-info-card {
        padding: 10px 5px;
    }
    .info-icon {
        font-size: 20px;
    }
    .app-info-card h4 {
        font-size: 13px;
    }
    .app-info-card p {
        font-size: 11px;
    }
    .main-header nav ul {
        gap: 10px;
    }
    .main-header nav a {
        font-size: 14px;
    }
}
