/* App Page Specific Styles */

.app-hero {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 220px;
    padding-bottom: 60px;
    background: radial-gradient(circle at center, rgba(212, 184, 134, 0.1) 0%, transparent 70%);
}

.app-hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a0a5ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.app-hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.5;
}

/* Sticky Container */
.app-sticky-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.app-content-left {
    padding-right: 2rem;
    padding-bottom: 40vh; /* Allow scrolling past last item so it fades naturally */
}

.app-feature-block {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.25;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(40px);
}

.app-feature-block.active {
    opacity: 1;
    transform: translateY(0);
}

.app-feature-block h2 {
    font-size: 3.8rem;
    margin: 1.5rem 0;
    line-height: 1.1;
    color: var(--text-primary);
}

.app-feature-block p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-tag {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-tag::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: var(--accent);
}

/* Right side - The sticky phone */
.app-phone-right {
    position: relative;
}

.sticky-phone-wrapper {
    position: sticky;
    top: 220px; /* Offset for the fixed header */
    height: calc(100vh - 220px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-phone {
    width: 340px;
    max-width: 100%;
    aspect-ratio: 340 / 690;
    height: auto;
    max-height: calc(100vh - 260px); /* Strictly prevents vertical cutoff below header */
    border-radius: 48px;
    border: 14px solid #1a1a1a;
    background: #000;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 15px rgba(255,255,255,0.05);
    overflow: hidden;
}

/* The Notch */
.mockup-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #1a1a1a;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

/* Internal phone image */
#sticky-phone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

#sticky-phone-img.fade-out {
    opacity: 0;
    transform: scale(0.96);
}

.inline-mobile-phone {
    display: none;
}

/* Responsive Design for Mobile / Tablets */
@media (max-width: 1024px) {
    .app-hero h1 {
        font-size: 4rem;
    }
    .app-sticky-container {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
    .mockup-phone {
        width: 300px;
        border-width: 12px;
    }
}

@media (max-width: 800px) {
    .app-sticky-container {
        display: flex;
        flex-direction: column;
        padding: 0 8%;
    }
    .app-phone-right {
        display: none; /* Hide sticky phone on mobile */
    }
    .app-content-left {
        padding-right: 0;
        padding-bottom: 5rem;
    }
    .app-feature-block {
        min-height: auto;
        padding: 5rem 0;
        opacity: 1;
        transform: translateY(0);
    }
    .app-feature-block h2 {
        font-size: 2.8rem;
    }
    .inline-mobile-phone {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 2rem 0;
        border-radius: 35px;
        border: 10px solid #1a1a1a;
        box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    }
}

/* Voice Control Section */
.app-voice-control {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    /* Option 3: Shift content to the top so it doesn't block the bottom speaker */
    align-items: flex-start;
    padding-top: 8rem;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.voice-control-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.voice-control-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
}

.voice-control-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Very subtle gradient, lets image shine */
    background: linear-gradient(to bottom, #0b0d10 0%, rgba(11, 13, 16, 0.1) 50%, #0b0d10 100%);
    z-index: 2;
}

.voice-control-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 850px;
    padding: 0 5%;
    /* Removed Glassmorphism Card completely */
}

.voice-control-content h2 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff; /* Stark pure white */
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0px 4px 20px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
}

.voice-control-content p {
    font-size: 1.35rem;
    color: #ffffff; /* Stark pure white for visibility */
    line-height: 1.6;
    margin-bottom: 3.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0px 4px 15px rgba(0,0,0,0.9);
}

.voice-ecosystems {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.ecosystem-icon {
    padding: 1.2rem 2.5rem;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.ecosystem-icon:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.ecosystem-name {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.ecosystem-name b {
    font-weight: 600;
    color: var(--accent);
}

@media (max-width: 800px) {
    .app-voice-control {
        min-height: 60vh;
        padding: 4rem 0;
    }
    .voice-control-content h2 {
        font-size: 2.8rem;
    }
    .voice-ecosystems {
        gap: 1rem;
    }
    .ecosystem-icon {
        padding: 1rem 1.5rem;
    }
}

/* App Download Section */
.app-download-section {
    padding: 8rem 5%;
    background: #0b0d10; /* Match theme bg */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-download-content {
    max-width: 800px;
    text-align: center;
}

.app-download-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.app-download-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3.5rem;
}

.store-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.8rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-button:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.store-button svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.store-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.1;
}

@media (max-width: 800px) {
    .app-download-section {
        padding: 5rem 5%;
    }
    .app-download-content h2 {
        font-size: 2.5rem;
    }
}
