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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f4f8, #d1e7dd, #b8dbd9);
    min-height: 100vh;
    position: relative;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px;
    opacity: 0.5;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
    z-index: 2;
    margin: 2rem auto;
}

/* Two-Column Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.hero-content {
    order: 1;
}

.hero-phones {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    margin-top: -1rem;
}

/* Header Styles - Modified for Two-Column */
.content-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Override content-header for left alignment in hero */
.hero-content .content-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Brand logo adjustments for left alignment in hero */
.hero-content .brand-logo {
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.brand-text {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    padding-right: 1rem;
}

.brand-logo img {
    width: 85px;
    height: 85px;
    margin-right: 15px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.main-headline {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a252f;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Override headline alignment for hero */
.hero-content .main-headline {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    margin-bottom: 0.8rem;
}

.description {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Override description alignment for hero */
.hero-content .description {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    max-width: none;
}

/* Hero Download Section */
.hero-download-section {
    margin-top: 1.5rem;
}

.download-intro {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
}

.hero-download-buttons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Store badges - use hero-specific styling */
.hero-store-badge {
    display: inline-block;
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.hero-store-badge:hover {
    transform: translateY(-2px);
}

.hero-store-badge img {
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: filter 0.3s ease;
    height: 60px;
    width: auto;
    min-width: 180px;
}

.hero-store-badge:hover img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* QR Codes Section */
.qr-section {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
}

.qr-intro {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.8rem;
}

.qr-codes {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.qr-item {
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    padding: 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(113, 128, 150, 0.1);
}

.qr-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-code {
    width: 150px;
    height: 150px;
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.qr-label {
    font-size: 0.75rem;
    color: #4a5568;
    font-weight: 500;
}

/* Hero Phone Mockup Styles */
.hero-phone-mockup {
    position: relative;
    transform: scale(1.20);
    transform-origin: top center;
}

.hero-phone-mockup .phone {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #000101, #01060a);
    border-radius: 35px;
    padding: 15px;
    box-shadow:
        0 0 0 6px #34495e,
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.hero-phone-mockup .screen {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-phone-mockup .screen.light-mode {
    background-image: url('light-screen-mockup.png');
}

.hero-phone-mockup .screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.3;
    z-index: -1;
}

/* Original Phone Mockup Styles (for legacy support) */
.phones-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.phone-mockup {
    position: relative;
}

.phone {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #000101, #01060a);
    border-radius: 35px;
    padding: 15px;
    box-shadow:
        0 0 0 6px #34495e,
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

.screen {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Light Mode Screen */
.screen.light-mode {
    background-image: url('light-screen-mockup.png');
    background-size: cover;
    background-position: center top;
}

/* Dark Mode Screen */
.screen.dark-mode {
    background-image: url('dark-screen-mockup.png');
    background-size: cover;
    background-position: center top;
    background-color: #1a1a1a;
}

/* Mode Labels */
.mode-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mode-label-dark {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.95);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Download Section (Legacy) */
.download-section {
    text-align: center;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Store Badge Base Styles */
.store-badge {
    display: inline-block;
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.store-badge img {
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: filter 0.3s ease;
}

.store-badge:hover img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* App Store Badge - SVG */
.app-store-badge img {
    height: 60px;
    width: auto;
    min-width: 180px;
}

/* Google Play Badge - WebP */
.play-store-badge img {
    height: 60px;
    width: auto;
    min-width: 180px;
    object-fit: contain;
    object-position: center;
}

/* Ensure consistent badge dimensions */
.app-store-badge,
.play-store-badge {
    height: 60px;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bottom Links */
.bottom-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.bottom-link {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    background: rgba(113, 128, 150, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.bottom-link:hover {
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
    transform: translateY(-1px);
    border-color: rgba(230, 126, 34, 0.2);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Features Section */
.features-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-item h4 {
    color: #e67e22;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0 1.5rem;
    padding: 1.5rem 0;
}

.faq-section h3 {
    font-size: 2rem;
    color: #1a252f;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    background: rgba(230, 126, 34, 0.05);
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.faq-item summary:hover {
    background: rgba(230, 126, 34, 0.1);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '+';
    float: right;
    font-weight: bold;
    color: #e67e22;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::before {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.3;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 900px) {
    /* Hero section becomes single column */
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-phones {
        order: 1;
        margin-top: 0;
    }

    /* Reset content alignment for mobile */
    .hero-content .content-header {
        text-align: center;
    }

    .hero-content .brand-logo {
        justify-content: center;
    }

    .hero-phone-mockup {
        transform: scale(1.0);
    }

    .hero-phone-mockup .phone {
        width: 260px;
        height: 520px;
    }

    /* Legacy phone section */
    .phones-section {
        flex-direction: column;
        gap: 3rem;
    }

    .main-container {
        padding: 2rem;
        margin: 1rem;
    }

    .main-headline {
        font-size: 2rem;
    }

    .brand-logo {
        font-size: 1.8rem;
    }

    .phone {
        width: 260px;
        height: 520px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        gap: 1.5rem;
    }

    .phone {
        width: 240px;
        height: 480px;
    }

    .hero-phone-mockup {
        transform: scale(0.9);
    }

    .hero-phone-mockup .phone {
        width: 240px;
        height: 480px;
    }

    .main-headline {
        font-size: 1.8rem;
    }

    .description {
        font-size: 1rem;
    }

    .phones-section {
        gap: 2.5rem;
    }

    /* Hero download buttons */
    .hero-download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-store-badge img {
        height: 55px;
        min-width: 165px;
    }

    /* QR codes responsive */
    .qr-codes {
        flex-direction: column;
        gap: 1rem;
    }

    .qr-code {
        width: 60px;
        height: 60px;
    }

    /* Features responsive */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-section h3 {
        font-size: 1.6rem;
    }

    /* Adjust badge sizes for tablets */
    .app-store-badge img,
    .play-store-badge img {
        height: 55px;
        min-width: 165px;
    }

    .app-store-badge,
    .play-store-badge {
        height: 55px;
        min-width: 165px;
    }
}

@media (max-width: 480px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .phone {
        width: 220px;
        height: 440px;
    }

    .hero-phone-mockup {
        transform: scale(0.75);
    }

    .hero-phone-mockup .phone {
        width: 220px;
        height: 440px;
    }

    .main-container {
        padding: 1.5rem;
    }

    .hero-section {
        gap: 1rem;
    }

    .main-headline {
        font-size: 1.6rem;
    }

    .brand-logo {
        font-size: 1.6rem;
    }

    .brand-logo img {
        width: 70px;
        height: 70px;
    }

    .faq-section h3 {
        font-size: 1.4rem;
    }

    .faq-item summary {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-item p {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }

    .features-section {
        margin: 1.5rem 0;
        padding: 1rem 0;
    }

    .feature-item {
        padding: 1.25rem;
    }

    .feature-item h4 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    /* Hero store badges mobile */
    .hero-store-badge img {
        height: 50px;
        min-width: 150px;
    }

    /* QR codes mobile */
    .qr-code {
        width: 50px;
        height: 50px;
    }

    .qr-codes {
        gap: 1rem;
    }

    /* Mobile badge sizes */
    .app-store-badge img,
    .play-store-badge img {
        height: 50px;
        min-width: 150px;
    }

    .app-store-badge,
    .play-store-badge {
        height: 50px;
        min-width: 150px;
    }
}

/* Special handling for WebP format */
.play-store-badge img[src$=".webp"] {
    width: 180px !important;
    height: 60px !important;
    object-fit: scale-down;
}

@media (max-width: 768px) {
    .play-store-badge img[src$=".webp"] {
        width: 165px !important;
        height: 55px !important;
    }
}

@media (max-width: 480px) {
    .play-store-badge img[src$=".webp"] {
        width: 150px !important;
        height: 50px !important;
    }
}