/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5C259D;
    --secondary-color: #111;
    --text-dark: #222;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --border-color: #ddd;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Center specific H2s used on the homepage and call-to-action areas */
.hero h2,
.cta h2,
.seo-section h2,
.newsletter-section h2 {
    text-align: center;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4a1a7d;
    text-decoration: underline;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn.primary:hover {
    background-color: #4a1a7d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn.secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn.secondary:hover {
    background-color: var(--white);
    border-color: var(--text-dark);
}

.btn.large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ============================================
   GOOGLE PLAY STORE BADGE
   ============================================ */

.play-store-link {
    display: inline-block;
    margin: 1.5rem 0;
    text-decoration: none;
}

.play-store-badge {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.play-store-link:hover .play-store-badge {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* ============================================
   APP DOWNLOAD BLOCK
   Layout for app icon + name + Play Store badge
   ============================================ */

.app-download {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 1rem 0 1.5rem;
    max-width: 620px;
    width: 100%;
    justify-content: center; /* center-align block contents */
    color: var(--text-dark); /* default text color for light backgrounds */
}

.app-download .app-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.app-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.app-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: inherit; /* inherit so dark or light backgrounds work */
}

.app-sub {
    font-size: 0.95rem;
    color: rgba(0,0,0,0.6); /* default subtle dark */
}

.app-download .play-store-link {
    margin-left: 0; /* center layout — no auto margin */
}

@media (max-width: 600px) {
    .app-download {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
    .app-download .app-icon {
        width: 56px;
        height: 56px;
    }
    .play-store-badge {
        height: 52px;
    }
}

/* Dark background adjustments: make text readable on dark sections */
.hero .app-download,
.cta .app-download,
header + .container .app-download {
    color: var(--white);
}

.hero .app-download .app-sub,
.cta .app-download .app-sub,
header + .container .app-download .app-sub {
    color: rgba(255,255,255,0.85);
}

/* Slight icon border tweak on dark backgrounds */
.hero .app-download .app-icon,
.cta .app-download .app-icon {
    border-color: rgba(255,255,255,0.12);
}

/* Center app-info text inside hero/cta/seo/footer for visual alignment */
.hero .app-download .app-info,
.cta .app-download .app-info,
.seo-section .app-download .app-info,
.footer .app-download .app-info,
.container > .app-download .app-info {
    text-align: center;
}

/* Ensure app-download blocks are centered horizontally in various sections */
.hero .app-download,
.cta .app-download,
.seo-section .app-download,
.footer .app-download,
.container > .app-download {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   VIDEO EMBED (YouTube Shorts - vertical)
   Responsive container for 9:16 vertical videos
   ============================================ */

.video-embed.vertical-short {
    width: 100%;
    max-width: 420px;
    margin: 1.25rem auto;
    position: relative;
    aspect-ratio: 9 / 16;
}

.video-embed.vertical-short::before {
    /* Fallback for browsers without aspect-ratio support */
    content: "";
    display: block;
    padding-top: 177.78%; /* (16/9)*100% to create 9:16 vertical */
}

.video-embed.vertical-short iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2px 0; /* further reduce vertical padding to tighten navbar */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 20px; /* slightly smaller to match reduced header */
    width: auto;
    border-radius: 4px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
}

.logo h1 a {
    color: var(--white);
}

.logo h1 a:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px; /* slightly smaller gap to compact nav */
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1; /* prevent extra vertical spacing */
    padding: 4px 0; /* small vertical padding for touch targets */
}

/* Play Store badge visible in header (desktop) and inside mobile menu when opened */
.nav .nav-play-link {
    margin-left: 16px;
    display: inline-flex;
    align-items: center;
}

.nav-play-badge {
    height: 36px; /* reduced for visual balance */
    width: auto;
    transition: transform 0.2s ease;
}

.nav-play-link:hover .nav-play-badge { transform: translateY(-2px); }

@media (max-width: 800px) {
    /* Hide the header badge on smaller screens by default to save space */
    .nav .nav-play-link {
        display: none;
    }
    /* When the mobile nav is active, show the badge so users can access it in the menu */
    .nav-links.active ~ .nav-play-link {
        display: inline-flex;
        margin-top: 12px; /* space within menu */
    }

    .nav-play-badge { height: 36px; }
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-content .btn {
    margin: 1rem 0;
}

.sub-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* ============================================
   SCREENSHOTS SECTION
   ============================================ */

.screenshots {
    background: var(--bg-light);
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.screenshot-item p {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================
   SEO SECTION
   ============================================ */

.seo-section {
    padding: 80px 0;
    background: var(--white);
}

.seo-section h2 {
    margin-bottom: 2rem;
}

.seo-section h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.seo-section ol,
.seo-section ul {
    margin-left: 2rem;
}

.seo-section li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq, .faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-category {
    margin-bottom: 4rem;
}

.faq-category h2 {
    text-align: left;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.faq-item p {
    color: var(--text-light);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 80px 0;
    background: var(--bg-light);
}



.contact-info {
    max-width: 800px;
    margin: 3rem auto 0;
}

.contact-info h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.info-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.info-item p {
    margin-bottom: 0;
}

.info-item ul {
    list-style: none;
    margin-left: 0;
}

.info-item li {
    margin-bottom: 0.5rem;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    background: linear-gradient(135deg, #5C259D 0%, #4a1a7d 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    margin-left: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   LEGAL SECTION (Privacy & Terms)
   ============================================ */

.legal-section {
    padding: 80px 0;
    background: var(--white);
}

.legal-section h1 {
    text-align: left;
    margin-bottom: 0.5rem;
}

.legal-content {
    max-width: 800px;
    margin-top: 2rem;
}

.legal-content h2 {
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        gap: 15px;
        padding: 20px 30px;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        max-height: 500px;
        visibility: visible;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
    }
    
    .nav {
        flex-direction: row;
        position: relative;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .features,
    .screenshots,
    .seo-section,
    .faq,
    .faq-section,
    .contact-section,
    .legal-section {
        padding: 50px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .screenshot-grid,
    .features-grid {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    .cta {
        padding: 50px 0;
    }
    
    .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        height: 32px;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-links {
        gap: 0;
        padding: 15px 20px;
    }
    
    .nav-links a {
        padding: 12px 0;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.pt-4 {
    padding-top: 4rem;
}

.pb-4 {
    padding-bottom: 4rem;
}

/* ============================================
   BLOG SECTIONS
   ============================================ */

.blog-section {
    padding: 80px 0;
    background: var(--white);
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.blog-post h2 {
    text-align: left;
    margin-top: 2rem;
}

.blog-post h3 {
    text-align: left;
    color: var(--primary-color);
    margin-top: 1.5rem;
}

.blog-post p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.blog-post ul,
.blog-post ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.blog-post li {
    margin-bottom: 0.8rem;
}

.blog-post hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.blog-figure {
    margin: 2.5rem 0;
    text-align: center;
}

.blog-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 40%;
    margin: 0 auto;
    display: block;
}

.blog-figure figcaption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

.blog-listing-section {
    padding: 80px 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.blog-card-content {
    padding: 30px;
}

.blog-card h2 {
    margin: 0 0 0.5rem 0;
    text-align: left;
}

.blog-card h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: var(--primary-color);
}

.blog-card .blog-meta {
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    text-decoration: underline;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
    padding: 60px 0;
    text-align: center;
}

.newsletter-section h2 {
    margin-bottom: 1rem;
}

.newsletter-section p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 37, 157, 0.1);
}

.newsletter-form button {
    min-width: 150px;
}

/* Increase logo icon on desktop to match Play Store badge height */
@media (min-width: 801px) {
    .logo-icon {
        height: 36px; /* match .nav-play-badge height on desktop */
    }
}