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

:root {
    --dark-1: #1A1C24;
    --dark-2: #2B2D3A;
    --dark-3: #4A4E69;
    --purple-glow: #9D4EDD;
    --purple-light: #C77DFF;
    --blue-glow: #4A90E2;
    --cyan-glow: #00D4FF;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-2) 50%, var(--dark-1) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Blue/Cyan Glow Top Left */
body::before {
    content: '';
    position: fixed;
    top: -40%;
    left: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.3) 0%, rgba(0, 212, 255, 0.2) 30%, rgba(0, 212, 255, 0.1) 60%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

/* Pink/Red Glow Bottom Right */
body::after {
    content: '';
    position: fixed;
    bottom: -60%;
    right: -60%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(219, 66, 101, 0.45) 0%, rgba(219, 66, 101, 0.35) 30%, rgba(219, 66, 101, 0.2) 60%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

/* Container */
.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 30px 20px;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* Phone Mockups */
.phone-mockups {
    flex: 1;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    position: absolute;
    transition: transform 0.3s ease;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* First phone (back) - BIGGER */
.phone-back {
    width: 280px;
    left: 0;
    z-index: 2;
    transform: rotate(-5deg) translateX(60px);
}

/* Second phone (front) - SMALLER */
.phone-front {
    width: 220px;
    right: 0;
    z-index: 1;
    transform: rotate(5deg) translateX(-60px);
}

.phone-mockup:hover {
    transform: scale(1.05) rotate(0deg);
}

/* Content Section */
.content {
    flex: 1;
    max-width: 500px;
    margin-left: -50px;
}

/* Mobile/Desktop Visibility */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

/* Mobile Screenshot */
.mobile-screenshot {
    width: 100%;
    max-width: 180px;
    margin: 20px auto;
}

.mobile-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Header with Logo + Title */
.header-section {
    margin-bottom: 30px;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.title-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

/* Desktop: hide mobile tagline, show desktop tagline */
.mobile-tagline {
    display: none;
}

.desktop-tagline {
    display: block;
}

.logo {
    width: 60px;
    height: 60px;
}

.app-name {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin: 0;
}

.tagline {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 40px;
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.store-badge {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.store-badge img {
    height: 50px;
    width: auto;
}

/* Make Google Play badge match Apple vertical alignment */
#play-store-badge img {
    height: 70px;
}

.store-badge:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Footer */
footer {
    padding: 25px 20px;
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.footer-content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-content a:hover {
    color: var(--purple-light);
}

/* Responsive Design */
@media (max-width: 968px) {
    body {
        max-height: 100vh;
        overflow-y: auto;
    }

    /* Switch to mobile layout */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .container {
        padding: 12px 15px 8px 15px;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 0;
        text-align: left;
    }

    .content {
        max-width: 100%;
        margin-left: 0;
    }

    .header-section {
        margin-bottom: 12px;
    }

    .description {
        display: none;
    }

    .mobile-screenshot {
        max-width: 55%;
        margin: 12px auto;
    }

    /* Mobile: hide mobile tagline inside stack, show desktop tagline below */
    .mobile-tagline {
        display: none;
    }

    .desktop-tagline {
        display: block;
        font-size: 18px;
        font-weight: 400;
        line-height: 1.2;
    }

    /* Mobile: Logo + Maseria horizontal centered, tagline below centered */
    .header-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-title {
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }

    .title-stack {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .logo {
        width: 48px;
        height: 48px;
    }

    .app-name {
        font-size: 32px;
        line-height: 1;
    }

    .store-badges {
        justify-content: center;
        margin-bottom: 0;
        margin-top: 12px;
        gap: 12px;
    }

    .store-badge img {
        height: 42px;
    }

    #play-store-badge img {
        height: 58px;
    }

    footer {
        padding: 12px 12px 10px 12px;
    }

    .footer-content p {
        font-size: 11px;
        line-height: 1.4;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 10px 12px 6px 12px;
    }

    .mobile-screenshot {
        max-width: 52%;
        margin: 10px auto;
    }

    .logo {
        width: 44px;
        height: 44px;
    }

    .app-name {
        font-size: 28px;
    }

    .desktop-tagline {
        font-size: 17px;
    }

    .logo-title {
        gap: 8px;
        margin-bottom: 6px;
    }

    .store-badges {
        margin-top: 10px;
        gap: 10px;
    }

    .store-badge img {
        height: 38px;
    }

    #play-store-badge img {
        height: 52px;
    }

    .footer-content p {
        font-size: 10px;
    }

    footer {
        padding: 10px 10px 8px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px 10px 5px 10px;
    }

    .mobile-screenshot {
        max-width: 50%;
        margin: 8px auto;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .app-name {
        font-size: 24px;
    }

    .desktop-tagline {
        font-size: 15px;
    }

    .logo-title {
        gap: 6px;
        margin-bottom: 5px;
    }

    .store-badges {
        margin-top: 8px;
        gap: 8px;
    }

    .store-badge img {
        height: 36px;
    }

    #play-store-badge img {
        height: 49px;
    }

    .footer-content p {
        font-size: 9px;
    }

    footer {
        padding: 8px 8px 6px 8px;
    }
}
